@extends('admin-layouts.master') @section('title', $title) @section('content')

{{ $title }}

{{ $subtitle }}

Total Kamar
{{ $statistics['total_rooms'] }}
Tersedia
{{ $statistics['available_rooms'] }}
{{ $statistics['total_rooms'] > 0 ? round(($statistics['available_rooms']/$statistics['total_rooms'])*100, 1) : 0 }}%
Terisi
{{ $statistics['occupied_rooms'] }}
{{ $statistics['occupancy_rate'] }}% Okupansi
Maintenance
{{ $statistics['maintenance_rooms'] + $statistics['cleaning_rooms'] }}
{{ $statistics['maintenance_rooms'] }} Maintenance, {{ $statistics['cleaning_rooms'] }} Cleaning
@if($today_bookings['total_check_ins'] > 0 || $today_bookings['total_check_outs'] > 0)
Aktivitas Hari Ini
{{ $today_bookings['total_check_ins'] }} Check-in
{{ $today_bookings['total_check_outs'] }} Check-out
@endif
Filter & Pencarian
Reset
@forelse($ms_rooms as $room)
{{ $room->typeRoom->name ?? 'Unknown Type' }}
{{ $room->max_capacity_adult }}
Dewasa
{{ $room->max_capacity_child }}
Anak
@if($room->typeRoom)
Harga per malam: Rp {{ number_format($room->typeRoom->harga_per_malam, 0, ',', '.') }}
@if($room->typeRoom->harga_per_orang > 0)
Harga per orang: Rp {{ number_format($room->typeRoom->harga_per_orang, 0, ',', '.') }}
@endif
@endif @if($room->description)
{{ Str::limit($room->description, 80) }}
@endif
@empty
Tidak ada kamar ditemukan

@if(request()->hasAny(['search', 'status', 'type_room_id'])) Coba ubah filter pencarian atau reset filter @else Tambah Kamar Pertama @endif

@endforelse
@if($ms_rooms->hasPages())
{{ $ms_rooms->links() }}
@endif
@csrf @method("DELETE")
@endsection @push('scripts') @endpush