forked from TFMM/silent-auction
upgrade to new versions
This commit is contained in:
@@ -6,9 +6,9 @@ use App\Filament\Resources\CheckoutResource\Pages;
|
||||
use App\Filament\Resources\CheckoutResource\RelationManagers;
|
||||
use App\Models\Checkout;
|
||||
use Filament\Forms;
|
||||
use Filament\Resources\Form;
|
||||
use Filament\Forms\Form;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Resources\Table;
|
||||
use Filament\Tables\Table;
|
||||
use Filament\Tables;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\SoftDeletingScope;
|
||||
@@ -24,7 +24,7 @@ class CheckoutResource extends Resource
|
||||
{
|
||||
protected static ?string $model = Checkout::class;
|
||||
|
||||
protected static ?string $navigationIcon = 'heroicon-o-collection';
|
||||
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
|
||||
|
||||
protected static ?string $navigationGroup = 'Silent Auction';
|
||||
|
||||
@@ -40,15 +40,7 @@ class CheckoutResource extends Resource
|
||||
)
|
||||
->searchable(),
|
||||
TextInput::make('winnertotal')
|
||||
->label('Total Amount')
|
||||
->mask(
|
||||
fn (TextInput\Mask $mask) => $mask->money(
|
||||
prefix: '$',
|
||||
thousandsSeparator: ',',
|
||||
decimalPlaces: 2,
|
||||
isSigned: false
|
||||
)
|
||||
),
|
||||
->label('Total Amount'),
|
||||
Select::make('payment_method')
|
||||
->label('Payment Method')
|
||||
->options(PaymentMethods::all()->pluck('pm_name', 'pm_id'))
|
||||
@@ -78,7 +70,9 @@ class CheckoutResource extends Resource
|
||||
Tables\Actions\EditAction::make(),
|
||||
])
|
||||
->bulkActions([
|
||||
Tables\Actions\DeleteBulkAction::make(),
|
||||
Tables\Actions\BulkActionGroup::make([
|
||||
Tables\Actions\DeleteBulkAction::make(),
|
||||
]),
|
||||
])
|
||||
->defaultSort('bidders.bidder_assigned_number');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user