@php
$hero = $ws->heroOptions();
$useCarousel = ! empty($slides) && $slides->isNotEmpty();
$hasNews = ! empty($news) && $news->isNotEmpty();
// Default hero/carousel images shown when a school has uploaded no slides.
// These are plain image-only entries so they plug directly into the
// image-only main carousel. Each school can later replace them via CMS.
if (! $useCarousel) {
$defaultUrls = $ws->defaultCarouselImages();
if (! empty($defaultUrls)) {
$useCarousel = true;
$slides = collect($defaultUrls)->map(fn ($url) => (object) [
'image_url' => $url,
'title' => $websiteSchool->name,
]);
}
}
@endphp
{{-- =====================================================================
Kensol homepage top block (reference layout)
Left: image-only main carousel (~75-80%)
Right: independent news carousel + compact stats (~20-25%)
===================================================================== --}}
@if ($useCarousel)
{{-- =========================================================
LEFT: MAIN IMAGE-ONLY CAROUSEL
Images only - no title, caption, description, button or
overlay. The visitor sees the unaltered photograph.
========================================================== --}}
@else
{{-- -----------------------------------------------------------------
Static Kensol hero fallback when a school has no main slides.
------------------------------------------------------------------ --}}
@php
$title = $ws->content('welcome_title');
$subtitle = $ws->heroSubtitle();
$eyebrow = $ws->heroEyebrow();
@endphp