{{-- resources/views/Reports/monthly_attendance_details_report.blade.php --}} @extends('layouts.mainlayout') @section('title', 'Monthly Attendance Details') @section('main')
| Emp Name | Team | @foreach($days as $d)
{{ $d->format('d M') }} {{ $d->format('D') }} |
@endforeach
P | A | H | L | T |
|---|---|---|---|---|---|---|---|
| {{ $user->name }} {{ $user->lastName }} | {{ $user->team }} | @foreach($days as $d) @php $cell = $attendanceMap[$user->user_id][$d->toDateString()] ?? null; @endphp
@if(!empty($cell['all_punches']))
@foreach($cell['all_punches'] as $i => $p)
{{ $p }}
{{-- show icon once --}}
@if($i === 0 && !empty($cell['has_punch_issue']))
ⓘ
{{ $cell['punch_issue_msg'] }}
@endforeach
@endif
Click to update attendance @endif
@if(!empty($cell['work_display']))
Work: {{ $cell['work_display'] }} hrs
@endif
@if(!empty($cell['break_display']))
Break: {{ $cell['break_display'] }} hrs
@endif
@if(!empty($cell['status']))
{{ $cell['status'] }}
@endif
@if(!empty($cell['holiday_name']))
{{ $cell['holiday_name'] }}
@endif
|
@endforeach
{{ $totals[$user->user_id]['P'] ?? 0 }} | {{ $totals[$user->user_id]['A'] ?? 0 }} | {{ $totals[$user->user_id]['H'] ?? 0 }} | {{ $totals[$user->user_id]['L'] ?? 0 }} | {{ $totals[$user->user_id]['T'] ?? count($days) }} |