user()?->can('admin') || auth()->user()?->can('manage_pizzas') ?? false; } protected static ?string $model = Promotion::class; protected static string | \BackedEnum | null $navigationIcon = 'heroicon-o-percent-badge'; protected static string | \UnitEnum | null $navigationGroup = 'Treść'; protected static ?string $pluralModelLabel = 'Promocje'; protected static ?string $modelLabel = 'Promocja'; protected static ?int $navigationSort = 3; protected static ?string $recordTitleAttribute = 'Promocja'; public static function form(Schema $schema): Schema { return PromotionForm::configure($schema); } public static function infolist(Schema $schema): Schema { return PromotionInfolist::configure($schema); } public static function table(Table $table): Table { return PromotionsTable::configure($table); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => ListPromotions::route('/'), 'create' => CreatePromotion::route('/create'), 'edit' => EditPromotion::route('/{record}/edit'), ]; } }