@extends('layouts.customer') @section('customer-content')
| Product | Warehouse | Status | Qty | Price | Subtotal |
|---|---|---|---|---|---|
| @if($item->product) {{ $item->product->name }} @else {{ $item->product_name ?? 'Deleted Product' }} @endif | @if(($item->warehouse ?? 'ghana') === 'china') 🇨🇳 China @else 🇬🇭 Ghana @endif |
@if(($item->warehouse ?? 'ghana') === 'china')
@php
$fStatus = $item->fulfillment_status ?? 'pending';
$fLabel = match($fStatus) {
'pending' => 'Awaiting freight',
'in_transit' => 'In transit',
'arrived' => 'Arrived in Ghana',
'shipped' => 'Shipped',
'delivered' => 'Delivered',
default => 'Pending'
};
@endphp
{{ $fLabel }}
@if($item->expected_arrival)
ETA: {{ $item->expected_arrival->format('M d') }} @endif @else Ready to ship @endif |
{{ $item->quantity }} | {{ price($item->price) }} | {{ price($item->subtotal) }} |
⚠️ This order has items from both warehouses
Ghana items ship immediately. China items will ship separately after freight arrival.
Subtotal: {{ price($order->subtotal) }}
@if($order->shipping_cost > 0)Shipping: ${{ number_format($order->shipping_cost, 2) }}
@endif @if($order->discount > 0)Discount: -${{ number_format($order->discount, 2) }}
@endifTotal: {{ price($order->total) }}
{{ $addr['first_name'] }} {{ $addr['last_name'] }}
{{ $addr['address_line1'] }}
@if(!empty($addr['address_line2'])){{ $addr['address_line2'] }}
@endif{{ $addr['city'] }}, {{ $addr['state'] }} {{ $addr['postal_code'] }}
{{ $addr['country'] }}
@if(!empty($addr['phone']))Phone: {{ $addr['phone'] }}
@endif @elseNo shipping address available
@endif