Fix QR code show page undefined orders variable.
Deploy Ladill QR Plus / deploy (push) Successful in 34s

Pass orders as null from the controller so the leftover commerce section does not 500 on Plus types.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-07 06:20:49 +00:00
co-authored by Cursor
parent 8c3e9d3c26
commit 69405c93d3
2 changed files with 2 additions and 1 deletions
@@ -209,6 +209,7 @@ class QrCodeController extends Controller
'devices' => $devices,
'browsers' => $browsers,
'recentScans' => $recentScans,
'orders' => null,
'pricePerQr' => QrWallet::pricePerQr(),
'minTopup' => QrWallet::minTopupGhs(),
'ladillWalletBalance' => $ladillWalletBalance,
+1 -1
View File
@@ -214,7 +214,7 @@
</div>
{{-- Orders (Book / Menu / Shop) --}}
@if(!is_null($orders))
@if(isset($orders) && !is_null($orders))
<div class="mt-10 space-y-4">
<div class="flex items-center justify-between">
<h2 class="text-base font-semibold text-slate-900">Orders</h2>