@php($photos = $product->exists ? $product->photos : collect()) @if ($photos->isNotEmpty())
@foreach ($photos as $photo) @php($url = route('products.photos.show', [$product, $photo]))
@if ($manage)
@if (! $loop->first) @endif @if (! $loop->last) @endif
@endif
@endforeach
@elseif (! $manage) — @endif