← All orders

{{ $order->order_number }}

{{ $order->customer?->name ?? 'Unknown customer' }} · placed {{ $order->placed_at?->format('d M Y H:i') ?? '—' }}

{{ $order->status->label() }}
@foreach ([ 'Subtotal' => $order->subtotal, 'Discount' => $order->discount_total, 'Tax' => $order->tax_total, 'Total' => $order->total, ] as $label => $amount)
{{ $order->currency }} {{ number_format((float) $amount, 2) }}
{{ $label }}
@endforeach
What was bought
@foreach ($order->items as $item) @endforeach
Line Type Term Qty Total Delivered as
{{ $item->description }} {{-- The domain a hosting line is for: needed to set the account up, and for the customer's own domain it is held nowhere else. --}} @if ($item->item_type === \App\Enums\OrderItemType::HOSTING && filled($item->domain_name))
for {{ $item->domain_name }}
@endif
{{ $item->item_type->label() }} {{ $item->billing_interval?->termLabel($item->billing_interval_count) ?? '—' }} {{ $item->quantity }} {{ number_format((float) $item->total, 2) }} @if ($item->domain) {{ $item->domain->domain_name }} @elseif ($item->hostingService) Service #{{ $item->hostingService->id }} @elseif ($order->status->isOpen()) recorded once paid @else nothing recorded — check the log @endif
Billing
@if ($order->invoice)
{{ $order->invoice->invoice_number }} {{ $order->invoice->status->value }} · due {{ $order->invoice->due_date?->format('d M Y') ?? '—' }} @if ($order->invoice->paid_at) · paid {{ $order->invoice->paid_at->format('d M Y H:i') }} @endif
@forelse ($order->invoice->payments as $payment)
{{ $payment->transaction_reference }} {{ $payment->gateway }} · {{ $payment->status->value }} · {{ $payment->currency }} {{ number_format((float) $payment->amount, 2) }}
@empty
No payment recorded against this invoice yet.
@endforelse @else
No invoice has been raised for this order.
@endif