@php $c = $qrCode->content(); $sections = $c['sections'] ?? []; $title = $c['title'] ?? $qrCode->label ?? 'Storefront'; $cur = $c['currency'] ?? 'GHS'; $brand = $c['brand_color'] ?? '#4f46e5'; $acceptsPayment = ! empty($c['accepts_payment']); $shippingType = $c['shipping_type'] ?? 'none'; $shippingFee = (float) ($c['shipping_fee'] ?? 0); $freeAbove = (float) ($c['free_shipping_above'] ?? 0); $isShop = $qrCode->type === \App\Models\QrCode::TYPE_SHOP; $hasLogo = ! empty($c['logo_path']); $hasCover = ! empty($c['cover_path']); $logoUrl = $hasLogo ? $qrCode->publicPath('menu-logo') : null; $coverUrl = $hasCover ? $qrCode->publicPath('menu-cover') : null; $orderUrl = $qrCode->publicPath('order'); @endphp {{ $title }} @include('partials.favicon')
@include('partials.paystack-sheet') {{-- Cover + header --}}
@if($coverUrl)@endif
@if($logoUrl) {{ $title }} @else {{ mb_substr($title, 0, 1) }} @endif

{{ $title }}

{{ $isShop ? 'Shop' : 'Menu' }}

@if(session('order_error'))
{{ session('order_error') }}
@endif {{-- Catalogue --}}
@forelse($sections as $section)

{{ $section['name'] ?? '' }}

@foreach(($section['items'] ?? []) as $iIdx => $item) @php $price = (float) ($item['price'] ?? 0); $key = ($section['name'] ?? 's').'-'.$iIdx; $img = ! empty($item['image_path']); @endphp
@if($img) @endif

{{ $item['name'] ?? '' }}

@if(!empty($item['description']))

{{ $item['description'] }}

@endif

{{ $cur }} {{ number_format($price, 2) }}

@if($acceptsPayment && $price > 0) @endif
@endforeach
@empty

This storefront has no items yet.

@endforelse
@if($acceptsPayment) {{-- Cart bar --}}
{{-- Cart / checkout sheet --}}

Your order

Subtotal
Delivery
Total

Secure payment · You'll get an order confirmation.

@endif