@extends('admin.layouts.app') @section('title', 'Order Details') @section('content')
| Order Number | {{ $order->order_number }} |
|---|---|
| Order Date | {{ $order->created_at->format('d/m/Y H:i:s') }} |
| Order Status | {{ ucfirst($order->order_status) }} |
| Payment Status | {{ ucfirst($order->payment_status) }} |
| Name | {{ $order->customer_name }} |
|---|---|
| {{ $order->customer_email }} | |
| Phone | {{ $order->customer_phone }} |
| Address | {{ $order->customer_address }}, {{ $order->city }}, {{ $order->postcode }} |
| # | Item Name | Type | Quantity | Unit Price | Subtotal |
|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $item['name'] }} @if($isPackage) PACKAGE @endif | {{ $isPackage ? 'Package' : 'Course' }} | {{ $item['quantity'] }} | @if($actualPrice !== null) £{{ number_format($actualPrice, 2) }} @else Price not available @endif | @if($actualPrice !== null) £{{ number_format($actualPrice * $item['quantity'], 2) }} @else - @endif |
| Total Amount | £{{ number_format($order->total_amount, 2) }} | ||||
| Discount | -£{{ number_format($order->discount_amount, 2) }} | ||||
{{ $order->notes }}
| Transaction ID | {{ $payment->transaction_id ?? 'N/A' }} |
|---|---|
| Payment Method | {{ ucfirst($payment->payment_method ?? 'N/A') }} |
| Amount | £{{ number_format($payment->amount ?? $order->total_amount, 2) }} |
| Status | {{ ucfirst($payment->status) }} |
| Payment Date | {{ $payment->payment_date ? \Carbon\Carbon::parse($payment->payment_date)->format('d/m/Y H:i') : 'N/A' }} |