@php
$details = $listing['details'] ?? [];
$gallery = array_values($listing['gallery'] ?? []);
$heroImage = $gallery[0] ?? 'https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600';
$purpose = $details['listing_purpose'] ?? null;
$isRent = $purpose === 'rent';
$purposeBadgeLabel = $isRent ? 'For Rent' : ($purpose === 'sell' ? 'For Sale' : null);
$priceDisplay = is_numeric($listing['price'] ?? null)
? '₹'.number_format((float) $listing['price'])
: ($listing['price'] ?? 'On Request');
$priceHeading = $isRent ? 'Rent / month' : 'Price';
$thumbShow = 6;
$extraGallery = count($gallery) > $thumbShow ? array_slice($gallery, $thumbShow) : [];
$visibleThumbs = array_slice($gallery, 0, $thumbShow);
@endphp
{{ $priceHeading }} {{ $priceDisplay }}
{{ $listing['location'] }}
@if(! empty($listing['posted_on']))
Listed {{ $listing['posted_on'] }}
@endif
{{ $listing['description'] ?: 'Details will be shared when you express interest.' }} {{ $listing['full_address'] }} Similar listings in our catalogue
@if($purposeBadgeLabel)
{{ $purposeBadgeLabel }}
@endif
{{ $listing['title'] }}
About this property
{{ $detailsTitle }}
@foreach($totalFiles as $label => $value)
Full address
More properties you may like