@forelse ($academic_offers as $academic_offer)
@php
$levelSlug = strtolower(preg_replace('/[^a-z0-9]/', '', \Illuminate\Support\Str::ascii((string) $academic_offer->level)));
$description = $levelDescriptions[$levelSlug] ?? 'Conoce el plan de estudios y elige la mejor opción para tu futuro.';
$offerUrl = !empty($academic_offer->uri)
? route('academic_offer.single', [$levelSlug, $academic_offer->uri])
: route('academic_offer.group', [$levelSlug]);
$offerImage = $academic_offer->img_index_uri ?? null;
@endphp
@empty
@php
$fallbackLevels = ['Bachillerato', 'Licenciaturas', 'Lic. Ejecutivas', 'Posgrados'];
@endphp
@foreach ($fallbackLevels as $fallbackLevel)
@php
$fallbackSlug = strtolower(preg_replace('/[^a-z0-9]/', '', \Illuminate\Support\Str::ascii((string) $fallbackLevel)));
$description = $levelDescriptions[$fallbackSlug] ?? 'Conoce los programas disponibles.';
@endphp
@endforeach
@endforelse