@extends('admin.layouts.app') @section('title', 'Order #'.$order->id) @section('heading', 'Order #'.$order->id) @section('content')
{{-- 4-Step Status Flow --}} @php $flow = [ ['key'=>'pending', 'icon'=>'fa-clock', 'label'=>'Pending', 'sub'=>'Order placed'], ['key'=>'confirmed', 'icon'=>'fa-hammer', 'label'=>'Confirmed', 'sub'=>'In production'], ['key'=>'shipped', 'icon'=>'fa-truck', 'label'=>'Shipped', 'sub'=>'On the way'], ['key'=>'complete', 'icon'=>'fa-circle-check', 'label'=>'Complete', 'sub'=>'Delivered'], ]; $idx = ['pending'=>0,'confirmed'=>1,'shipped'=>2,'complete'=>3]; $cur = $idx[$order->status] ?? 0; @endphp| Image | Product | Size | Qty | Price | Total |
|---|---|---|---|---|---|
| {{ $it->product_name }} | {{ $it->size ?? 'N/A' }} | {{ $it->qty }} | Rs {{ number_format($it->price, 0) }} | Rs {{ number_format($it->price * $it->qty, 0) }} | |
| Subtotal | Rs {{ number_format($order->subtotal, 0) }} | ||||
| Shipping | {{ $order->shipping == 0 ? 'FREE' : 'Rs '.number_format($order->shipping, 0) }} | ||||
| TOTAL | Rs {{ number_format($order->total, 0) }} | ||||
{{ $order->customer_notes }}
{{ $order->name }}
{{ $order->email }}
{{ $order->phone }}
@if($order->user_id && $order->user) @endif{{ $order->address }}
{{ $order->city }}@if($order->state), {{ $order->state }}@endif @if($order->zip) {{ $order->zip }}@endif
@if($order->notes)Notes: {{ $order->notes }}
@endifCurrent: {{ ucfirst($order->status) }}
Tracking ID:
{{ $order->tracking_id }}
@if($order->courier)Courier: {{ $order->courier }}
@endif @if($order->shipped_at)Shipped: {{ $order->shipped_at->format('d M Y, h:i A') }}
@endif @if($order->tracking_url) @endif @elseThis order was placed before the tracking system was added. New orders will have a Tracking ID automatically.
@endifPlaced: {{ $order->created_at->format('M d, Y ยท H:i') }}
Payment: {{ strtoupper($order->payment_method) }}