{{-- AJAX Partial: Modal Content Variables: $property (PropertyData), $detail (PropertyDetail|null), $images (Collection) --}} @php $op = strtolower($property->operation ?? ''); $showSaleStatus = str_contains($op, 'sale'); $showRentStatus = str_contains($op, 'rent'); $getIcon = function ($name) { $name = strtolower($name); if (str_contains($name, 'solar') || str_contains($name, 'heater')) { return ''; } if (str_contains($name, 'purifier') || str_contains($name, 'water')) { return ''; } if (str_contains($name, 'temple')) { return ''; } if (str_contains($name, 'club') || str_contains($name, 'house')) { return ''; } if (str_contains($name, 'garden') || str_contains($name, 'park') || str_contains($name, 'lawn')) { return ''; } if (str_contains($name, 'floor')) { return ''; } if (str_contains($name, 'apartent') || str_contains($name, 'apartment')) { return ''; } if (str_contains($name, 'bathroom') || str_contains($name, 'bath')) { return ''; } if (str_contains($name, 'living') || str_contains($name, 'room') || str_contains($name, 'hall')) { return ''; } if (str_contains($name, 'color') || str_contains($name, 'paint')) { return ''; } if (str_contains($name, 'roof') || str_contains($name, 'ceiling')) { return ''; } // Fallback return ''; }; @endphp {{-- Title + Badges + Address at the top --}}
{{-- Badges --}}
@if ($property->property_type) {{ $property->property_type }} @endif @if (str_contains(strtolower($property->operation ?? ''), 'rent')) For Rent @endif @if (str_contains(strtolower($property->operation ?? ''), 'sale')) For Sale @endif @if ($showSaleStatus && $property->property_sale_status) Sale: {{ $property->property_sale_status }} @endif @if ($showRentStatus && $property->property_rent_status) Rent: {{ $property->property_rent_status }} @endif
{{-- Title --}}

{{ $property->property_title ?: 'Untitled Property' }}

{{-- Location --}}

{{ implode(', ', array_filter([$property->full_address, $property->city, $property->state, $property->postal_code])) }}

{{-- Two Columns Grid --}}
{{-- Left Column (spans 3) --}}
{{-- Image Carousel --}} @if ($images->isNotEmpty())
@if ($images->count() > 1) {{-- Prev/Next controls --}} {{-- Counter --}}
/{{ $images->count() }}
@endif
@else

No images available

@endif {{-- Key Stats Cards --}}
{{-- Bedrooms --}}

Bedrooms

{{ !is_null($property->bedrooms) ? (int)$property->bedrooms : '-' }}

{{-- Bathrooms --}}

Bathrooms

{{ !is_null($property->bathrooms) ? (int)$property->bathrooms : '-' }}

{{-- Area --}}

Area SQFT

{{ $property->total_area ? number_format($property->total_area) : '-' }}

{{-- Financial and Property Details Tables --}}
{{-- Financial --}}
Financial
@if ($property->list_price)
List price ₹{{ number_format($property->list_price) }}
@endif @if ($property->rent_price) @php $rentPeriodSymbol = 'M'; if (!empty($property->rent_period)) { $period = strtolower($property->rent_period); if (str_contains($period, 'yearly')) { $rentPeriodSymbol = 'Y'; } elseif (str_contains($period, 'quarterly')) { $rentPeriodSymbol = 'Q'; } } @endphp
Rent price ₹{{ number_format((float) $property->rent_price) }}/{{ $rentPeriodSymbol }}
@endif @if ($property->fair_market_rent)
Fair Market Rent ₹{{ number_format($property->fair_market_rent, 2) }}
@endif @if ($detail?->purchase_price)
Purchase Price ₹{{ number_format($detail->purchase_price, 2) }}
@endif @if ($detail?->property_taxes)
Property Taxes ₹{{ number_format($detail->property_taxes, 2) }}
@endif @if ($detail?->insurance_cost)
Insurance Cost ₹{{ number_format($detail->insurance_cost, 2) }}
@endif @if ($detail?->total_operating_expense)
Total Operating Expense ₹{{ number_format($detail->total_operating_expense, 2) }}
@endif
{{-- Property Details --}}
Property Details
@if ($property->property_type)
Type {{ $property->property_type }}
@endif @if ($detail?->property_condition)
Condition {{ $detail->property_condition }}
@endif @if ($detail?->year_built)
Year Built {{ $detail->year_built }}
@endif @if ($detail?->floor)
Floor {{ $detail->floor }}
@endif @if ($property->total_area)
Area SQM {{ number_format($property->total_area) }}
@endif @if ($detail?->living_area)
Living Area {{ number_format($detail->living_area) }} SQM
@endif @if ($detail?->energy_rating)
Energy Rating {{ $detail->energy_rating }}
@endif
{{-- Right Column (spans 2) --}}
{{-- Amenities --}}

Amenities

@if ($detail?->amenities && count($detail->amenities))
@foreach ($detail->amenities as $amenity)
{!! $getIcon($amenity) !!} {{ $amenity }}
@endforeach
@else

No amenities listed.

@endif
{{-- Features --}}

Features

@if ($detail?->features && count($detail->features))
@foreach ($detail->features as $feature) {{ $feature }} @endforeach
@else

No features listed.

@endif
{{-- Description --}} @if ($detail?->description)

Description

{{ $detail->description }}

@endif