Properties

Add Property
@foreach ($properties as $property) @php $unitCount = $property->units->count(); $roomCount = $property->units->sum( fn($unit) => $unit->bedroom + $unit->kitchen + $unit->bath, ); @endphp
{{ $property->name }}
{{ $property->name }}
{{ $property->units->count() }} Unit
{{ $property->units->sum(fn($unit) => $unit->bedroom + $unit->kitchen + $unit->bath) }} Rooms
@if (auth()->user()?->isAdmin())

Owner: {{ optional($property->owner)->name ?? '—' }}

@endif

{{ Str::limit($property->description, 100) }}

{{ ucfirst($property->type) }} Property
@endforeach