@extends("frontend.includes.layout") @section('useLegacyJquery', '0') @section('links') @vite('resources/scss/offert.scss') @include('frontend.includes.hubspot-lazy-init') @php $moduleAliases = [ 'cualidades' => 'cualidades-header', ]; $desktopModules = array_values(array_filter(array_map('trim', explode(',', (string) $academic_offer->modules_desktop)))); $mobileModules = array_values(array_filter(array_map('trim', explode(',', (string) $academic_offer->modules_mobile)))); $desktopOrderBySection = []; foreach ($desktopModules as $position => $module) { $desktopOrderBySection[$moduleAliases[$module] ?? $module] = $position + 3; } $mobileOrderBySection = []; foreach ($mobileModules as $position => $module) { $mobileOrderBySection[$moduleAliases[$module] ?? $module] = $position + 3; } $highSchoolDesktopOrder = max(3, (int) ($desktopOrderBySection['contenido'] ?? 3) + 1); $highSchoolMobileOrder = max(3, (int) ($mobileOrderBySection['contenido'] ?? 3) + 1); $sanitizeSectionId = function ($id) { return preg_replace('/[^a-zA-Z0-9_-]/', '', (string) $id); }; $desktopOrderCss = collect($desktopOrderBySection)->map(function ($order, $sectionId) use ($sanitizeSectionId) { $safeId = $sanitizeSectionId($sectionId); return "main.template_v2_ucg > section#{$safeId} { order: {$order}; }"; })->implode("\n"); $mobileOrderCss = collect($mobileOrderBySection)->map(function ($order, $sectionId) use ($sanitizeSectionId) { $safeId = $sanitizeSectionId($sectionId); return "main.template_v2_ucg > section#{$safeId} { order: {$order}; }"; })->implode("\n"); $advantagesWithContent = collect($academic_offer->advantages ?? [])->filter(function ($advantage) { $rawText = (string) ($advantage->text ?? ''); return trim(strip_tags($rawText, '')) !== ''; })->values(); $hasAdvantages = $advantagesWithContent->isNotEmpty(); @endphp @endsection @section('scripts') @endsection @section('content') {{-- --}} @if ($academic_offer->show || ($isPreview ?? false))
{{-- --}}
{{ $academic_offer->level }}

