Order Summary
@foreach($cartData['items'] as $item)
@if($item->product->primaryImage)
 }})
@else
{{ substr($item->product->name, 0, 1) }}
@endif
{{ $item->product->name }}
Qty: {{ $item->quantity }}
@if(($item->product->warehouse ?? 'ghana') === 'china')
๐จ๐ณ Ships from China ยท ~{{ $item->product->china_freight_days ?? 21 }} days
@else
๐ฌ๐ญ Ships from Ghana
@endif
{{ price(($item->variant?->price ?? $item->product->price) * $item->quantity) }}
@endforeach
@php
$hasChinaItems = $cartData['items']->some(fn($item) => ($item->product->warehouse ?? 'ghana') === 'china');
$hasGhanaItems = $cartData['items']->some(fn($item) => ($item->product->warehouse ?? 'ghana') === 'ghana');
@endphp
@if($hasChinaItems && $hasGhanaItems)
โ ๏ธ Your order contains items from both Ghana and China warehouses
Ghana items will ship immediately. China items will ship separately after freight arrival (~{{ $cartData['items']->first(fn($i) => ($i->product->warehouse ?? 'ghana') === 'china')?->product->china_freight_days ?? 21 }} working days).
@elseif($hasChinaItems)
๐ฆ All items ship from China warehouse
Estimated freight arrival: ~{{ $cartData['items']->first(fn($i) => ($i->product->warehouse ?? 'ghana') === 'china')?->product->china_freight_days ?? 21 }} working days
@endif
Subtotal
{{ price($cartData['subtotal']) }}
Shipping
$0.00
Tax
$0.00
Discount
-{{ price(0) }}
Total
{{ price($cartData['subtotal']) }}
@if($addresses->count() === 0)
โ ๏ธ Please add a shipping address before placing an order
@endif
By placing your order, you agree to our Terms & Conditions