@if (session('status'))
{{ session('status') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
Reservations / {{ $reservation->confirmation_number }}
@php $colorClasses = match ($reservation->status_color) { 'green' => 'bg-green-100 text-green-700', 'blue' => 'bg-blue-100 text-blue-700', 'yellow' => 'bg-yellow-100 text-yellow-700', 'orange' => 'bg-orange-100 text-orange-700', 'red' => 'bg-red-100 text-red-700', 'gray' => 'bg-sand-200 text-ink-soft', default => 'bg-sand-200 text-ink-soft', }; @endphp

{{ $reservation->confirmation_number }} {{ $reservation->status_label }}

{{ $reservation->check_in_date->format('d M Y') }} → {{ $reservation->check_out_date->format('d M Y') }} · {{ $reservation->nights }} nights · {{ $reservation->total_guests }} guest{{ $reservation->total_guests > 1 ? 's' : '' }}

@if ($reservation->status === \App\Models\Reservation::STATUS_PENDING) @can('reservations.edit') @endcan @endif @if ($reservation->canCheckIn()) @can('front-desk.check-in') @endcan @endif @if ($reservation->canCheckOut()) @can('front-desk.check-out') @endcan @endif @if ($reservation->status === \App\Models\Reservation::STATUS_CONFIRMED && $reservation->check_in_date->isPast()) @can('reservations.edit') @endcan @endif @if ($reservation->canBeModified()) @can('reservations.edit') @include('layouts.partials.icon', ['name' => 'edit', 'class' => 'w-4 h-4']) Edit @endcan @endif @if ($reservation->canBeCancelled()) @can('reservations.cancel') @endcan @endif
@if ($showCancelDialog)

Cancel reservation

This will mark the reservation as cancelled. Optional reason for the audit trail:

@endif @if ($showCheckInDialog)

Assign room & check in

Select a {{ $reservation->roomType?->name }} room to assign:

@if ($availableRooms->isEmpty())
No clean rooms of this type are currently available. Free up a room (housekeeping) or change the reservation type first.
@else
@foreach ($availableRooms as $room) @endforeach
@endif
@endif

Stay details

Room type
{{ $reservation->roomType?->name }}
Assigned room
{{ $reservation->room?->room_number ?? '— not assigned' }}
Source
{{ \App\Models\Reservation::SOURCES[$reservation->source] ?? '—' }}
Created by
{{ $reservation->createdBy?->name ?? '—' }}
@if ($reservation->actual_check_in)
Checked in
{{ $reservation->actual_check_in->format('d M Y H:i') }}
@endif @if ($reservation->actual_check_out)
Checked out
{{ $reservation->actual_check_out->format('d M Y H:i') }}
@endif @if ($reservation->cancelled_at)
Cancelled
{{ $reservation->cancelled_at->format('d M Y H:i') }}
@if ($reservation->cancellation_reason)
{{ $reservation->cancellation_reason }}
@endif
@endif
@if ($reservation->special_requests)

Special requests

{{ $reservation->special_requests }}

@endif

Guest

@if ($reservation->guest)
{{ mb_substr($reservation->guest->first_name, 0, 1) }}{{ mb_substr($reservation->guest->last_name, 0, 1) }}
{{ $reservation->guest->full_name }}
{{ $reservation->guest->guest_number }}
Email
{{ $reservation->guest->email ?: '—' }}
Phone
{{ $reservation->guest->phone ?: '—' }}
@endif

Charges

Total
${{ number_format($reservation->total_amount, 2) }}
Paid
${{ number_format($reservation->paid_amount, 2) }}
Balance
${{ number_format($reservation->balance, 2) }}
@if ($reservation->folio)

Folio {{ $reservation->folio->folio_number }} · {{ \App\Models\Folio::STATUSES[$reservation->folio->status] ?? '' }}

@endif