@extends('components.app-layout') @section('title', 'QR Code - ' . $event->title) @section('subtitle', 'Attendance QR Code') @section('content')

{{ $event->title }}

{{ $event->start_datetime->format('l, F j, Y \a\t g:i A') }}

@if($event->location)

{{ $event->location }}

@endif

Scan to Mark Attendance

@if($eventQr)
QR Code for {{ $event->title }}
{{ $eventQr->scan_count }}
Total Scans
@if($eventQr->expires_at) {{ $eventQr->expires_at->diffForHumans() }} @else Never @endif
Expires
{{ $eventQr->is_active ? 'Active' : 'Inactive' }}
Status
@if($eventQr->is_active) @endif Print-Only View
@else

No QR code generated yet

@endif

How to Use

1

Display QR Code

Show this QR code on a screen or print it for members to scan

2

Members Scan

Members use their phone camera or QR scanner app to scan the code

3

Automatic Check-in

Attendance is automatically recorded when members complete the scan

@if($eventQr && $eventQr->scan_logs)

Recent Scans

@foreach(array_slice(array_reverse($eventQr->scan_logs), 0, 10) as $log)

{{ $log['member_info']['name'] ?? 'Unknown Member' }}

{{ \Carbon\Carbon::parse($log['timestamp'])->format('M j, Y g:i A') }}

{{ $log['success'] ? 'Success' : 'Failed' }}
@endforeach
@endif
@push('scripts') @endpush @endsection