php (new Appointment())->getAvailableTimes($get('date'))
Select::make('slot') ->prefixIcon(fn (Get $get, ?Model $record) => (new Appointment())->getAvailableTimes($get('date')) != null ? 'heroicon-o-check' : "heroicon-o-x-mark" ) ->prefixIconColor(fn (Get $get, ?Model $record) => (new Appointment())->getAvailableTimes($get('date')) != null ? 'primary' : "gray" ) ->disabled(fn (Get $get, ?Model $record) => (new Appointment())->getAvailableTimes($get('date')) != null ? ) ->options(fn (Get $get, ?Model $record) => (new Appointment())->getAvailableTimes($get('date')) )
->userMenuItems([ 'profile' => MenuItem::make()->url(fn (): string => EditProfile::getUrl()),])
Missing required parameter for [Route: filament.admin.pages.profile] [URI: {tenant}/profile] [Missing parameter: tenant].
->userMenuItems([ 'profile' => MenuItem::make()->url(fn (): string => EditProfile::getUrl())->hidden(fn (): bool => request()->routeIs('filament.admin.tenant.registration')),