@if ($academic_offer->title_html) {{-- {!! wordwrap($academic_offer->title_html, 30, "
") !!} --}} {{ $academic_offer->title_html }} @else {{-- {!! wordwrap($academic_offer->title, 30, "
") !!} --}} {{ $academic_offer->title }} @endif

Inscríbete ahora

WhatsApp
{{-- --}}
@if ($academic_offer->duration)
Duración
{{ $academic_offer->duration }}
@endif @if ($academic_offer->modality)
Modalidad
{{ $academic_offer->modality }}
@endif @if ($academic_offer->begin)
Inicio
{{ $academic_offer->begin }}
@endif @if ($academic_offer->rvoe)
RVOE
{{ $academic_offer->rvoe }}
@endif
{{-- --}}
@if ($academic_offer->content)
{!! $academic_offer->content !!}
@endif
@if ($academic_offer->img_form_1_uri)
Portada
@endif {{-- @dd($academic_offer) --}}

📚 Estudiar {{ $academic_offer->title }} Es una inversión para ti y tu familia

  • El detalle de la colegiatura
  • Las opciones de beca disponibles
  • Plan de estudios personalizado
@include('frontend.includes.forms.cliento.formColegiatura')
{{-- @dd($academic_offer) --}} @if ($academic_offer->level === 'Bachillerato') @include("frontend.includes.high_school_advantages") @endif {{-- --}} @if ($academic_offer->video_1_key || $academic_offer->video_2_key)

Conoce a los protagonistas de Bachillerato

@if ($academic_offer->video_1_cover_uri) @php $source = $academic_offer->video_1_source; $cover = $academic_offer->video_1_cover_uri; $key = $academic_offer->video_1_key; $column = $academic_offer->video_2_cover_uri ? 6 : 12; @endphp
@include('frontend.includes.videoCliento')
@endif @if ($academic_offer->video_2_cover_uri) @php $source = $academic_offer->video_2_source; $cover = $academic_offer->video_2_cover_uri; $key = $academic_offer->video_2_key; $column = $academic_offer->video_1_cover_uri ? 6 : 12; @endphp
@include('frontend.includes.videoCliento')
@endif
@endif {{-- --}} @if ($hasAdvantages)

@if ($academic_offer->title_advantajes) {!! $academic_offer->title_advantajes !!} @else Ventajas de estudiar en la UCG @endif

@if ($academic_offer->subtitle_advantajes)

{!! $academic_offer->subtitle_advantajes !!}

@else

Solo algunas de las múltiples ventajas que tiene estudiar el Bachillerato en la UCA:

@endif
@foreach ($advantagesWithContent as $index => $advantage)
@if ($advantage->icon_class || $advantage->icon_uri)
@if ($advantage->icon_class) @elseif ($advantage->icon_uri) Icono ventaja {{ $index + 1 }} @endif
@endif
{!! $advantage->text !!}
@endforeach
@endif @if (count($academic_offer->activities) > 0)

@if ($academic_offer->title_activities) {!! $academic_offer->title_activities !!} @else Complementa tu formación académica @endif

@if ($academic_offer->subtitle_activities)

{!! $academic_offer->subtitle_activities !!}

@endif
@foreach ($academic_offer->activities as $activity) @endforeach
@endif {{-- --}} @php $normalizedCampusSource = strtolower(trim((string) ($academic_offer->video_campus_source ?? ''))); $hasSpecificVideo = !empty($academic_offer->video_campus_key) && in_array($normalizedCampusSource, ['youtube', 'wistia'], true); $hasText = !empty(trim(strip_tags((string) $academic_offer->advantage_campus))); // Fallback to home video if no specific video is set $fallbackVideoUrl = $homeVideo->video_uri ?? asset('video/index.mp4'); $fallbackVideoPoster = $homeVideo->poster_uri ?? asset('images/bg-video.png'); // Should we show the section at all? $showSection = $hasSpecificVideo || !empty($fallbackVideoUrl); @endphp @if ($showSection)

Conoce nuestro Campus

@if ($hasText)
{!! $academic_offer->advantage_campus !!}
@endif
@if ($hasSpecificVideo) @php $source = $academic_offer->video_campus_source; $cover = $academic_offer->video_campus_cover_uri; $key = $academic_offer->video_campus_key; @endphp
@include('frontend.includes.videoCliento')
@else {{-- Fallback Local Video --}}
Poster video campus
VER VIDEO
@endif
@endif {{-- {{-- --}} {{--

Ven a conocernos

Cada semana organizamos visitas al Campus con estudiantes como tú que quieren conocer la Universidad. ¡Agenda tu cita ahora!

@if ($academic_offer->crm_key)
@include('frontend.includes.forms.cliento.formVisita')
@endif
--}} {{-- --}}
@if ($academic_offer->video_3_key && $academic_offer->video_3_cover_uri)

{!! $academic_offer->title_practice_professional !!}

{!! $academic_offer->subtitle_practice_professional !!}

@if ($academic_offer->video_3_cover_uri) @php $source = $academic_offer->video_3_source; $cover = $academic_offer->video_3_cover_uri; $key = $academic_offer->video_3_key; @endphp @include('frontend.includes.videoCliento') @endif
@if ($academic_offer->content_practice_professional)
{!! $academic_offer->content_practice_professional !!}
@endif
@endif
{{-- --}} @if (count($academic_offer->brands) > 0)

@if ($academic_offer->title_brands) {!! $academic_offer->title_brands !!} @else ¿Dónde trabajan nuestros egresados? @endif

{!! $academic_offer->subtitle_brands !!}

@foreach ($academic_offer->brands as $brand) ucg-marca-{{ $brand->id }} @endforeach
{{--
@foreach ($academic_offer->brands as $brand) ucg-marca-{{ $brand->id }} @endforeach
@if ($academic_offer->brands_img_mobile) {{ $academic_offer->title }} - marcas @endif
--}} {{-- @if ($academic_offer->brands_img_desktop_uri)
{{ $academic_offer->title }} - marcas
@endif --}}
@endif {{-- --}}
@if (count($academic_offer->tools) > 0)

@if ($academic_offer->title_tools) {!! $academic_offer->title_tools !!} @endif

{!! $academic_offer->subtitle_tools !!}

@foreach ($academic_offer->tools as $tool) ucg-herramienta-{{ $tool->id }} @endforeach
@if ($academic_offer->tools_img_mobile)
{{ $academic_offer->title }} - herramienta
@endif
{{-- @if ($academic_offer->brands_img_desktop_uri)
{{ $academic_offer->title }} - marcas
@endif --}}
@endif
{{-- --}}
@if (count($academic_offer->visits) > 0)

@if ($academic_offer->title_visits) {!! $academic_offer->title_visits !!} @endif

{!! $academic_offer->subtitle_visits !!}

@foreach ($academic_offer->visits as $visit)
icon
@endforeach
@endif
@if (count($academic_offer->plans) > 0)

Plan de estudios

@foreach ($academic_offer->plans as $plan)
{{-- {{ dd($academic_offer) }} --}}

{{ $plan->title }}

{!! $plan->content !!}
@endforeach
@endif @if (count($academic_offer->works) > 0)

@if ($academic_offer->title_works) {!! $academic_offer->title_works !!} @endif

{!! $academic_offer->subtitle_works !!}

@foreach ($academic_offer->works as $work) @php $hasImage = !empty($work->icon_uri); $hasIconClass = !empty($work->icon_class); $hasText = !empty(trim(strip_tags($work->text))); $itemClass = 'work-item'; if (($hasImage || $hasIconClass) && !$hasText) { $itemClass .= ' work-item-image-only'; } elseif (!$hasImage && $hasText) { $itemClass .= ' work-item-text-only'; } @endphp
@if ($hasIconClass || $hasImage)
@if ($hasIconClass) @elseif ($hasImage) Icono representativo @endif
@endif @if ($hasText)

{!! $work->text !!}

@endif
@endforeach
@endif @if ($academic_offer->img_form_3)

@if ($academic_offer->title_form_3) {!! $academic_offer->title_form_3 !!} @else Platica con el Director de la Carrera @endif

{!! $academic_offer->subtitle_form_3 !!}

@if ($academic_offer->img_form_3) {{ $academic_offer->title }} - director @endif
@include('frontend.includes.forms.cliento.formPlaticaDirector')
@endif @if (count($academic_offer->teachers) > 0)

Profesores destacados

@foreach ($academic_offer->teachers as $teacher)

{{ $teacher->title }}

{{ $teacher->content }}

@endforeach
@endif {{-- --}}
@if ($academic_offer->img_last_technology_uri && $academic_offer->content_last_technology)

Aprende mediante la última tecnolgia médica

@if ($academic_offer->img_last_technology_uri) @endif
@if ($academic_offer->content_last_technology)
{!! $academic_offer->content_last_technology !!}
@endif
@endif
{{-- --}}
@if ($academic_offer->agreement_img_uri && $academic_offer->agreement_text)
@if ($academic_offer->agreement_img_uri) @endif
@if ($academic_offer->agreement_text)
{!! $academic_offer->agreement_text !!}
@endif
@endif
{{-- --}}
@if (count($academic_offer->staff) > 0)

@if ($academic_offer->title_staff) {!! $academic_offer->title_staff !!} @endif

{!! $academic_offer->subtitle_staff !!}

@foreach ($academic_offer->staff as $staff)
Card image cap
{!! $staff->title !!}

{!! $staff->content !!}

@endforeach
@endif
{{-- --}}
@if (count($academic_offer->gallery) > 0)

Galería de fotos del Campus

@endif
@if (!$hasSpecificVideo && !empty($fallbackVideoUrl)) @endif
@else {{--
@include('frontend.includes.empty-state')
--}} @endif {{-- --}} @endsection