{{-- --}}

{{ isset($data) ? 'Edit Packing List' : 'Create Packing List' }}


{{-- ==================== DO LIST =========================== --}}
Delivery Orders
@if (!empty($details)) @foreach ($details as $row) @php $statusColor = ''; if ($row->status == 'CONFIRMED') { $statusColor = 'text-success'; } if ($row->status == 'NOT DELIVERED') { $statusColor = 'text-danger'; } if ($row->status == 'CANCEL') { $statusColor = 'text-danger'; } $photo_path = ''; if ($row->photo_path != '') { $photo_path = $row->photo_path; } @endphp @endforeach @endif
DO Number DO Date Customer Received Date Action
{{ $row->do_number }} {!! $row->status == '' ? '' : '' !!} @if ($photo_path != '') Foto Pengiriman @endif {{ $row->do_date }} {{ $row->customer_code }} - {{ $row->nama_customer }} {{ $row->receive_wh_date }}

{{-- ==================== ITEM DETAIL =========================== --}}
Item Details
@if (!empty($details)) @php $totalRows = 1; @endphp @foreach ($grouped as $item) @foreach ($item as $items) @foreach ($items as $prod) @php $totalRows++; @endphp @endforeach @endforeach @endforeach @php //echo $totalRows; @endphp @endif
Product Qty DO Qty Packed Satuan Remark
{{ $prod->product->code }} - {{ $prod->product->name }} {{ $prod->qty_do }} {{ $prod->qty_packed }} {{ $prod->deliveryDetail->units->name ?? '-' }} {{ $prod->remark }}