diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index ad9a136..7a11382 100644 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -170,7 +170,7 @@ class AdminController extends Controller */ public function supplier() { - return view('a.supplier.find'); + return view('a.supplier.home'); } /** diff --git a/resources/views/theme/backend/adminlte/a/supplier/find.blade.php b/resources/views/theme/backend/adminlte/a/supplier/home.blade.php similarity index 96% rename from resources/views/theme/backend/adminlte/a/supplier/find.blade.php rename to resources/views/theme/backend/adminlte/a/supplier/home.blade.php index 4a2fc54..c61d72a 100644 --- a/resources/views/theme/backend/adminlte/a/supplier/find.blade.php +++ b/resources/views/theme/backend/adminlte/a/supplier/home.blade.php @@ -63,7 +63,7 @@ $(document).ready(function() { $('#name').select2() .on('change',function(item) { - window.location.href = '{{ url('a/supplier/addedit') }}/'+item.target.value; + window.location.href = '{{ url('a/supplier/details') }}/'+item.target.value; }); }); diff --git a/resources/views/theme/backend/adminlte/a/supplier/widgets/detail.blade.php b/resources/views/theme/backend/adminlte/a/supplier/widgets/detail.blade.php index b0f5d4c..02e1f22 100644 --- a/resources/views/theme/backend/adminlte/a/supplier/widgets/detail.blade.php +++ b/resources/views/theme/backend/adminlte/a/supplier/widgets/detail.blade.php @@ -19,12 +19,12 @@ - @error('name') - {{ $message }} + @error('name') + {{ $message }} @else Supplier Name required. - @enderror - + @enderror + @@ -47,12 +47,12 @@ - @error('address1') - {{ $message }} + @error('address1') + {{ $message }} @else Atleast 1 address line required. - @enderror - + @enderror + @@ -64,12 +64,12 @@ - @error('city') - {{ $message }} + @error('city') + {{ $message }} @else City is required. - @enderror - + @enderror + @@ -81,12 +81,12 @@ - @error('state') - {{ $message }} + @error('state') + {{ $message }} @else State is required. - @enderror - + @enderror + @@ -96,12 +96,12 @@ - @error('postcode') - {{ $message }} + @error('postcode') + {{ $message }} @else Postcode is required. - @enderror - + @enderror + @@ -115,10 +115,10 @@ - @error('supplier_details.accounts') - {{ $message }} + @error('supplier_details.accounts') + {{ $message }} @enderror - + @@ -130,10 +130,10 @@ - @error('supplier_details.support') - {{ $message }} + @error('supplier_details.support') + {{ $message }} @enderror - + @@ -145,10 +145,10 @@ - @error('supplier_details.payments') - {{ $message }} + @error('supplier_details.payments') + {{ $message }} @enderror - + @@ -163,10 +163,10 @@ Notes. - @error('supplier_details.notes') - {{ $message }} + @error('supplier_details.notes') + {{ $message }} @enderror - +