refactor(whatsapp): hide fitur integrasi whatsapp karena belum dibutuhkan

This commit is contained in:
Yoga Pangestu 2025-11-17 23:29:50 +07:00
parent dd70c72c92
commit c984206d94
3 changed files with 11 additions and 11 deletions

View File

@ -203,13 +203,13 @@ public function boot(): void
'match' => 'studio.setting.application', 'match' => 'studio.setting.application',
'can' => 'view application settings', 'can' => 'view application settings',
], ],
[ // [
'label' => 'Whatsapp', // 'label' => 'Whatsapp',
'icon' => 'chat-bubble-oval-left-ellipsis', // 'icon' => 'chat-bubble-oval-left-ellipsis',
'route' => 'studio.setting.whatsapp', // 'route' => 'studio.setting.whatsapp',
'match' => 'studio.setting.whatsapp', // 'match' => 'studio.setting.whatsapp',
'can' => 'view whatsapp settings', // 'can' => 'view whatsapp settings',
], // ],
], ],
], ],
[ [

View File

@ -135,7 +135,7 @@ public function run(): void
'view application settings', 'view application settings',
'view whatsapp settings', // 'view whatsapp settings',
'view general settings', 'view general settings',
'update general settings', 'update general settings',
@ -254,7 +254,7 @@ public function run(): void
'view application settings', 'view application settings',
'view whatsapp settings', // 'view whatsapp settings',
'view general settings', 'view general settings',
'update general settings', 'update general settings',
@ -365,7 +365,7 @@ public function run(): void
'view application settings', 'view application settings',
'view whatsapp settings', // 'view whatsapp settings',
'view general settings', 'view general settings',
'update general settings', 'update general settings',

View File

@ -191,7 +191,7 @@
}); });
Route::get('/settings/applications', ApplicationComponent::class)->name('studio.setting.application')->middleware('can:view application settings'); Route::get('/settings/applications', ApplicationComponent::class)->name('studio.setting.application')->middleware('can:view application settings');
Route::get('/settings/whatsapp', WhatsappComponent::class)->name('studio.setting.whatsapp')->middleware('can:view whatsapp settings'); // Route::get('/settings/whatsapp', WhatsappComponent::class)->name('studio.setting.whatsapp')->middleware('can:view whatsapp settings');
}); });
Route::get('/price-request/{priceRequest}/approve', [PriceRequestController::class, 'approve']) Route::get('/price-request/{priceRequest}/approve', [PriceRequestController::class, 'approve'])