diff --git a/app/Filament/Tenant/Pages/CalendarBoard.php b/app/Filament/Tenant/Pages/CalendarBoard.php index 97a443c..0925c35 100644 --- a/app/Filament/Tenant/Pages/CalendarBoard.php +++ b/app/Filament/Tenant/Pages/CalendarBoard.php @@ -17,7 +17,7 @@ class CalendarBoard extends Page public static function getNavigationLabel(): string { - return __('nav.label.Calendar vizual'); + return __('nav.label.Calendar'); } public static function getNavigationGroup(): ?string @@ -25,16 +25,7 @@ class CalendarBoard extends Page return __('nav.group.CRM'); } - /** - * Nest this page under the "Calendar" (Programări) list resource so the - * two show up as a single expandable menu item in the sidebar. - */ - public static function getNavigationParentItem(): ?string - { - return __('nav.label.Calendar'); - } - - protected static ?int $navigationSort = 8; + protected static ?int $navigationSort = 7; protected static ?string $title = null; diff --git a/app/Filament/Tenant/Resources/AppointmentResource.php b/app/Filament/Tenant/Resources/AppointmentResource.php index 886cd32..90ce231 100644 --- a/app/Filament/Tenant/Resources/AppointmentResource.php +++ b/app/Filament/Tenant/Resources/AppointmentResource.php @@ -22,6 +22,12 @@ class AppointmentResource extends Resource protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-calendar-days'; + /** + * Hidden from sidebar — CalendarBoard is the single Calendar entry. + * Create/edit routes remain reachable from board click handlers. + */ + protected static bool $shouldRegisterNavigation = false; + public static function getNavigationLabel(): string { return __('nav.label.Calendar');