@php // Filtrar solo los spots que tienen imagen $spotsArray = isset($spots) ? $spots->toArray() : []; $spotsArray = array_filter($spotsArray, function($spot) { return $spot && !empty($spot['image_url']); }); @endphp @if(count($spotsArray) > 0)
@endif