@php use App\Enums\BookingStatus; use App\Support\Money; $paid = $booking->paidAmount(); $balance = $booking->balance(); $validPayments = $booking->payments->whereNull('voided_at'); $fees = $validPayments->sum('platform_fee'); @endphp
← Calendar

{{ $booking->guest->name }}

{{ $booking->status->label() }}

Room {{ $booking->room->name }} · {{ $booking->room->property->name }}

@if ($canEdit && $booking->status->isEditable()) Edit @endif
@error('status') @enderror @if ($canEdit && $booking->status->next())
@foreach ($booking->status->next() as $next) @if ($next === BookingStatus::Cancelled) @else @endif @endforeach
@endif
Check-in
{{ $booking->check_in->format('D j M Y') }}
Check-out
{{ $booking->check_out->format('D j M Y') }}
Nights
{{ $booking->nights() }}
Guests
{{ $booking->guests_count }}
Phone
@if ($booking->guest->phone) {{ $booking->guest->phone }} @else — @endif
Email
{{ $booking->guest->email ?? '—' }}
ID number
{{ $booking->guest->id_number ?? '—' }}
Source
{{ $booking->source->label() }}
@if ($booking->notes)

{{ $booking->notes }}

@endif
{{-- Money --}}

Payments

{{ trans_choice(':count night|:count nights', $booking->nights()) }} × {{ Money::format($booking->nightly_rate) }}
{{ Money::format($booking->subtotal()) }}
@if ($booking->extras)
Extras
{{ Money::format($booking->extras) }}
@endif @if ($booking->discount)
Discount
−{{ Money::format($booking->discount) }}
@endif
Total
{{ Money::format($booking->total) }}
Paid
{{ Money::format($paid) }}
@if ($fees)
Platform fees
−{{ Money::format($fees) }}
Net received
{{ Money::format($validPayments->sum(fn ($p) => $p->netAmount())) }}
@endif
$balance > 0, 'text-emerald-700' => $balance === 0 && ! $booking->isCancelled()])> @if ($booking->isCancelled())
Cancelled
{{ $paid > 0 ? Money::format($paid).' kept' : 'Nothing owed' }}
@elseif ($balance < 0)
Overpaid
{{ Money::format(-$balance) }}
@elseif ($balance === 0)
Paid in full
{{ Money::format(0) }} due
@else
Balance due
{{ Money::format($balance) }}
@endif
@if ($canPay && ! $showPaymentForm)
@if ($balance > 0) @endif @if ($paid > 0 && ($booking->isCancelled() || $balance < 0)) @endif
@endif @if ($showPaymentForm)

{{ $pay_kind === 'refund' ? 'Record refund' : 'Record payment' }}

@if ($pay_kind === 'payment') @endif
@endif @if ($booking->payments->isNotEmpty()) @endif
{{-- Multi-room group --}} @if ($group->isNotEmpty() || $canBookMore)

Other rooms for this guest

@if ($canBookMore) Add another room @endif
@if ($group->isNotEmpty())

Group {{ $booking->group_reference }}

@else

If this guest takes more rooms, add each one here so the bookings stay linked.

@endif
@endif

Booked {{ $booking->created_at->format('j M Y, H:i') }}@if ($booking->creator) by {{ $booking->creator->name }}@endif @if ($booking->cancelled_at) · Cancelled {{ $booking->cancelled_at->format('j M Y, H:i') }}@endif