Convert helpers

This commit is contained in:
Russ Long 2018-12-23 09:17:22 -05:00
parent 5993c337bf
commit e11c316854

View File

@ -28,11 +28,10 @@ class CheckoutBidderSelectList
$checkout_bidder_num_results = Checkout::with(['bidders' => function ($q) { $checkout_bidder_num_results = Checkout::with(['bidders' => function ($q) {
$q->orderBy('bidder_assigned_number', 'asc'); $q->orderBy('bidder_assigned_number', 'asc');
}]) }])
//->orderBy('bidder_assigned_number')
->get(); ->get();
$checkout_bidder_num = '<option disabled selected hidden value="">choose...</option>'; $checkout_bidder_num = '<option disabled selected hidden value="">choose...</option>';
foreach($checkout_bidder_num_results as $checkout_bidder_num_result){ foreach($checkout_bidder_num_results as $checkout_bidder_num_result){
$checkout_bidder_num .= '<option value="' . $checkout_bidder_num_result->idbidders . '">' . $checkout_bidder_num_result->bidder_assigned_number . ' - ' . $checkout_bidder_num_result->bidder_fname . ' ' . $checkout_bidder_num_result->bidder_lname .'</option>'; $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>';
} }
return $checkout_bidder_num; return $checkout_bidder_num;
} }