convert helpers
This commit is contained in:
parent
b9bef5a385
commit
33c1f99c66
@ -6,6 +6,7 @@ use Illuminate\Support\Facades\DB;
|
||||
use App\Models\Bidders;
|
||||
use App\Models\Items;
|
||||
use App\Models\Checkout;
|
||||
use App\Models\PaymentMethods;
|
||||
|
||||
class BidderSelectList
|
||||
{
|
||||
@ -54,11 +55,8 @@ class PaymentMethodSelectList
|
||||
{
|
||||
public static function PaymentShowMethods()
|
||||
{
|
||||
$payment_method_results = DB::select("SELECT
|
||||
*
|
||||
FROM payment_methods
|
||||
ORDER BY pm_name
|
||||
");
|
||||
$payment_method_results = PaymentMethods::orderBy('pm_name')
|
||||
->get();
|
||||
$payment_methods = '<option disabled="disabled" selected="selected" value="0">choose...</option>';
|
||||
foreach($payment_method_results as $payment_method_result){
|
||||
$payment_methods .= '<option value="' . $payment_method_result->pm_id . '">' . $payment_method_result->pm_name . '</option>';
|
||||
|
Loading…
Reference in New Issue
Block a user