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

Attendance report

Aggregated learner attendance between {{ \Carbon\Carbon::parse($from)->format('j M Y') }} and {{ \Carbon\Carbon::parse($to)->format('j M Y') }}.
PDF
to
@forelse($rows as $r) @php $rowTotal = $r->present + $r->absent + $r->late; @endphp @empty @endforelse
Admission noLearnerPresentAbsentLateDays markedRate
{{ $r->admission_no }}
{{ initials($r->first_name.' '.$r->surname) }}{{ $r->first_name }} {{ $r->surname }}
{{ num($r->present) }} {{ num($r->absent) }} {{ num($r->late) }} {{ num($r->marked) }} {{ pct($r->present, $rowTotal) }}
@endsection