@extends('layouts.master') @section('title', $property->title . ' - HomesInKerala') @section('meta_description', Str::limit(strip_tags($property->description ?: $property->title . ' in ' . $property->city?->name . ', Kerala'), 155)) @section('canonical', route('properties.show', $property)) @php $gallery = $property->getMedia('gallery'); $cover = $gallery->first(); $location = collect([$property->area?->name, $property->city?->name, $property->district?->name])->filter()->join(', '); $mapQuery = rawurlencode($property->latitude && $property->longitude ? $property->latitude . ',' . $property->longitude : ($location ?: $property->title)); $mapUrl = "https://maps.google.com/maps?q={$mapQuery}&z=14&output=embed"; $shareUrl = route('properties.show', $property); $site = \App\Support\SiteSettings::class; $supportPhone = preg_replace('/\D+/', '', $site::phone()); $whatsAppText = rawurlencode("Hi, I am interested in {$property->title}. {$shareUrl}"); $whatsAppUrl = $supportPhone ? "https://wa.me/{$supportPhone}?text={$whatsAppText}" : null; $featureItems = [ ['label' => 'Property ID', 'value' => $property->property_code], ['label' => 'Purpose', 'value' => Str::headline($property->purpose ?? '')], ['label' => 'Type', 'value' => $property->type?->name], ['label' => 'Category', 'value' => $property->category?->name], ['label' => 'Bedrooms', 'value' => $property->bedrooms], ['label' => 'Bathrooms', 'value' => $property->bathrooms], ['label' => 'Built Area', 'value' => $property->built_area_sqft ? number_format((float) $property->built_area_sqft) . ' sqft' : null], ['label' => 'Land Area', 'value' => $property->land_area_cent ? number_format((float) $property->land_area_cent) . ' cent' : null], ['label' => 'Parking', 'value' => $property->parking_spaces ? $property->parking_spaces . ' spaces' : null], ['label' => 'Furnishing', 'value' => $property->furnishing ? Str::headline($property->furnishing) : null], ['label' => 'Floors', 'value' => $property->floors], ['label' => 'Verification', 'value' => $property->is_verified ? 'Verified' : null], ]; $nearbyPlaces = [ 'Schools and colleges around ' . ($property->city?->name ?: 'the location'), 'Hospitals and clinics within easy reach', 'Public transport and main road access', 'Shopping, restaurants and daily essentials nearby', ]; @endphp @push('head') {!! \App\Support\SchemaMarkup::toScript(\App\Support\SchemaMarkup::property($property)) !!} @endpush @section('content')

{{ $property->type?->name }} for {{ $property->purpose ?: 'property' }}

{{ $property->title }}

{{ $location }}

{!! $site::currencySymbol() !!}{{ number_format((float) $property->price) }}
@if($property->is_premium)Premium@endif @if($property->is_verified)Verified@endif {{ $property->status }}
@if(session('success')) @endif
{{ $gallery->count() }} photos
@if($cover) {{ $cover->getCustomProperty('alt', $property->title) }} @if($gallery->count() > 1)
@foreach($gallery->skip(1)->take(6) as $media) {{ $media->getCustomProperty('alt', $property->title) }} @endforeach
@endif @else
HomesInKerala Property
@endif

Overview

{!! $site::currencySymbol() !!}{{ number_format((float) $property->price) }}Price
{{ $property->bedrooms ?: '-' }}Bedrooms
{{ $property->bathrooms ?: '-' }}Bathrooms
{{ $property->built_area_sqft ? number_format((float) $property->built_area_sqft) : '-' }}Sqft

Features

@foreach($featureItems as $item) @if(filled($item['value']))
{{ $item['label'] }} {{ $item['value'] }}
@endif @endforeach

Description

{!! nl2br(e($property->description ?: 'Detailed property description will be updated soon. Please contact the agent for more information.')) !!}

Amenities

@forelse($property->amenities as $amenity) {{ $amenity->name }} @empty

Amenities will be updated soon.

@endforelse

Map

Nearby Places

@foreach($nearbyPlaces as $place)
{{ $place }}
@endforeach

Property Reviews

{{ number_format($property->average_rating, 1) }} average rating from {{ $property->approvedReviews->count() }} approved reviews

{{ str_repeat('★', (int) round($property->average_rating)) }}
@forelse($property->approvedReviews as $review)
{{ str_repeat('★', (int) $review->rating) }}{{ str_repeat('☆', 5 - (int) $review->rating) }}

{{ $review->comment }}

{{ $review->name }} {{ $review->created_at->format('d M Y') }}
@empty

No approved property reviews yet.

@endforelse
@csrf
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('rating')
{{ $message }}
@enderror
@error('comment')
{{ $message }}
@enderror
@include('frontend.partials.recaptcha')

Similar Properties

You may also like

View More
@forelse($similarProperties as $similar)
@include('frontend.partials.property-card', ['property' => $similar])
@empty
Similar properties will be listed soon.
@endforelse
@endsection @push('scripts') @endpush