@extends('portal.portal-layout') @section('pages-content')

Bookings

@svg('img/icons/home') Home @svg('img/icons/breadcrumb-delimiter') {{ $child->full_name }}
{{ $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(session()->has('draft-saved'))--}} {{-- --}} {{-- @endif--}}
@svg('img/icons/currency-pound-circle') Payments
@foreach($booking->payments as $payment) @endforeach
Paid
{{ $payment->paid_at->format(config('formats.datetime.short-date')) }} {{ \App\Enums\PaymentType::getDescription($payment->type) }} {{ $payment->formatAsMoney() }}
Total paid: {{ formatCurrency($booking->amountPaid() / 100) }}
@if($booking->paidInFull()) @else @foreach($booking->Instalments()->notPaid()->get() as $Instalment) @endforeach
Outstanding
Due {{ $Instalment->due->format(config('formats.datetime.short-date')) }} @if($Instalment->type == \App\Enums\InstalmentType::Deposit) {{ \App\Enums\InstalmentType::getDescription($Instalment->type) }} @endif {{ $Instalment->formatAsMoney() }}
Total outstanding: {{ formatCurrency($booking->amountOutstanding() / 100) }}
@endif
@php $overdueInstalments = $booking->Instalments()->overdue()->get(); $firstOverdueInstalment = $overdueInstalments->first(); $overdueInstalmentCount = $overdueInstalments->count(); @endphp @if($overdueInstalmentCount === 1) @endif @if($overdueInstalmentCount > 1) @endif @if(!$booking->paidInFull())
How to pay

When making your bank transfer please add your reference: {{ $booking->getPaymentReference() }}

{{ $booking->eventOption->event->campGroup->payment_description }}

@endif
@if($booking->is_return_form_sent)
@svg('img/icons/document') Return form
@if($booking->eventOption->returnFormDueDate()->lt(now())) @else @if(!$booking->returnForm->isSubmitted() && $booking->returnForm->isCompleted()) @endif @if($booking->returnForm->isSubmitted()) @endif @if($booking->returnForm->isSubmitted())

@endif @endif
@endif
@endsection