schema([ Section::make() ->schema([ Forms\Components\Grid::make(2)->schema([ TextInput::make('title')->label('Заголовок')->required(), TextInput::make('path')->label('URL')->unique(ignoreRecord: true)->required() ]), Select::make('sub_section_id')->label('Подраздел') ->relationship('section', 'title'), Toggle::make('searchable')->default(true)->label('Индексируется поиском')->inline(false) ]) ]); } public static function table(Table $table): Table { return $table ->columns([ Tables\Columns\TextColumn::make('title') ]) ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make(), ]), ]); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListUrlLinks::route('/'), 'create' => Pages\CreateUrlLink::route('/create'), 'edit' => Pages\EditUrlLink::route('/{record}/edit'), ]; } }