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

Attendance Report

@if(request('date')) Clear @endif
Export CSV
Total Scans
{{ $attendances->total() }}
Unique Participants
{{ $attendances->pluck('participant_id')->unique()->count() }}
Avg. Scans/Person
{{ $attendances->pluck('participant_id')->unique()->count() > 0 ? round($attendances->total() / $attendances->pluck('participant_id')->unique()->count(), 2) : 0 }}
Total Attendees
{{ $attendances->sum('participant.total_attendees') }}
@forelse($attendances as $attendance) @empty @endforelse
Time Participant Email Phone Location Group Size Scanner IP
{{ $attendance->scanned_at->format('H:i:s') }}
{{ $attendance->scanned_at->format('M j, Y') }}
{{ $attendance->participant->name }}
Scan #{{ $attendance->participant->attendances()->where('scanned_at', '<=', $attendance->scanned_at)->count() }}
{{ $attendance->participant->email }}
{{ $attendance->participant->phone ?? 'N/A' }}
@if($attendance->participant->location) {{ $attendance->participant->location }} @else N/A @endif
{{ $attendance->participant->total_attendees }}
{{ $attendance->scanner_ip }}

No attendance records found

Start scanning QR codes to see attendance data

@if($attendances->hasPages())
{{ $attendances->links() }}
@endif
@endsection