{Ninja-Shell}
Home
Info
Upload
Command
View /etc/passwd
cPanel Reset Password
Filename: /var/www//arsu/storage/framework/views/b4cac15e61881233f360fa6e04e23d434bace7fe.php
<?php ($shippingMethod = \App\CPU\Helpers::get_business_settings('shipping_method')); ?> <?php ( $cart = \App\Model\Cart::where(['customer_id' => auth('customer')->id()])->get()->groupBy('cart_group_id') ); ?> <!-- breadcrumb area start --> <section class="breadcrumb__area include-bg pt-60 pb-50"> <div class="container"> <div class="row"> <div class="col-xxl-12"> <div class="breadcrumb__content p-relative z-index-1"> <h3 class="breadcrumb__title"><?php echo e(\App\CPU\translate('shopping_cart')); ?></h3> <div class="breadcrumb__list"> <span><a href="<?php echo e(route('home')); ?>">Home</a></span> <span><?php echo e(\App\CPU\translate('shopping_cart')); ?></span> </div> </div> </div> </div> </div> </section> <!-- breadcrumb area end --> <?php if(count($cart) == 0): ?> <?php ($physical_product = false); ?> <?php endif; ?> <!-- cart area start --> <section class="tp-cart-area pb-120"> <div class="container"> <div class="row"> <div class="col-xl-9 col-lg-8"> <?php if($cart->count() !== 0): ?> <div class="tp-cart-list mb-25 mr-30"> <table class="table"> <thead> <tr> <th colspan="2" class="tp-cart-header-product">Product</th> <th class="tp-cart-header-price">Unit price</th> <th class="tp-cart-header-quantity">Quantity</th> <th class="tp-cart-header-price">Price</th> <th></th> </tr> </thead> <tbody> <?php $__currentLoopData = $cart; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group_key => $group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $physical_product = false; foreach ($group as $row) { if ($row->product_type == 'physical') { $physical_product = true; } } ?> <?php $__currentLoopData = $group; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cart_key => $cartItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <!-- img --> <td class="tp-cart-img"><a href="<?php echo e(route('product', $cartItem['slug'])); ?>"> <img 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="d-flex--"> <?php $__currentLoopData = json_decode($cartItem['variations'], true); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key1 => $variation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="text-muted mr-2"> <span class="<?php echo e(Session::get('direction') === 'rtl' ? 'ml-2' : 'mr-2'); ?> __text-12px"> <?php echo e($key1); ?> : <?php echo e($variation); ?></span> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </td> <!-- title --> <td class="tp-cart-title"><a href="<?php echo e(route('product', $cartItem['slug'])); ?>"><?php echo e($cartItem['name']); ?></a> </td> <!-- price --> <td class="tp-cart-price"> <div class=" text-accent"> <?php echo e(\App\CPU\Helpers::currency_converter($cartItem['price'] - $cartItem['discount'])); ?> <?php if($cartItem['discount'] > 0): ?> <strike class="__inline-18"> <?php echo e(\App\CPU\Helpers::currency_converter($cartItem['price'])); ?> </strike> <?php endif; ?> </div> </td> <!-- quantity --> <td class="tp-cart-quantity"> <?php ($minimum_order = \App\Model\Product::select('minimum_order_qty')->find($cartItem['product_id'])); ?> <div class="tp-product-quantity mt-10 mb-10"> <span class="tp-cart-minus"> <svg width="10" height="2" viewBox="0 0 10 2" fill="none" xmlns="../../../www.w3.org/2000/svg.html"> <path d="M1 1H9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> </svg> </span> <input class="tp-cart-input" type="text" name="quantity[<?php echo e($cartItem['id']); ?>]" id="cartQuantity<?php echo e($cartItem['id']); ?>" onchange="updateCartQuantity('<?php echo e($minimum_order->minimum_order_qty); ?>', '<?php echo e($cartItem['id']); ?>')" min="<?php echo e($minimum_order->minimum_order_qty ?? 1); ?>" value="<?php echo e($cartItem['quantity']); ?>"> <span class="tp-cart-plus"> <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="../../../www.w3.org/2000/svg.html"> <path d="M5 1V9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> <path d="M1 5H9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> </svg> </span> </div> </td> <td> <div> <?php echo e(\App\CPU\Helpers::currency_converter(($cartItem['price'] - $cartItem['discount']) * $cartItem['quantity'])); ?> </div> </td> <!-- action --> <td class="tp-cart-action"> <button class="tp-cart-action-btn" type="button" onclick="removeFromCart(<?php echo e($cartItem['id']); ?>)"> <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="../../../www.w3.org/2000/svg.html"> <path fill-rule="evenodd" clip-rule="evenodd" d="M9.53033 1.53033C9.82322 1.23744 9.82322 0.762563 9.53033 0.46967C9.23744 0.176777 8.76256 0.176777 8.46967 0.46967L5 3.93934L1.53033 0.46967C1.23744 0.176777 0.762563 0.176777 0.46967 0.46967C0.176777 0.762563 0.176777 1.23744 0.46967 1.53033L3.93934 5L0.46967 8.46967C0.176777 8.76256 0.176777 9.23744 0.46967 9.53033C0.762563 9.82322 1.23744 9.82322 1.53033 9.53033L5 6.06066L8.46967 9.53033C8.76256 9.82322 9.23744 9.82322 9.53033 9.53033C9.82322 9.23744 9.82322 8.76256 9.53033 8.46967L6.06066 5L9.53033 1.53033Z" fill="currentColor" /> </svg> <span>Remove</span> </button> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <div class="tp-cart-bottom mr-30 mb-5 pb-5"> <div class="row align-items-end"> <div class="col-xl-12 col-md-12"> <?php if($shippingMethod == 'inhouse_shipping'): ?> <?php $admin_shipping = \App\Model\ShippingType::where('seller_id', 0)->first(); $shipping_type = isset($admin_shipping) == true ? $admin_shipping->shipping_type : 'order_wise'; ?> <?php if($shipping_type == 'order_wise' && $physical_product): ?> <?php ($shippings = \App\CPU\Helpers::get_shipping_methods(1, 'admin')); ?> <?php ($choosen_shipping = \App\Model\CartShipping::where(['cart_group_id' => $cartItem['cart_group_id']])->first()); ?> <?php if(isset($choosen_shipping) == false): ?> <?php ($choosen_shipping['shipping_method_id'] = 0); ?> <?php endif; ?> <div class="row"> <div class="col-12"> <select class="form-control" onchange="set_shipping_id(this.value,'all_cart_group')"> <option><?php echo e(\App\CPU\translate('choose_shipping_method')); ?></option> <?php $__currentLoopData = $shippings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $shipping): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($shipping['id']); ?>" <?php echo e($choosen_shipping['shipping_method_id'] == $shipping['id'] ? 'selected' : ''); ?>> <?php echo e($shipping['title'] . ' ( ' . $shipping['duration'] . ' ) ' . \App\CPU\Helpers::currency_converter($shipping['cost'])); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <?php endif; ?> <?php endif; ?> </div> </div> </div> <div class="tp-cart-bottom mr-30 mb-5 pb-5"> <div class="row align-items-end"> <div class="col-xl-12 col-md-12"> <form method="get"> <div class="form-group"> <div class="row"> <div class="col-12"> <label class="form-label input-label"><?php echo e(\App\CPU\translate('order_note')); ?> <span class="input-label-secondary">(<?php echo e(\App\CPU\translate('Optional')); ?>)</span></label> <textarea class="form-control w-100" id="order_note" name="order_note"><?php echo e(session('order_note')); ?></textarea> </div> </div> </div> </form> </div> </div> </div> <div class="tp-cart-bottom mr-30"> <div class="row align-items-end"> <div class="col-xl-6 col-md-8"> <div class="tp-cart-update text-md-start"> <a href="<?php echo e(route('home')); ?>" class="tp-cart-checkout-btn w-100--"><?php echo e(\App\CPU\translate('continue_shopping')); ?></a> </div> </div> <div class="col-xl-6 col-md-4"> <div class="tp-cart-checkout-proceed text-md-end"> <a onclick="checkout()" class="tp-cart-checkout-btn w-100--"><?php echo e(\App\CPU\translate('checkout')); ?></a> </div> </div> </div> </div> <?php endif; ?> <?php if($cart->count() == 0): ?> <div class="d-flex justify-content-center align-items-center"> <h4 class="text-danger text-capitalize"><?php echo e(\App\CPU\translate('cart_empty')); ?></h4> </div> <?php endif; ?> </div> <div class="col-xl-3 col-lg-4 col-md-6"> <!-- Sidebar--> <?php echo $__env->make('web-views.partials._order-summary', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> </div> </section> <!-- cart area end --> <script> //cartQuantityInitialize(); function set_shipping_id(id, cart_group_id) { $.get({ url: '<?php echo e(url('/')); ?>/customer/set-shipping-method', dataType: 'json', data: { id: id, cart_group_id: cart_group_id }, beforeSend: function() { $('#loading').show(); }, success: function(data) { location.reload(); }, complete: function() { $('#loading').hide(); }, }); } </script> <script> function checkout() { let order_note = $('#order_note').val(); //console.log(order_note); $.post({ url: "<?php echo e(route('order_note')); ?>", data: { _token: '<?php echo e(csrf_token()); ?>', order_note: order_note, }, beforeSend: function() { $('#loading').show(); }, success: function(data) { let url = "<?php echo e(route('checkout-details')); ?>"; location.href = url; }, complete: function() { $('#loading').hide(); }, }); } </script> <?php /**PATH /var/www/arsu/resources/themes/default/layouts/front-end/partials/cart_details.blade.php ENDPATH**/ ?>
./Ninja\.