forked from TFMM/silent-auction
fix: pass bidders to checkout select form to resolve undefined variable
This commit is contained in:
@@ -81,7 +81,8 @@ class PagesController extends Controller
|
|||||||
public function checkout(Request $checkout_req)
|
public function checkout(Request $checkout_req)
|
||||||
{
|
{
|
||||||
if (!$checkout_req->checkoutbiddernum) {
|
if (!$checkout_req->checkoutbiddernum) {
|
||||||
return view('checkout_select_form');
|
$bidders = \App\Models\Bidders::all();
|
||||||
|
return view('checkout_select_form', ['bidders' => $bidders]);
|
||||||
} elseif (!$checkout_req->checkout_payment_method) {
|
} elseif (!$checkout_req->checkout_payment_method) {
|
||||||
$checkout_bidder = $checkout_req->checkoutbiddernum;
|
$checkout_bidder = $checkout_req->checkoutbiddernum;
|
||||||
$checkout_list_results = DB::select("SELECT
|
$checkout_list_results = DB::select("SELECT
|
||||||
|
|||||||
Reference in New Issue
Block a user