Commit 3bb83cfa by Hussain Mohamed

changes

parent 49f8a646
@extends('backend.app_template')
@section('title','Eye Store or Update')
@section('title','Brand Store or Update')
@section('content')
<?php
$id = isset($record->id) ? $record->id:'';
$eye_color = isset($record->eye_color) ? $record->eye_color:'';
$brand = isset($record->brand) ? $record->brand:'';
$type = ($id == '') ? 'Create':'Update';
?>
......@@ -15,7 +15,7 @@
<div class="flex-shrink-0">
<nav aria-label="breadcrumb">
<ol class="breadcrumb justify-content-end mb-0">
<li class="breadcrumb-item"><a href="javascript:void(0)">Eye</a></li>
<li class="breadcrumb-item"><a href="javascript:void(0)">Brand</a></li>
<li class="breadcrumb-item active" aria-current="page"><?= $type ?></li>
</ol>
</nav>
......@@ -23,25 +23,25 @@
</div>
<div class="row">
<div class="col-xl-12 col-xxl-12">
<form method="POST" id="countryForm" action="<?= route('storeUpdateEye') ?>" enctype="multipart/form-data">
<form method="POST" id="countryForm" action="<?= route('storeUpdateBrand') ?>" enctype="multipart/form-data">
@csrf
<div>
<div class="card">
<span></span>
<!-- Logistics Details Section -->
<div class="card-header">
<h5 class="mb-0"><?= $type ?> Eye</h5>
<h5 class="mb-0"><?= $type ?> Brand</h5>
<div class="float-end">
<a href="<?= route('eye') ?>" class="btn btn-primary" >Back</a>
<a href="<?= route('brand') ?>" class="btn btn-primary" >Back</a>
</div>
</div>
<input type="hidden" name="id" value="<?= $id ?>" />
<div class="card-body">
<div class="row g-4">
<div class="col-xl-4">
<label for="eye_color" class="form-label">Eye Color<span class="text-danger"> *</span></label>
<input type="text" value="<?= $eye_color ?>" class="form-control" id="eye_color" name="eye_color" placeholder="Enter Eye Color">
@error('eye_color') <span class="text-danger">{{$message}}</span> @enderror
<label for="eye_color" class="form-label">Brand Name<span class="text-danger"> *</span></label>
<input type="text" value="<?= $brand ?>" class="form-control" id="brand" name="brand" placeholder="Enter Brand Name">
@error('brand') <span class="text-danger">{{$message}}</span> @enderror
</div>
</div>
......@@ -64,11 +64,11 @@
$(function() {
$("#countryForm").validate({
rules: {
eye_color: { required: true },
brand: { required: true },
},
messages: {
eye_color: { required: "Please enter eye color" },
brand: { required: "Please enter brand" },
},
errorElement: "span",
errorPlacement: function(error, element) {
......
@extends('backend.app_template')
@section('title','Eye List')
@section('title','Brand List')
@section('content')
<main class="app-wrapper">
<div class="container-fluid">
......@@ -8,7 +8,7 @@
<div class="flex-shrink-0">
<nav aria-label="breadcrumb">
<ol class="breadcrumb justify-content-end mb-0">
<li class="breadcrumb-item"><a href="javascript:void(0)">Eye</a></li>
<li class="breadcrumb-item"><a href="javascript:void(0)">Brand</a></li>
<li class="breadcrumb-item active" aria-current="page">List</li>
</ol>
</nav>
......@@ -19,14 +19,14 @@
<div class="row">
<div class="d-flex justify-content-end mb-4">
<a href="<?php echo route('addEye') ?>" class="btn btn-primary">Add Eye</a>
<a href="<?php echo route('addBrand') ?>" class="btn btn-primary">Add Brand</a>
</div>
<table id="datatables" class="table table-nowrap table-hover table-bordered w-100 mt-5">
<thead>
<tr>
<th>S.No</th>
<th>Eye Color</th>
<th>Brand</th>
<th>Status</th>
<th>Action</th>
</tr>
......@@ -38,11 +38,11 @@
?>
<tr>
<td><?php echo $i ?></td>
<td><?php echo $row->eye_color ?></td>
<td><a data-placement="top" title="Status" data-original-title="Status" href="javascript:void(0)" onclick="changeStatus('<?php echo $row->id ?>','<?php echo ($row->status == 1) ? 0 : 1 ?>','EyeModel')" class="badge bg-pill bg-<?php echo ($row->status == 1) ? 'success' : 'danger' ?>"><?php echo ($row->status == 1) ? 'Active' : 'In-Active' ?></a></td>
<td><?php echo $row->brand ?></td>
<td><a data-placement="top" title="Status" data-original-title="Status" href="javascript:void(0)" onclick="changeStatus('<?php echo $row->id ?>','<?php echo ($row->status == 1) ? 0 : 1 ?>','ProductBrandModel')" class="badge bg-pill bg-<?php echo ($row->status == 1) ? 'success' : 'danger' ?>"><?php echo ($row->status == 1) ? 'Active' : 'In-Active' ?></a></td>
<td>
<a data-toggle="tooltip" data-placement="top" title="Edit" href="<?php echo route('addEye', [$row->id]) ?>" class="btn btn-sm btn-warning"><i class="bi bi-pencil-fill"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Delete" data-original-title="Delete" href="javascript:void(0)" onclick="commonDelete('<?php echo $row->id ?>','EyeModel')" class="btn btn-sm btn-danger"><i class="bi bi-trash-fill"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Edit" href="<?php echo route('addBrand', [$row->id]) ?>" class="btn btn-sm btn-warning"><i class="bi bi-pencil-fill"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Delete" data-original-title="Delete" href="javascript:void(0)" onclick="commonDelete('<?php echo $row->id ?>','ProductBrandModel')" class="btn btn-sm btn-danger"><i class="bi bi-trash-fill"></i></a>
</td>
</tr>
......
@extends('backend.app_template')
@section('title','Eye Store or Update')
@section('title','Industry Store or Update')
@section('content')
<?php
$id = isset($record->id) ? $record->id:'';
$eye_color = isset($record->eye_color) ? $record->eye_color:'';
$industry = isset($record->industry) ? $record->industry:'';
$type = ($id == '') ? 'Create':'Update';
?>
......@@ -15,7 +15,7 @@
<div class="flex-shrink-0">
<nav aria-label="breadcrumb">
<ol class="breadcrumb justify-content-end mb-0">
<li class="breadcrumb-item"><a href="javascript:void(0)">Eye</a></li>
<li class="breadcrumb-item"><a href="javascript:void(0)">Industry</a></li>
<li class="breadcrumb-item active" aria-current="page"><?= $type ?></li>
</ol>
</nav>
......@@ -23,25 +23,25 @@
</div>
<div class="row">
<div class="col-xl-12 col-xxl-12">
<form method="POST" id="countryForm" action="<?= route('storeUpdateEye') ?>" enctype="multipart/form-data">
<form method="POST" id="countryForm" action="<?= route('storeUpdateIndustry') ?>" enctype="multipart/form-data">
@csrf
<div>
<div class="card">
<span></span>
<!-- Logistics Details Section -->
<div class="card-header">
<h5 class="mb-0"><?= $type ?> Eye</h5>
<h5 class="mb-0"><?= $type ?> Industry</h5>
<div class="float-end">
<a href="<?= route('eye') ?>" class="btn btn-primary" >Back</a>
<a href="<?= route('industry') ?>" class="btn btn-primary" >Back</a>
</div>
</div>
<input type="hidden" name="id" value="<?= $id ?>" />
<div class="card-body">
<div class="row g-4">
<div class="col-xl-4">
<label for="eye_color" class="form-label">Eye Color<span class="text-danger"> *</span></label>
<input type="text" value="<?= $eye_color ?>" class="form-control" id="eye_color" name="eye_color" placeholder="Enter Eye Color">
@error('eye_color') <span class="text-danger">{{$message}}</span> @enderror
<label for="industry" class="form-label">Industry<span class="text-danger"> *</span></label>
<input type="text" value="<?= $industry ?>" class="form-control" id="industry" name="industry" placeholder="Enter Eye Color">
@error('industry') <span class="text-danger">{{$message}}</span> @enderror
</div>
</div>
......@@ -64,11 +64,11 @@
$(function() {
$("#countryForm").validate({
rules: {
eye_color: { required: true },
industry: { required: true },
},
messages: {
eye_color: { required: "Please enter eye color" },
industry: { required: "Please enter industry" },
},
errorElement: "span",
errorPlacement: function(error, element) {
......
@extends('backend.app_template')
@section('title','Eye List')
@section('title','Industry List')
@section('content')
<main class="app-wrapper">
<div class="container-fluid">
......@@ -8,7 +8,7 @@
<div class="flex-shrink-0">
<nav aria-label="breadcrumb">
<ol class="breadcrumb justify-content-end mb-0">
<li class="breadcrumb-item"><a href="javascript:void(0)">Eye</a></li>
<li class="breadcrumb-item"><a href="javascript:void(0)">Industry</a></li>
<li class="breadcrumb-item active" aria-current="page">List</li>
</ol>
</nav>
......@@ -19,14 +19,14 @@
<div class="row">
<div class="d-flex justify-content-end mb-4">
<a href="<?php echo route('addEye') ?>" class="btn btn-primary">Add Eye</a>
<a href="<?php echo route('addIndustry') ?>" class="btn btn-primary">Add Industry</a>
</div>
<table id="datatables" class="table table-nowrap table-hover table-bordered w-100 mt-5">
<thead>
<tr>
<th>S.No</th>
<th>Eye Color</th>
<th>Industry Color</th>
<th>Status</th>
<th>Action</th>
</tr>
......@@ -38,11 +38,11 @@
?>
<tr>
<td><?php echo $i ?></td>
<td><?php echo $row->eye_color ?></td>
<td><a data-placement="top" title="Status" data-original-title="Status" href="javascript:void(0)" onclick="changeStatus('<?php echo $row->id ?>','<?php echo ($row->status == 1) ? 0 : 1 ?>','EyeModel')" class="badge bg-pill bg-<?php echo ($row->status == 1) ? 'success' : 'danger' ?>"><?php echo ($row->status == 1) ? 'Active' : 'In-Active' ?></a></td>
<td><?php echo $row->industry ?></td>
<td><a data-placement="top" title="Status" data-original-title="Status" href="javascript:void(0)" onclick="changeStatus('<?php echo $row->id ?>','<?php echo ($row->status == 1) ? 0 : 1 ?>','ProductIndustryModel')" class="badge bg-pill bg-<?php echo ($row->status == 1) ? 'success' : 'danger' ?>"><?php echo ($row->status == 1) ? 'Active' : 'In-Active' ?></a></td>
<td>
<a data-toggle="tooltip" data-placement="top" title="Edit" href="<?php echo route('addEye', [$row->id]) ?>" class="btn btn-sm btn-warning"><i class="bi bi-pencil-fill"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Delete" data-original-title="Delete" href="javascript:void(0)" onclick="commonDelete('<?php echo $row->id ?>','EyeModel')" class="btn btn-sm btn-danger"><i class="bi bi-trash-fill"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Edit" href="<?php echo route('addIndustry', [$row->id]) ?>" class="btn btn-sm btn-warning"><i class="bi bi-pencil-fill"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Delete" data-original-title="Delete" href="javascript:void(0)" onclick="commonDelete('<?php echo $row->id ?>','ProductIndustryModel')" class="btn btn-sm btn-danger"><i class="bi bi-trash-fill"></i></a>
</td>
</tr>
......
@extends('backend.app_template')
@section('title','Eye Store or Update')
@section('title','Type Store or Update')
@section('content')
<?php
$id = isset($record->id) ? $record->id:'';
$eye_color = isset($record->eye_color) ? $record->eye_color:'';
$type = isset($record->type) ? $record->type:'';
$type = ($id == '') ? 'Create':'Update';
?>
......@@ -15,7 +15,7 @@
<div class="flex-shrink-0">
<nav aria-label="breadcrumb">
<ol class="breadcrumb justify-content-end mb-0">
<li class="breadcrumb-item"><a href="javascript:void(0)">Eye</a></li>
<li class="breadcrumb-item"><a href="javascript:void(0)">Type</a></li>
<li class="breadcrumb-item active" aria-current="page"><?= $type ?></li>
</ol>
</nav>
......@@ -23,25 +23,25 @@
</div>
<div class="row">
<div class="col-xl-12 col-xxl-12">
<form method="POST" id="countryForm" action="<?= route('storeUpdateEye') ?>" enctype="multipart/form-data">
<form method="POST" id="countryForm" action="<?= route('storeUpdateType') ?>" enctype="multipart/form-data">
@csrf
<div>
<div class="card">
<span></span>
<!-- Logistics Details Section -->
<div class="card-header">
<h5 class="mb-0"><?= $type ?> Eye</h5>
<h5 class="mb-0"><?= $type ?> Type</h5>
<div class="float-end">
<a href="<?= route('eye') ?>" class="btn btn-primary" >Back</a>
<a href="<?= route('type') ?>" class="btn btn-primary" >Back</a>
</div>
</div>
<input type="hidden" name="id" value="<?= $id ?>" />
<div class="card-body">
<div class="row g-4">
<div class="col-xl-4">
<label for="eye_color" class="form-label">Eye Color<span class="text-danger"> *</span></label>
<input type="text" value="<?= $eye_color ?>" class="form-control" id="eye_color" name="eye_color" placeholder="Enter Eye Color">
@error('eye_color') <span class="text-danger">{{$message}}</span> @enderror
<label for="type" class="form-label">Eye Color<span class="text-danger"> *</span></label>
<input type="text" value="<?= $type ?>" class="form-control" id="type" name="type" placeholder="Enter Type">
@error('type') <span class="text-danger">{{$message}}</span> @enderror
</div>
</div>
......@@ -64,11 +64,11 @@
$(function() {
$("#countryForm").validate({
rules: {
eye_color: { required: true },
type: { required: true },
},
messages: {
eye_color: { required: "Please enter eye color" },
type: { required: "Please enter type" },
},
errorElement: "span",
errorPlacement: function(error, element) {
......
@extends('backend.app_template')
@section('title','Eye List')
@section('title','Type List')
@section('content')
<main class="app-wrapper">
<div class="container-fluid">
......@@ -8,7 +8,7 @@
<div class="flex-shrink-0">
<nav aria-label="breadcrumb">
<ol class="breadcrumb justify-content-end mb-0">
<li class="breadcrumb-item"><a href="javascript:void(0)">Eye</a></li>
<li class="breadcrumb-item"><a href="javascript:void(0)">Type</a></li>
<li class="breadcrumb-item active" aria-current="page">List</li>
</ol>
</nav>
......@@ -19,14 +19,14 @@
<div class="row">
<div class="d-flex justify-content-end mb-4">
<a href="<?php echo route('addEye') ?>" class="btn btn-primary">Add Eye</a>
<a href="<?php echo route('addType') ?>" class="btn btn-primary">Add Type</a>
</div>
<table id="datatables" class="table table-nowrap table-hover table-bordered w-100 mt-5">
<thead>
<tr>
<th>S.No</th>
<th>Eye Color</th>
<th>Type</th>
<th>Status</th>
<th>Action</th>
</tr>
......@@ -38,11 +38,11 @@
?>
<tr>
<td><?php echo $i ?></td>
<td><?php echo $row->eye_color ?></td>
<td><a data-placement="top" title="Status" data-original-title="Status" href="javascript:void(0)" onclick="changeStatus('<?php echo $row->id ?>','<?php echo ($row->status == 1) ? 0 : 1 ?>','EyeModel')" class="badge bg-pill bg-<?php echo ($row->status == 1) ? 'success' : 'danger' ?>"><?php echo ($row->status == 1) ? 'Active' : 'In-Active' ?></a></td>
<td><?php echo $row->type ?></td>
<td><a data-placement="top" title="Status" data-original-title="Status" href="javascript:void(0)" onclick="changeStatus('<?php echo $row->id ?>','<?php echo ($row->status == 1) ? 0 : 1 ?>','ProductTypeModel')" class="badge bg-pill bg-<?php echo ($row->status == 1) ? 'success' : 'danger' ?>"><?php echo ($row->status == 1) ? 'Active' : 'In-Active' ?></a></td>
<td>
<a data-toggle="tooltip" data-placement="top" title="Edit" href="<?php echo route('addEye', [$row->id]) ?>" class="btn btn-sm btn-warning"><i class="bi bi-pencil-fill"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Delete" data-original-title="Delete" href="javascript:void(0)" onclick="commonDelete('<?php echo $row->id ?>','EyeModel')" class="btn btn-sm btn-danger"><i class="bi bi-trash-fill"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Edit" href="<?php echo route('addType', [$row->id]) ?>" class="btn btn-sm btn-warning"><i class="bi bi-pencil-fill"></i></a>
<a data-toggle="tooltip" data-placement="top" title="Delete" data-original-title="Delete" href="javascript:void(0)" onclick="commonDelete('<?php echo $row->id ?>','ProductTypeModel')" class="btn btn-sm btn-danger"><i class="bi bi-trash-fill"></i></a>
</td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment