<div class="image"> <a href="<?php echo e(route('front.product.show', [$product->slug])); ?>"> <?php if($product->photo): ?> <?php
                $image_url = \App\Helpers\Helper::check_image_avatar($product->photo->name,150);
            ?> <img src="<?php echo e($image_url); ?>" class="img-responsive" alt="<?php echo e($product->name); ?>"/> <?php else: ?> <img src="https://via.placeholder.com/150x150?text=No+Image" class="img-responsive" alt="<?php echo e($product->name); ?>"/> <?php endif; ?> </a> </div>