{{-- Deal Explorer — Grid Card Component Props: $property (PropertyData), $userId (nullable int) --}} @props(['property', 'userId' => null]) @php $isFavourited = $userId && $property->favourites->isNotEmpty(); $primaryImage = $property->primaryImage?->image_url; $hasSalePrice = !is_null($property->list_price); $hasRentPrice = !is_null($property->rent_price); $hasFmr = !is_null($property->fair_market_rent); $op = strtolower($property->operation ?? ''); $showSaleStatus = str_contains($op, 'sale'); $showRentStatus = str_contains($op, 'rent'); $isSaleOnly = $op === 'sale' || $op === 'for sale'; $isRentOnly = $op === 'rent' || $op === 'for rent'; $isSaleRent = str_contains($op, 'sale') && str_contains($op, 'rent'); @endphp
{{ implode(', ', array_filter([$property->full_address, $property->city, $property->state, $property->postal_code])) }}
{{-- Stats Card --}}{{ !is_null($property->bedrooms) ? (int) $property->bedrooms : '-' }}
Beds
{{ !is_null($property->bathrooms) ? (int) $property->bathrooms : '-' }}
Baths
{{ $property->total_area ? number_format($property->total_area) : '-' }}
SQM