Viewing file: 02988b4c511fa1292e371ae1dad7cd25.php (7.13 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(__('Compare')); ?>
<?php $__env->stopSection(); ?> <?php $__env->startSection('meta'); ?> <meta name="keywords" content="<?php echo e($setting->meta_keywords); ?>"> <meta name="description" content="<?php echo e($setting->meta_description); ?>"> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <!-- Page Title--> <div class="page-title"> <div class="container"> <div class="row"> <div class="col-lg-12"> <ul class="breadcrumbs"> <li><a href="<?php echo e(route('front.index')); ?>"><?php echo e(__('Home')); ?></a> </li> <li class="separator"></li> <li><?php echo e(__('Compare Products')); ?></li> </ul> </div> </div> </div> </div> <!-- Page Content--> <div class="container padding-bottom-3x mb-1"> <div class="card"> <div class="card-body"> <div class="comparison-card-sec"> <div class="row"> <?php if(count($items) > 0): ?> <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $keys => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-lg-4 col-md-4 col-12"> <div class="card"> <div class="card-body"> <div class="compare-product-card"> <div class="compare-p-name"><?php echo e($item->name); ?></div> <span class="remove-item compare_remove" data-href="<?php echo e(route('front.compare.remove',$item->id)); ?>"> <i class="icon-x"></i> </span> <a class="comparison-item-thumb" href="<?php echo e(route('front.product.solo',$item->slug)); ?>"> <img src="<?php echo e(asset('assets/images/'.$item->thumbnail)); ?>" alt="Image"></a> <?php if($item->item_type != 'affiliate'): ?> <div class="compare-product-des mt-4"> <p class="mb-0"><b><?php echo e(__('Short Details')); ?></b> : <?php echo e($item->brand->name); ?> </p> <p class="mb-0"><b><?php echo e(__('Brand')); ?></b> : <?php echo e($item->brand->name); ?>
</p> <p class="mb-0"> <b><?php echo e(__('Price')); ?></b> : <?php echo e(PriceHelper::grandCurrencyPrice($item)); ?>
</p> </div> <?php endif; ?> <div class="compare-product-specifications"> <?php if(isset($item->specification_name) && $item->specification_name && isset($item->specification_description) && $item->specification_description): ?> <?php $specifications = array_combine( json_decode($item->specification_name, true), json_decode($item->specification_description, true) ); ?> <?php $__currentLoopData = $specifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $s_name => $s_description): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(!empty($s_name) && !empty($s_description)): ?> <div class="specifications-details d-flex"> <div class="specification-name-sec"> <p><b><?php echo e($s_name); ?>:</b></p> </div> <div class="specification-des-sec mx-1"> <?php echo e($s_description); ?>
</div> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> <div class="attribute-sec-compare-product"> <div class="product-size-n-color-sec"> <?php if($item->attributes->where('name', 'Size')->isNotEmpty()): ?> <p class="mb-0"><b>Size:</b> <?php echo e($item->attributes->where('name', 'Size')->first()->options->where('stock', '!=', '0')->pluck('name')->sort()->implode(', ')); ?>
</p> <?php endif; ?> <?php if($item->attributes->where('name', 'Color')->isNotEmpty()): ?> <p class="mb-0"><b>Color:</b> <?php echo e($item->attributes->where('name', 'Color')->first()->options->where('stock', '!=', '0')->pluck('name')->sort()->implode(', ')); ?>
</p> <?php endif; ?> </div> </div> <div class="compare-product-add-to-cart"> <?php if(Auth::user()): ?> <a href="<?php echo e(route('front.product.solo', $item->slug)); ?>" class="btn-for-add-to-cart mr-auto add_to_single_cart" title="<?php echo e(__('To Cart')); ?>">Add To Cart</a> <?php else: ?> <a href="<?php echo e(route('user.login')); ?>" class="btn-for-add-to-cart mr-auto">Add To Cart</a> <?php endif; ?> </div> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <div class="text-center"><strong><?php echo e(__('Product not found')); ?></strong></div> <?php endif; ?> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php echo $__env->make('master.front', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/user/Desktop/Mines/Picotech-P/ecommerce1/core/resources/views/front/compare.blade.php ENDPATH**/ ?>
|