veh score rel mgr
This commit is contained in:
parent
0d73255ee8
commit
a49bb5e218
@ -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'),
|
||||
]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user