{{-- Header --}}

Rekap Jam Lembur Staff

Rekapitulasi jam lembur per karyawan, dipecah per minggu (kolom periode payroll) lengkap dengan tarif Lembur/Jam, Jumlah Jam Lembur & Total Lembur (Rp).

$report['rows']->count(), 'pointer-events-none bg-slate-200 text-slate-400' => !$report['rows']->count()]) > Export Excel
{{-- Filter --}}
{{-- Ringkasan filter --}} @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
Periode: {{ \Illuminate\Support\Carbon::parse($date_from ?: now()->startOfMonth()->format('Y-m-d'))->format('d/m/Y') }} s/d {{ \Illuminate\Support\Carbon::parse($date_to ?: now()->format('Y-m-d'))->format('d/m/Y') }} Proyek: {{ $projectLabel }} Tipe: {{ $staffTypeLabel }} Karyawan: {{ number_format($rows->count(), 0, ',', '.') }} Total Jam: {{ $fmtJam($totals['hours']) }} Total Lembur: Rp {{ $fmt($totals['amount']) }}
{{-- Tabel --}}
@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. Pastikan hasil payroll sudah di-Generate & Simpan pada periode terkait.
TOTAL{{ $fmtJam($totals['weeks'][$w['id']] ?? 0) }}{{ $fmtJam($totals['hours']) }} {{ $fmt($totals['amount']) }}
@if ($rows->isNotEmpty())
Kolom minggu = jam lembur (overtime_hours) dari payroll mingguan; Total Lembur (Rp) = nilai lembur dibayarkan (termasuk tarif 2× lembur hari libur bagi staff). Dicetak: {{ now()->format('d/m/Y H:i') }}
@endif