@php /** @var \Illuminate\Support\Collection<\App\Models\User> $attendees */ /** @var \App\Models\User $child */ @endphp

@svg('img/icons/calendar') {{ $title }}

@foreach($attendees as $child)
@foreach($child->bookings as $booking)
{{ $child->full_name }} {{ $booking->eventOption->event->name}} {{ $booking->eventOption->option }} {{ $booking->eventOption->start->format(config('formats.datetime.short-date-without-year')) }} - {{ $booking->eventOption->end->format(config('formats.datetime.short-date')) }}
@if($booking->paidInFull()) @endif

Balance

{{ formatCurrency($booking->amountPaid() / 100) }} paid {{ formatCurrency($booking->amountOutstanding() / 100) }} remaining
@if($booking->is_return_form_sent)

Return form

@if($booking->returnForm->isSubmitted()) Return form complete and submitted @else Due {{ $booking->eventOption->returnFormDueDate()->format(config('formats.datetime.short-date')) }} @if($booking->returnForm->isCompleted()) @else {{ $booking->returnForm->totalCompletedPercent()}}% completed @endif @endif
@endif
@php $overdueInstalments = $booking->Instalments()->overdue()->get(); $firstOverdueInstalment = $overdueInstalments->first(); $overdueInstalmentCount = $overdueInstalments->count(); @endphp @if($overdueInstalmentCount === 1) @endif @if($overdueInstalmentCount > 1) @endif
@endforeach
@endforeach