@extends('layouts.public') @section('title', 'Agrawal Properties — Plots, Homes & Land in Indore') @push('head') @endpush @section('content')
{{-- Admin-editable via Settings > Home Page Content (App\Models\AppSetting) — see HomeController::index(). Rendered raw (not escaped) so an admin can include a literal
to control the line break, same as the original hardcoded heading always could. --}}

{!! $home_hero_heading !!}

{{ $home_hero_description }}

@php $purpose = request('purpose', 'for_sale'); // Rent listings live on an entirely different scale than // sale listings (monthly rent vs a sale price) — same // reasoning as the results-page Budget slider's own // dedicated rent range (PublicPropertySearchService's // RENT_BUDGET_MIN/MAX). Labels spell out "Lakh"/"Crore" // rather than the sidebar's abbreviated "L"/"Cr", matching // this dropdown's own existing convention. $budgetOptions = [ 'for_sale' => [ 'min' => ['' => 'No min', '1000000' => '₹10 Lakh', '2500000' => '₹25 Lakh', '5000000' => '₹50 Lakh', '10000000' => '₹1 Crore'], 'max' => ['' => 'No max', '5000000' => '₹50 Lakh', '10000000' => '₹1 Crore', '20000000' => '₹2 Crore', '50000000' => '₹5 Crore & above'], ], 'for_rent' => [ 'min' => ['' => 'No min', '5000' => '₹5,000', '15000' => '₹15,000', '30000' => '₹30,000', '50000' => '₹50,000'], 'max' => ['' => 'No max', '15000' => '₹15,000', '30000' => '₹30,000', '50000' => '₹50,000', '500000' => '₹5 Lakh & above'], ], ]; $activePurposeKey = $purpose === 'for_rent' ? 'for_rent' : 'for_sale'; @endphp {{-- These radios submit with #homeSearchForm via the form="" attribute even though they're not DOM-nested inside it — kept as a sibling, outside the white search card, matching the template (the toggle sits on the hero background, not the card). --}}
@include('partials.site._location-autocomplete-field', ['locId' => 'hLocality'])
@push('scripts') {{-- Homepage-only widening of the Google Places suggestion dropdown (.pac-container) so it spans from the City/Locality field's left edge to the Search button's right edge, instead of Google's default (matching just the input's own width). Deliberately self-contained here, NOT in the shared _location-autocomplete-scripts.blade.php partial, since that partial is also @included by the results page's "Change Location" modal — this must only affect the homepage search bar. --}} @endpush @if ($popularSearches->isNotEmpty())
Popular: @foreach ($popularSearches as $search) {{ $search['label'] }} @endforeach
@endif {{-- Admin-editable via Settings > Home Page Content > Homepage Statistics (App\Models\AppSetting) — see HomeController::index(). --}} @if (!empty($stats))
@foreach ($stats as $stat)
{{ $stat['value'] }}
{{ $stat['label'] }}
@endforeach
@endif
@if ($featuredProperties->isNotEmpty())
{{ $home_recently_listed_heading }}

{{ $home_recently_listed_subheading }}

@if (filled($home_recently_listed_description))

{{ $home_recently_listed_description }}

@endif
View all listings →
@foreach ($featuredProperties as $property) @include('partials.site._property-card', ['property' => $property, 'propertyTypes' => $propertyTypes]) @endforeach
@endif @if (!empty($budgetTiers))
{{ $home_budget_heading }}

{{ $home_budget_subheading }}

@php $categoryUrlBuilder = app(\App\Services\PropertyCategoryUrlBuilder::class); @endphp @foreach ($budgetTiers as $tier)
@php // canonicalPath() picks the right suffix shape from // whichever of min/max are present — under-only (max), // above-only (min), or between (both) — so every tier // gets a direct SEO link now, including the open-ended // "₹1 Cr & up" tier (min only -> "-above-"). $tierHref = $categoryUrlBuilder->canonicalPath( null, null, null, [], null, null, isset($tier['max']) ? (float) $tier['max'] : null, isset($tier['min']) ? (float) $tier['min'] : null ); @endphp
{{ $tier['label'] }}
{{ $tier['sub'] }}
Explore →
@endforeach
@endif @if ($topCities->isNotEmpty())

{{ $home_cities_heading }}

{{ $home_cities_subheading }}
@php $categoryUrlBuilder = app(\App\Services\PropertyCategoryUrlBuilder::class); @endphp @foreach ($topCities as $cityRow) {{ $cityRow->city }} @endforeach
@endif @if ($testimonials->isNotEmpty())
{{ $home_testimonials_heading }}

{{ $home_testimonials_subheading }}

@foreach ($testimonials as $testimonial)
“{{ $testimonial->message }}”
{{ $testimonial->customer_name }}@if ($testimonial->designation) · {{ $testimonial->designation }}@endif
@endforeach
@endif {{-- Home Page's own Footer SEO Content — rendered ONLY here, never site-wide (see partials.site._footer-seo's own doc comment). Plain text (no rich formatting), same as the Content Page/Landing Page versions — line breaks preserved, any typed HTML shown as literal text rather than interpreted. --}} @include('partials.site._footer-seo', ['footerSeoContent' => \App\Models\AppSetting::get('footer_seo_content')]) @endsection