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