{{-- resources/views/components/allegati/index.blade.php --}} @props(['allegati' => []]) @php $hasVisibleAllegati = false; foreach ($allegati as $allegato) { if ($allegato->is_visible && $allegato->files && $allegato->gallery_type == 1 && $allegato->is_visible == true) { $hasVisibleAllegati = true; break; } } @endphp @if($hasVisibleAllegati)

ALLEGATI

@foreach($allegati as $allegato) @if($allegato->is_visible && $allegato->files && $allegato->gallery_type == 1 && $allegato->is_visible == true) @endif @endforeach @endif