<?php
/**
 * @var \App\Model\Entity\Booking $booking
 */
$slot = $booking->slot ?? null;
$teacher = $booking->teacher ?? null;
?>
You're booked in, <?= $booking->customer_name ?>.

Thank you for your payment.

<?php if ($teacher): ?>
Teacher: <?= $teacher->full_name ?>

<?php endif; ?>
<?php if ($slot && $slot->starts_at): ?>
When: <?= $slot->starts_at->format('l, j F · g:i A') ?>

<?php endif; ?>
Class type: <?= ucfirst($slot->class_type ?? '—') ?>

Amount paid: A$<?= $booking->getAmountDollars() ?>

Booking ref: CC-<?= sprintf('%06d', (int)$booking->id) ?>


If you need to reschedule, just reply to this email at least 24 hours before your slot.

— CandleCraft Academy
