@extends('layout.front.master')
@section('title', __('Contacto'))
@section('description', config('site.contact.page_subtitle', __('Consúltenos sobre inversión inmobiliaria, propiedades llave en mano, reparaciones o soporte para administradores.')) . ' ' . config('site.contact.phone') . ' | ' . config('site.contact.email'))
@section('keywords', config('site.seo.keywords') . ', contacto, cotización, consulta')
{{-- Open Graph Meta Tags --}}
@section('og_title', __('Contacto'))
@section('og_description', config('site.contact.page_subtitle', config('site.description', '')))
@section('og_image', brand_og_image())
@section('og_type', 'website')
@section('og_url', url()->current())
{{-- Twitter Card Meta Tags --}}
@section('twitter_title', __('Contacto') . ' | ' . config('site.name'))
@section('twitter_description', config('site.contact.page_subtitle', config('site.description', '')))
@section('twitter_image', brand_twitter_image())
@php
$pageTitle = __('Contacto');
$breadcrumbItems = [
['label' => __('Inicio'), 'url' => front_homepage_url()],
['label' => $pageTitle, 'url' => null],
];
@endphp
@section('content')
{{-- Page Header — shared partial --}}
@include('layout.front.partials.page-header-construction-2', [
'pageTitle' => $pageTitle,
'pageBreadcrumb' => $breadcrumbItems,
])
{{ config('site.contact.page_badge', __('PÓNGASE EN CONTACTO')) }}
{{ config('site.contact.page_title', __('¿Listo para su próxima inversión?')) }}
{{ config('site.contact.page_subtitle', __('Consúltenos sobre inversión inmobiliaria, propiedades llave en mano, reparaciones o soporte para administradores. Respondemos a la mayor brevedad.')) }}
{{-- Google Maps iframe (mismo patrón que demo-restaurant — sin API key) --}}
@php
$mapAddress = config('site.contact.address');
if (is_array($mapAddress)) {
$mapAddress = trim(
($mapAddress['line1'] ?? '') .
(isset($mapAddress['line2']) && $mapAddress['line2'] ? ' - ' . $mapAddress['line2'] : '') .
(isset($mapAddress['zip']) && $mapAddress['zip'] ? ' - ' . $mapAddress['zip'] : '') .
(isset($mapAddress['city']) && $mapAddress['city'] ? ' - ' . $mapAddress['city'] : '') .
(isset($mapAddress['state']) && $mapAddress['state'] ? ', ' . $mapAddress['state'] : '') .
(isset($mapAddress['country']) && $mapAddress['country'] ? ', ' . $mapAddress['country'] : '')
);
}
$mapAddress = $mapAddress ?: config('site.name', 'Argentina');
$mapEmbedUrl = 'https://www.google.com/maps?q=' . urlencode($mapAddress) . '&output=embed&zoom=15';
@endphp