winning bids fix
This commit is contained in:
parent
eb2dee7c13
commit
b51e56ff6f
@ -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 WinningBidsRelationManager extends RelationManager
|
class WinningBidsRelationManager extends RelationManager
|
||||||
{
|
{
|
||||||
@ -20,9 +21,13 @@ class WinningBidsRelationManager extends RelationManager
|
|||||||
{
|
{
|
||||||
return $form
|
return $form
|
||||||
->schema([
|
->schema([
|
||||||
Forms\Components\TextInput::make('winning_bidder_num')
|
/*Forms\Components\TextInput::make('winning_bidder_num')
|
||||||
->required()
|
->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')
|
Tables\Columns\TextColumn::make('items.item_assigned_num')
|
||||||
->label('Item Number')
|
->label('Item Number')
|
||||||
->sortable(),
|
->sortable(),
|
||||||
Tables\Columns\TextColumn::make('bidders.idbidders')
|
Tables\Columns\TextColumn::make('bidders.winning_bidder_num')
|
||||||
->label('Bidder Number')
|
->label('Bidder Number')
|
||||||
->sortable(),
|
->sortable(),
|
||||||
Tables\Columns\TextColumn::make('winning_cost')
|
Tables\Columns\TextColumn::make('winning_cost')
|
||||||
|
Loading…
Reference in New Issue
Block a user