{{ $event->name }}

Generated on: {{ now()->format('M d, Y H:i:s') }} Page {PAGENO} of {nbpg}

Event Details

Start Date: {{ $event->start_date->format('M d, Y') }}

End Date: {{ $event->end_date->format('M d, Y') }}

Total Days: {{ $totalDays }}

Daily Amount: {{ number_format($event->daily_amount, 2) }}

Attendance Summary

@php $bannedCount = $attendees->filter(function($attendee) { return \Vanguard\BannedAttendee::where('id_number', $attendee->id_number)->exists(); })->count(); @endphp

Total Registered: {{ $attendees->count() }}

Completed Training: {{ $attendees->where('completed', true)->count() }}

In Progress: {{ $attendees->where('completed', false)->count() }}

Banned: {{ $bannedCount }}

Total Amount: {{ number_format($attendees->sum('total_amount'), 2) }}

@foreach($attendees as $attendee) @php $isBanned = \Vanguard\BannedAttendee::where('id_number', $attendee->id_number)->first(); @endphp @endforeach
Name ID Number Phone Email Days Amount Status Signature
{{ $attendee->name }} {{ $attendee->id_number }} {{ $attendee->phone_number }} {{ $attendee->email }} {{ $attendee->days_attended }}
{{ implode(', ', $attendanceDates[$attendee->id_number]) }}
{{ number_format($attendee->total_amount, 2) }} @if($isBanned) Banned
Reason: {{ $isBanned->reason }}
Date: {{ $isBanned->banned_at->format('M d, Y') }}
@elseif($attendee->completed) Completed @else In Progress @endif