@extends('layouts.admin') @section('title', 'Dashboard') @section('content')

Dashboard

Welcome back! Here's what's happening with your event today.

Total Participants

{{ $totalParticipants }}

Registered users

Total Scans

{{ $totalAttendances }}

Attendance recorded

QR Codes Sent

{{ $participants->where('qr_sent', true)->count() }}

Emails delivered

Attendance Rate

{{ $totalParticipants > 0 ? round(($totalAttendances / $totalParticipants) * 100, 1) : 0 }}%

Participation rate

Quick Actions

@csrf @if (session('error'))

{{ session('error') }}

@endif @if (session('success'))

{{ session('success') }}

@endif
@csrf

Recent Scans

@forelse($recentAttendances as $attendance)

{{ $attendance->participant?->name ?? 'Unknown Participant' }}

{{ $attendance->scanned_at->format('H:i') }}

{{ $attendance->scanned_at->format('M j') }}
@empty

No recent scans

@endforelse

Recent Participants

View All
@forelse($participants as $participant) @empty @endforelse
Participant Location Group QR Status Scans
{{ strtoupper(substr($participant->name, 0, 1)) }}

{{ $participant->name }}

{{ $participant->email }}

@if($participant->location) {{ $participant->location }} @else N/A @endif
{{ $participant->total_attendees }}
people
@if($participant->qr_sent) Sent @else Pending @endif
{{ $participant->attendance_count }} @if($participant->attendance_count > 0) @endif

No participants found

Upload an Excel file to get started

@endsection