Convert helpers
This commit is contained in:
parent
6e618d048a
commit
89da41c7f6
@ -18,7 +18,7 @@ class Checkout extends Model
|
|||||||
|
|
||||||
public function bidders()
|
public function bidders()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('App\Models\Bidders', 'bidder_num', 'idbidders')->orderBy('bidder_assigned_number', 'asc');
|
return $this->belongsTo('App\Models\Bidders', 'bidder_num', 'idbidders');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function paymentMethod()
|
public function paymentMethod()
|
||||||
|
@ -26,6 +26,7 @@ class CheckoutBidderSelectList
|
|||||||
public static function CheckoutBidderShowNumbers()
|
public static function CheckoutBidderShowNumbers()
|
||||||
{
|
{
|
||||||
$checkout_bidder_num_results = Checkout::with('bidders')
|
$checkout_bidder_num_results = Checkout::with('bidders')
|
||||||
|
->orderBy('bidders.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){
|
||||||
|
Loading…
Reference in New Issue
Block a user