{{-- Tabel absensi read-only, format sama dengan formulir. Dipakai di show & print. --}} @php $rows = $attendance->items->values(); $minRows = 6; $rowCount = max($rows->count(), $minRows); @endphp @for($i = 0; $i < $rowCount; $i++) @php $item = $rows[$i] ?? null; @endphp @if($i === 0) @endif @endfor
NO NAMA PERSONEL POSISI JAM TOTAL JAM FEE (RP) KETERANGAN
MULAI SELESAI
@if($item) {{ $i + 1 }} @endif {{ $item?->nama }} {{ $item?->posisi ?: '-' }} {{ $item?->jam_mulai_hm ?: '-' }} {{ $item?->jam_selesai_hm ?: '-' }} @if($item && $item->total_menit !== null) {{ $item->total_jam_formatted }} @else - @endif {{ $item && $item->fee !== null ? number_format($item->fee, 0, ',', '.') : '-' }} {{ $attendance->keterangan ?: '-' }}
Total {{ $attendance->total_jam_formatted }} {{ $attendance->total_fee > 0 ? 'Rp ' . number_format($attendance->total_fee, 0, ',', '.') : '-' }}