@php $alias = htmlspecialchars_decode($alias); $Photos = CCMS::getGalleryByAlias($alias); @endphp @if ($Photos && count($Photos) > 0) @foreach ($Photos as $Photo) @endforeach @else @if (!$Photos) This gallery with alias {!! $alias !!} does not exist. @else No photos available in the gallery. @endif @endif