@php $startDate = !empty($order['start_date']) ? \Carbon\Carbon::parse($order['start_date'])->format('l j F Y') : '—'; $endDate = !empty($order['end_date']) ? \Carbon\Carbon::parse($order['end_date'])->format('l j F Y') : null; $days = (int) ($order['course']['days'] ?? 1); $delegateRows = $order['delegates'] ?? []; $netCents = (int) ($order['price_cents'] ?? 0); $vatCents = \App\Support\Vat::vatCents($netCents); $grossCents = \App\Support\Vat::grossCents($netCents); @endphp # Booking confirmed Hi {{ $order['customer_name'] ?? 'there' }}, Thanks for booking with us. Your place is reserved and payment has been received. **Booking reference:** {{ $order['booking_ref'] ?? '—' }} **{{ $order['course_title'] ?? 'Your course' }}** **Start date:** {{ $startDate }}
@if ($endDate) **End date:** {{ $endDate }}
@endif **Duration:** {{ $days }} day{{ $days > 1 ? 's' : '' }}
**Delegates:** {{ $order['num_delegates'] ?? 1 }}
**Subtotal (ex VAT):** £{{ number_format($netCents / 100, 2) }}
**VAT (20%):** £{{ number_format($vatCents / 100, 2) }}
**Total paid (incl. VAT):** £{{ number_format($grossCents / 100, 2) }}
**Payment method:** {{ ucfirst($order['payment_method'] ?? 'stripe') }}
@if ($order['venue_name'] ?? null) ## Venue **{{ $order['venue_name'] }}**
@if ($order['venue_address'] ?? null) {{ $order['venue_address'] }} @endif @endif @if (!empty($delegateRows)) ## Registered delegates | Name | Email | | :--- | :---- | @foreach ($delegateRows as $d) | {{ $d['first_name'] }} {{ $d['last_name'] }} | {{ $d['email'] ?: '—' }} | @endforeach Each delegate with an email address has been sent their personal joining instructions, including PPE requirements and venue details. @else Joining instructions will be sent closer to the course date. @endif If you have any questions about your booking, just reply to this email. Thanks,
{{ config('app.name') }}