schema([ Forms\Components\TextInput::make('code') ->label('Code') ->required() ->maxLength(3) ->disabledOn('edit') ->unique(static::getModel(), 'code', ignoreRecord: true) ->placeholder('Enter the currency code'), Forms\Components\TextInput::make('prefix') ->label('Prefix') ->maxLength(10) ->placeholder('Enter the currency prefix'), Forms\Components\TextInput::make('suffix') ->label('Suffix') ->maxLength(10) ->placeholder('Enter the currency suffix'), Forms\Components\Select::make('format') ->label('Format') ->options([ '1.000,00' => '1.000,00', '1,000.00' => '1,000.00', '1 000,00' => '1 000,00', '1 000.00' => '1 000.00', ]) ->default('1.000,00'), ]); } public static function table(Table $table): Table { return $table ->columns([ Tables\Columns\TextColumn::make('code') ->label('Code') ->searchable() ->sortable(), Tables\Columns\TextColumn::make('prefix') ->label('Prefix') ->searchable() ->sortable(), Tables\Columns\TextColumn::make('suffix') ->label('Suffix') ->searchable() ->sortable(), ]) ->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\ListCurrencies::route('/'), 'create' => Pages\CreateCurrency::route('/create'), 'edit' => Pages\EditCurrency::route('/{record}/edit'), ]; } }