@extends('layouts.teacher.app') @section('content')

Daily Attendance

@include('errors')
{{ $classsession->code_sub }} - Attendance

School :{{ $teacher->mrsm_name}}

Teacher : {{ $teacher->name}}

Subject :{{ $classsession->subjek}}

Class :{{ $class }}

Total Student :{{ $classsession->total_murid}}

@php $sortedDates = collect($attendanceCounts)->keys()->sort()->reverse(); @endphp @foreach ($sortedDates as $date) @endforeach @forelse ($class_member as $student) @foreach ($sortedDates as $date) @if (in_array($student->student_id, $studentsNotInAttendanceByDate[$date]->pluck('student_id')->toArray())) @else @endif @endforeach @empty @endforelse
No. Student ID Student Name Date
{{ \Carbon\Carbon::parse($date)->format('d/m') }}
{{ $loop->iteration }}. {{ $student->student_id }} {{ $student->student_name }}
No attendance record found for this class.
@endsection