@include('admin.dash.layout.header')

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
@foreach($products as $product) @php $itemTotal = $product->price * $product->quantity; @endphp @endforeach
Product Size Qty Price Total
@if($product->image) @else {{ strtoupper(substr($product->title, 0, 2)) }} @endif
{{ $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) }}
@php $orderImages = DB::table('order_image')->where('order_id', $order->id)->get(); @endphp @if(count($orderImages) > 0)
Photo Prints ({{ count($orderImages) }})
@foreach($orderImages as $image)
@endforeach
@endif
Customer Info
@php $customer = DB::table('users')->where('id', $order->user_id)->first(); @endphp
{{ $customer ? strtoupper(substr($customer->name ?? 'U', 0, 2)) : 'U' }}
  • User ID
    {{ $order->user_id }}
  • Phone
    {{ $phone }}
@if($product->merchant_id)
Merchant Info
@php $customer = DB::table('users')->where('id', $product->merchant_id)->first(); @endphp
{{ $customer ? strtoupper(substr($customer->name ?? 'U', 0, 2)) : 'U' }}
  • User ID
    {{ $order->user_id }}
  • Phone
    {{ $phone }}
@endif
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
@include('admin.dash.layout.footer')