schema([ Section::make([ Select::make('customer_id') ->relationship('customer', 'company_name'), ]), ]); } public static function table(Table $table): Table { return $table ->columns([ // ]) ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make(), ]), ]); } public static function canAccess(): bool { return auth()->user()->is_admin; } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListPayments::route('/'), 'create' => Pages\CreatePayment::route('/create'), 'edit' => Pages\EditPayment::route('/{record}/edit'), ]; } }