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
@if (auth()->user()?->isAdmin())
@endforeach
{{ $property->name }}
{{ $property->units->count() }} Unit
{{ $property->units->sum(fn($unit) => $unit->bedroom + $unit->kitchen + $unit->bath) }}
Rooms
Owner: {{ optional($property->owner)->name ?? '—' }}
@endif{{ Str::limit($property->description, 100) }}
{{ ucfirst($property->type) }} Property