diff --git a/app/Providers/ViewServiceProvider.php b/app/Providers/ViewServiceProvider.php index 41d248b..f8dce8e 100644 --- a/app/Providers/ViewServiceProvider.php +++ b/app/Providers/ViewServiceProvider.php @@ -203,13 +203,13 @@ public function boot(): void 'match' => 'studio.setting.application', 'can' => 'view application settings', ], - [ - 'label' => 'Whatsapp', - 'icon' => 'chat-bubble-oval-left-ellipsis', - 'route' => 'studio.setting.whatsapp', - 'match' => 'studio.setting.whatsapp', - 'can' => 'view whatsapp settings', - ], + // [ + // 'label' => 'Whatsapp', + // 'icon' => 'chat-bubble-oval-left-ellipsis', + // 'route' => 'studio.setting.whatsapp', + // 'match' => 'studio.setting.whatsapp', + // 'can' => 'view whatsapp settings', + // ], ], ], [ diff --git a/database/seeders/RolePermissionSeeder.php b/database/seeders/RolePermissionSeeder.php index 191688f..a7a453f 100644 --- a/database/seeders/RolePermissionSeeder.php +++ b/database/seeders/RolePermissionSeeder.php @@ -135,7 +135,7 @@ public function run(): void 'view application settings', - 'view whatsapp settings', + // 'view whatsapp settings', 'view general settings', 'update general settings', @@ -254,7 +254,7 @@ public function run(): void 'view application settings', - 'view whatsapp settings', + // 'view whatsapp settings', 'view general settings', 'update general settings', @@ -365,7 +365,7 @@ public function run(): void 'view application settings', - 'view whatsapp settings', + // 'view whatsapp settings', 'view general settings', 'update general settings', diff --git a/routes/pages/studio.php b/routes/pages/studio.php index 393ebba..13119bb 100644 --- a/routes/pages/studio.php +++ b/routes/pages/studio.php @@ -191,7 +191,7 @@ }); 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'])