This commit is contained in:
2018-12-23 10:41:29 -05:00
parent cd8c610d4a
commit c814850d3a
14 changed files with 180 additions and 116 deletions

View File

@ -0,0 +1,24 @@
<?php
namespace App\Helpers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Models\Bidders;
use App\Models\Items;
use App\Models\Checkout;
use App\Models\PaymentMethods;
use App\Models\WinningBids;
class PaymentMethodSelectList
{
public static function PaymentShowMethods()
{
$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>';
}
return $payment_methods;
}
}