<div class="product-item-holder size-big single-product-gallery small-gallery"> <div id="owl-single-product"> <?php if($product->photo): ?> <?php
                $image_url = \App\Helpers\Helper::check_image_avatar($product->photo->name, 500);
            ?> <div class="single-product-gallery-item" id="slide1"> <a data-lightbox="image-1" data-title="Gallery" href="<?php echo e($image_url); ?>"> <img class="img-responsive" alt="<?php echo e($product->name); ?>" src="<?php echo e(asset(theme_url('/img/blank.gif'))); ?>" data-echo="<?php echo e($image_url); ?>" /> </a> </div> <?php else: ?> <div class="single-product-gallery-item" id="slide1"> <a data-lightbox="image-1" data-title="Gallery" href="https://via.placeholder.com/500x500?text=No+Image"> <img class="img-responsive" alt="<?php echo e($product->name); ?>" src="<?php echo e(asset(theme_url('/img/blank.gif'))); ?>" data-echo="https://via.placeholder.com/500x500?text=No+Image" /> </a> </div> <?php endif; ?> <?php if(count($product->photos) > 0): ?> <?php $i = 2; ?> <?php $__currentLoopData = $product->photos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($photo): ?> <?php
                        $image_url = \App\Helpers\Helper::check_image_avatar($photo->name, 500);
                    ?> <div class="single-product-gallery-item" id="slide<?php echo e($i); ?>"> <a data-lightbox="image-1" data-title="Gallery" href="<?php echo e($image_url); ?>"> <img class="img-responsive" alt="<?php echo e($product->name); ?>" src="<?php echo e(asset(theme_url('/img/blank.gif'))); ?>" data-echo="<?php echo e($image_url); ?>" /> </a> </div> <?php else: ?> <div class="single-product-gallery-item" id="slide<?php echo e($i); ?>"> <a data-lightbox="image-1" data-title="Gallery" href="https://via.placeholder.com/80x80?text=No+Image"> <img class="img-responsive" alt="<?php echo e($product->name); ?>" src="<?php echo e(asset(theme_url('/img/blank.gif'))); ?>" data-echo="https://via.placeholder.com/80x80?text=No+Image" /> </a> </div> <?php endif; ?> <?php $i++; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> <div class="single-product-gallery-thumbs gallery-thumbs"> <div id="owl-single-product-thumbnails"> <?php if($product->photo): ?> <?php
                    $image_url = \App\Helpers\Helper::check_image_avatar($product->photo->name, 85);
                ?> <div class="item"> <a class="horizontal-thumb active" data-target="#owl-single-product" data-slide="1" href="#slide1"> <img class="img-responsive" width="85" alt="" src="<?php echo e(asset(theme_url('/img/blank.gif'))); ?>" data-echo="<?php echo e($image_url); ?>" /> </a> </div> <?php else: ?> <div class="item"> <a class="horizontal-thumb active" data-target="#owl-single-product" data-slide="1" href="#slide1"> <img class="img-responsive" width="85" alt="" src="<?php echo e(asset(theme_url('/img/blank.gif'))); ?>" data-echo="https://via.placeholder.com/85x85?text=No+Image" /> </a> </div> <?php endif; ?> <?php if(count($product->photos) > 0): ?> <?php $i = 2; ?> <?php $__currentLoopData = $product->photos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($photo): ?> <?php
                            $image_url = \App\Helpers\Helper::check_image_avatar($photo->name, 65);
                        ?> <div class="item"> <a class="horizontal-thumb" data-target="#owl-single-product" data-slide="<?php echo e($i); ?>" href="#slide<?php echo e($i); ?>"> <img class="img-responsive" width="85" alt="" src="<?php echo e(asset(theme_url('/img/blank.gif'))); ?>" data-echo="<?php echo e($image_url); ?>"/> </a> </div> <?php else: ?> <div class="item"> <a class="horizontal-thumb" data-target="#owl-single-product" data-slide="<?php echo e($i); ?>" href="#slide<?php echo e($i); ?>"> <img class="img-responsive" width="85" alt="" src="<?php echo e(asset(theme_url('/img/blank.gif'))); ?>" data-echo="https://via.placeholder.com/65x65?text=No+Image"/> </a> </div> <?php endif; ?> <?php $i++; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> </div> </div>