@include('print.header')

PACKING DETAILS

Order No: {{ $packingList->order_no }}

Customer: {{ $packingList->fname }} {{ $packingList->lname }}

@php $grandTotalPieces = 0; $grandTotalWeight = 0; @endphp @foreach($cartons as $carton) @php $cartonQty = $carton->carton_to - $carton->carton_from + 1; $cartonTotal = 0; $cartonWeight = 0; @endphp @php $itemCount = $carton->items->count(); @endphp @foreach($carton->items as $index => $item) @if($index === 0) @endif @php $cartonTotal += $item->pcs_each_carton * $cartonQty; @endphp @endforeach @if($carton->box_dimension) @else @endif @php $grandTotalPieces += $cartonTotal; $grandTotalWeight += $cartonWeight; @endphp @endforeach @if($packingList->pallet_qty) @if($packingList->pallet_dimension) @endif @php if($packingList->pallet_weight && $packingList->pallet_qty) { $grandTotalWeight += $packingList->pallet_weight * $packingList->pallet_qty; } @endphp @endif
Carton Details Description of Goods Pcs Total Pcs Weight
@if($carton->carton_from == $carton->carton_to) Carton # {{ $carton->carton_from }} @else Carton # {{ $carton->carton_from }} to {{ $carton->carton_to }} @endif {{ $item->name }} {{ $item->pcs_each_carton }} Each {{ $item->pcs_each_carton * $cartonQty }} @if($carton->box_weight) @php $cartonWeight += $carton->box_weight * $cartonQty; @endphp {{ number_format($carton->box_weight * $cartonQty, 2) }} @endif
Box Dimension: {{ $carton->box_dimension }} Group Total: {{ $cartonTotal }} {{ number_format($cartonWeight, 2) }}
Group Total: {{ $cartonTotal }} {{ number_format($cartonWeight, 2) }}
{{ $packingList->pallet_qty }} Pallet{{ $packingList->pallet_qty > 1 ? 's' : '' }} @if($packingList->pallet_weight) {{ number_format($packingList->pallet_weight, 2) }} @endif
Pallet Dimension: {{ $packingList->pallet_dimension }} @if($packingList->pallet_weight && $packingList->pallet_qty) @php $palletTotalWeight = $packingList->pallet_weight * $packingList->pallet_qty; @endphp {{ number_format($palletTotalWeight, 2) }} @endif
Total (Pcs and weight) {{ $grandTotalPieces }} {{ number_format($grandTotalWeight, 2) }}
@include('print.footer')