@extends('layouts.admin') @section('title', 'Booking Management') @section('content')

Booking Management

Manage all bookings from visitors and manual entries

@if(request()->hasAny(['search', 'date_from', 'date_to', 'source', 'status'])) Clear @endif
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@forelse($bookings as $booking) @empty @endforelse
Customer Room Contact Check In Check Out Booking Date Source Actions
{{ $booking->full_name }}
{{ $booking->location }}
{{ $booking->room->name }} @if($booking->room->room_number) (Room #{{ $booking->room->room_number }}) @endif
${{ number_format($booking->room->price, 2) }}/night
{{ $booking->email }}
{{ $booking->phone }}
{{ $booking->check_in ? $booking->check_in->format('M d, Y') : '-' }}
{{ $booking->check_out ? $booking->check_out->format('M d, Y') : '-' }}
{{ $booking->booking_date ? $booking->booking_date->format('M d, Y') : '-' }}
@if($booking->status === 'confirmed') Confirmed (Paid) @elseif($booking->status === 'confirmed_no_payment') Confirmed (Unpaid) @elseif($booking->status === 'pending') Pending @else Cancelled @endif
{{ $booking->booking_source ?? 'Website' }}
@if($booking->status !== 'confirmed') @endif
No bookings found. Create one now
{{-- Previous Page Link --}} @if ($bookings->onFirstPage()) @else @endif {{-- Page Info --}} Showing {{ $bookings->firstItem() ?? 0 }}-{{ $bookings->lastItem() ?? 0 }} of {{ $bookings->total() }} {{ $bookings->total() == 1 ? 'booking' : 'bookings' }} {{-- Next Page Link --}} @if ($bookings->hasMorePages()) @else @endif

Booking Details

Loading booking details...

Edit Booking

@csrf @method('PUT')

Loading booking data...

Add New Booking

@csrf

Only approved rooms are available for booking.

Must be at least one day after check-in date.

@endsection