@extends('layout.front.master') @section('title', config('site.name') . ' | ' . config('site.tagline', __('Welcome'))) @section('description', config('site.seo.description') ?? config('site.description', '')) @section('keywords', config('site.seo.keywords')) @section('og_title', config('site.og.title')) @section('og_description', config('site.og.description')) @section('og_image', brand_og_image()) @section('og_type', 'website') @section('og_url', url()->current()) @section('twitter_title', config('site.name')) @section('twitter_description', config('site.twitter.description')) @section('twitter_image', brand_twitter_image()) @section('content') {{-- ═══════════════════════════════════════════════════════ 1. CAROUSEL — OWL Carousel full viewport Fuente: WelcomeCarousel model ($carouselImages del controller) Fallback: hero estático con bg image si no hay carousel ═══════════════════════════════════════════════════════ --}} @if(isset($carouselImages) && $carouselImages->isNotEmpty()) @else {{-- Fallback: Hero estático --}}

{{ config('site.welcome.hero_badge', config('site.tagline', '')) }}

{{ config('site.name') }}

{{ config('site.welcome.hero_subtitle', config('site.description')) }}

@if(is_module_active('tokko')) {{ __('Ver Propiedades') }} @endif {{ __('Contactanos') }}
@endif {{-- ═══════════════════════════════════════════════════════ 2. QUIÉNES SOMOS — About preview (2 columnas: texto + imágenes) ═══════════════════════════════════════════════════════ --}}
{{ config('site.welcome.about_badge', __('QUIÉNES SOMOS')) }}

{{ config('site.welcome.about_title', config('site.about.main_title', __('Innovación y Sostenibilidad en cada Proyecto'))) }}

{{ config('site.welcome.about_description', config('site.about.main_subtitle', config('site.description'))) }}

{{ __('CONOCE MÁS') }}
{{ config('site.name') }}

{{ config('site.welcome.about_side_text', config('site.about.secondary_text', '')) }}

{{ config('site.name') }}
{{-- ═══════════════════════════════════════════════════════ 3. SERVICIOS — Featured boxes con fondo quaternary ═══════════════════════════════════════════════════════ --}} @if(is_module_active('services') && isset($services) && $services->isNotEmpty())
{{ config('site.welcome.services_badge', __('QUÉ HACEMOS')) }}

{{ config('site.welcome.services_title', __('Nuestros Servicios')) }}

@endif {{-- ═══════════════════════════════════════════════════════ 4. PROPIEDADES DESTACADAS — Condicional Tokko ═══════════════════════════════════════════════════════ --}} @if(is_module_active('tokko') && isset($properties) && count($properties) > 0)

{{ __('Propiedades destacadas') }}

{{ __('Descubre las propiedades más destacadas en nuestra plataforma.') }}

@foreach($properties as $property)
{{ $property['publication_title'] }}
{{ $property['publication_title'] }}

{{ $property['address'] }}

${{ $property['operations'][0]['prices'][0]['price'] ?? '' }} {{ $property['operations'][0]['prices'][0]['currency'] ?? '' }}

{{ __('Ver propiedad') }}
@endforeach
@endif {{-- ═══════════════════════════════════════════════════════ 5. PROYECTOS — Preview estilo portfolio ═══════════════════════════════════════════════════════ --}} @if(is_module_active('projects') && isset($featuredProjects) && $featuredProjects->isNotEmpty())
{{ config('site.welcome.projects_badge', __('Portfolio')) }}

{{ config('site.welcome.projects_title', __('Proyectos')) }}

@foreach($featuredProjects->take(3) as $project)
@php $projImg = $project->image ? (filter_var($project->image, FILTER_VALIDATE_URL) ? $project->image : asset($project->image)) : asset('cd-project/img/demos/real-estate/generic/generic-1.jpg'); @endphp {{ $project->title }} {{ $project->title }} {{ Str::limit(strip_tags($project->description), 100) }}
@endforeach
@endif {{-- ═══════════════════════════════════════════════════════ 6. GALERÍA — Preview ═══════════════════════════════════════════════════════ --}} @if(is_module_active('gallery') && isset($galleryImages) && $galleryImages->count() > 0)
{{ config('site.welcome.gallery_badge', __('Galería')) }}

{{ config('site.welcome.gallery_title', __('Nuestra Galería')) }}

@foreach($galleryImages->take(6) as $image) @php $imgUrl = filter_var($image->img, FILTER_VALIDATE_URL) ? $image->img : asset($image->img); @endphp @endforeach
@endif {{-- ═══════════════════════════════════════════════════════ 7. BLOG — Preview ═══════════════════════════════════════════════════════ --}} @if(is_module_active('blog') && isset($recentPosts) && $recentPosts->count() > 0)
{{ config('site.welcome.blog_badge', __('Blog')) }}

{{ config('site.welcome.blog_title', __('Novedades')) }}

@foreach($recentPosts->take(3) as $post)
@if($post->header) {{ $post->title }} @endif
@if($post->category) {{ $post->category->name }} @endif

{{ $post->title }}

{{ Str::limit(strip_tags($post->content ?? ''), 100) }}

{{ __('Leer más') }}
@endforeach
@endif {{-- ═══════════════════════════════════════════════════════ 8. FAQs — Preview ═══════════════════════════════════════════════════════ --}} @if(is_module_active('faqs') && isset($featuredFaqs) && $featuredFaqs->count() > 0)
{{ config('site.welcome.faqs_badge', __('FAQ')) }}

{{ config('site.welcome.faqs_title', __('Preguntas Frecuentes')) }}

@foreach($featuredFaqs->take(5) as $faq)
{{ $faq->question }}

{!! $faq->answer !!}

@endforeach
@endif {{-- ═══════════════════════════════════════════════════════ 9. CTA FINAL ═══════════════════════════════════════════════════════ --}}

{{ config('site.welcome.cta_title', config('site.contact.cta_title', __('¿Buscás tu próximo hogar o inversión?'))) }}

{{ config('site.description') }}

@endsection