@extends('layouts.admin') @section('title', 'Order '.$order->number) @section('heading', 'Order '.$order->number) @section('content')

Placed {{ $order->created_at->format('d M Y, H:i') }} · {{ $order->vendor?->name }}

Back to orders
@if($order->checkoutGroup)

Multi-store checkout {{ $order->checkoutGroup->number }}

Child {{ $order->child_sequence }} of {{ $order->checkoutGroup->orders->count() }} · aggregate {{ $order->checkoutGroup->currency }} {{ number_format($order->checkoutGroup->total, 2) }}

@foreach($order->checkoutGroup->orders->sortBy('child_sequence') as $child){{ $child->vendor?->name }} · {{ $child->status }} · {{ $child->payment_status }}@endforeach
@endif
Order status{{ $order->status }}
Payment{{ $order->payment_status }}{{ strtoupper($order->payment_method) }}
Order total{{ $order->currency }} {{ number_format($order->total, 2) }}
Platform commission{{ $order->currency }} {{ number_format($order->platform_commission, 2) }}

Customer

{{ $order->customer?->name ?? 'Deleted customer' }}
{{ $order->customer?->email }}
{{ $order->customer?->phone }}

Delivery address

@if($order->address)

{{ $order->address->contact_name }} · {{ $order->address->phone }}
{{ $order->address->line_one }}@if($order->address->line_two), {{ $order->address->line_two }}@endif
{{ $order->address->city }} {{ $order->address->postal_code }}, {{ $order->address->country }}

@else

No delivery address supplied.

@endif

Items

{{ $order->items->sum('quantity') }} units

@foreach($order->items as $item)@endforeach
ItemSKUOptionsUnit priceQtyTotal
{{ $item->name }}{{ $item->sku ?: '—' }}{{ $item->options ? collect($item->options)->map(fn($v,$k)=>$k.': '.$v)->join(', ') : '—' }}{{ $order->currency }} {{ number_format($item->unit_price,2) }}{{ $item->quantity }}{{ $order->currency }} {{ number_format($item->total,2) }}
Subtotal{{ $order->currency }} {{ number_format($order->subtotal,2) }}
Delivery + tax − discount{{ $order->currency }} {{ number_format($order->delivery_fee + $order->tax - $order->discount,2) }}
Total{{ $order->currency }} {{ number_format($order->total,2) }}

Private files and digital access

Metadata only; private storage paths are never exposed.

@forelse($order->attachments as $file)@empty @endforelse @foreach($order->items->flatMap->entitlements as $access)@endforeach @if($order->attachments->isEmpty() && $order->items->flatMap->entitlements->isEmpty())@endif
TypeFileStatus / usageExpiry
Customer attachment{{ $file->original_name }}
{{ $file->mime }} · {{ number_format($file->size_bytes/1024,1) }} KB
{{ $file->category }}
Digital entitlement{{ $access->asset?->original_name ?: 'Unavailable asset' }}
Version {{ $access->asset?->version }}
{{ $access->status }} · {{ $access->download_count }}/{{ $access->max_downloads }} downloads{{ $access->expires_at?->format('d M Y H:i') ?: 'No expiry' }}
No private order files or digital entitlements.
@if($allowedTransitions)

Update status

Only valid next workflow states are available.

@csrf
@endif

Payment attempts

@forelse($order->paymentIntents as $intent)@empty@endforelse
GatewayReferenceStatusAmountUpdated
{{ strtoupper($intent->gateway) }}{{ $intent->provider_reference ?: '—' }}{{ $intent->status }}{{ $intent->currency }} {{ number_format($intent->amount,2) }}{{ $intent->updated_at->format('d M Y H:i') }}
No payment intent records. {{ strtoupper($order->payment_method) }} order.

Status history

@forelse($order->events->sortByDesc('created_at') as $event)@empty@endforelse
TimeFromToActorNote
{{ $event->created_at->format('d M Y H:i') }}{{ $event->from_status ?: '—' }}{{ $event->to_status }}{{ $event->actor?->name ?: 'System' }}
{{ $event->actor?->email }}
{{ $event->note ?: '—' }}
No history recorded.
@if($order->notes)

Customer note

{{ $order->notes }}

@endif

Receipt operations

{{ $order->vendor?->printerProfile?->paper_size ?? '80mm default' }} · {{ $order->vendor?->printerProfile?->copies ?? 1 }} configured copy/copies

@forelse($order->receiptPrintEvents as $event)@empty@endforelse
GeneratedOperatorActionFormatDocument integrity
{{ $event->created_at->format('d M Y H:i:s') }}{{ $event->requester?->name ?? 'System' }}{{ ucfirst($event->action) }}{{ $event->paper_size }} · {{ $event->copies }} copies{{ $event->document_sha256 }}
No receipt has been generated.
@endsection