{{-- 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
| 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, ',', '.') : '-' }} | @if($i === 0){{ $attendance->keterangan ?: '-' }} | @endif
| Total | {{ $attendance->total_jam_formatted }} | {{ $attendance->total_fee > 0 ? 'Rp ' . number_format($attendance->total_fee, 0, ',', '.') : '-' }} | |||||