@php $spotlightBanners = $spotlightBanners ?? collect(); $mediaUrl = function ($path) { if (!$path) return null; if (str_starts_with($path, 'http://') || str_starts_with($path, 'https://')) return $path; return asset($path); }; @endphp @if(!empty($hp['show_spotlight_grid']) && $spotlightBanners->count() > 0)
@foreach($spotlightBanners as $banner) @php $src = $mediaUrl($banner->image); $features = array_values(array_filter(array_map('trim', explode('|', $banner->subtitle ?? '')))); @endphp @if($src) {{ strip_tags($banner->title ?? 'Spotlight') }} @endif @if($banner->title) {!! $banner->title !!} @endif @if(count($features))
    @foreach($features as $feature)
  • {{ $feature }}
  • @endforeach
@endif @if($banner->button_text) {{ $banner->button_text }} @endif
@endforeach
@endif