@extends('frontend.app') @section('frontend_app')

Properties for {{ $category }}

Home / Properties for {{ $category }}
@foreach ($properties as $property)
{{ $property['property_name'] }} For {{ ucfirst($property['category_name']) }}

{{ $property['property_name'] }}

{{-- Address --}} @php $addr = $property['address'] ?? []; $addressParts = collect([ $addr['area'] ?? null, $addr['city'] ?? null, $addr['state'] ?? null, $addr['country'] ?? null, ])->filter(fn($val) => $val && $val !== '0')->join(', '); @endphp @if ($addressParts)

{{ $addressParts }}

@endif {{-- Property Details --}} @php $detail = $property['detail'] ?? []; @endphp
@if(!empty($detail['bedrooms']) && $detail['bedrooms'] != 0)
{{ $detail['bedrooms'] }} Bed
@endif @if(!empty($detail['bathroom']) && $detail['bathroom'] != 0)
{{ $detail['bathroom'] }} Bath
@endif @if(!empty($detail['kitchen']) && $detail['kitchen'] != 0)
{{ $detail['kitchen'] }} Kitchen
@endif @if(!empty($detail['property_size']) && $detail['property_size'] != 0)
{{ $detail['property_size'] }} Sqft
@endif
{{-- Price + CTA --}}
₹{{ number_format($property['price']) }} {{-- View Details with slug --}} View Details
@endforeach
{{ $properties->links('vendor.pagination.tailwind') }}
@endsection