관리-도구
편집 파일: a452c1e81ffe745fc362e5994b885b5c13107591.php
<?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-lg-4 col-md-6 col-12 <?php echo e(isset($class) ? $class : ''); ?>"> <div class="single-product"> <div class="product-img"> <a href="<?php echo e(url('product/'.$product->slug)); ?>"> <img class="default-img" src="<?php echo e(asset('storage/app/'. $product->image->file_path)); ?>" alt="<?php echo e($product->translation->name); ?>"> <?php if($product->in_stock == 0): ?> <span class="out-of-stock"><?php echo e(_lang('Out Of Stock')); ?></span> <?php elseif($product->featured_tag != NULL): ?> <span class="<?php echo e($product->featured_tag); ?>"><?php echo e(_dlang(str_replace('_',' ',$product->featured_tag))); ?></span> <?php endif; ?> </a> <div class="button-head"> <div class="product-action"> <a href="<?php echo e(url('product/'.$product->slug)); ?>" title="<?php echo e(_lang('Quick View')); ?>" class="quick-shop"> <i class=" ti-eye"></i><span><?php echo e(_lang('Quick Shop')); ?></span> </a> <a title="<?php echo e(_lang('Wishlist')); ?>" class="btn-wishlist" href="<?php echo e(wishlist_url($product)); ?>"><i class=" ti-heart "></i><span><?php echo e(_lang('Add to Wishlist')); ?></span></a> </div> <div class="product-action-2"> <?php if($product->product_type != 'variable_product'): ?> <?php if($product->in_stock == 1): ?> <a title="Add to cart" class="add_to_cart" data-type="<?php echo e($product->product_type); ?>" href="<?php echo e(url('add_to_cart/'.$product->id)); ?>"><?php echo e(_lang('Add to cart')); ?></a> <?php else: ?> <a title="Add to cart" class="btn-link disabled" href="#"><?php echo e(_lang('Add to cart')); ?></a> <?php endif; ?> <?php else: ?> <a title="View Options" href="<?php echo e(url('product/'.$product->slug)); ?>"><?php echo e(_lang('View Options')); ?></a> <?php endif; ?> </div> </div> </div> <div class="product-content"> <h3><a href="<?php echo e(url('product/'.$product->slug)); ?>"><?php echo e($product->translation->name); ?></a></h3> <?php if($product->product_type != 'variable_product'): ?> <div class="product-price"> <?php if($product->special_price != '' || (int) $product->special_price != 0 ): ?> <span class="text-danger"> <s><?php echo xss_clean(show_price($product->price)); ?></s> </span> <span class="text-success"><?php echo xss_clean(show_price($product->special_price)); ?></span> <?php else: ?> <span><?php echo xss_clean(show_price($product->price)); ?></span> <?php endif; ?> </div> <?php else: ?> <div class="product-price"> <?php if($product->variation_prices[0]->special_price != '' || (int) $product->variation_prices[0]->special_price != 0 ): ?> <span class="text-danger"> <s><?php echo xss_clean(show_price($product->variation_prices[0]->price)); ?></s> </span> <span class="text-success"> <?php echo xss_clean(show_price($product->variation_prices[0]->special_price)); ?> - <?php echo xss_clean(show_price($product->variation_prices[count($product->variation_prices) - 1]->special_price)); ?> </span> <?php else: ?> <span> <?php echo xss_clean(show_price($product->variation_prices[0]->price)); ?> - <?php echo xss_clean(show_price($product->variation_prices[count($product->variation_prices) - 1]->price)); ?> </span> <?php endif; ?> </div> <?php endif; ?> <div class="product-rating"> <ul class="reviews"> <?php echo xss_clean(show_rating($product->reviews->avg('rating'))); ?> </ul> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php /**PATH /home/customamgdigital/saintsaccessories.custom.amgdigitalagency.com/resources/views/theme/saintsaccessories/components/product-grid.blade.php ENDPATH**/ ?>