@extends('admin.layouts.master') @section('title', 'Booking Management') @section('parent_title', 'Dashboard') @section('content')
@foreach($bookings as $booking) @endforeach
S.No Customer Hotel Property Room Name Dates Grid Total Amount Status Actions
{{ $loop->iteration }}
{{ $booking->user->full_name ?? 'N/A' }} {{ $booking->user->email ?? '' }}
{{ $booking->hotel->hotel_name ?? 'Independent Property' }} {{ $booking->hotel->city ?? '' }}
{{ $booking->room->room_type ?? '' }}
IN: {{ \Carbon\Carbon::parse($booking->check_in_date)->format('d M Y - h:i A') }} OUT: {{ \Carbon\Carbon::parse($booking->check_out_date)->format('d M Y - h:i A') }}
INR {{ number_format($booking->total_price, 2) }} @php $statusClass = 'warning'; $statusLabel = ucfirst($booking->status); switch (strtolower($booking->status)) { case 'confirmed': case 'approved': $statusClass = 'success'; break; case 'pending': $statusClass = 'warning'; break; case 'checked_in': $statusClass = 'primary'; $statusLabel = 'Checked In'; break; case 'checked_out': $statusClass = 'info'; $statusLabel = 'Checked Out'; break; case 'rejected': case 'cancelled': $statusClass = 'danger'; break; } @endphp {{ $statusLabel }} Actions
Showing {{ $bookings->firstItem() }} to {{ $bookings->lastItem() }} of {{ $bookings->total() }} entries
{{ $bookings->links() }}
@section('scripts') @endsection @endsection