@extends('admin.layouts.home') @section('title', 'Order Details') @section('styles') @endsection @section('content')
Payment Method: {{ ucfirst($order->payment_method ?? 'N/A') }}
Payment Status: @if($order->payment_status == 'paid') Paid @elseif($order->payment_status == 'pending') Pending @elseif($order->payment_status == 'failed') Failed @else {{ ucfirst($order->payment_status ?? 'N/A') }} @endif
Total Amount: ${{ number_format($order->total_amount, 2) }}
@if($order->discount_amount > 0)Discount Applied: ${{ number_format($order->discount_amount, 2) }}
@endif{{ $order->user->email }}
No shipping address provided
@endifSame as shipping address
@elseNo billing address provided
@endif{{ $order->created_at->format('M d, Y H:i') }}
@if($isProcessing) {{ $order->updated_at->format('M d, Y H:i') }} @else Waiting @endif
@if($isShipped) {{ $order->updated_at->format('M d, Y H:i') }} @else Waiting @endif
@if($isDelivered) {{ $order->updated_at->format('M d, Y H:i') }} @else Waiting @endif
@if($isCompleted || $isCancelled) {{ $order->updated_at->format('M d, Y H:i') }} @else Waiting @endif
{{ $order->notes }}
| Product | Store | Quantity | Price | Total | |
|---|---|---|---|---|---|
|
@if($product->thumbnail)
|
{{ $product->name }}
SKU: {{ $product->sku ?? 'N/A' }}
|
@if($product->store) {{ $product->store->name }} @else N/A @endif | {{ $product->pivot->quantity ?? 1 }} | ${{ number_format($product->pivot->price ?? $product->price, 2) }} | ${{ number_format(($product->pivot->price ?? $product->price) * ($product->pivot->quantity ?? 1), 2) }} |
| Subtotal: | ${{ number_format($order->subtotal ?? $order->total_amount, 2) }} | ||||
| Tax: | ${{ number_format($order->tax_amount, 2) }} | ||||
| Shipping: | ${{ number_format($order->shipping_amount, 2) }} | ||||
| Discount: | -${{ number_format($order->discount_amount, 2) }} | ||||
| Total: | ${{ number_format($order->total_amount, 2) }} | ||||