fix: pass bidders to checkout select form to resolve undefined variable

This commit is contained in:
2026-05-01 12:47:51 -04:00
parent c6a82f66ad
commit 0c4df52f83
+2 -1
View File
@@ -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