PT. TROCON INDAH PERKASA

REKAP JAM LEMBUR STAFF
@php $weeks = $report['weeks']; $rows = $report['rows']; $totals = $report['totals']; $fmt = fn ($v) => number_format((float) $v, 0, ',', '.'); $fmtJam = function ($v) { $x = (float) $v; return number_format($x, $x == floor($x) ? 0 : 1, ',', '.'); }; $colspan = 7 + $weeks->count(); @endphp
Proyek : {{ $project?->name ?? 'Semua Proyek' }} Periode : {{ \Illuminate\Support\Carbon::parse($from)->format('d/m/Y') }} s/d {{ \Illuminate\Support\Carbon::parse($to)->format('d/m/Y') }}
Tipe Pegawai : {{ $staffTypeLabel }} Jumlah Karyawan : {{ number_format($rows->count(), 0, ',', '.') }} orang
Dicetak : {{ now()->format('d/m/Y H:i') }} Total Jam: {{ $fmtJam($totals['hours']) }} jam  |  Total Lembur: {{ $fmt($totals['amount']) }}
@if ($weeks->isNotEmpty()) @foreach ($weeks as $w) @endforeach @else @endif @forelse ($rows as $idx => $r) @foreach ($weeks as $w) @endforeach @empty @endforelse @if ($rows->isNotEmpty()) @foreach ($weeks as $w) @endforeach @endif
No ID Employee Full Name Job Position Lembur/Jam JAM LEMBUR PER MINGGU (JAM) Jumlah Jam
Lembur
Total Lembur
(Rp)
{{ $w['start'] }}
s/d {{ $w['end'] }}
No ID Employee Full Name Job Position Lembur/Jam Jumlah Jam Lembur Total Lembur (Rp)
{{ $idx + 1 }} {{ $r['nik'] ?: '-' }} {{ $r['name'] }} {{ $r['position'] ?: '-' }} {{ (float) $r['rate'] > 0 ? $fmt($r['rate']) : '' }}{{ $fmtJam($r['weeks'][$w['id']] ?? 0) }}{{ $fmtJam($r['total_hours']) }} {{ (float) $r['total_amount'] > 0 ? $fmt($r['total_amount']) : '-' }}
Tidak ada data untuk rentang tanggal & filter ini.
TOTAL{{ $fmtJam($totals['weeks'][$w['id']] ?? 0) }}{{ $fmtJam($totals['hours']) }} {{ $fmt($totals['amount']) }}

Mengetahui,

( Project Manager )
( Site Manager )

Dibuat Oleh,

( Site Engineer / Admin )