@extends('layouts.app') @section('title', 'Staff Attendance Report') @section('content') @php $totalPresent = $rows->sum('present'); $totalAbsent = $rows->sum('absent'); $totalLate = $rows->sum('late'); $totalLeave = $rows->sum('leave_days'); $grand = $totalPresent + $totalAbsent + $totalLate + $totalLeave; @endphp

Staff attendance report

Aggregated staff attendance between {{ \Carbon\Carbon::parse($from)->format('j M Y') }} and {{ \Carbon\Carbon::parse($to)->format('j M Y') }}.
PDF
to Mark attendance
@forelse($rows as $r) @php $rowTotal = $r->present + $r->absent + $r->late + $r->leave_days; @endphp @empty @endforelse
Staff noStaff memberRolePresentAbsentLateLeaveDays markedRate
{{ $r->staff_no ?: '—' }}
{{ initials($r->first_name.' '.$r->last_name) }}{{ $r->first_name }} {{ $r->last_name }}
{{ \App\Support\Permissions::label($r->role) }} {{ num($r->present) }} {{ num($r->absent) }} {{ num($r->late) }} {{ num($r->leave_days) }} {{ num($r->marked) }} {{ pct($r->present, $rowTotal) }}
@endsection