get(); $bidder_num = ''; foreach($bidder_num_results as $bidder_num_result){ $bidder_num .= ''; } return $bidder_num; } } class CheckoutBidderSelectList { public static function CheckoutBidderShowNumbers() { $checkout_bidder_num_results = Checkout::with(['bidders' => function ($q) { $q->orderBy('bidder_assigned_number', 'asc'); }]) ->get(); dd($checkout_bidder_num_results); $checkout_bidder_num = ''; foreach($checkout_bidder_num_results as $checkout_bidder_num_result){ $checkout_bidder_num .= ''; } return $checkout_bidder_num; } } class ItemSelectList { public static function ItemShowNumbers() { $item_num_results = DB::select("SELECT * FROM items ORDER BY item_assigned_num "); $item_nums = ''; foreach($item_num_results as $item_num_result){ $item_nums .= ''; } return $item_nums; } } class PaymentMethodSelectList { public static function PaymentShowMethods() { $payment_method_results = DB::select("SELECT * FROM payment_methods ORDER BY pm_name "); $payment_methods = ''; foreach($payment_method_results as $payment_method_result){ $payment_methods .= ''; } return $payment_methods; } } class WinningBidSelectList { public static function WinningBidShowNumbers() { $winning_bid_num_results = DB::select("SELECT * FROM winning_bids INNER JOIN items AS items ON winning_bids.winning_item_num = items.iditems ORDER BY items.item_assigned_num "); $winning_bid_num = ''; foreach($winning_bid_num_results as $winning_bid_num_result){ $winning_bid_num .= ''; } return $winning_bid_num; } } class WinningBidderSelectList { public static function WinningBidderShowNumbers() { $winning_bidder_num_results = DB::select("SELECT winning_bidder_num, bidders.* FROM winning_bids INNER JOIN bidders AS bidders ON winning_bids.winning_bidder_num=bidders.idbidders GROUP BY winning_bidder_num ORDER BY winning_bidder_num "); $winning_bidder_num = ''; foreach($winning_bidder_num_results as $winning_bidder_num_result){ $winning_bidder_num .= ''; } return $winning_bidder_num; } } ?>