@extends('layouts.school') @section('title', 'Attendance') @section('header', 'Take Attendance') @section('content')
@if($students->count())
@csrf
@foreach($students as $student) @foreach(['present','absent','late','half_day','excused','sick'] as $status) @endforeach @endforeach
Student Present Absent Late Half Day Excused Sick

{{ $student->full_name }}

{{ $student->admission_no }}

attendance->first()?->status ?? 'present') === $status ? 'checked' : '' }} class="h-4 w-4 border-gray-300 text-primary-600 focus:ring-primary-500">
View Report
@else
No students in this class. Create classes and enroll students first.
@endif @endsection