From 24841b3b986ffc28ebae6e794193c3818ccc8d67 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Thu, 16 Mar 2023 13:13:42 -0400 Subject: [PATCH] items --- .../WinningBidsRelationManager.php | 3 --- app/Filament/Resources/ItemsResource.php | 25 ++++++++++++++++++- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/app/Filament/Resources/BiddersResource/RelationManagers/WinningBidsRelationManager.php b/app/Filament/Resources/BiddersResource/RelationManagers/WinningBidsRelationManager.php index 313e8d3..fb1f4bb 100644 --- a/app/Filament/Resources/BiddersResource/RelationManagers/WinningBidsRelationManager.php +++ b/app/Filament/Resources/BiddersResource/RelationManagers/WinningBidsRelationManager.php @@ -21,9 +21,6 @@ class WinningBidsRelationManager extends RelationManager { return $form ->schema([ - /*Forms\Components\TextInput::make('winning_bidder_num') - ->required() - ->maxLength(255),*/ Forms\Components\Select::make('winning_bidder_num') ->label('Winning Bidder Number') ->options(Bidders::pluck('bidder_assigned_number', 'idbidders')) diff --git a/app/Filament/Resources/ItemsResource.php b/app/Filament/Resources/ItemsResource.php index 40be589..a0cb2eb 100644 --- a/app/Filament/Resources/ItemsResource.php +++ b/app/Filament/Resources/ItemsResource.php @@ -29,7 +29,30 @@ class ItemsResource extends Resource { return $form ->schema([ - // + TextInput::make('item_assigned_num') + ->label('Item Number'), + TextInput::make('item_desc') + ->label('Description'), + TextInput::make('item_min_bid') + ->label('Minimum Bid') + ->mask( + fn (TextInput\Mask $mask) => $mask->money( + prefix: '$', + thousandsSeparator: ',', + decimalPlaces: 2, + isSigned: false + ) + ), + TextInput::make('item_est_value') + ->label('Estimated Value') + ->mask( + fn (TextInput\Mask $mask) => $mask->money( + prefix: '$', + thousandsSeparator: ',', + decimalPlaces: 2, + isSigned: false + ) + ), ]); }