silent-auction/app/Helpers/BidderSelectList.php

29 lines
832 B
PHP
Raw Normal View History

2018-12-23 10:41:29 -05:00
<?php
namespace App\Helpers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Models\Bidders;
class BidderSelectList
{
2018-12-23 11:01:06 -05:00
public static function bidderShowNumbers()
2018-12-23 10:41:29 -05:00
{
$bidder_num_results = Bidders::orderBy('bidder_assigned_number')
->get();
$bidder_num = '<option disabled selected hidden value="">choose...</option>';
foreach ($bidder_num_results as $bidder_num_result) {
2018-12-23 11:01:06 -05:00
$bidder_num .= '<option value="' .
$bidder_num_result->idbidders .
'">' .
$bidder_num_result->bidder_assigned_number .
' - ' .
$bidder_num_result->bidder_fname .
' ' .
$bidder_num_result->bidder_lname .
'</option>';
2018-12-23 10:41:29 -05:00
}
return $bidder_num;
}
}