Convert Helpers

This commit is contained in:
Russ Long 2018-12-23 09:20:43 -05:00
parent 42323840cc
commit dd6fcc95cc

View File

@ -29,8 +29,9 @@ class CheckoutBidderSelectList
$q->orderBy('bidder_assigned_number', 'asc');
}])
->get();
dd($checkout_bidder_num_results);
$checkout_bidder_num = '<option disabled selected hidden value="">choose...</option>';
foreach($checkout_bidder_num_results->sortBy('bidder_assigned_number') as $checkout_bidder_num_result){
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>';
}
return $checkout_bidder_num;