Cleanup
This commit is contained in:
24
app/Helpers/PaymentMethodSelectList.php
Normal file
24
app/Helpers/PaymentMethodSelectList.php
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user