@props(['banners']) {{-- Portada del inicio con banners. Todas las diapositivas ocupan la misma celda: la portada mide lo que la más alta y la página no salta al cambiar. Comportamiento: resources/js/site/hero-banners.js. --}} @php $firstImageId = $banners->first(fn ($banner) => $banner->imageUrl() !== null)?->id; $control = 'inline-flex size-11 items-center justify-center rounded-full ring-1 ring-white/40 ring-inset hover:bg-white/10'; @endphp

Facultad de Administración

@foreach ($banners as $banner)
first) data-active @else hidden @endif > @if ($banner->isPoster())

{{ $banner->title }}

@if ($banner->imageUrl()) @php $posterLink = $banner->links()[0] ?? null; @endphp @endif @else
@if ($banner->label)

{{ $banner->label }}

@endif

{{ $banner->title }}

@if ($banner->description)

{{ $banner->description }}

@endif @if ($banner->links())
@foreach ($banner->links() as $link) {{ $link['label'] }} @endforeach
@endif
@if ($banner->imageUrl()) id === $firstImageId) fetchpriority="high" @else loading="lazy" @endif class="aspect-[16/10] w-full rounded-3xl object-cover lg:aspect-[4/3.2]" > @endif
@endif
@endforeach
@if ($banners->count() > 1) {{-- Cada punto es una barra: la activa se llena en el tiempo que falta para el cambio. --}} @else @endif