diff --git a/app/Filament/Resources/VehiclesResource/RelationManagers/VehicleScoresRelationManager.php b/app/Filament/Resources/VehiclesResource/RelationManagers/VehicleScoresRelationManager.php index 2e37559..f75bf1b 100644 --- a/app/Filament/Resources/VehiclesResource/RelationManagers/VehicleScoresRelationManager.php +++ b/app/Filament/Resources/VehiclesResource/RelationManagers/VehicleScoresRelationManager.php @@ -9,6 +9,8 @@ use Filament\Resources\Table; use Filament\Tables; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\SoftDeletingScope; +use App\Models\Vehicles; +use App\Models\Judges; class VehicleScoresRelationManager extends RelationManager { @@ -20,9 +22,16 @@ class VehicleScoresRelationManager extends RelationManager { return $form ->schema([ - Forms\Components\TextInput::make('id') - ->required() - ->maxLength(255), + Forms\Components\Select::make('judge') + ->label('Judge') + ->options(Judges::all()->pluck('judge_number', 'id')) + ->searchable(), + Forms\Components\Select::make('vehicle') + ->label('Vehicle') + ->options(Vehicles::all()->pluck('owner', 'id')) + ->searchable(), + Forms\Components\TextInput::make('overall_score') + ->label('Overall Score'), ]); }