@php $data = []; $data['title'] = "Mark Attandance"; @endphp @include('student.components.header_link', $data);
Mark your Entry & Exit once per day within allowed time
You can mark your entry between 9:00 AM to 10:15 AM.
{{-- Entry missed --}} @elseif(!$entryMarked && $now->gt($endEntry))⛔ You missed the entry window (9:00 AM to 10:15 AM). Attendance marked as Absent.
{{-- EXIT BUTTON: Show if entry is marked, exit not marked, and time is after 3:00 PM --}} @elseif($entryMarked && !$exitMarked && $now->gte($after3PM))You may now mark your exit. Exit is allowed after 3:00 PM.
{{-- Entry marked but too early for exit --}} @elseif($entryMarked && !$exitMarked && $now->lt($after3PM))⏳ Entry marked. Exit will be available after 3:00 PM.
{{-- Entry & Exit both marked --}} @elseif($entryMarked && $exitMarked)✅ Attendance complete. You’ve marked both entry and exit.
@endif✅ Present: {{ $presentCount }} days
❌ Absent: {{ $absentCount }} days