schema([ Forms\Components\TextInput::make('name') ->label('Name') ->required() ->maxLength(255), Forms\Components\Textarea::make('description') ->label('Description') ->maxLength(1000) ->rows(4), ]); } public static function table(Table $table): Table { return $table ->columns([ Tables\Columns\TextColumn::make('name') ->label('Name') ->searchable() ->sortable(), Tables\Columns\TextColumn::make('description') ->label('Description') ->limit(50), Tables\Columns\TextColumn::make('created_at') ->label('Created at') ->dateTime('d M Y'), ]) ->filters([ // Tambahkan filter jika perlu ]) ->actions([ Tables\Actions\EditAction::make(), Tables\Actions\DeleteAction::make(), ]) ->bulkActions([ Tables\Actions\DeleteBulkAction::make(), ]) ->emptyStateActions([ Tables\Actions\CreateAction::make(), ]); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListExtracurriculars::route('/'), 'create' => Pages\CreateExtracurricular::route('/create'), 'edit' => Pages\EditExtracurricular::route('/{record}/edit'), ]; } }