Attendance Reports

Analyze Sabbath School attendance trends

CongreSmart Church Management

Attendance Summary Report

Generated on: {{ now()->format('F j, Y, g:i a') }}

{{-- Classes Overview --}}
@foreach($attendanceStats as $stat)

{{ $stat['class']->name }}

{{ $stat['class']->active ? 'Active' : 'Inactive' }}
Total Sessions {{ $stat['total_sessions'] }}
Avg Attendance {{ $stat['average_attendance'] }}
Total Present {{ $stat['total_present'] }}
Attendance Rate {{ $stat['attendance_rate'] }}%
Coordinator: {{ $stat['class']->coordinator?->first_name }} {{ $stat['class']->coordinator?->last_name }}
Meeting: {{ ucfirst($stat['class']->meeting_day) }} at {{ $stat['class']->meeting_time }}
@endforeach
{{-- Recent Attendance Records --}}

Recent Attendance Records

@if(count($attendanceStats) > 0)
@foreach($attendanceStats as $stat) @if(count($stat['recent_sessions']) > 0)

{{ $stat['class']->name }}

@foreach($stat['recent_sessions'] as $session) @php $totalCount = $session->total_count ?? 0; $presentCount = $session->present_count ?? 0; $percentage = $totalCount > 0 ? round(($presentCount / $totalCount) * 100) : 0; @endphp
{{ $session->date->format('M j, Y') }}
{{ $presentCount }} of {{ $totalCount }} present
{{ $percentage }}%
@endforeach
@endif @endforeach
@else

No attendance records found

Start taking attendance in Sabbath School classes to see reports here.

@endif