@php $s = $order->status; $S = \App\Enums\OrderStatus::class; @endphp

{{ $order->number }} {{ $s->label() }} {{ $order->payment_status->label() }}

Orders / {{ $order->created_at->format('j M Y, H:i') }}
@error('action')@enderror @if ($order->payment_status === \App\Enums\PaymentStatus::Review) @endif
Items{{ $order->itemCount() }} units
ProductSKUUnitQtyDiscountTotal @foreach ($order->items as $item) {{ $item->displayName() }} @if ($item->components)Contains: {{ collect($item->components)->pluck('sku')->implode(', ') }}@endif {{ $item->sku }} {{ money($item->unit_price) }}@if ($item->unit_price < $item->base_price){{ money($item->base_price) }}@endif {{ $item->quantity }} {{ $item->discount ? '−'.money($item->discount) : '—' }} {{ money($item->line_total) }} @endforeach
Subtotal
{{ money($order->subtotal) }}
@if ($order->discount_total)
Discount ({{ $order->coupon_code }})
−{{ money($order->discount_total) }}
@endif
Shipping · {{ $order->shipping_method_name }}
{{ money($order->shipping_total) }}
@if ($order->tax_total)
Tax
{{ money($order->tax_total) }}
@endif
Total
{{ money($order->total) }}
@if ($order->refunded_total)
Refunded
−{{ money($order->refunded_total) }}
@endif
Timeline
@foreach ($order->history as $h)
@unless ($loop->last)@endunless $h->type === 'status', 'bg-white border-black' => $h->type === 'note', 'bg-acc border-acc' => $h->type === 'payment', 'bg-warn border-warn' => $h->type === 'system'])> {{ $h->note ?: ($h->to_status ? $S::from($h->to_status)->label() : ucfirst($h->type)) }} {{ $h->created_at->format('j M Y, H:i') }}@if ($h->user) · {{ $h->user->name }}@endif · {{ $h->type }}{{ $h->customer_visible ? ' · visible to customer' : '' }}
@endforeach
Payments
ReferenceStatusChannelAmountRefundedPaid @forelse ($order->payments as $p) {{ $p->reference }}{{ $p->status }}{{ $p->channel ?? '—' }}{{ money($p->amount) }}{{ $p->refunded_amount ? money($p->refunded_amount) : '—' }}{{ $p->paid_at?->format('j M, H:i') ?? '—' }} @empty No payment attempts. @endforelse @if ($order->refunds->isNotEmpty())
@foreach ($order->refunds as $r)Refund {{ money($r->amount) }} · {{ $r->status }} · {{ $r->reason }}{{ $r->restocked ? ' · restocked' : '' }} · {{ $r->user?->name }} · {{ $r->created_at->format('j M') }}@endforeach
@endif