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

Daily Attendance Record - {{$kelas}}

School:
{{ $mrsm->nama_mrsm }}
@php $currentDate = null; $count = 0; @endphp @forelse($attendance as $att) @php $attDate = date('Y-m-d', strtotime($att->mula_kelas)); @endphp @if ($attDate != $currentDate) @php $currentDate = $attDate; $currentDay = date('l', strtotime($att->mula_kelas)); $count = 0; // Reset count for new date @endphp @endif @php $masakeluar=$att->masa_keluar; if (empty($masakeluar)) { $masakeluar='-'; }else{ $masakeluar=date('h:i:s A', strtotime($att->masa_keluar)); } @endphp @empty @endforelse
No. Student ID Card No. Student Name Scanned In Scanned Out
{{ $currentDay }}
{{ $currentDate }}
{{ ++$count }}. {{ $att->user_id }} {{ $att->card_no ?? '-' }} {{ $att->user_name }} {{ date('h:i:s A', strtotime($att->masa_masuk)) ?? '-' }} {{ $masakeluar }}
No records found
{{ $attendance->links() }}
@endsection