| Employee | @foreach($days as $d)
{{ $d->format('d M') }} {{ $d->format('D') }} |
@endforeach
P | A | H | L | T |
|---|---|---|---|---|---|---|
|
{{ $u->name }} {{ $u->lastName }}
{{ $u->team }}
|
@foreach($days as $d)
@php
$c = $attendanceMap[$u->user_id][$d->toDateString()] ?? [];
@endphp
@if(!empty($c['all_punches']))
@foreach($c['all_punches'] as $p)
{{ $p }}
@endforeach
@else
—
@endif
@if(!empty($c['status']))
{{ $c['status'] }}
@endif
@if(!empty($c['work_display']))
{{ $c['work_display'] }} hrs
@if(!empty($c['break_display']))
{{ $c['break_display'] }} hrs
@endif
@endif
|
@endforeach
{{ $totals[$u->user_id]['P'] ?? 0 }} | {{ $totals[$u->user_id]['A'] ?? 0 }} | {{ $totals[$u->user_id]['H'] ?? 0 }} | {{ $totals[$u->user_id]['L'] ?? 0 }} | {{ $totals[$u->user_id]['T'] ?? count($days) }} |