@extends('layout.ext-app') @section('content') @php($r = $reservation)

Booking {{ $r->reference }}

{{ $r->status->label() }} {{ ucfirst(str_replace('_', ' ', $r->payment_status)) }}

@if($payUrl)
Your rooms are held until {{ $r->expires_at->timezone(config('bedspace.timezone'))->format('H:i') }} (Sri Lanka time). Complete the payment to confirm the booking.
@csrf
@endif
{{ $r->property->property_name }}

{{ $r->property->address }}

Check-in: {{ $r->check_in->format('D, d M Y') }}

Check-out: {{ $r->check_out->format('D, d M Y') }}

Guest: {{ $r->guest_name }} · {{ $r->guest_email }} · {{ $r->guest_phone }}

@if($r->special_requests)

Requests: {{ $r->special_requests }}

@endif

Payment: {{ $r->payment_method->label() }}

@if($r->property->primaryContact)

Property contact: {{ $r->property->primaryContact->name }}, {{ $r->property->primaryContact->mobile }}

@endif
Cancellation policy

{{ $cancellationPolicy }}

@if($r->status === \App\Enums\ReservationStatus::Cancelled)

Cancelled{{ (float) $r->refund_due > 0 ? ' ยท refund due '.$r->money($r->refund_due) : '' }}.

@elseif($cancelUrl)
@csrf {{ $refundableNow ? 'Free cancellation applies today.' : 'No refund applies if you cancel now.' }}
@endif
Invoice
@foreach($r->rooms as $line) @foreach($line->discounts as $discount) @endforeach @endforeach
{{ $line->roomType->roomType }} × {{ $line->rooms }}
{{ $line->occupancy->occupancy_name }}, {{ $line->mealType->mealType }}
{{ number_format($line->subtotal, 2) }}
{{ $discount->description }}− {{ number_format($discount->amount, 2) }}
Total{{ $r->money($r->total) }}
@if((float) $r->amount_paid > 0)

Paid: {{ $r->money($r->amount_paid) }}

@endif @if($r->payment_method === \App\Enums\PaymentMethod::PayAtHotel && $r->outstanding() > 0)

{{ $r->money($r->outstanding()) }} payable at the property.

@endif
@stop @section('styles') @include('public._styles') @stop