Room Management

All Rooms
Add New Room
@if(session('success'))
{{ session('success') }}
@endif
Total Rooms

{{ $kamar->count() }}

Available

{{ $kamar->where('status', 'available')->count() }}

Unavailable

{{ $kamar->where('status', '!=', 'available')->count() }}

@forelse($kamar as $key => $k) @empty @endforelse
No Photo Property Room Type Price/Night Capacity Units Status Actions
{{ $key + 1 }} @if($k->galleries && $k->galleries->count() > 0) {{ $k->tipe_kamar }} @if($k->galleries->count() > 1)
{{ $k->galleries->count() }}
@endif @elseif($k->foto) {{ $k->tipe_kamar }} @else No Image @endif
{{ $k->property->nama_property }}
{{ ucfirst($k->property->jenis) }}
{{ $k->tipe_kamar }}
Rp {{ number_format($k->harga_per_malam, 0, ',', '.') }} {{ $k->kapasitas }} {{ $k->jumlah_kamar }} Unit @if($k->status == 'available') Available @else Unavailable @endif
@csrf @method('DELETE')

No room data available.

Add First Room
@forelse($kamar as $key => $k)
@if($k->galleries && $k->galleries->count() > 0) {{ $k->tipe_kamar }} @if($k->galleries->count() > 1)
{{ $k->galleries->count() }} Photos
@endif @elseif($k->foto) {{ $k->tipe_kamar }} @else No Image @endif
{{ $k->tipe_kamar }}
{{ $k->property->nama_property }} {{ ucfirst($k->property->jenis) }}
@if($k->status == 'available') Available @else Unavailable @endif
Price/Night Rp {{ number_format($k->harga_per_malam, 0, ',', '.') }}
Capacity {{ $k->kapasitas }} Person(s)
Available Units {{ $k->jumlah_kamar }} Units
View Edit
@csrf @method('DELETE')
@empty

No room data available.

Add First Room
@endforelse