View file resources/views/widgets/_photos.blade.php
@if ($photos->isNotEmpty()) <div class="section-body"> @foreach ($photos as $photo) @php $file = $photo->files()->first(); @endphp @if ($file) <a href="/photos/{{ $photo->id }}">{{ resizeImage($file->hash, ['alt' => check($photo->title), 'class' => 'rounded', 'style' => 'width: 100px;']) }}</a> @endif @endforeach </div> @endif