{{-- HEADER --}}

{{ $company->nama_company }}

{!! $company->alamat !!}

PACKING LIST

{{-- INFORMASI --}}
No. Kendaraan: {{ $data->vehicle_no }} Tanggal Packing: {{ date('d/m/Y', strtotime($data->packing_date)) }}
Sopir: {{ $data->driver_name ?? '-' }} Ekspedisi: {{ $data->expedition_name ?? '-' }}
Keterangan: {{ $data->remarks ?? '-' }}
{{-- ==================== DATA DO ==================== --}}

Detail Delivery Order

@php $no = 1; @endphp @foreach ($details as $item) @php $isPageBreak = $no % 15 == 0 && $no != count($details); @endphp @endforeach @php $totalOutstanding = 0; foreach ($details as $d) { $totalOutstanding += ($d->total_amount ?? 0) - ($d->amount_paid ?? 0); } @endphp
No DO No. Faktur Kode Cust Customer TOP Jth Tempo Total Faktur Outstanding Tunai Transfer Remark WH Check
{{ $no++ }} {{ $item->do_number }} {{ $item->invoice_number }} {{ $item->customer_code }} {{ $item->nama_customer }} {{ $item->top_name }} {{ date('d/m/Y', strtotime($item->due_date)) }} {{ number_format($item->total_amount, 0, ',', '.') }} {{ number_format($item->total_amount - $item->amount_paid, 0, ',', '.') }}       @if ($item->receive_wh_date != null) {{ date('d/m/Y', strtotime($item->receive_wh_date)) }} @else - @endif
  Total Rp {{ number_format($totalOutstanding, 0, ',', '.') }} Total DO {{ number_format(count($details), 0, ',', '.') }} Customer
{{-- SIGN --}}



Dibuat Oleh


(__________________)
 



Kolektor


(__________________)
 



Kasir


(__________________)
 



Admin AR


(__________________)
 



Disetujui Oleh


({{ $bod->nama_lengkap ?? '-' }})
BOD
{{-- ==================== HITUNG TOTAL PRODUK ==================== --}} @php $totalProduk = 0; foreach ($details as $d) { if (!empty($d->detail)) { $totalProduk += count($d->detail); } } @endphp {{-- ==================== PAGE BREAK HANYA JIKA PRODUK > 10 ==================== --}} @if ($totalProduk > 10)
@endif {{-- ==================== DAFTAR PRODUK ==================== --}}

Daftar Produk

@php $p = 1; @endphp @foreach ($groupedItem as $d) @php $isPageBreakProduk = $p % 22 == 0 && $p != count($groupedItem); @endphp @endforeach
No Kode Produk Nama Produk Qty Pack Satuan Remark
{{ $p++ }} {{ $d['product_code'] ?? '-' }} {{ $d['product_name'] ?? '-' }} {{ number_format($d['conversion']['qty_in_largest_unit'], 2, ',', '.') }} {{ $d['conversion']['largest_unit_name'] ?? '-' }} {!! $d['assembly'] == 1 ? 'Assembly' : '' !!}
{{ $d['assembly_name'] }}