Property Management

All Properties
Add New Property
@if(session('success'))
{{ session('success') }}
@endif
Total Properties

{{ $properties->count() }}

Villas

{{ $properties->where('jenis', 'villa')->count() }}

Hotels

{{ $properties->where('jenis', 'hotel')->count() }}

Total Rooms

{{ $properties->sum('kamar_count') }}

@forelse($properties as $key => $p) @empty @endforelse
No Photo Property Name Type City Total Rooms Status Actions
{{ $key + 1 }} @if($p->foto) {{ $p->nama_property }} @else No Image @endif {{ $p->nama_property }} {{ ucfirst($p->jenis) }} {{ $p->kota ?? '-' }} {{ $p->kamar_count }} @if($p->status == 'active') Active @else Inactive @endif
@csrf @method('DELETE')

No property data available.

Add First Property
@forelse($properties as $key => $p)
@if($p->foto) {{ $p->nama_property }} @else No Image @endif
{{ ucfirst($p->jenis) }}
{{ $p->nama_property }}
{{ $p->kota ?? 'Not specified' }}
@if($p->status == 'active') Active @else Inactive @endif
Total Rooms {{ $p->kamar_count }} rooms
View Edit
@csrf @method('DELETE')
@empty

No property data available.

Add First Property
@endforelse