{{-- File: resources/views/restaurant/includes/qr_code_data.blade.php --}} @if($restaurant->qrCodes && $restaurant->qrCodes->count() > 0)
@foreach($restaurant->qrCodes->sortByDesc('is_default') as $qrCode)
@if($qrCode->is_default) Default @endif
{{ $qrCode->name }}
{{ $qrCode->type_name }}
{{-- QR Code Image --}}
@if($qrCode->qr_code_path && file_exists(public_path($qrCode->qr_code_path))) {{ $qrCode->name }} @else
@endif
{{-- QR Code Info --}}

Scans

{{ $qrCode->scan_count }}

Status

{{ $qrCode->is_active ? 'Active' : 'Inactive' }}
{{-- Last Scanned --}} @if($qrCode->last_scanned_at)

Last Scanned

{{ $qrCode->last_scanned_at->diffForHumans() }}

@endif {{-- URL Preview --}} {{-- Quick Actions --}}
@endforeach
@else {{-- Empty State --}}
No QR Codes Created Yet

Create your first QR code to help customers easily access your restaurant information.

@endif