@extends('layout.front.master')
@section('title', config('site.about.page_title', __('Nosotros')) . ' | ' . config('site.name'))
@section('description', config('site.about.main_subtitle', config('site.seo.description')))
@section('keywords', config('site.seo.keywords'))
@section('og_title', config('site.about.page_title', __('Nosotros')) . ' | ' . config('site.name'))
@section('og_description', config('site.about.main_subtitle', config('site.seo.description')))
@section('og_image', brand_og_image())
@section('og_type', 'website')
@section('og_url', url()->current())
@php
$pageTitle = config('site.about.page_title', __('Nosotros'));
$breadcrumbItems = [
['label' => __('Inicio'), 'url' => front_homepage_url()],
['label' => $pageTitle, 'url' => null],
];
@endphp
@section('content')
{{-- ═══════════════════════════════════════════════════════
1. PAGE HEADER — Parallax (ya alineado con Schujman)
═══════════════════════════════════════════════════════ --}}
@include('layout.front.partials.page-header-real-estate', [
'pageTitle' => $pageTitle,
'pageLabel' => config('site.about.page_label', __('Sobre Nosotros')),
'pageSubtitle' => config('site.about.main_title', __('Nuestra Empresa')),
'pageBreadcrumb' => $breadcrumbItems,
])
{{-- ═══════════════════════════════════════════════════════
2. COMMITMENT — Watermark + Badge + Título + Descripción
═══════════════════════════════════════════════════════ --}}
{{-- Watermark background text --}}
@if(config('site.about.watermark'))
{{ config('site.about.watermark') }}
@endif
{{ config('site.about.commitment_badge', __('NUESTRO COMPROMISO')) }}
{{ config('site.about.main_title', __('Nuestra Empresa')) }}
{{ config('site.about.main_subtitle', '') }}
{{-- Mission / Vision / Values --}}
@php
$values = config('site.about.values', []);
if (is_string($values)) { $values = json_decode($values, true) ?? []; }
@endphp
@if(!empty($values))
@foreach($values as $value)
{{ $value['title'] ?? '' }}
{{ $value['text'] ?? '' }}
@endforeach
@else
{{-- Fallback: usar secondary_text si no hay values configurados --}}
@if(config('site.about.secondary_text'))
{{ config('site.about.secondary_text') }}
@endif
@if(config('site.about.tertiary_text'))
{{ config('site.about.tertiary_text') }}
@endif
@endif
{{-- Lightbox images --}}
{{-- ═══════════════════════════════════════════════════════
3. COUNTERS — Números animados (feature del sistema)
═══════════════════════════════════════════════════════ --}}
@php
$counters = config('site.about.counters', []);
if (is_string($counters)) { $counters = json_decode($counters, true) ?? []; }
@endphp
@if(!empty($counters))
@foreach($counters as $counter)
0
@endforeach
@endif
{{-- ═══════════════════════════════════════════════════════
4. TEAM — Con filtro isotope por categoría (como Schujman)
═══════════════════════════════════════════════════════ --}}
@php
$aboutTeam = collect();
$teamCategories = collect();
if (is_module_active('team')) {
$aboutTeam = \App\Modules\TeamMembers\Models\TeamMember::with('category')->where('is_active', true)->orderBy('name')->get();
$teamCategories = \App\Modules\TeamMembers\Models\TeamCategory::orderBy('name')->get();
}
@endphp
@if($aboutTeam->count() > 0)
{{ __('CONOCENOS') }}
{{ config('site.about.team_title', __('NUESTRO EQUIPO')) }}
{{-- Filtros por categoría --}}
@if($teamCategories->count() > 1)
-
{{ __('Mostrar todos') }}
@foreach($teamCategories as $category)
-
{{ $category->name }}
@endforeach
@endif
count() > 1 ? 'data-sort-id=team' : '' }}>
@foreach($aboutTeam as $member)
@php
$memberImg = $member->image
? (filter_var($member->image, FILTER_VALIDATE_URL) ? $member->image : asset($member->image))
: asset('cd-project/img/default-team-member.png');
@endphp
{{ $member->name }}
{{ $member->position ?? '' }}
@if($member->description)
{{ $member->description }}
@endif
@endforeach
@endif
{{-- ═══════════════════════════════════════════════════════
5. CTA — Fondo quaternary (como Schujman)
═══════════════════════════════════════════════════════ --}}
{{ config('site.contact.cta_title', __('¿Tenés un proyecto en mente?')) }}
{{ config('site.about.cta_subtitle', __('Nuestro equipo está capacitado para encontrar el lugar que necesitas.')) }}
@endsection