@extends('layouts.teacher.app') @section('content')
@include('errors')
@include('layouts.messages') {{-- Display error message if $att is null --}} @if(session('error'))
{{ session('error') }}
@endif
@include('layouts.messages')
@csrf

{{ $classsession->code_sub }} - Attendance

MRSM
: {{ $teacher->mrsm_name}}
Teacher
: {{ $teacher->name}}
Subject
: {{ $classsession->subjek}}
Class
: {{ $class }}
{{--

List Student Outing Application

--}} {{-- @if(count($details) > 0) --}} @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 @endif @empty @endforelse
No. Session Student ID Student Name Scanned In Scanned Out
Class Date: {{ \Carbon\Carbon::parse($currentMasaMasuk)->format('d-m-Y') ?? '-' }} ({{ \Carbon\Carbon::parse($currentMasaMasuk)->format('l') ?? '-' }})
{{ $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') ?? '-' }}
No attendance record found for this class.
{{-- @else

No outing application record found for this student.

@endif --}}
{{--

--}}
@endsection