@extends('admin.layouts.app') @section('title', 'Order Details') @section('page-title', 'Order Details') @section('content')

Order: #{{ $order->order_number }}

Order placed on {{ $order->created_at->format('M d, Y H:i') }}

Back to List

Order Items

@foreach($order->items as $item) @endforeach @if($order->discount > 0) @endif @if($order->shipping_fee > 0) @endif
Product Quantity Price Subtotal
@if($item->product && $item->product->featured_image) @else
@endif
{{ $item->product ? $item->product->name : 'Deleted Product' }}
{{ $item->quantity }} {{ number_format($item->price, 2) }} {{ $order->currency }} {{ number_format($item->line_subtotal, 2) }} {{ $order->currency }}
Subtotal {{ number_format($order->subtotal, 2) }} {{ $order->currency }}
Discount - {{ number_format($order->discount, 2) }} {{ $order->currency }}
Shipping Fee + {{ number_format($order->shipping_fee, 2) }} {{ $order->currency }}
Total {{ number_format($order->total, 2) }} {{ $order->currency }}
@if($order->note)

Order Note

{{ $order->note }}

@endif

Order Status

@csrf @method('PUT')

Customer Details

{{ $order->customer_name }}
@if($order->user)
Registered User #{{ $order->user_id }}
@else
Guest Checkout
@endif
{{ $order->customer_email }}
{{ $order->customer_phone }}
{{ $order->shipping_detail }}

Payment Details

@if(strtolower($order->payment_method) == 'bakong' || strtolower($order->payment_method) == 'aba') @else @endif
{{ $order->payment_method }}
Method

Customer Order History

@endsection