@extends('layouts.app') @section('title', 'Room ' . $room->room_number) @section('breadcrumbs') @endsection @section('content')

Room {{ $room->room_number }}

{{ $room->roomType->name ?? 'N/A' }} - {{ $room->floor->name ?? 'N/A' }}

Edit Room
@csrf @method('DELETE')
@if($room->images && count($room->images) > 0)
Room
@if(count($room->images) > 1)
@foreach($room->images as $idx => $image) @endforeach
@endif
@else

No images available

@endif

Room Information

Bed Type

{{ $room->bed_type ?? 'N/A' }}

Max Occupancy

{{ $room->max_occupancy ?? 'N/A' }} guests

Rate per Night

${{ number_format($room->rate_per_night ?? 0, 2) }}

Current Status

@switch($room->status) @case('available') Available @break @case('occupied') Occupied @break @case('maintenance') Maintenance @break @case('reserved') Reserved @break @case('cleaning') Cleaning @break @endswitch
@if($room->description)

Description

{{ $room->description }}

@endif @if($room->amenities && count($room->amenities) > 0)

Amenities

@foreach($room->amenities as $amenity)
{{ $amenity }}
@endforeach
@endif
@if(isset($reservations) && count($reservations) > 0)

Reservation History

@foreach($reservations as $reservation) @endforeach
Reservation ID Guest Check-in Check-out Status
#{{ $reservation->id }} {{ $reservation->guest_name ?? 'N/A' }} {{ $reservation->check_in_date->format('M d, Y') ?? 'N/A' }} {{ $reservation->check_out_date->format('M d, Y') ?? 'N/A' }} @switch($reservation->status) @case('confirmed') Confirmed @break @case('checked_in') Checked In @break @case('checked_out') Checked Out @break @case('cancelled') Cancelled @break @endswitch
@endif
@if($room->status === 'occupied' && isset($currentReservation))

Current Guest

Guest Name

{{ $currentReservation->guest_name ?? 'N/A' }}

Email

{{ $currentReservation->email ?? 'N/A' }}

Phone

{{ $currentReservation->phone ?? 'N/A' }}

Check-out Date

{{ $currentReservation->check_out_date->format('M d, Y') ?? 'N/A' }}

View Reservation
@endif

Quick Actions

Create Reservation

Room Summary

Room Type: {{ $room->roomType->name ?? 'N/A' }}
Floor: {{ $room->floor->name ?? 'N/A' }}
Capacity: {{ $room->max_occupancy ?? 'N/A' }} guests
Nightly Rate: ${{ number_format($room->rate_per_night ?? 0, 2) }}
@endsection