@extends('user.layouts.app') @section('body_class', 'gallery') @section('content')
@php $hasAnyValidImage = $events->contains(function ($event) { return $event->photos->isNotEmpty(); }); $hasAnyValidVideo = $events->contains(function ($gallery) { return $gallery->videos->contains(function ($video) { return !empty($video->link) || !empty($video->event_video_file); }); }); @endphp
@if(!$hasAnyValidImage) @endif
{{--
--}}
@if($hasAnyValidVideo) @endif @if(!$hasAnyValidVideo) @endif
@endsection @section('footer') @endsection @push('scripts') @endpush @push('styles') @endpush