@extends('layouts.admin') @section('title', $booking ? 'Edit Booking '.$booking->booking_no : 'New Hotel / Resort Booking') @section('content') @unless($booking) @include('admin.partials.stay-booking-tabs', ['active' => 'resort']) @endunless @include('admin.resorts.errors') @unless($booking)
@endunless @if($resort)
@csrf @if($booking) @method('PUT') @endif @if($booking)@endif
{{ $resort->name }} — {{ $resort->booking_mode }}
@if($booking)
{{ $booking->booking_no }} · {{ $booking->status }} · Paid {{ $booking->paid }} of {{ $booking->grand_total }}. The price is recalculated only if you change the dates, rooms, guests, discount or price overrides; editing contact details or notes keeps the agreed price.
@endif
@foreach(['check_in','check_out'] as $key)
status === 'CHECKED_IN')>
@endforeach @unless($booking)
@endunless @foreach(['name','phone','email','address'] as $key)
@endforeach
Rooms & Guest Allocation

Add each physical room separately. Children need one age each. Capacity is checked per room.

@if(\App\Http\Controllers\Admin\ResortController::allowed('price-override'))
Authorized nightly price overrides

Leave blank to use configured nightly rates. An override applies to every occupied night for this room type.

@foreach($resort->rooms as $room)
{{ $room->name }}
@if($costAccess)
@endif
@endforeach
@endif
@if($booking)
@endif
@if($booking) Cancel@endif
@endif @endsection @push('scripts') @if($resort) @php $roomOptions = $resort->rooms->map(fn($r) => $r->only(['id', 'name', 'max_adults', 'max_children', 'max_guests'])); $initialSelection = old('rooms', $booking?->rooms->map(fn($r) => ['room_id' => $r->resort_room_id, 'allocations' => $r->allocations])->all() ?? []); @endphp @endif @endpush