@extends('layouts.app') @section('title', 'Attendance Sheet') @section('breadcrumb', 'Attendance › ' . $classArm->full_name) @section('content')

Attendance Sheet

{{ $classArm->full_name }} • {{ $term->name }} • {{ $school->name }}

{{-- Global days opened --}}
Set once — applies to all students. Individual days present below.
@foreach($enrollments as $i => $enrollment) @php $att = $existing[$enrollment->id] ?? null; @endphp @endforeach
# Student Name Days School Opened Days Present Days Absent Rate
{{ $i + 1 }}
{{ $enrollment->student->full_name }}
{{ $enrollment->student->mcss_student_id }}
{{ $att ? $att->days_absent : '—' }} @if($att && $att->days_school_opened > 0) {{ $att->attendance_percent }}% @else — @endif
@endsection @push('scripts') @endpush