schema([ Card::make() ->schema([ TextInput::make('name') ->label('Nama Kelas') ->required() ->placeholder('Masukkan nama kelas, max : 50 karakter') ->maxLength(50) ->unique(ignorable: fn (?Classroom $record) => $record), ]) ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('name') ->label('Kelas') ->searchable() ->badge() ->colors(['primary']) ->sortable(), ]) ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), Tables\Actions\DeleteAction::make(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make(), ]), ]); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListClassrooms::route('/'), 'create' => Pages\CreateClassroom::route('/create'), 'edit' => Pages\EditClassroom::route('/{record}/edit'), ]; } }