convert helpers

This commit is contained in:
Russ Long 2018-12-23 09:33:40 -05:00
parent 4f98a23caf
commit 93fc39731f

View File

@ -25,9 +25,10 @@ class CheckoutBidderSelectList
{
public static function CheckoutBidderShowNumbers()
{
$checkout_bidder_num_results = Checkout:://with('bidders')
get();
$checkout_bidder_num_results = $checkout_bidder_num_results->bidders->sortBy('bidder_assigned_number');
$checkout_bidder_num_results = Checkout::join('bidders', 'checkout.winning_bidder_num', '=', 'bidders.idbidders')
->orderBy('bidders.bidder_assigned_number', 'asc')
->get();
$checkout_bidder_num = '<option disabled selected hidden value="">choose...</option>';
foreach($checkout_bidder_num_results as $checkout_bidder_num_result){
$checkout_bidder_num .= '<option value="' . $checkout_bidder_num_result->bidders->idbidders . '">' . $checkout_bidder_num_result->bidders->bidder_assigned_number . ' - ' . $checkout_bidder_num_result->bidders->bidder_fname . ' ' . $checkout_bidder_num_result->bidders->bidder_lname .'</option>';