@extends('layout.front.master') @php $activeDemo = get_active_demo(); $isDarkTheme = !in_array($activeDemo, ['demo-law-firm-2', 'demo-urban-development'], true); $sectionBg = $isDarkTheme ? 'var(--secondary)' : '#F7F7F7'; $cardBg = $isDarkTheme ? 'var(--dark)' : '#ffffff'; $cardBorderColor = $isDarkTheme ? 'var(--primary-rgba-10)' : 'rgba(0, 0, 0, 0.08)'; $innerCardBg = $isDarkTheme ? 'var(--secondary)' : '#F9F9F9'; $titleColor = $isDarkTheme ? 'var(--primary)' : 'var(--secondary, #1A325D)'; $lightTextColor = $isDarkTheme ? 'var(--light)' : 'var(--dark-rgba-90, #212529)'; $subtextColor = $isDarkTheme ? 'var(--quaternary)' : '#666666'; $featuredSectionBg = $isDarkTheme ? 'var(--dark)' : '#ffffff'; // Separate references with logos vs without logos $logoReferences = $references->filter(fn($r) => !empty($r->logo)); @endphp @section('title', config('site.modules.references.page_header.title', __('Referencias'))) @section('content') {{-- Dynamic Header --}} @include('modules.references.frontend.partials.dynamic-header') {{-- Featured Logo-Based References Section --}} @if($logoReferences->isNotEmpty())

{{ __('Nuestras Referencias') }}

{{ __('Empresas y organizaciones con las que trabajamos con orgullo') }}

@foreach($logoReferences as $index => $reference)
@php $refLogoSrc = filter_var($reference->logo, FILTER_VALIDATE_URL) ? $reference->logo : asset($reference->logo); $delay = $index < 3 ? (600 - $index * 200) : (($index - 3) * 200 + 200); $animation = $index < 3 ? 'fadeInLeftShorterPlus' : 'fadeInRightShorterPlus'; @endphp
{{ $reference->name }}
@endforeach
@endif {{-- Organized Text-Based References List Section --}}

{{ __('Listado de Referencias') }}

{{ __('Detalle de referencias comerciales y profesionales organizadas por sector') }}

@php $hasTextRefs = false; @endphp @foreach ($categories as $category) @php $categoryTextRefs = $category->references->filter(fn($r) => empty($r->logo)); @endphp @if($categoryTextRefs->isNotEmpty()) @php $hasTextRefs = true; @endphp

{{ $category->name }}

    @foreach($categoryTextRefs as $ref)
  • {{ $ref->name }}
    @if($ref->position || $ref->company)

    {{ implode(' - ', array_filter([$ref->position, $ref->company])) }}

    @endif @if($ref->description)

    "{{ $ref->description }}"

    @endif
  • @endforeach
@endif @endforeach @if(!$hasTextRefs)

{{ __('No hay referencias de texto disponibles.') }}

@endif
@endsection