@php /** @var \App\Models\PersonnelAttendance $attendance */ $initialRows = old('items'); if ($initialRows === null) { $initialRows = $attendance->exists ? $attendance->items->map(fn ($i) => [ 'nama' => $i->nama, 'posisi' => $i->posisi, 'jam_mulai' => $i->jam_mulai_hm, 'jam_selesai' => $i->jam_selesai_hm, 'fee' => $i->fee !== null ? (float) $i->fee : '', ])->values()->all() : []; } // Minimal 6 baris seperti format formulir $initialRows = array_values($initialRows); while (count($initialRows) < 6) { $initialRows[] = ['nama' => '', 'posisi' => '', 'jam_mulai' => '', 'jam_selesai' => '', 'fee' => '']; } $tanggalValue = old('tanggal', optional($attendance->tanggal)->format('Y-m-d')); @endphp @if($errors->any())

Periksa kembali isian berikut:

@endif
@csrf @if($method !== 'POST') @method($method) @endif {{-- Header Informasi --}}
{{-- Tabel Absensi --}}

Receiving / Delivery Personnel Attendance List

Daftar absensi kehadiran personel operasional receiving / delivery beserta perhitungan jam kerja & fee

NO NAMA PERSONEL POSISI JAM TOTAL JAM FEE (RP) KETERANGAN
MULAI SELESAI
Total Rp
{{-- Actions --}}
Batal