@extends('emails.layout') @section('document-title') @yield('title') — {{ $details['number'] }} @endsection @section('content') @php $isConfirmation = $isConfirmation ?? false; $fields = $isConfirmation ? ['Order number' => 'number', 'Company' => 'company', 'Community' => 'department', 'Ordered by' => 'creator', 'Order Date' => 'date', 'Status' => 'status'] : ['Order number' => 'number', 'Company' => 'company', 'Community' => 'department', 'Created by' => 'creator', 'Order date/time' => 'date', 'Current status' => 'status']; @endphp @foreach ($fields as $label => $field) @endforeach
{{ $label }} {{ $details[$field] ?? '—' }} @if ($field === 'creator' && $details['creator_email'])
{{ $details['creator_email'] }}
@endif
@if (!empty($details['shipping_address']))

Shipping address: {{ $details['shipping_address'] }}

@endif

{{ $isConfirmation ? 'Order Summary' : 'Order items' }}

@if ($showAmounts || $isConfirmation) @endif @foreach ($details['items'] as $item) @if ($showAmounts || $isConfirmation) @endif @endforeach @if ($showAmounts || $isConfirmation) @endif
{{ $isConfirmation ? 'Item' : 'Product / variant' }} {{ $isConfirmation ? 'Quantity' : 'Qty' }}{{ $isConfirmation ? 'Total Units' : 'Total' }}
{{ $item['name'] }} @if ($item['variant'])
{{ $item['variant'] }}
@endif @if ($item['size'])
Size: {{ $item['size'] }}
@endif
{{ $item['quantity_label'] }}{{ $isConfirmation ? $item['quantity_label'] : ($item['total'] ?? '—') }}
{{ $isConfirmation ? 'Total Units' : 'Total' }} {{ $details['quantity_label'] }}{{ $isConfirmation ? $details['quantity_label'] : ($details['total'] ?? '—') }}
@if (! $isConfirmation && $showAmounts && $details['total'] === null)

An amount is unavailable because pricing has not been recorded for every item.

@endif @if ($details['status'] === 'Shipped' && ($details['courier'] || $details['tracking_id']))

@if ($details['courier'])Courier: {{ $details['courier'] }}
@endif @if ($details['tracking_id'])Tracking ID: {{ $details['tracking_id'] }}@endif

@endif

If the button does not work, open:
@if ($isConfirmation)Button not working? Copy and paste this link into your browser: @endif{{ $orderUrl }}

@endsection