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

Room Management

Manage and approve room listings

@forelse($rooms as $room) @empty @endforelse
Name Description Price Status Category Actions
{{ $room->name }}@if($room->room_number) (Room #{{ $room->room_number }})@endif
{{ \Illuminate\Support\Str::limit($room->description, 30) }}
${{ number_format($room->price, 2) }}
@if($room->status === 'approved') Approved @elseif($room->status === 'pending') Pending @else Rejected @endif @if($room->room_category) {{ ucfirst($room->room_category) }} @else - @endif
@if(auth()->user()->canApprove() && $room->status === 'pending')
@csrf
@csrf
@endif
@csrf @method('DELETE')
No rooms found. Create one now
{{-- Previous Page Link --}} @if ($rooms->onFirstPage()) @else @endif {{-- Page Info --}} Showing {{ $rooms->firstItem() ?? 0 }}-{{ $rooms->lastItem() ?? 0 }} of {{ $rooms->total() }} {{ $rooms->total() == 1 ? 'room' : 'rooms' }} {{-- Next Page Link --}} @if ($rooms->hasMorePages()) @else @endif

Room Details

Loading room details...

Edit Room

@csrf @method('PUT')

Loading room data...

Add New Room

@csrf

Optional: Room number will be displayed with the room name.

Select accommodation type or conference facility.

Selected images will appear here. Click "Add More" to select additional images.

You can upload multiple images and manage them as needed.

@php $amenities = [ 'breakfast' => ['icon' => 'fa-utensils', 'label' => 'Breakfast'], 'lunch' => ['icon' => 'fa-utensils', 'label' => 'Lunch'], 'dinner' => ['icon' => 'fa-utensils', 'label' => 'Dinner'], 'wifi' => ['icon' => 'fa-wifi', 'label' => 'Free WiFi'], 'ict' => ['icon' => 'fa-laptop', 'label' => 'ICT Facilities'], 'parking' => ['icon' => 'fa-car', 'label' => 'Free Parking'], 'air_conditioning' => ['icon' => 'fa-snowflake', 'label' => 'Air Conditioning'], 'tv' => ['icon' => 'fa-tv', 'label' => 'TV'], 'balcony' => ['icon' => 'fa-home', 'label' => 'Balcony'], 'kitchen' => ['icon' => 'fa-kitchen-set', 'label' => 'Kitchen'], 'bathroom' => ['icon' => 'fa-bath', 'label' => 'Private Bathroom'], 'laundry' => ['icon' => 'fa-shirt', 'label' => 'Laundry Service'], 'room_service' => ['icon' => 'fa-bell', 'label' => 'Room Service'], 'security' => ['icon' => 'fa-shield', 'label' => '24/7 Security'], ]; @endphp @foreach($amenities as $key => $amenity) @endforeach

Select amenities included with this room to attract customers.

@endsection