{{-- Header --}}

Rekap Uang Makan Staff

Rekapitulasi Uang Makan (Total UM) per karyawan Staff, dipecah per minggu (kolom periode payroll) dengan total per karyawan.

$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, ',', '.'); @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: Staff Karyawan: {{ number_format($rows->count(), 0, ',', '.') }} Total {{ $fmt($totals['grand']) }}
{{-- Tabel --}}
@if ($weeks->isEmpty()) @else @endif @foreach ($weeks as $w) @endforeach @forelse ($rows as $idx => $r) @foreach ($weeks as $w) @endforeach @if ($weeks->isNotEmpty()) @endif @empty @endforelse @if ($rows->isNotEmpty()) @foreach ($weeks as $w) @endforeach @if ($weeks->isNotEmpty()) @endif @endif
No ID Employee Full Name Job PositionJUMLAHPERHITUNGAN UANG MAKAN (TOTAL UM) PER MINGGU JUMLAH
{{ $w['start'] }}
s/d {{ $w['end'] }}
{{ $idx + 1 }} {{ $r['nik'] ?: '-' }} {{ $r['name'] }} {{ $r['position'] ?: '-' }}{{ $fmt($r['weeks'][$w['id']] ?? 0) }}{{ $fmt($r['total']) }}
Tidak ada data untuk rentang tanggal & filter ini. Pastikan hasil payroll sudah di-Generate & Simpan pada periode terkait.
TOTAL{{ $fmt($totals['weeks'][$w['id']] ?? 0) }}{{ $fmt($totals['grand']) }}
@if ($rows->isNotEmpty())
Setiap kolom minggu = Total UM (uang makan) staff pada periode payroll mingguan tersebut. Dicetak: {{ now()->format('d/m/Y H:i') }}
@endif