@extends('layouts.admin') @section('title', 'Order #' . $order->order_number) @section('page_title', 'Order #' . $order->order_number) @section('content')
Back to Orders
Order Information
Order Number: {{ $order->order_number }}
Order Date: {{ $order->created_at->format('M d, Y H:i') }}
Status: {{ ucfirst($order->status) }}
Customer: @if($order->user) {{ $order->user->name }}
{{ $order->user->email }} @else N/A @endif
Payment Method: @php $paymentMethod = $order->transactions->first()?->paymentMethod?->name ?? 'Not Set'; @endphp {{ $paymentMethod }}
Shipping Information
Shipping Address

{{ $order->shipping_address }}

Billing Address

{{ $order->billing_address }}

Order Items
@forelse($order->items as $item) @empty @endforelse
Product Price Quantity Total
@if($item->product) {{ $item->product_name }}
SKU: {{ $item->product_sku }} @else {{ $item->product_name }}
SKU: {{ $item->product_sku }} @endif
{{ \App\Support\Currency::symbol() }}{{ number_format($item->price, 2) }} {{ $item->quantity }} {{ \App\Support\Currency::symbol() }}{{ number_format($item->total, 2) }}
No items in this order
@if($order->tracking && $order->tracking->count() > 0)
Order Tracking
@foreach($order->tracking as $track)
{{ ucfirst(str_replace('_', ' ', $track->status)) }}

{{ $track->created_at->format('M d, Y H:i') }}

@if($track->description)

{{ $track->description }}

@endif @if($track->location) 📍 {{ $track->location }} @endif
@endforeach
@endif
Order Summary
@if($order->discount > 0) @endif
Subtotal: {{ \App\Support\Currency::symbol() }}{{ number_format($order->subtotal, 2) }}
Tax (10%): {{ \App\Support\Currency::symbol() }}{{ number_format($order->tax, 2) }}
Shipping: {{ \App\Support\Currency::symbol() }}{{ number_format($order->shipping, 2) }}
Discount: -{{ \App\Support\Currency::symbol() }}{{ number_format($order->discount, 2) }}
Total: {{ \App\Support\Currency::symbol() }}{{ number_format($order->total, 2) }}
Update Status
@csrf
Details
Created: {{ $order->created_at->format('M d, Y H:i') }}
Updated: {{ $order->updated_at->format('M d, Y H:i') }}
@csrf @method('DELETE')
@endsection