@php $fmt = function ($v) { if ($v === null || $v === '') return ''; return number_format((float) $v, 1, ',', '.'); }; @endphp @foreach ($sheets as $sheet)
{{ $company_name }}
Nama : {{ $sheet['employee_name'] }}
Jabatan : {{ $sheet['jabatan'] }}
Bulan : {{ $sheet['bulan_label'] }}
No Finger : {{ $sheet['finger_no'] }}
@foreach (($sheet['ot_columns'] ?? []) as $otCol) @endforeach @foreach ($sheet['rows'] as $row) @foreach (($sheet['ot_columns'] ?? []) as $otCol) @endforeach @endforeach @foreach (($sheet['ot_columns'] ?? []) as $otCol) @endforeach @foreach (($sheet['ot_columns'] ?? []) as $otCol) @endforeach
Tanggal Masuk Keluar Waktu Perhitungan Lembur Remark
Istirahat Sore Total Jam Masuk Std. Jam Normal Jam Normal{{ $otCol['label'] }}
{{ $row['date']->format('d') }} {{ $row['masuk'] }} {{ $row['keluar'] }} {{ $fmt($row['istirahat_sore']) }} {{ $fmt($row['total_jam_masuk']) }} {{ $fmt($row['std_jam_normal']) }} {{ $fmt($row['jam_normal']) }}{{ $fmt($row['ot_dynamic'][$otCol['key']] ?? null) }}{{ $row['remark'] }}
Total Jam {{ $fmt($sheet['sum']['total_jam_masuk']) }} {{ $fmt($sheet['sum']['std_jam_normal']) }} {{ $fmt($sheet['sum']['jam_normal']) }}{{ $fmt($sheet['sum']['ot_dynamic'][$otCol['key']] ?? null) }}
Total Jam Kurang {{ $fmt($sheet['sum']['jam_tidak_masuk']) }}
Jam Masuk Normal ({{ $fmt($sheet['sum']['basis_jam_profil'] ?? 0) }} - Total Jam Kurang) {{ $fmt($sheet['sum']['jam_masuk_normal']) }}
HK Masuk (hari) {{ $fmt($sheet['sum']['hk_masuk']) }}
Total Lembur (OT){{ $fmt($sheet['sum']['ot_dynamic'][$otCol['key']] ?? null) }} Total Jam: {{ $fmt(array_sum($sheet['sum']['ot_dynamic'] ?? [])) }}  |  Total x Faktor: {{ $fmt($sheet['sum']['total_lembur_weighted'] ?? 0) }}
RINCIAN CUTI PEGAWAI : HAK Cuti : {{ $sheet['leave']['hak_cuti'] }}     Cuti Bersama : {{ $sheet['leave']['cuti_bersama'] }}     Cuti Pribadi : {{ $sheet['leave']['cuti_pribadi'] }}     Sisa Cuti : {{ $sheet['leave']['sisa_cuti'] }}
Printed {{ $generated_at }} | {{ $profil->code ?? '-' }} - {{ $profil->name ?? '-' }} | {{ $date_from }} s/d {{ $date_to }}
@endforeach