schema([ TextInput::make('code') ->integer() ->unique() ->required() ->rules('max:255'), TextInput::make('name') ->unique() ->required() ->rules('max:255'), ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('id') ->label(__('ID')) ->sortable(), TextColumn::make('code') ->sortable() ->searchable(), TextColumn::make('name') ->sortable() ->searchable(), ]) ->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\ListPaymentPurposeCodes::route('/'), 'create' => Pages\CreatePaymentPurposeCode::route('/create'), 'edit' => Pages\EditPaymentPurposeCode::route('/{record}/edit'), ]; } }