@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); $ppeItems = $order['ppe_items'] ?? []; $delegateName = trim(($delegate['first_name'] ?? '').' '.($delegate['last_name'] ?? '')); @endphp # Joining instructions Hi {{ $delegateName ?: 'there' }}, You're booked onto **{{ $order['course_title'] ?? 'a course' }}**. Here's everything you need to know before your course date. **Course:** {{ $order['course_title'] ?? '—' }}
**Booking reference:** {{ $order['booking_ref'] ?? '—' }}
**Start date:** {{ $startDate }}
@if ($endDate) **End date:** {{ $endDate }}
@endif **Duration:** {{ $days }} day{{ $days > 1 ? 's' : '' }}
**Registration:** Please arrive 15 minutes before the start time
## Where @if ($order['venue_name'] ?? null) **{{ $order['venue_name'] }}**
@if ($order['venue_address'] ?? null) {{ $order['venue_address'] }} @endif @else The venue will be confirmed shortly. We'll be in touch with full details before the course date. @endif @if (!empty($order['course']['facilities'])) **Facilities:** {{ $order['course']['facilities'] }} @endif @if ($order['trainer_name'] ?? null) **Trainer:** {{ $order['trainer_name'] }} @endif @if (!empty($ppeItems)) ## PPE requirements The following PPE is required for this course. Please make sure you arrive with the correct equipment — without it you may not be able to take part in practical sessions. @foreach ($ppeItems as $item) - {{ $item }} @endforeach @endif @if (!empty($order['course']['certification'])) ## Certification {{ $order['course']['certification'] }} @endif If anything's unclear, just reply to this email. See you on the course,
{{ config('app.name') }}