@extends('layouts.admin') @section('title', 'Order #' . $order->order_number) @section('page_title', 'Order #' . $order->order_number) @section('content')
| 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 }} |
{{ $order->shipping_address }}
{{ $order->billing_address }}
| 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 | |||
{{ $track->created_at->format('M d, Y H:i') }}
@if($track->description){{ $track->description }}
@endif @if($track->location) 📍 {{ $track->location }} @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) }} |
| Created: | {{ $order->created_at->format('M d, Y H:i') }} |
| Updated: | {{ $order->updated_at->format('M d, Y H:i') }} |