From b51e56ff6f4f27d51e78ab444ff56bfd05d10e41 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Thu, 16 Mar 2023 13:07:06 -0400 Subject: [PATCH] winning bids fix --- .../RelationManagers/WinningBidsRelationManager.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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')