@extends(request()->routeIs('admin.*') ? 'layouts.admin' : 'layouts.user') @section('title', 'Employee Attendance Chart') @section('content') @php $routePrefix = request()->routeIs('admin.*') ? 'admin.attendance.chart' : 'attendance.chart'; @endphp

Employee Attendance Chart

@foreach($daysInMonth as $day) @endforeach @forelse($attendanceData as $employeeId => $data) @foreach($daysInMonth as $day) @endforeach @empty @endforelse
Employee {{ $day }} P A T
{{ $data['name'] }}
@if(isset($data['days'][$day])) @if($data['days'][$day] === 'present') @elseif($data['days'][$day] === 'absent') @else @endif @else @endif
{{ $data['present_count'] }} {{ $data['absent_count'] }} {{ $data['total_jobs'] }}

No attendance data found for this period

Present
Absent
No Job
@endsection