schema([ Forms\Components\TextInput::make('account')->required(), Forms\Components\Textarea::make('description')->nullable(), Forms\Components\Select::make('account_type_id') ->relationship('accountType', 'type') ->required(), Forms\Components\Select::make('normal_balance')->options( ['debit' => 'Debit', 'credit' => 'Credit'] )->required(), ]); } public function table(Table $table): Table { return $table ->recordTitleAttribute('client_id') ->columns([ Tables\Columns\TextColumn::make('account')->description(fn (Account $record): string => $record->description ?? ''), Tables\Columns\TextColumn::make('accountType.type'), Tables\Columns\TextColumn::make('normal_balance'), ]) ->filters([ // ]) ->headerActions([ Tables\Actions\ExportAction::make('Export Accounts')->exporter(ClientAccountsExporter::class)->formats([ExportFormat::Csv]), Tables\Actions\CreateAction::make()->label('New Account')->icon('heroicon-o-plus')->slideOver(), ]) ->actions([ Tables\Actions\EditAction::make()->slideOver(), Tables\Actions\DeleteAction::make()->requiresConfirmation(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make()->icon('heroicon-s-trash')->requiresConfirmation(), ]), ]); } }