@extends('layouts.app') @section('title', 'Imóveis à Venda e Aluguel - NT Imobi AI') @section('content')

Encontre seu Imóvel

@foreach($cities as $cityOption)
@if(request()->anyFilled(['business_type', 'property_type', 'city', 'neighborhood', 'max_price', 'code'])) ✕ @endif

Imóveis Disponíveis ({{ $properties->total() }} encontrados)

@if($properties->isEmpty())

Nenhum imóvel encontrado com os filtros selecionados.

Ver todos os imóveis
@else
@foreach($properties as $property)
@if($property->featured_image) {{ $property->title }} @else
Sem foto destacada
@endif
#{{ $property->code }} {{ $property->business_type }}
{{ $property->property_type }}

{{ $property->neighborhood }}, {{ $property->city }}

{{ $property->title }}

R$ {{ number_format($property->price, 2, ',', '.') }}

@if(in_array($property->property_type, ['casa', 'apartamento'])) 🛏 {{ $property->details['bedrooms'] ?? 0 }} Qtos 🚿 {{ $property->details['bathrooms'] ?? 0 }} Banh 🚗 {{ $property->details['garages'] ?? 0 }} Vagas @if(!empty($property->details['built_area'])) 📐 {{ $property->details['built_area'] }} m² @endif @elseif($property->property_type === 'terreno') 📐 Área: {{ $property->details['total_area'] ?? 'N/I' }} m² @if(!empty($property->details['topography'])) ⛰ {{ $property->details['topography'] }} @endif @elseif($property->property_type === 'fazenda') 🌾 {{ $property->details['hectares'] ?? 'N/I' }} Hectares @if(!empty($property->details['asphalt_distance'])) 🛣 {{ $property->details['asphalt_distance'] }} km do asfalto @endif @if(!empty($property->details['has_lake'])) 💧 Com Lagoa @endif @endif
@endforeach
{{ $properties->links() }}
@endif
@endsection