{{-- Home page banner carousel: full-width, image-only slides (any text lives inside the image itself), sliding sideways in an endless loop (resources/js/banner.js). Fully driven by Admin > Home banners: visible banners with an image, in their sort order. With no visible banners, the strip is simply left out. --}} @php $org = seo()->orgName(); $items = $slides->filter(fn ($s) => $s->image_url)->values()->map(function ($s, $i) use ($org) { $thumb = $s->thumb_url; $hasThumb = $thumb && $thumb !== $s->image_url; return [ 'img' => $s->image_url, // Uploads are stored as a large main image plus a 640px copy: let phones take the small one. 'srcset' => $hasThumb ? $thumb.' 640w, '.$s->image_url.' 1600w' : null, 'alt' => filled(trim((string) $s->title, " .-_")) ? $s->title : $org.' banner '.($i + 1), 'url' => $s->button_url, ]; })->all(); $n = count($items); @endphp

{{ $org }}: donate for food, education and care

@if ($n)
1) data-banner data-autoplay="3000" @endif role="region" aria-roledescription="carousel" aria-label="Featured banners"> @if ($n > 1)
@foreach ($items as $i => $s) @endforeach
@endif
@endif