@extends('layouts.employee') @section('title','Beranda') @section('content')

Selamat {{ now()->hour<11?'pagi':(now()->hour<15?'siang':(now()->hour<18?'sore':'malam')) }}, {{ Str::before($employee->full_name,' ') }}

{{ now()->translatedFormat('l, j F Y') }}

{{ !$canAttend?'Tidak Ada Kewajiban Absensi':(!$today?'Belum Check In':(!$today->check_out_time?'Sedang Bekerja':'Absensi Selesai')) }}
{{ !$canAttend?'Hari libur perusahaan atau cuti Anda telah disetujui.':(!$today?'Silakan check in untuk memulai hari kerja.':(!$today->check_out_time?'Check in '.$today->check_in_time->format('H:i').' • Jangan lupa check out.':'Terima kasih, kehadiran hari ini lengkap.')) }}
{{ $assignment?->shift->name??'Jadwal belum tersedia' }}{{ $assignment?substr($assignment->shift->start_time,0,5).' - '.substr($assignment->shift->end_time,0,5):'Hubungi HRD' }}
{{ $assignment?->workLocation->name??'Lokasi belum tersedia' }}Radius {{ number_format($assignment?->workLocation->radius_meter??0) }} meter
Lokasi siap diverifikasiGPS diperiksa saat proses absensi
Kamera langsung
Galeri dinonaktifkan
Lokasi terverifikasi
GPS aktif
@if(!$canAttend)@elseif(!$today) Check In Sekarang@elseif(!$today->check_out_time) Check Out Sekarang@else@endif
Lihat Riwayat
Riwayat TerakhirLihat semua
@forelse($recent as $a)
{{ $a->attendance_date->translatedFormat('D, j M Y') }}Masuk {{ $a->check_in_time?->format('H:i')??'-' }} • Keluar {{ $a->check_out_time?->format('H:i')??'-' }}{{ str_replace('_',' ',$a->status) }}
@empty
Belum ada riwayat absensi.
@endforelse
@endsection