This commit is contained in:
2018-12-23 11:01:06 -05:00
parent cf603f09b5
commit c171fb529a
11 changed files with 54 additions and 19 deletions

View File

@ -11,13 +11,17 @@ use App\Models\WinningBids;
class PaymentMethodSelectList
{
public static function PaymentShowMethods()
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>';
$payment_methods .= '<option value="' .
$payment_method_result->pm_id .
'">' .
$payment_method_result->pm_name .
'</option>';
}
return $payment_methods;
}