@extends('layout.front.master')
@section('title', __('Contacto') . ' | ' . config('site.name'))
@section('description', config('site.contact.meta_description', config('site.seo.description')))
@section('og_title', config('site.contact.page_title', __('Contacto')))
@section('og_description', config('site.contact.meta_description'))
@section('og_image', brand_og_image())
@section('og_type', 'website')
@section('og_url', url()->current())
@section('content')
@php
$contactDefaults = [
'page_eyebrow' => __('Hablemos'),
'page_title' => __('Contame qué tenés en mente'),
'page_subtitle' => __('Respondo en menos de 24 horas con una propuesta concreta.'),
'form_heading' => __('Brief rápido'),
'form_subtext' => __('Cuanta más info pongas, mejor puedo cotizarte.'),
'response_time' => __('Respuesta en menos de 24hs'),
];
$contact = function($key, $default = null) use ($contactDefaults) {
return config('site.contact.' . $key, $contactDefaults[$key] ?? $default);
};
@endphp
{{-- HERO --}}
{{ $contact('page_eyebrow') }}
{{ $contact('page_title') }}
@if($contact('page_subtitle'))
{{ $contact('page_subtitle') }}
@endif
@if($contact('availability_text'))
{{ $contact('availability_text') }}
@endif
{{-- FORM + INFO --}}
{{-- Form --}}
{{ $contact('form_heading') }}
@if($contact('form_subtext'))
{{ $contact('form_subtext') }}
@endif
@if(session('success'))
{{ session('success') }}
@endif
@if($errors->any())
@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif
{{-- Info lateral --}}
@endsection