{Ninja-Shell}
Home
Info
Upload
Command
View /etc/passwd
cPanel Reset Password
Filename: /var/www//arsu//storage//framework//views/31d7922a7cc0bf6d94b09eddc0e6bb04ba223088.php
<!doctype html> <html class="no-js" lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title> <?php echo $__env->yieldContent('title'); ?> </title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="_token" content="<?php echo e(csrf_token()); ?>"> <!-- Place favicon.ico in the root directory --> <link rel="apple-touch-icon" sizes="180x180" href="<?php echo e(asset('storage/app/public/company')); ?>/<?php echo e($web_config['fav_icon']->value); ?>"> <link rel="icon" type="image/png" sizes="32x32" href="<?php echo e(asset('storage/app/public/company')); ?>/<?php echo e($web_config['fav_icon']->value); ?>"> <style> :root { /** @font family declaration */ --tp-ff-body: 'Jost', sans-serif; --tp-ff-heading: 'Jost', sans-serif; --tp-ff-p: 'Jost', sans-serif; --tp-ff-jost: 'Jost', sans-serif; --tp-ff-fontawesome: "Font Awesome 6 Pro"; --tp-ff-roboto: 'Roboto', sans-serif; --tp-ff-oregano: 'Oregano', cursive; --tp-ff-charm: 'Charm', cursive; /** @color declaration */ --tp-common-white: #ffffff; --tp-common-black-solid: #000; --tp-common-black: #010F1C; --tp-yellow-1: #FFB342; --tp-yellow-2: #FFD43A; --tp-yellow-3: #FFB21D; --tp-pink-1: #FD4B6B; --tp-pink-2: #FD2D6C; --tp-pink-3: #FF296A; --tp-pink-4: #FF3494; --tp-green-dark: #115061; --tp-green-1: #31B757; --tp-khaki-1: #AB9774; --tp-blue-1: #0989FF; --tp-orange-1: #FF6736; --tp-heading-primary: #010F1C; --tp-heading-secondary: #021D35; --tp-grey-1: #F6F7F9; --tp-grey-2: #ECF2F7; --tp-grey-3: #CAD4DB; --tp-grey-4: #F8F8F8; --tp-grey-5: #EFF0ED; --tp-grey-6: #EFF1F5; --tp-grey-7: #F6F6F6; --tp-grey-8: #EAE4DE; --tp-grey-9: #E5E9F2; --tp-text-body: #55585B; --tp-text-1: #767A7D; --tp-text-2: #55585B; --tp-text-3: #A0A2A4; --tp-text-4: #7D7F82; --tp-text-5: #888A8C; --tp-text-6: #90969B; --tp-theme-primary: <?php echo e($web_config['primary_color']); ?> !important; --tp-theme-secondary: <?php echo e($web_config['secondary_color']); ?> !important; --tp-theme-brown: #BD844C; --tp-theme-green: #678E61; --tp-footer-grey-1: #F4F7F9; --tp-border-primary: #EAEBED; --tp-border-secondary: #F0F2F4; --tp-border-3: #E4E5E9; --tp-border-4: #E6E7E8; } </style> <!-- CSS here --> <link href="https://fonts.googleapis.com/css2?family=Charm:wght@400;700&family=Jost:wght@300;400;500;600;700&family=Oregano&family=Roboto:wght@300;400;500;700;900&display=swap" rel="stylesheet"> <link rel="stylesheet" href="<?php echo e(asset('public/assets/front-end')); ?>/css/bootstrap.css"> <link rel="stylesheet" href="<?php echo e(asset('public/assets/front-end')); ?>/css/animate.css"> <link rel="stylesheet" href="<?php echo e(asset('public/assets/front-end')); ?>/css/swiper-bundle.css"> <link rel="stylesheet" href="<?php echo e(asset('public/assets/front-end')); ?>/css/slick.css"> <link rel="stylesheet" href="<?php echo e(asset('public/assets/front-end')); ?>/css/magnific-popup.css"> <link rel="stylesheet" href="<?php echo e(asset('public/assets/front-end')); ?>/css/font-awesome-pro.css"> <link rel="stylesheet" href="<?php echo e(asset('public/assets/back-end')); ?>/css/toastr.css" /> <link rel="stylesheet" href="<?php echo e(asset('public/assets/front-end')); ?>/css/flaticon_shofy.css"> <link rel="stylesheet" href="<?php echo e(asset('public/assets/front-end')); ?>/css/spacing.css"> <link rel="stylesheet" href="<?php echo e(asset('public/assets/front-end')); ?>/css/newsletter.css"> <?php echo $__env->yieldPushContent('css_or_js'); ?> <link rel="stylesheet" href="<?php echo e(asset('public/assets/front-end')); ?>/css/main.css?v=<?php echo e(rand(9999,999999)); ?>"> <style> #loading { background-color: #ffffff87; height: 100%; width: 100%; position: fixed; z-index: 999999; margin-top: 0px; top: 0px; } .tp-featured-thumb { background-position: right; left: 50%; width: 50%; } </style> </head> <body> <!-- pre loader area start --> <div id="loading"> <div id="loading-center"> <div id="loading-center-absolute"> <!-- loading content here --> <div class="tp-preloader-content"> <div class="tp-preloader-logo"> <img src="<?php echo e(asset('storage/app/public/company')); ?>/<?php echo e(\App\CPU\Helpers::get_business_settings('loader_gif')); ?>" onerror="this.src='<?php echo e(asset('public/assets/front-end/img/loader.gif')); ?>'" alt="loader"> </div> </div> </div> </div> </div> <!-- pre loader area end --> <!-- back to top start --> <div class="back-to-top-wrapper"> <button id="back_to_top" type="button" class="back-to-top-btn"> <svg width="12" height="7" viewBox="0 0 12 7" fill="none" xmlns="../../../www.w3.org/2000/svg.html"> <path d="M11 6L6 1L1 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> </svg> </button> </div> <!-- back to top end --> <!-- offcanvas area start --> <div class="offcanvas__area offcanvas__style-darkRed"> <div class="offcanvas__wrapper"> <div class="offcanvas__close"> <button class="offcanvas__close-btn offcanvas-close-btn"> <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="../../../www.w3.org/2000/svg.html"> <path d="M11 1L1 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> <path d="M1 1L11 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> </svg> </button> </div> <div class="offcanvas__content"> <div class="offcanvas__top mb-70 d-flex justify-content-between align-items-center"> <div class="offcanvas__logo logo"> <a href="<?php echo e(route('home')); ?>"> <img src="<?php echo e(asset('storage/app/public/company') . '/' . $web_config['web_logo']->value); ?>" onerror="this.src='<?php echo e(asset('public/assets/front-end/img/image-place-holder.png')); ?>'" alt="<?php echo e($web_config['name']->value); ?>" height="70"> </a> </div> </div> <div class="tp-main-menu-mobile fix mb-40"></div> <div class="offcanvas__contact align-items-center"> <div class="offcanvas__contact-icon mr-20"> <span> <img src="<?php echo e(asset('public/assets/front-end')); ?>/img/icon/contact.png" alt="phone"> </span> </div> <div class="offcanvas__contact-content"> <h3 class="offcanvas__contact-title"> <a href="tel:<?php echo e($web_config['phone']->value); ?>"><?php echo e($web_config['phone']->value); ?></a> </h3> </div> </div> <!-- <div class="offcanvas__btn"> <a href="<?php echo e(route('contacts')); ?>" class="tp-btn-2 tp-btn-border-2">Contact Us</a> </div> --> </div> <div class="offcanvas__bottom"> <div class="offcanvas__footer d-flex align-items-center justify-content-between"> <?php ($currency_model = \App\CPU\Helpers::get_business_settings('currency_model')); ?> <?php if($currency_model == 'multi_currency'): ?> <div class="offcanvas__currency-wrapper currency"> <span class="offcanvas__currency-selected-currency tp-currency-toggle" id="tp-offcanvas-currency-toggle">Currency : <?php echo e(session('currency_code')); ?> <?php echo e(session('currency_symbol')); ?></span> <ul class="offcanvas__currency-list tp-currency-list"> <?php $__currentLoopData = \App\Model\Currency::where('status', 1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li onclick="currency_change('<?php echo e($currency['code']); ?>')"><?php echo e($currency->name); ?> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> <?php endif; ?> <?php ($local = \App\CPU\Helpers::default_lang()); ?> <div class="offcanvas__select language"> <div class="offcanvas__lang d-flex align-items-center justify-content-md-end"> <div class="offcanvas__lang-wrapper"> <span class="offcanvas__lang-selected-lang tp-lang-toggle" id="tp-offcanvas-lang-toggle"> <?php $__currentLoopData = json_decode($language['value'], true); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($data['code'] == $local): ?> <?php echo e($data['name']); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </span> <ul class="offcanvas__lang-list tp-lang-list"> <?php $__currentLoopData = json_decode($language['value'], true); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($data['status'] == 1): ?> <li> <a href="<?php echo e(route('lang', [$data['code']])); ?>"> <?php echo e($data['name']); ?> </a> </li> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="body-overlay"></div> <!-- offcanvas area end --> <!-- mobile menu area start --> <div id="tp-bottom-menu-sticky" class="tp-mobile-menu d-lg-none"> <div class="container"> <div class="row row-cols-5"> <div class="col"> <div class="tp-mobile-item text-center"> <a href="<?php echo e(route('account-oder')); ?>" class="tp-mobile-item-btn"> <i class="flaticon-store"></i> <span><?php echo e(\App\CPU\translate('Orders')); ?></span> </a> </div> </div> <div class="col"> <div class="tp-mobile-item text-center"> <button class="tp-mobile-item-btn tp-search-open-btn"> <i class="flaticon-search-1"></i> <span class="mt-2"><?php echo e(\App\CPU\translate('Search')); ?></span> </button> </div> </div> <div class="col"> <div class="tp-mobile-item text-center"> <a href="<?php echo e(route('wishlists')); ?>" class="tp-mobile-item-btn"> <i class="flaticon-love"></i> <span><?php echo e(\App\CPU\translate('Wishlist')); ?></span> </a> </div> </div> <div class="col"> <div class="tp-mobile-item text-center"> <a href="<?php echo e(route('user-account')); ?>" class="tp-mobile-item-btn"> <i class="flaticon-user"></i> <span><?php echo e(\App\CPU\translate('Profile')); ?></span> </a> </div> </div> <div class="col"> <div class="tp-mobile-item text-center"> <button class="tp-mobile-item-btn tp-offcanvas-open-btn"> <i class="flaticon-menu-1"></i> <span class="mt-2"><?php echo e(\App\CPU\translate('Menu')); ?></span> </button> </div> </div> </div> </div> </div> <!-- mobile menu area end --> <!-- search area start --> <section class="tp-search-area tp-search-style-secondary"> <div class="container"> <div class="row"> <div class="col-xl-12"> <div class="tp-search-form"> <div class="tp-search-close text-center mb-20"> <button class="tp-search-close-btn tp-search-close-btn"></button> </div> <form action="<?php echo e(route('products')); ?>" type="submit" class="search_form"> <div class="tp-search-input mb-10"> <input class="appended-form-control search-bar-input" type="text" autocomplete="off" placeholder="<?php echo e(\App\CPU\translate('Search here ...')); ?>" name="name" > <button type="submit"><i class="flaticon-search-1"></i></button> <input name="data_from" value="search" hidden> <input name="page" value="1" hidden> <diV class="card search-card __inline-13"> <div class="card-body search-result-box __h-400px overflow-x-hidden overflow-y-auto"></div> </diV> </div> </form> </div> </div> </div> </div> </section> <!-- search area end --> <!-- cart mini area start --> <div class="cartmini__area cartmini__style-darkRed" id="cart_items"> <?php echo $__env->make('layouts.front-end.partials.cart', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> <!-- cart mini area end --> <!-- header area start --> <?php echo $__env->make('layouts.front-end.partials._header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <!-- header area end --> <main> <?php echo $__env->yieldContent('content'); ?> <?php echo $__env->make('layouts.front-end.partials._newsletter', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </main> <!-- Quick View Modal--> <?php echo $__env->make('layouts.front-end.partials._quick-view-modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->make('layouts.front-end.partials._modals', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <!-- footer area start --> <?php echo $__env->make('layouts.front-end.partials._footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <!-- footer area end --> <!-- JS here --> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/vendor/jquery.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/vendor/waypoints.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/bootstrap-bundle.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/meanmenu.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/swiper-bundle.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/slick.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/range-slider.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/magnific-popup.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/nice-select.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/purecounter.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/countdown.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/wow.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/isotope-pkgd.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/imagesloaded-pkgd.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/ajax-form.js"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/main.js?v=<?php echo e(rand(9999,9999999)); ?>"></script> <script src="<?php echo e(asset('public/assets/front-end')); ?>/js/sweet_alert.js"></script> <script src=<?php echo e(asset('public/assets/back-end/js/toastr.js')); ?>></script> <?php echo Toastr::message(); ?> <script> toastr.options = { "closeButton": true, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-bottom-left", "preventDuplicates": false, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } </script> <script> function addWishlist(product_id) { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') } }); $.ajax({ url: "<?php echo e(route('store-wishlist')); ?>", method: 'POST', data: { product_id: product_id }, success: function(data) { if (data.value == 1) { Swal.fire({ position: 'top-end', type: 'success', title: data.success, showConfirmButton: false, timer: 1500 }); $('.countWishlist').html(data.count); $('.countWishlist-' + product_id).text(data.product_count); $('.tooltip').html(''); $(`#wishlist_icon_${product_id}`).attr('class', 'fa fa-heart'); } else if (data.value == 2) { Swal.fire({ type: 'info', title: 'WishList', text: data.error }); $('.countWishlist').html(data.count); $('.countWishlist-' + product_id).text(data.product_count); $(`#wishlist_icon_${product_id}`).attr('class', 'fa fa-heart-o'); } else { Swal.fire({ type: 'error', title: 'WishList', text: data.error }); } } }); } function removeWishlist(product_id) { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') } }); $.ajax({ url: "<?php echo e(route('delete-wishlist')); ?>", method: 'POST', data: { id: product_id }, beforeSend: function() { $('#loading').show(); }, success: function(data) { Swal.fire({ type: 'success', title: 'WishList', text: data.success }); $('.countWishlist').html(data.count); $('#set-wish-list').html(data.wishlist); $('.tooltip').html(''); }, complete: function() { $('#loading').hide(); }, }); } function quickView(product_id) { $.get({ url: '<?php echo e(route('quick-view')); ?>', dataType: 'json', data: { product_id: product_id }, beforeSend: function() { $('#loading').show(); }, success: function(data) { console.log("success...") $('#producQuickViewModal').modal('show'); $('#quick-view-modal').empty().html(data.view); }, complete: function() { $('#loading').hide(); }, }); } function addToCart(form_id = 'add-to-cart-form', redirect_to_checkout = false) { if (checkAddToCartValidity()) { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') } }); $.post({ url: '<?php echo e(route('cart.add')); ?>', data: $('#' + form_id).serializeArray(), beforeSend: function() { $('#loading').show(); }, success: function(response) { console.log(response); if (response.status == 1) { updateNavCart(); toastr.success(response.message, { CloseButton: true, ProgressBar: true }); $('.call-when-done').click(); if (redirect_to_checkout) { location.href = "<?php echo e(route('checkout-details')); ?>"; } $('.cartmini-open-btn').click(); return false; } else if (response.status == 0) { Swal.fire({ icon: 'error', title: 'Cart', text: response.message }); return false; } }, complete: function() { $('#loading').hide(); } }); } else { Swal.fire({ type: 'info', title: 'Cart', text: '<?php echo e(\App\CPU\translate('please_choose_all_the_options')); ?>' }); } } function buy_now() { addToCart('add-to-cart-form', true); /* location.href = "<?php echo e(route('checkout-details')); ?>"; */ } function currency_change(currency_code) { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') } }); $.ajax({ type: 'POST', url: '<?php echo e(route('currency.change')); ?>', data: { currency_code: currency_code }, success: function(data) { toastr.success('<?php echo e(\App\CPU\translate('Currency changed to')); ?>' + data.name); location.reload(); } }); } function removeFromCart(key) { $.post('<?php echo e(route('cart.remove')); ?>', { _token: '<?php echo e(csrf_token()); ?>', key: key }, function(response) { $('#cod-for-cart').hide(); updateNavCart(); $('#cart-summary').empty().html(response.data); toastr.info('<?php echo e(\App\CPU\translate('Item has been removed from cart')); ?>', { CloseButton: true, ProgressBar: true }); let segment_array = window.location.pathname.split('/'); let segment = segment_array[segment_array.length - 1]; if (segment === 'checkout-payment' || segment === 'checkout-details') { location.reload(); } }); } function updateNavCart() { $.post('<?php echo e(route('cart.nav-cart')); ?>', { _token: '<?php echo e(csrf_token()); ?>' }, function(response) { $('#cart_items').html(response.data); $('.countCart').html(response.countCart); }); } function cartQuantityInitialize() { $('.btn-number').click(function(e) { e.preventDefault(); fieldName = $(this).attr('data-field'); type = $(this).attr('data-type'); productType = $(this).attr('product-type'); var input = $("input[name='" + fieldName + "']"); var currentVal = parseInt(input.val()); if (!isNaN(currentVal)) { console.log(productType) if (type == 'minus') { if (currentVal > input.attr('min')) { input.val(currentVal - 1).change(); } if (parseInt(input.val()) == input.attr('min')) { $(this).attr('disabled', true); } } else if (type == 'plus') { if (currentVal < input.attr('max') || (productType === 'digital')) { input.val(currentVal + 1).change(); } if ((parseInt(input.val()) == input.attr('max')) && (productType === 'physical')) { $(this).attr('disabled', true); } } } else { input.val(0); } }); $('.input-number').focusin(function() { $(this).data('oldValue', $(this).val()); }); $('.input-number').change(function() { productType = $(this).attr('product-type'); minValue = parseInt($(this).attr('min')); maxValue = parseInt($(this).attr('max')); valueCurrent = parseInt($(this).val()); var name = $(this).attr('name'); if (valueCurrent >= minValue) { $(".btn-number[data-type='minus'][data-field='" + name + "']").removeAttr('disabled') } else { Swal.fire({ icon: 'error', title: 'Cart', text: '<?php echo e(\App\CPU\translate('Sorry, the minimum order quantity does not match')); ?>' }); $(this).val($(this).data('oldValue')); } if (productType === 'digital' || valueCurrent <= maxValue) { $(".btn-number[data-type='plus'][data-field='" + name + "']").removeAttr('disabled') } else { Swal.fire({ icon: 'error', title: 'Cart', text: '<?php echo e(\App\CPU\translate('Sorry, stock limit exceeded')); ?>.' }); $(this).val($(this).data('oldValue')); } }); $(".input-number").keydown(function(e) { // Allow: backspace, delete, tab, escape, enter and . if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 190]) !== -1 || // Allow: Ctrl+A (e.keyCode == 65 && e.ctrlKey === true) || // Allow: home, end, left, right (e.keyCode >= 35 && e.keyCode <= 39)) { // let it happen, don't do anything return; } // Ensure that it is a number and stop the keypress if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) { e.preventDefault(); } }); } function updateQuantity(key, element) { $.post('<?php echo e(route('cart.updateQuantity')); ?>', { _token: '<?php echo e(csrf_token()); ?>', key: key, quantity: element.value }, function(data) { updateNavCart(); $('#cart-summary').empty().html(data); }); } function updateCartQuantity(minimum_order_qty, key) { /* var quantity = $("#cartQuantity" + key).children("option:selected").val(); */ var quantity = $("#cartQuantity" + key).val(); if (minimum_order_qty > quantity) { toastr.error('<?php echo e(\App\CPU\translate('minimum_order_quantity_cannot_be_less_than_')); ?>' + minimum_order_qty); $("#cartQuantity" + key).val(minimum_order_qty); return false; } $.post('<?php echo e(route('cart.updateQuantity')); ?>', { _token: '<?php echo e(csrf_token()); ?>', key: key, quantity: quantity }, function(response) { if (response.status == 0) { toastr.error(response.message, { CloseButton: true, ProgressBar: true }); $("#cartQuantity" + key).val(response['qty']); } else { updateNavCart(); $('#cart-summary').empty().html(response); } }); } $('#add-to-cart-form input').on('change', function() { getVariantPrice(); }); function getVariantPrice() { if ($('#add-to-cart-form input[name=quantity]').val() > 0 && checkAddToCartValidity()) { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') } }); $.ajax({ type: "POST", url: '<?php echo e(route('cart.variant_price')); ?>', data: $('#add-to-cart-form').serializeArray(), success: function(data) { $('#add-to-cart-form #chosen_price_div').removeClass('d-none'); $('#add-to-cart-form #chosen_price_div #chosen_price').html(data.price); $('#set-tax-amount').html(data.tax); $('#set-discount-amount').html(data.discount); $('#available-quantity').html(data.quantity); $('.cart-qty-field').attr('max', data.quantity); } }); } } function checkAddToCartValidity() { var names = {}; $('#add-to-cart-form input:radio').each(function() { // find unique names names[$(this).attr('name')] = true; }); var count = 0; $.each(names, function() { // then count them count++; }); if ($('input:radio:checked').length == count) { return true; } return false; } // Product Share Link Generator JS || Start function shareOnFacebook(url, social) { var width = 600, height = 400, left = (screen.width - width) / 2, top = (screen.height - height) / 2; window.open( "https://" + social + encodeURIComponent(url), "Popup", "toolbar=0,status=0,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top ); } // Product Share Link Generator JS || End <?php if(Request::is('/') && \Illuminate\Support\Facades\Cookie::has('popup_banner') == false): ?> $(document).ready(function() { $('#newsletter-popup').appendTo("body").modal('show'); }); <?php (\Illuminate\Support\Facades\Cookie::queue('popup_banner', 'off', 1)); ?> <?php endif; ?> $(".clickable").click(function () { window.location = $(this).find("a").attr("href"); return false; }); </script> <?php if($errors->any()): ?> <script> <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> toastr.error('<?php echo e($error); ?>', Error, { CloseButton: true, ProgressBar: true }); <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </script> <?php endif; ?> <script> function couponCode() { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') } }); $.ajax({ type: "POST", url: '<?php echo e(route('coupon.apply')); ?>', data: $('#coupon-code-ajax').serializeArray(), success: function (data) { /* console.log(data); return false; */ if (data.status == 1) { let ms = data.messages; ms.forEach( function (m, index) { toastr.success(m, index, { CloseButton: true, ProgressBar: true }); } ); } else { let ms = data.messages; ms.forEach( function (m, index) { toastr.error(m, index, { CloseButton: true, ProgressBar: true }); } ); } setInterval(function () { location.reload(); }, 2000); } }); } jQuery(".search-bar-input").keyup(function () { $(".search-card").css("display", "block"); let name = $(".search-bar-input").val(); if (name.length > 0) { $.get({ url: '<?php echo e(url('/')); ?>/searched-products', dataType: 'json', data: { name: name }, beforeSend: function () { $('#loading').show(); }, success: function (data) { $('.search-result-box').empty().html(data.result) }, complete: function () { $('#loading').hide(); }, }); } else { $('.search-result-box').empty(); } }); jQuery(".search-bar-input-mobile").keyup(function () { $(".search-card").css("display", "block"); let name = $(".search-bar-input-mobile").val(); if (name.length > 0) { $.get({ url: '<?php echo e(url('/')); ?>/searched-products', dataType: 'json', data: { name: name }, beforeSend: function () { $('#loading').show(); }, success: function (data) { $('.search-result-box').empty().html(data.result) }, complete: function () { $('#loading').hide(); }, }); } else { $('.search-result-box').empty(); } }); jQuery(document).mouseup(function (e) { var container = $(".search-card"); if (!container.is(e.target) && container.has(e.target).length === 0) { container.hide(); } }); const img = document.getElementByTagName("img") img.addEventListener("error", function (event) { event.target.src = '<?php echo e(asset('public/assets/front-end/img/image-place-holder.png')); ?>'; event.onerror = null }) function route_alert(route, message) { Swal.fire({ title: '<?php echo e(\App\CPU\translate('Are you sure')); ?>?', text: message, type: 'warning', showCancelButton: true, cancelButtonColor: 'default', confirmButtonColor: '<?php echo e($web_config['primary_color']); ?>', cancelButtonText: '<?php echo e(\App\CPU\translate('No')); ?>', confirmButtonText: '<?php echo e(\App\CPU\translate('Yes')); ?>', reverseButtons: true }).then((result) => { if (result.value) { location.href = route; } }) } </script> <script> $('.filter-show-btn').on('click', function(){ $('#shop-sidebar').toggleClass('show') }) </script> <script> <?php ($cookie = $web_config['cookie_setting'] ? json_decode($web_config['cookie_setting']['value'], true):null); ?> let cookie_content = ` <div class="cookie-section"> <div class="container"> <div class="d-flex flex-wrap align-items-center justify-content-between column-gap-4 row-gap-3"> <div class="text-wrapper"> <h5 class="title"><?php echo e(\App\CPU\translate('Your_Privacy_Matter')); ?></h5> <div><?php echo e($cookie ? $cookie['cookie_text'] : ''); ?></div> </div> <div class="btn-wrapper"> <span class="text-white cursor-pointer" id="cookie-reject"><?php echo e(\App\CPU\translate('no')); ?>, <?php echo e(\App\CPU\translate('thanks')); ?></span> <button class="btn btn-success cookie-accept" id="cookie-accept"><?php echo e(\App\CPU\translate('yes')); ?>, <?php echo e(\App\CPU\translate('i_Accept')); ?></button> </div> </div> </div> </div> `; $(document).on('click','#cookie-accept',function() { document.cookie = 'arsu_cookie_consent=accepted; max-age=' + 60 * 60 * 24 * 30; $('#cookie-section').hide(); }); $(document).on('click','#cookie-reject',function() { document.cookie = 'arsu_cookie_consent=reject; max-age=' + 60 * 60 * 24; $('#cookie-section').hide(); }); $(document).ready(function() { if (document.cookie.indexOf("arsu_cookie_consent=accepted") !== -1) { $('#cookie-section').hide(); }else{ $('#cookie-section').html(cookie_content).show(); } }); </script> <?php echo $__env->yieldPushContent('script'); ?> </body> </html> <?php /**PATH /var/www/arsu/resources/themes/default/layouts/front-end/app.blade.php ENDPATH**/ ?>
./Ninja\.