Room Details

Room {{ $room->room_number }}

{{ $room->roomType->name ?? 'No Type' }}

{{ ucfirst($room->status) }} @if($room->has_active_maintenance) Under Maintenance @endif Floor {{ $room->floor }} {{ $room->capacity }} Guests

UGX {{ number_format($room->price_per_night, 2) }} / night

@if($room->has_active_maintenance) Add Maintenance @else Request Maintenance @endif
@if($room->has_active_maintenance)
Active Maintenance Requests

This room has {{ $room->activeMaintenanceRequests->count() }} active maintenance request(s).

View Details
@endif
Room Images
@if($room->images && count($room->images) > 0)
@foreach($room->images as $index => $image) Room {{ $room->room_number }} - Image {{ $index + 1 }} @endforeach
@else

No images available for this room.

@endif
Room Information
Room Number: {{ $room->room_number }}
Floor: {{ $room->floor }}
Room Type: {{ $room->roomType->name ?? 'No Type' }}
Category: {{ $room->category ?? 'No Category' }}
Capacity: {{ $room->capacity }} Guests
Price per Night: UGX {{ number_format($room->price_per_night, 2) }}
Status: {{ ucfirst($room->status) }}
@if($room->has_active_maintenance)
Maintenance Status: Active Maintenance
@endif
Amenities
@if($room->amenities && count($room->amenities) > 0)
@foreach($room->amenities as $amenity) {{ $amenity }} @endforeach
@else

No amenities listed for this room.

@endif
Description
@if($room->description)

{{ $room->description }}

@else

No description available for this room.

@endif
Maintenance History Summary View Full History

{{ $room->maintenanceRequests->count() }}

Total Requests

{{ $room->activeMaintenanceRequests->count() }}

Active Requests

{{ $room->maintenanceRequests->where('status', 'completed')->count() }}

Completed

{{ $room->maintenanceRequests->where('maintenance_type', 'repair')->count() }}

Repair Requests

@if($room->maintenanceRequests->count() > 0)
Recent Maintenance Requests:
@foreach($room->maintenanceRequests->take(5) as $maintenance) @endforeach
Title Type Priority Status Reported Date Action
{{ Str::limit($maintenance->title, 30) }} {{ $maintenance->maintenance_type }} {{ ucfirst($maintenance->priority) }} {{ ucfirst(str_replace('_', ' ', $maintenance->status)) }} {{ $maintenance->reported_date->format('M j, Y') }} View
@else

No maintenance history for this room.

Create First Request
@endif