{{ 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 Action
{{ $row->do_number }} {!! $row->status == '' ? '' : '' !!} @if($photo_path != '') Foto Pengiriman @endif {{ $row->do_date }} {{ $row->customer_code }} - {{ $row->nama_customer }}

{{-- ==================== ITEM DETAIL =========================== --}}
Item Details
@if(!empty($details)) @foreach ($grouped as $item) @foreach ($item as $items) @foreach ($items as $prod) @endforeach @endforeach @endforeach {{-- @foreach($details as $d) @foreach ($d->detail as $prod) @endforeach @endforeach --}} @endif
Product Qty DO Qty Packed Satuan Remark
{{ $prod->product->code }} - {{ $prod->product->name }} {{ $prod->qty_do }} {{ $prod->deliveryDetail->units->name ?? '-' }}
{{ $prod->product->code }} - {{ $prod->product->name }} {{ $prod->qty_do }} {{ $prod->deliveryDetail->units->name }}