@extends('layouts.app') @section('content')

Attendance Tracking System

Back to Talks
Total Attendances
{{ number_format($stats['total_attendances']) }}
Present: {{ $stats['present_count'] }} | Absent: {{ $stats['absent_count'] }}
Average Attendance Rate
{{ number_format($stats['average_attendance_rate'], 1) }}%
This Month
{{ number_format($stats['this_month']) }}
Last month: {{ $stats['last_month'] }}
Check-in Methods
Biometric: {{ $stats['biometric_count'] }}
Manual: {{ $stats['manual_count'] }}
Clear
@if(count($departmentStats ?? []) > 0)

Department Performance

@foreach($departmentStats as $dept)
{{ $dept['name'] }}
{{ $dept['total_talks'] }} talks • {{ $dept['total_attendances'] }} attendances
{{ number_format($dept['attendance_rate'], 1) }}%
@endforeach
@endif

Attendance Trends (Last 6 Months)

@forelse($attendanceTrends ?? [] as $trend)
{{ $trend['month'] }}
@if($trend['attendance_rate'] > 10) {{ number_format($trend['attendance_rate'], 1) }}% @endif
{{ $trend['present'] }}/{{ $trend['total'] }}
@empty
No attendance data available
@endforelse

All Talks with Attendance

@forelse($talks as $talk) @empty @endforelse
Talk Date Department Attendances Present Rate Status Actions
{{ $talk->title }}
{{ $talk->reference_number }}
{{ $talk->scheduled_date->format('M d, Y') }}
{{ $talk->scheduled_date->format('h:i A') }}
{{ $talk->department->name ?? 'N/A' }} {{ $talk->attendances_count }} {{ $talk->present_count }} @if($talk->attendances_count > 0) @php $rate = ($talk->present_count / $talk->attendances_count) * 100; @endphp
{{ number_format($rate, 1) }}%
@else N/A @endif
{{ ucfirst(str_replace('_', ' ', $talk->status)) }} Manage
No talks found
{{ $talks->links() }}
@endsection