@extends('admin.layouts.app') @section('title', 'Room Details') @section('page-title', 'Room ' . $room->room_number) @section('content')

Room {{ $room->room_number }}

{{ $room->roomType?->name }} - Floor {{ $room->floor }}

@php $statusClass = match($room->status) { 'available' => 'bg-green-100 text-green-700', 'occupied' => 'bg-blue-100 text-blue-700', 'maintenance' => 'bg-yellow-100 text-yellow-700', 'dirty' => 'bg-red-100 text-red-700', default => 'bg-gray-100 text-gray-700', }; @endphp {{ ucfirst($room->status) }}

Room Type

{{ $room->roomType?->name }}

Price/Night

₦ {{ number_format($room->roomType?->base_price ?? 0, 0) }}

Beds

{{ $room->roomType?->total_beds }}

@if($room->description)

Description

{{ $room->description }}

@endif
Edit Room
@csrf @method('DELETE')

Current Guest

@forelse($room->bookings as $booking) @if($booking->booking_status == 'checked_in')

{{ $booking->guest_name }}

{{ $booking->guest_phone }}

Check-in: {{ $booking->check_in_date->format('M d, Y') }}

Check-out: {{ $booking->check_out_date->format('M d, Y') }}

View Folio
@endif @empty

No active guest

@endforelse

Booking History

@forelse($room->bookings as $booking) @empty @endforelse
Guest Check-in Check-out Status
{{ $booking->guest_name }} {{ $booking->check_in_date->format('M d, Y') }} {{ $booking->check_out_date->format('M d, Y') }} {{ ucfirst(str_replace('_', ' ', $booking->booking_status)) }}
No booking history
@endsection