@extends('layouts.app') @section('title', 'Staff Attendance Report') @section('content')

Staff Attendance Report

Daily present/absent grid for the whole staff over a date range

@foreach ($dates as $d) @endforeach @foreach ($staff as $s) @php $t = $totals[$s->id]; @endphp @foreach ($dates as $d) @php $v = $map[$s->id][$d] ?? '-'; @endphp @endforeach @endforeach
Staff{{ \Carbon\Carbon::parse($d)->format('d/m') }}Days
{{ $s->full_name }} ยท {{ $s->role }} {{ $v }}{{ $t['present'] }}/{{ $t['days'] }}
@endsection