veh owner rel mgr form

This commit is contained in:
Russ Long 2023-03-16 13:29:39 -04:00
parent 5e7155457d
commit a2f3b2c380

View File

@ -9,6 +9,7 @@ use Filament\Resources\Table;
use Filament\Tables;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use App\Models\Bidders;
class VehicleOwnerRelationManager extends RelationManager
{
@ -20,9 +21,14 @@ class VehicleOwnerRelationManager extends RelationManager
{
return $form
->schema([
Forms\Components\Select::make('bidder_assigned_number')
Forms\Components\Select::make('owner')
->label('Number')
->required()
->searchable()
->options(
Bidders::orderBy('bidder_assigned_number')
->pluck('bidder_assigned_number', 'idbidders'
))
->createOptionForm([
Forms\Components\TextInput::make('bidder_fname')->label('First Name'),
Forms\Components\TextInput::make('bidder_lname')->label('Last Name'),