@php $detail = is_array($detail ?? null) ? $detail : []; $employees = is_array($employees ?? null) ? $employees : []; @endphp

Summary Detail Dashboard

Tanggal: {{ $detail['date'] ?? '-' }} | Mode: {{ strtoupper((string) ($detail['mode'] ?? '-')) }} | Tipe Hari: {{ strtoupper(str_replace('_', ' ', (string) ($detail['date_type'] ?? '-'))) }}

Ringkasan

@foreach (($summary ?? []) as $row) @endforeach
{{ $row[0] ?? '-' }} {{ number_format((int) ($row[1] ?? 0), 0, ',', '.') }}

Individual Record

@forelse ($employees as $i => $row) @empty @endforelse
No Nama Kode Finger Jabatan Jenis Pekerja Plan Jam Actual In Actual Out Status Telat Area Hire Status Kontrak Status Status Group
{{ $i + 1 }} {{ $row['nama_karyawan'] ?? '-' }} {{ $row['id_finger'] ?? '-' }} {{ $row['jabatan'] ?? '-' }} {{ $row['jenis_pekerja'] ?? '-' }} {{ $row['shift'] ?? 'No Shift' }} {{ $row['checkin_time'] ?? '-' }} {{ $row['checkout_time'] ?? '-' }} {{ $row['status'] ?? '-' }} {{ $row['late_minutes'] ?? '-' }} {!! nl2br(e($row['area_export_label'] ?? $row['area_full_label'] ?? $row['area_kerja_client'] ?? '-')) !!} {{ $row['hire_status'] ?? '-' }} {{ $row['contract_status'] ?? '-' }} @php $cat = (string) ($row['category'] ?? ''); $group = match ($cat) { 'ontime', 'lateGrace', 'latePre', 'nonShift' => 'Hadir', 'cuti', 'sick' => 'Paid', 'leaveNoPay' => 'Not Paid', 'offday' => 'Libur / Offday', 'pendingShift' => 'Shift belum selesai', default => 'Tidak hadir', }; @endphp {{ $group }}
Tidak ada data.