diff --git a/app/Http/Controllers/Studio/PriceRequestController.php b/app/Http/Controllers/Studio/PriceRequestController.php deleted file mode 100644 index 1a86d9b..0000000 --- a/app/Http/Controllers/Studio/PriceRequestController.php +++ /dev/null @@ -1,16 +0,0 @@ -update(['approved_at' => now()]); - - return redirect()->route('studio.dashboard.overview'); - } -} diff --git a/app/Livewire/Datatable/Studio/Manage/PriceRequestsTable.php b/app/Livewire/Datatable/Studio/Information/PriceRequestsTable.php similarity index 98% rename from app/Livewire/Datatable/Studio/Manage/PriceRequestsTable.php rename to app/Livewire/Datatable/Studio/Information/PriceRequestsTable.php index 0b614fc..c2fc2da 100644 --- a/app/Livewire/Datatable/Studio/Manage/PriceRequestsTable.php +++ b/app/Livewire/Datatable/Studio/Information/PriceRequestsTable.php @@ -1,6 +1,6 @@ 'Permintaan Harga', ]); } diff --git a/app/Providers/ViewServiceProvider.php b/app/Providers/ViewServiceProvider.php index f2f4866..85f9bc1 100644 --- a/app/Providers/ViewServiceProvider.php +++ b/app/Providers/ViewServiceProvider.php @@ -169,14 +169,6 @@ public function boot(): void 'match' => 'studio.manage.article.*', 'can' => 'view article', ], - [ - 'label' => 'Permintaan Harga', - 'icon' => 'exclamation-triangle', - 'route' => 'studio.manage.price_request.index', - 'match' => 'studio.manage.price_request.*', - 'can' => 'view price request', - 'badge' => $priceRequestCount, - ], [ 'label' => 'FAQs', 'icon' => 'question-mark-circle', @@ -196,6 +188,14 @@ public function boot(): void 'match' => 'studio.information.broadcast.*', 'can' => 'view broadcast', ], + [ + 'label' => 'Permintaan Harga', + 'icon' => 'exclamation-triangle', + 'route' => 'studio.information.price_request.index', + 'match' => 'studio.information.price_request.*', + 'can' => 'view price request', + 'badge' => $priceRequestCount, + ], ], ], [ diff --git a/app/Traits/WithShowPrice.php b/app/Traits/WithShowPrice.php index c80e940..b759da9 100644 --- a/app/Traits/WithShowPrice.php +++ b/app/Traits/WithShowPrice.php @@ -47,7 +47,7 @@ public function requestPrice(string $module) [ 'title' => 'Permintaan Persetujuan Harga Beli', 'body' => "Haloo {$owner->employee?->full_name}, saya {$causerName}, saya ingin mengajukan permintaan persetujuan untuk mengakses data harga beli {$module}.", - 'route' => route('studio.manage.price_request.index'), + 'route' => route('studio.information.price_request.index'), ], ); }); diff --git a/resources/views/livewire/studio/manage/price-requests.blade.php b/resources/views/livewire/studio/information/price-requests.blade.php similarity index 78% rename from resources/views/livewire/studio/manage/price-requests.blade.php rename to resources/views/livewire/studio/information/price-requests.blade.php index 34b669e..e355b9f 100644 --- a/resources/views/livewire/studio/manage/price-requests.blade.php +++ b/resources/views/livewire/studio/information/price-requests.blade.php @@ -6,7 +6,7 @@