@php use App\Models\Order\Order; @endphp @php use App\Components\Shipping\Services\ShippingBoxPacker; @endphp @php /** @var Order $order */ @endphp @php $boxPacker = new ShippingBoxPacker($order->cart, $order->cart->shippingMethod); $packedBoxes = $boxPacker->calculateShippingBoxes(); $totalBoxes = count($packedBoxes); $totalPrice = 0; @endphp
| Box № | Box size | Box price | Box sizes | Box items |
|---|---|---|---|---|
| Box {{ $index + 1 }} | {{ $packedBox->getBox()->getReference() }} | €{{ $packedBox->getBox()->getPrice() }} | {{ $packedBox->getBox()->getFullSizes() }} |
@foreach ($packedBox->getItems() as $packedItem)
{{ $packedItem->getItem()->getDescription() }}
- {{ $packedItem->getItem()->getFullSizes() }}
@endforeach
|
| Total Boxes: | {{ $totalBoxes }} | |||
| Total Price: | €{{ $totalPrice }} | |||
Items cannot be shipped.
@endif