diff --git a/app/Filament/Resources/BiddersResource/RelationManagers/WinningBidsRelationManager.php b/app/Filament/Resources/BiddersResource/RelationManagers/WinningBidsRelationManager.php index 59ad2fd..313e8d3 100644 --- a/app/Filament/Resources/BiddersResource/RelationManagers/WinningBidsRelationManager.php +++ b/app/Filament/Resources/BiddersResource/RelationManagers/WinningBidsRelationManager.php @@ -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 WinningBidsRelationManager extends RelationManager { @@ -20,9 +21,13 @@ class WinningBidsRelationManager extends RelationManager { return $form ->schema([ - Forms\Components\TextInput::make('winning_bidder_num') + /*Forms\Components\TextInput::make('winning_bidder_num') ->required() - ->maxLength(255), + ->maxLength(255),*/ + Forms\Components\Select::make('winning_bidder_num') + ->label('Winning Bidder Number') + ->options(Bidders::pluck('bidder_assigned_number', 'idbidders')) + ->searchable(), ]); } @@ -33,7 +38,7 @@ class WinningBidsRelationManager extends RelationManager Tables\Columns\TextColumn::make('items.item_assigned_num') ->label('Item Number') ->sortable(), - Tables\Columns\TextColumn::make('bidders.idbidders') + Tables\Columns\TextColumn::make('bidders.winning_bidder_num') ->label('Bidder Number') ->sortable(), Tables\Columns\TextColumn::make('winning_cost')