@php $isFavorite = in_array((int) $property->id, $favoriteIds, true); $isManaged = in_array((int) $property->id, $managedPropertyIds, true); $imagePath = optional($property->images->first())->file_path; $features = array_slice(array_filter($property->features ?? []), 0, 3); $statusClass = in_array($property->status, ['available', 'active'], true) ? 'text-bg-success' : ($property->status === 'under_review' ? 'text-bg-danger' : 'text-bg-light'); @endphp
{{ \Illuminate\Support\Str::limit($property->description ?: 'No property description available.', 150) }}