@php
$hour = date('H');
if ($hour >= 5 && $hour < 11) {
echo 'Selamat pagi,';
} elseif ($hour >= 11 && $hour < 15) {
echo 'Selamat siang,';
} elseif ($hour >= 15 && $hour < 18) {
echo 'Selamat sore,';
} else {
echo 'Selamat malam,';
}
@endphp
{{ $user->name }}
Today's Status
@if($todayAttendance) @if($todayAttendance->check_out) Completed @else Working @endif @else Not Clocked In @endif
Clock In
{{ $todayAttendance ? \Carbon\Carbon::parse($todayAttendance->check_in)->format('H:i') : '--:--' }}
Clock Out
{{ $todayAttendance && $todayAttendance->check_out ? \Carbon\Carbon::parse($todayAttendance->check_out)->format('H:i') : '--:--' }}
Working Hours
{{ $todayAttendance && $todayAttendance->work_hours ? number_format($todayAttendance->work_hours, 1) . 'h' : '0h' }}
đĢ QR Code Anda
Active
{!! $user->getQRCode() !!}
Scan QR code ini untuk absensi overtime
ID Karyawan: {{ $user->employee_id }}
Nama: {{ $user->name }}
{{ $monthlyStats['present'] + $monthlyStats['late'] }}
This Month
{{ $monthlyStats['late'] }}
Late Days
{{ $monthlyStats['work_leave'] ?? 0 }}
Work Leave