Photos

@if (auth()->user() == $user && $dog_photos->count() < $max_photos)
Upload photo
@endif
@if ($dog_photos->count() > $show_photos)
@foreach ($dog_photos->take($show_photos) as $photo)
id/$photo->name") }}" > @if ($user == auth()->user()) @endif
@endforeach
@foreach ($dog_photos->skip($show_photos) as $photo)
id/$photo->name") }}" > @if ($user == auth()->user()) @endif
@endforeach
@else
@foreach ($dog_photos as $index => $photo)
id/$photo->name") }}" > @if ($user == auth()->user()) @endif
@endforeach
@endif
@push('scripts') @endpush