refactor: remove unused slug properties and update service links in overview page

This commit is contained in:
2025-12-20 16:40:47 -05:00
parent 8f6ee1a7bf
commit 669b3b9dec
4 changed files with 4 additions and 9 deletions

View File

@@ -14,8 +14,6 @@ class ServicesOverview extends Page
protected static ?string $navigationLabel = 'Overview';
protected static ?string $slug = '/';
protected static ?int $navigationSort = -1;
protected static ?string $cluster = Services::class;

View File

@@ -33,8 +33,6 @@ class ServiceResource extends Resource
protected static bool $shouldRegisterNavigation = false;
protected static ?string $slug = 'all-services';
public static function getNavigationBadge(): ?string
{
return Service::where('status', 'pending')->count() ?: null;

View File

@@ -47,7 +47,6 @@ class AdminPanelProvider extends PanelProvider
->favicon(config('settings.logo') ? Storage::url(config('settings.logo')) : null)
->discoverResources(in: app_path('Admin/Resources'), for: 'App\\Admin\\Resources')
->discoverPages(in: app_path('Admin/Pages'), for: 'App\\Admin\\Pages')
->discoverPages(in: app_path('Admin/Clusters/Services/Pages'), for: 'App\\Admin\\Clusters\\Services\\Pages')
->discoverClusters(in: app_path('Admin/Clusters'), for: 'App\\Admin\\Clusters')
->userMenuItems([
MenuItem::make()