schema([ Select::make('bidder_num') ->label('Bidder') ->options( Bidders::orderBy('bidder_assigned_number') ->pluck('bidder_assigned_number', 'idbidders') ) ->searchable(), TextInput::make('winnertotal') ->label('Total Amount') ->mask( fn (TextInput\Mask $mask) => $mask->money( prefix: '$', thousandsSeparator: ',', decimalPlaces: 2, isSigned: false ) ), Select::make('payment_method') ->label('Payment Method') ->options(PaymentMethods::all()->pluck('pm_name', 'pm_id')) ->searchable(), ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('bidders.bidder_assigned_number') ->label('Bidder Number') ->sortable(), TextColumn::make('winnertotal') ->label('Total Amount') ->money('usd', 'true') ->sortable(), TextColumn::make('paymentMethod.pm_name') ->label('Payment Method') ->sortable(), ]) ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), ]) ->bulkActions([ Tables\Actions\DeleteBulkAction::make(), ]) ->defaultSort('bidders.bidder_assigned_number'); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListCheckouts::route('/'), 'create' => Pages\CreateCheckout::route('/create'), 'edit' => Pages\EditCheckout::route('/{record}/edit'), ]; } }