MRSM
: {{ $teacher->mrsm_name}}
Teacher
: {{ $teacher->name}}
Subject
: {{ $classsession->subjek}}
{{--
List Student Outing Application
--}}
{{-- @if(count($details) > 0) --}}
| No. |
Session |
Student ID |
Student Name |
Scanned In |
Scanned Out |
@php
$currentMasaMasuk = null;
@endphp
@forelse($attendance as $att)
@if ($currentMasaMasuk !== $att->masa_masuk)
@php
// Start a new section for a different masa_masuk value
$currentMasaMasuk = $att->masa_masuk;
@endphp
|
Class Date: {{ \Carbon\Carbon::parse($currentMasaMasuk)->format('d-m-Y') ?? '-' }}
({{ \Carbon\Carbon::parse($currentMasaMasuk)->format('l') ?? '-' }})
|
@endif
| {{ $loop->iteration }}. |
{{ \Carbon\Carbon::parse($att->mula_kelas)->format('h:i A') }} - {{ \Carbon\Carbon::parse($att->tamat_kelas)->format('h:i A')}} |
{{ $att->user_id }} |
{{ $att->user_name }} |
{{ \Carbon\Carbon::parse($att->masa_masuk)->format('h:i A') ?? '-' }} |
{{ \Carbon\Carbon::parse($att->masa_keluar)->format('h:i A') ?? '-' }} |
@empty
| No attendance record found for this class. |
@endforelse
{{-- @else
No outing application record found for this student.
@endif --}}
{{--
--}}