From 7775105da67ce9d218d7ca77d907a2e18742a767 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 2 Apr 2022 09:28:43 +1100 Subject: [PATCH] Rename supplier home screen to home --- app/Http/Controllers/AdminController.php | 2 +- .../{find.blade.php => home.blade.php} | 2 +- .../a/supplier/widgets/detail.blade.php | 64 +++++++++---------- 3 files changed, 34 insertions(+), 34 deletions(-) rename resources/views/theme/backend/adminlte/a/supplier/{find.blade.php => home.blade.php} (96%) 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 - +