user()?->can('admin') || auth()->user()?->can('manage_pizzas') ?? false; } protected static ?string $model = Ingredient::class; protected static string | \BackedEnum | null $navigationIcon = 'heroicon-o-building-storefront'; protected static ?string $pluralModelLabel = 'Składniki'; protected static ?string $modelLabel = 'Składnik'; protected static ?int $navigationSort = 3; protected static string | \UnitEnum | null $navigationGroup = 'Treść'; protected static ?string $recordTitleAttribute = 'Składnik'; public static function form(Schema $schema): Schema { return IngredientForm::configure($schema); } public static function infolist(Schema $schema): Schema { return IngredientInfolist::configure($schema); } public static function table(Table $table): Table { return IngredientsTable::configure($table); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => ListIngredients::route('/'), 'create' => CreateIngredient::route('/create'), 'edit' => EditIngredient::route('/{record}/edit'), ]; } }