schema([ Select::make('vehicle') ->label('Vehicle') ->options(Vehicles::all()->pluck('owner', 'id')) ->searchable(), Select::make('category') ->label('Category') ->options(CarShowCategory::all()->pluck('category_name', 'id')) ->searchable(), ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('awardCategory.category_name')->label('Category'), TextColumn::make('awardVehicle.owner')->label('Vehicle Number'), TextColumn::make('awardVehicle.year')->label('Year'), TextColumn::make('awardVehicle.make')->label('Make'), TextColumn::make('awardVehicle.model')->label('Model'), ]) ->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'), ]; } }