components([ TextInput::make('label') ->label('Ýazgy') ->required(), TextInput::make('url') ->label('URL') ->required() ->url(), TextInput::make('sort_order') ->label('Tertip') ->required() ->numeric() ->default(0), ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('label') ->label('Ýazgy') ->searchable(), TextColumn::make('url') ->label('URL') ->searchable(), TextColumn::make('sort_order') ->label('Tertip') ->numeric() ->sortable(), TextColumn::make('created_at') ->dateTime() ->sortable() ->toggleable(isToggledHiddenByDefault: true), ]) ->defaultSort('sort_order') ->filters([]) ->recordActions([ EditAction::make(), DeleteAction::make(), ]) ->toolbarActions([ BulkActionGroup::make([ DeleteBulkAction::make(), ]), ]); } public static function getPages(): array { return [ 'index' => ManageFooterNavLinks::route('/'), ]; } }