@extends('layouts.app') @section('content')

Order #{{ $order->order_number }}

{{ $order->website->company->name }} - {{ $order->website->name }}

Back to Orders
Order Information
{{ ucfirst($order->status) }}

{{ $order->order_number }}

{{ $order->created_at->format('F d, Y H:i:s') }}

{{ ucfirst($order->channel ?: 'ecommerce') }}

RM {{ number_format($order->total_amount, 2) }}

{{ $order->currency ?: 'MYR' }}

{{ ucfirst($order->payment_status ?: 'pending') }}

@if($order->notes)

{{ $order->notes }}

@endif @if($order->admin_notes)

{{ $order->admin_notes }}

@endif
@if($order->items->count() > 0)
Order Items
@foreach($order->items as $item) @endforeach @if($order->shipping_amount > 0) @endif @if($order->tax_amount > 0) @endif
Product Variation Quantity Unit Price Total
@if($item->product && $item->product->image_url) @else
@endif
{{ $item->product_name }}
@if($item->product_description) {{ Str::limit($item->product_description, 60) }} @endif
{{ $item->variation ? $item->variation->name : '-' }} {{ $item->quantity }} RM {{ number_format($item->unit_price, 2) }} RM {{ number_format($item->total_price, 2) }}
Subtotal: RM {{ number_format($order->items->sum('total_price'), 2) }}
Shipping: RM {{ number_format($order->shipping_amount, 2) }}
Tax: RM {{ number_format($order->tax_amount, 2) }}
Total: RM {{ number_format($order->total_amount, 2) }}
@endif
Company & Website

{{ $order->website->company->name }}

{{ $order->website->name }}
{{ $order->website->domain }}

Customer Information

{{ $order->customer_name }}

{{ $order->customer_email }}

@if($order->customer_phone)

{{ $order->customer_phone }}

@endif
@if($order->shipping_address || $order->billing_address)
Address Information
@if($order->formatted_shipping_address)

{{ $order->formatted_shipping_address }}

@endif @if($order->formatted_billing_address && $order->formatted_billing_address != $order->formatted_shipping_address)

{{ $order->formatted_billing_address }}

@endif
@endif
Order Status

{{ ucfirst($order->status) }}

{{ ucfirst($order->payment_status ?: 'pending') }}

@if($order->admin_notes)

{{ $order->admin_notes }}

@endif
To update order status, please access this order through the company's order management interface.
@endsection