Order Details - #{{ $order->order_id }}
Complete order information for Order #{{ $order->order_id }}
Order Total
₦{{ number_format($order->total_amount, 2) }}
@php
$statusColors = [
'pending' => 'warning',
'processing' => 'info',
'shipped' => 'primary',
'delivered' => 'success',
'cancelled' => 'danger'
];
$statusColor = $statusColors[$order->status] ?? 'secondary';
@endphp
{{ ucfirst($order->status) }}
Order Date
{{ \Carbon\Carbon::parse($order->order_date)->format('M d, Y') }}
{{ \Carbon\Carbon::parse($order->order_date)->format('h:i A') }}
Items
{{ count($products) }}
Products
Payment Ref
{{ Str::limit($order->reference, 12) }}
Reference
Order Items
| Product | Size | Qty | Price | Total |
|---|---|---|---|---|
|
@if($product->image)
{{ $product->title }}
@if($product->item_type == 'photo')
Photo Print
@endif
|
{{ $product->size ?? 'N/A' }} | {{ $product->quantity }} | ₦{{ number_format($product->price, 2) }} | ₦{{ number_format($itemTotal, 2) }} |
| Subtotal | ₦{{ number_format($order->subtotal, 2) }} |
| Delivery Fee | ₦{{ number_format($order->delivery_fee, 2) }} |
| Total Amount | ₦{{ number_format($order->total_amount, 2) }} |
Photo Prints ({{ count($orderImages) }})
@foreach($orderImages as $image)
@endforeach
@if($image->printSize)
{{ $image->printSize }}
@endif
@if($image->edits)
@php
$edits = json_decode($image->edits, true);
@endphp
B:{{ $edits['brightness'] ?? 0 }} |
C:{{ $edits['contrast'] ?? 1 }} |
S:{{ $edits['saturation'] ?? 1 }}
@endif
Customer Info
{{ $customer ? strtoupper(substr($customer->name ?? 'U', 0, 2)) : 'U' }}
-
User ID{{ $order->user_id }}
-
Phone{{ $phone }}
Merchant Info
{{ $customer ? strtoupper(substr($customer->name ?? 'U', 0, 2)) : 'U' }}
-
User ID{{ $order->user_id }}
-
Phone{{ $phone }}
Shipping Address
-
Address{{ $address }}
-
Phone{{ $phone }}
Order Activity
-
{{ \Carbon\Carbon::parse($order->order_date)->format('M d, Y') }} {{ \Carbon\Carbon::parse($order->order_date)->format('h:i A') }}
Order Placed
Order #{{ $order->order_id }} was successfully placed and payment confirmed.
@if($order->status != 'pending')
-
{{ \Carbon\Carbon::parse($order->updated_at ?? $order->order_date)->format('M d, Y') }} {{ \Carbon\Carbon::parse($order->updated_at ?? $order->order_date)->format('h:i A') }}
Status Updated
Order status changed to {{ ucfirst($order->status) }}
@endif