@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
| Admission no | Learner | Present | Absent | Late | Days marked | Rate |
|---|---|---|---|---|---|---|
| {{ $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) }} |