veh owner rel mgr form
This commit is contained in:
parent
5e7155457d
commit
a2f3b2c380
@ -9,6 +9,7 @@ use Filament\Resources\Table;
|
|||||||
use Filament\Tables;
|
use Filament\Tables;
|
||||||
use Illuminate\Database\Eloquent\Builder;
|
use Illuminate\Database\Eloquent\Builder;
|
||||||
use Illuminate\Database\Eloquent\SoftDeletingScope;
|
use Illuminate\Database\Eloquent\SoftDeletingScope;
|
||||||
|
use App\Models\Bidders;
|
||||||
|
|
||||||
class VehicleOwnerRelationManager extends RelationManager
|
class VehicleOwnerRelationManager extends RelationManager
|
||||||
{
|
{
|
||||||
@ -20,9 +21,14 @@ class VehicleOwnerRelationManager extends RelationManager
|
|||||||
{
|
{
|
||||||
return $form
|
return $form
|
||||||
->schema([
|
->schema([
|
||||||
Forms\Components\Select::make('bidder_assigned_number')
|
Forms\Components\Select::make('owner')
|
||||||
->label('Number')
|
->label('Number')
|
||||||
->required()
|
->required()
|
||||||
|
->searchable()
|
||||||
|
->options(
|
||||||
|
Bidders::orderBy('bidder_assigned_number')
|
||||||
|
->pluck('bidder_assigned_number', 'idbidders'
|
||||||
|
))
|
||||||
->createOptionForm([
|
->createOptionForm([
|
||||||
Forms\Components\TextInput::make('bidder_fname')->label('First Name'),
|
Forms\Components\TextInput::make('bidder_fname')->label('First Name'),
|
||||||
Forms\Components\TextInput::make('bidder_lname')->label('Last Name'),
|
Forms\Components\TextInput::make('bidder_lname')->label('Last Name'),
|
||||||
|
Loading…
Reference in New Issue
Block a user