schema([ Select::make('winning_item_num') ->label('Item') ->options(Items::orderBy('item_assigned_num')->pluck('item_assigned_num', 'iditems')) ->searchable(), Select::make('winning_bidder_num') ->label('Bidder') ->options( Bidders::orderBy('bidder_assigned_number') ->pluck('bidder_assigned_number', 'idbidders') )) ->searchable(), TextInput::make('winning_cost') ->label('Winning Bid') ->mask( fn (TextInput\Mask $mask) => $mask->money( prefix: '$', thousandsSeparator: ',', decimalPlaces: 2, isSigned: false ) ), ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('items.item_assigned_num') ->label('Item') ->sortable(), TextColumn::make('items.item_desc') ->label('Item Description') ->limit(15), TextColumn::make('bidders.bidder_assigned_number') ->label('Bidder Number') ->sortable(), TextColumn::make('winning_cost') ->label('Winning Bid Amt') ->money('usd', 'true') ->sortable(), ]) ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), ]) ->bulkActions([ Tables\Actions\DeleteBulkAction::make(), ]) ->defaultSort('items.item_assigned_num'); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListWinningBids::route('/'), 'create' => Pages\CreateWinningBids::route('/create'), 'edit' => Pages\EditWinningBids::route('/{record}/edit'), ]; } }