schema([ Select::make('vehicle') ->label('Vehicle') ->options(Vehicles::all()->pluck('owner', 'year', 'make', 'model', 'id')) ->searchable(), Select::make('category') ->label('Category') ->options(CarShowCategory::all()->pluck('category_name', 'vehicle_type', 'id')) ->searchable(), ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('awardVehicle.owner')->label('Vehicle'), TextColumn::make('awardCategory.category_name')->label('Category'), ]) ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), ]) ->bulkActions([ Tables\Actions\DeleteBulkAction::make(), ]); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListCarShowWinners::route('/'), 'create' => Pages\CreateCarShowWinner::route('/create'), 'edit' => Pages\EditCarShowWinner::route('/{record}/edit'), ]; } }