From 082c110616d667f2d1ab7d1b64ee0261f0d3f3a8 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Thu, 16 Mar 2023 13:15:28 -0400 Subject: [PATCH] winning bid mask --- app/Filament/Resources/WinningBidsResource.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/Filament/Resources/WinningBidsResource.php b/app/Filament/Resources/WinningBidsResource.php index cea4677..20f9596 100644 --- a/app/Filament/Resources/WinningBidsResource.php +++ b/app/Filament/Resources/WinningBidsResource.php @@ -43,7 +43,15 @@ class WinningBidsResource extends Resource ->options(Bidders::all()->pluck('bidder_assigned_number', 'idbidders')) ->searchable(), TextInput::make('winning_cost') - ->label('Winning Bid'), + ->label('Winning Bid') + ->mask( + fn (TextInput\Mask $mask) => $mask->money( + prefix: '$', + thousandsSeparator: ',', + decimalPlaces: 2, + isSigned: false + ) + ), ]); }