@extends('layouts.app') @section('title', 'New Reservation') @section('page_title', 'New Reservation') @section('page_subtitle', 'Create a new guest reservation') @section('nav_reservations', 'bg-teal-50 text-teal-700 font-semibold') @section('content') @php $roomsByFloor = $rooms->groupBy('floor')->sortKeys(); $floorOpenInit = array_fill_keys($roomsByFloor->keys()->toArray(), true); @endphp
Back to Reservations @if ($errors->any())

Please fix the following:

@endif
@csrf {{-- Hidden computed fields --}} {{-- ===== 1. STAY DETAILS ===== --}}
1

Stay Details

1 Night
{{-- ===== 2. ROOM SELECTION ===== --}}
2

Room Selection

{{-- Selected rooms summary badge --}} Group Booking

Select one room for a standard reservation, or multiple rooms to create a group booking under the same guest name.

@if ($rooms->isEmpty())

No available rooms at this time.

@else
@foreach ($roomsByFloor as $floor => $floorRooms)
{{-- Floor header --}} {{-- Room grid for this floor --}}
@foreach ($floorRooms as $room) @php $isAvailable = in_array($room['status'], ['available', 'clean']); @endphp @endforeach
@endforeach
@endif
{{-- ===== 3. GUEST INFORMATION ===== --}}
3

Guest Information

Applied to all rooms
@if(!$linkedGuest) Browse Guest Profiles → @endif
{{-- Linked guest profile banner --}} @if($linkedGuest)
{{ strtoupper(substr($linkedGuest->first_name, 0, 1)) }}{{ strtoupper(substr($linkedGuest->last_name, 0, 1)) }}

{{ $linkedGuest->full_name }}

Linked to guest profile #{{ $linkedGuest->id }} @if($linkedGuest->vip) · VIP @endif · {{ $linkedGuest->totalStays() }} past stay{{ $linkedGuest->totalStays() !== 1 ? 's' : '' }}

Unlink
@endif
+63
{{-- PH Discounts --}}
{{-- ===== 4. BOOKING DETAILS ===== --}}
4

Booking Details

{{-- ===== 5. DEPOSIT PAYMENT ===== --}}
5

Deposit Payment

{{-- Toggle only shown for single-room bookings --}}
{{-- Group booking: payment note --}}

For group bookings, payments and deposits are collected per room. After creating the group, open each individual reservation to add payments.

{{-- Single booking: no deposit --}}

No deposit will be collected at this time.

{{-- Single booking: deposit form --}}
Quick select: @foreach ([20, 30, 50] as $pct) @endforeach
%
Deposit amount to collect

₱0

{{-- ===== SUMMARY & ACTIONS ===== --}}
{{-- Single room summary --}} {{-- Group summary --}}
Cancel
@endsection