ok
Direktori : /home2/selectio/www/a1tex.in/storage/framework/views/ |
Current File : /home2/selectio/www/a1tex.in/storage/framework/views/fa1c91655dad6bd0195faa168945c4a87f833ac0.php |
<div class="navbar-tool dropdown <?php echo e(Session::get('direction') === "rtl" ? 'mr-md-3' : 'ml-md-3'); ?>" style="margin-<?php echo e(Session::get('direction') === "rtl" ? 'left' : 'right'); ?>: 6px"> <a class="navbar-tool-icon-box bg-secondary dropdown-toggle" href="<?php echo e(route('shop-cart')); ?>"> <span class="navbar-tool-label"> <?php ($cart=\App\CPU\CartManager::get_cart()); ?> <?php echo e($cart->count()); ?> </span> <i class="navbar-tool-icon czi-cart"></i> </a> <a class="navbar-tool-text <?php echo e(Session::get('direction') === "rtl" ? 'mr-2' : 'ml-2'); ?>" href="<?php echo e(route('shop-cart')); ?>"><small><?php echo e(\App\CPU\translate('my_cart')); ?></small> <?php echo e(\App\CPU\Helpers::currency_converter(\App\CPU\CartManager::cart_total_applied_discount(\App\CPU\CartManager::get_cart()))); ?> </a> <!-- Cart dropdown--> <div class="dropdown-menu dropdown-menu-<?php echo e(Session::get('direction') === "rtl" ? 'left' : 'right'); ?> __w-20rem "> <div class="widget widget-cart px-3 pt-2 pb-3"> <?php if($cart->count() > 0): ?> <div class="__h-15rem" data-simplebar data-simplebar-auto-hide="false"> <?php ($sub_total=0); ?> <?php ($total_tax=0); ?> <?php $__currentLoopData = $cart; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cartItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="widget-cart-item pb-2"> <button class="close text-danger " type="button" onclick="removeFromCart(<?php echo e($cartItem['id']); ?>)" aria-label="Remove"><span aria-hidden="true">×</span> </button> <div class="media"> <a class="d-block <?php echo e(Session::get('direction') === "rtl" ? 'ml-2' : 'mr-2'); ?>" href="<?php echo e(route('product',$cartItem['slug'])); ?>"> <img width="64" onerror="this.src='<?php echo e(asset('public/assets/front-end/img/image-place-holder.png')); ?>'" src="<?php echo e(\App\CPU\ProductManager::product_image_path('thumbnail')); ?>/<?php echo e($cartItem['thumbnail']); ?>" alt="Product"/> </a> <div class="media-body"> <h6 class="widget-product-title"> <a href="<?php echo e(route('product',$cartItem['slug'])); ?>"><?php echo e(Str::limit($cartItem['name'],30)); ?></a></h6> <?php $__currentLoopData = json_decode($cartItem['variations'],true); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key =>$variation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <span class="__text-14px"><?php echo e($key); ?> : <?php echo e($variation); ?></span><br> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <div class="widget-product-meta"> <span class="text-muted <?php echo e(Session::get('direction') === "rtl" ? 'ml-2' : 'mr-2'); ?>">x <?php echo e($cartItem['quantity']); ?></span> <span class="text-accent <?php echo e(Session::get('direction') === "rtl" ? 'ml-2' : 'mr-2'); ?>"> <?php echo e(\App\CPU\Helpers::currency_converter(($cartItem['price']-$cartItem['discount'])*$cartItem['quantity'])); ?> </span> </div> </div> </div> </div> <?php ($sub_total+=($cartItem['price']-$cartItem['discount'])*$cartItem['quantity']); ?> <?php ($total_tax+=$cartItem['tax']*$cartItem['quantity']); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <hr> <div class="d-flex flex-wrap justify-content-between align-items-center py-3"> <div class="font-size-sm <?php echo e(Session::get('direction') === "rtl" ? 'ml-2 float-left' : 'mr-2 float-right'); ?> py-2 "> <span class=""><?php echo e(\App\CPU\translate('Subtotal')); ?> :</span> <span class="text-accent font-size-base <?php echo e(Session::get('direction') === "rtl" ? 'mr-1' : 'ml-1'); ?>"> <?php echo e(\App\CPU\Helpers::currency_converter($sub_total)); ?> </span> </div> <a class="btn btn-outline-secondary btn-sm" href="<?php echo e(route('shop-cart')); ?>"> <?php echo e(\App\CPU\translate('Expand cart')); ?><i class="czi-arrow-<?php echo e(Session::get('direction') === "rtl" ? 'left mr-1 ml-n1' : 'right ml-1 mr-n1'); ?>"></i> </a> </div> <a class="btn btn--primary btn-sm btn-block" href="<?php echo e(route('checkout-details')); ?>"> <i class="czi-card <?php echo e(Session::get('direction') === "rtl" ? 'ml-2' : 'mr-2'); ?> font-size-base align-middle"></i><?php echo e(\App\CPU\translate('Checkout')); ?> </a> <?php else: ?> <div class="widget-cart-item"> <h6 class="text-danger text-center m-0"><i class="fa fa-cart-arrow-down"></i> <?php echo e(\App\CPU\translate('Empty')); ?> <?php echo e(\App\CPU\translate('Cart')); ?> </h6> </div> <?php endif; ?> </div> </div> </div> <?php /**PATH /home2/selectio/public_html/a1tex.in/website/resources/views/layouts/front-end/partials/cart.blade.php ENDPATH**/ ?>