@extends('digitalmenu::layouts.app') @section('title', 'QR Management | ' . $shop->name) @section('styles') @endsection @section('content') @php $menuUrl = url('/digital-menu/shop/' . $shop->short_code); $isFood = $shopType === 'food_and_drink'; $typeLabel = $isFood ? 'Food & Drink' : 'Retail'; $typeIcon = $isFood ? 'restaurant_menu' : 'storefront'; $typeColor = $isFood ? 'text-tertiary' : 'text-secondary'; $typeBg = $isFood ? 'bg-tertiary-fixed' : 'bg-secondary-fixed'; // Pre-encode the logo server-side so the canvas can draw it without CORS $logoDataUri = null; if (!empty($shop->logo)) { try { $logoBytes = @file_get_contents(config('global.s3_path') . 'shop/' . $shop->logo); if ($logoBytes !== false) { $mime = (new \finfo(FILEINFO_MIME_TYPE))->buffer($logoBytes) ?: 'image/jpeg'; $logoDataUri = 'data:' . $mime . ';base64,' . base64_encode($logoBytes); } } catch (\Exception $e) {} } @endphp
{{-- Page Header --}}

QR Code

Scan this code to access the digital menu for {{ $shop->name }}.

{{-- QR Preview Panel --}}
{{-- QR Code Card --}} {{-- Action Buttons --}}
{{-- Info Panel --}}
{{-- Shop Details --}}
store

Shop Details

Shop Name
{{ $shop->name }}
@if ($shop->short_description)
Description
{{ $shop->short_description }}
@endif
Menu Type
{{ $typeIcon }} {{ $typeLabel }}
{{-- Usage Tip --}}
tips_and_updates

How to use

Print this QR code and place it on your tables or counter. Customers scan it with their phone camera to instantly view your {{ strtolower($typeLabel) }} menu — no app required.

@endsection @section('scripts') @endsection