<div class="sp-loading"><img src="images/sp-loading.gif" alt=""><br>LOADING IMAGES</div>
<div class="sp-wrap" style="width: 100%;">
    @if ($images)
        @foreach ($images as $image)
            <a href="{{ App\Repositories\Shop\Articles::getZoomSrc($image) }}">
                <img src="{{ App\Repositories\Core\Images::getNormalSrc($image) }}" class="img-fluid">
            </a>
        @endforeach
    @else
        <img src="{{ $image }}" class="img-fluid">
    @endif
</div>

@push('js')
    <script>
        $(window).load(function() {
            $('.sp-wrap').smoothproducts();
        });
    </script>
@endpush
