HOME


Mini Shell 1.0
La Pieza.DO | Todo lo que buscas!

Bienvenido de nuevo!

Acceso Cuenta Delivery
DIR: /var/www/devs.lapieza.net/storage/framework/views/
Upload File :
Current File : /var/www/devs.lapieza.net/storage/framework/views/f5bd20558ae75a7aade30b4f9d834b3affc2c8a7.php
<!DOCTYPE html>
<?php if(get_session_language()->rtl == 1): ?>
    <html dir="rtl" lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
    <?php else: ?>
        <html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
        <?php endif; ?>

        <head>
            <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
            <meta name="app-url" content="<?php echo e(getBaseURL()); ?>">
            <meta name="file-base-url" content="<?php echo e(getFileBaseURL()); ?>">
            <title><?php echo $__env->yieldContent('meta_title', get_setting('website_name') . ' | ' . get_setting('site_motto')); ?></title>
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
            <meta name="robots" content="index, follow">
            <meta name="description" content="<?php echo $__env->yieldContent('meta_description', get_setting('meta_description')); ?>"/>
            <meta name="keywords" content="<?php echo $__env->yieldContent('meta_keywords', get_setting('meta_keywords')); ?>">
            <?php echo app('Illuminate\Foundation\Vite')('resources/js/app.js'); ?>
            
            <?php echo $__env->yieldContent('meta'); ?>
            <?php if(!isset($detailedProduct) && !isset($customer_product) && !isset($shop) && !isset($page) && !isset($blog)): ?>
                <!-- Schema.org markup for Google+ -->
                <meta itemprop="name" content="<?php echo e(get_setting('meta_title')); ?>">
                <meta itemprop="description" content="<?php echo e(get_setting('meta_description')); ?>">
                <meta itemprop="image" content="<?php echo e(uploaded_asset(get_setting('meta_image'))); ?>">
                <!-- Twitter Card data -->
                <meta name="twitter:card" content="product">
                <meta name="twitter:site" content="@publisher_handle">
                <meta name="twitter:title" content="<?php echo e(get_setting('meta_title')); ?>">
                <meta name="twitter:description" content="<?php echo e(get_setting('meta_description')); ?>">
                <meta name="twitter:creator" content="@author_handle">
                <meta name="twitter:image" content="<?php echo e(uploaded_asset(get_setting('meta_image'))); ?>">
                <!-- Open Graph data -->
                <meta property="og:title" content="<?php echo e(get_setting('meta_title')); ?>"/>
                <meta property="og:type" content="website"/>
                <meta property="og:url" content="<?php echo e(route('home')); ?>"/>
                <meta property="og:image" content="<?php echo e(uploaded_asset(get_setting('meta_image'))); ?>"/>
                <meta property="og:description" content="<?php echo e(get_setting('meta_description')); ?>"/>
                <meta property="og:site_name" content="<?php echo e(env('APP_NAME')); ?>"/>
                <meta property="fb:app_id" content="<?php echo e(env('FACEBOOK_PIXEL_ID')); ?>">
            <?php endif; ?>
            <!-- Favicon -->
            <link rel="icon" href="<?php echo e(uploaded_asset(get_setting('site_icon'))); ?>">
            <link rel="apple-touch-icon" href="<?php echo e(uploaded_asset(get_setting('site_icon'))); ?>">
            <!-- Google Fonts -->
            <link rel="preconnect" href="https://fonts.googleapis.com">
            <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
            <!-- <link href='http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900italic,900' rel='stylesheet' type='text/css'> -->
            <!-- <link href="https://fonts.googleapis.com/css2?family=Montserrat&family=Roboto&display=swap" rel="stylesheet"> -->
            <link href="https://fonts.googleapis.com/css2?family=Rubik&display=swap" rel="stylesheet">
            <!-- CSS Files -->
            <?php echo $__env->yieldContent('styles'); ?>
            <link rel="stylesheet" href="<?php echo e(static_asset('assets/css/vendors.css')); ?>">
            <link rel="stylesheet" href="<?php echo e(static_asset('assets/css/sweetalert2.min.css')); ?>">
            <?php if(get_session_language()->rtl == 1): ?>
                <link rel="stylesheet" href="<?php echo e(static_asset('assets/css/bootstrap-rtl.min.css')); ?>">
            <?php endif; ?>
            <link rel="stylesheet" href="<?php echo e(static_asset('assets/css/aiz-core.css?v=')); ?><?php echo e(rand(1000, 9999)); ?>">
            <link rel="stylesheet" href="<?php echo e(static_asset('assets/css/custom-style.css')); ?>">
            <script>
                var AIZ = AIZ || {};
                AIZ.local = {
                    nothing_selected: '<?php echo translate('Nothing selected', null, true); ?>',
                    nothing_found: '<?php echo translate('Nothing found', null, true); ?>',
                    choose_file: '<?php echo e(translate('Choose file')); ?>',
                    file_selected: '<?php echo e(translate('File selected')); ?>',
                    files_selected: '<?php echo e(translate('Files selected')); ?>',
                    add_more_files: '<?php echo e(translate('Add more files')); ?>',
                    adding_more_files: '<?php echo e(translate('Adding more files')); ?>',
                    drop_files_here_paste_or: '<?php echo e(translate('Drop files here, paste or')); ?>',
                    browse: '<?php echo e(translate('Browse')); ?>',
                    upload_complete: '<?php echo e(translate('Upload complete')); ?>',
                    upload_paused: '<?php echo e(translate('Upload paused')); ?>',
                    resume_upload: '<?php echo e(translate('Resume upload')); ?>',
                    pause_upload: '<?php echo e(translate('Pause upload')); ?>',
                    retry_upload: '<?php echo e(translate('Retry upload')); ?>',
                    cancel_upload: '<?php echo e(translate('Cancel upload')); ?>',
                    uploading: '<?php echo e(translate('Uploading')); ?>',
                    processing: '<?php echo e(translate('Processing')); ?>',
                    complete: '<?php echo e(translate('Complete')); ?>',
                    file: '<?php echo e(translate('File')); ?>',
                    files: '<?php echo e(translate('Files')); ?>',
                }
            </script>
            <style>
                :root {
                    --blue: #3490f3;
                    --gray: #9d9da6;
                    --gray-dark: #8d8d8d;
                    --secondary: #919199;
                    --soft-secondary: rgba(145, 145, 153, 0.15);
                    --success: #85b567;
                    --soft-success: rgba(133, 181, 103, 0.15);
                    --warning: #f3af3d;
                    --soft-warning: rgba(243, 175, 61, 0.15);
                    --light: #f5f5f5;
                    --soft-light: #dfdfe6;
                    --soft-white: #b5b5bf;
                    --dark: #292933;
                    --soft-dark: #1b1b28;
                    --primary: <?php echo e(get_setting('base_color', '#d43533')); ?>;
                    --hov-primary: <?php echo e(get_setting('base_hov_color', '#9d1b1a')); ?>;
                    --soft-primary: <?php echo e(hex2rgba(get_setting('base_color', '#d43533'), 0.15)); ?>;
                }

                body {
                    font-family: 'Rubik', sans-serif;
                    font-weight: 400;
                }

                .pagination .page-link,
                .page-item.disabled .page-link {
                    min-width: 32px;
                    min-height: 32px;
                    line-height: 32px;
                    text-align: center;
                    padding: 0;
                    border: 1px solid var(--soft-light);
                    font-size: 0.875rem;
                    border-radius: 0 !important;
                    color: var(--dark);
                }

                .pagination .page-item {
                    margin: 0 5px;
                }

                .aiz-carousel.coupon-slider .slick-track {
                    margin-left: 0;
                }

                .form-control:focus {
                    border-width: 2px !important;
                }

                .iti__flag-container {
                    padding: 2px;
                }

                .modal-content {
                    border: 0 !important;
                    border-radius: 15px !important;
                }

                #map {
                    width: 100%;
                    height: 250px;
                }

                #edit_map {
                    width: 100%;
                    height: 250px;
                }

                .pac-container {
                    z-index: 100000;
                }
            </style>
            <?php echo $__env->yieldContent('styles'); ?>
            <?php if(get_setting('google_analytics') == 1): ?>
                <!-- Global site tag (gtag.js) - Google Analytics -->
                <script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo e(env('TRACKING_ID')); ?>"></script>
                <script>
                    window.dataLayer = window.dataLayer || [];

                    function gtag() {
                        dataLayer.push(arguments);
                    }

                    gtag('js', new Date());
                    gtag('config', '<?php echo e(env('TRACKING_ID')); ?>');
                </script>
            <?php endif; ?>
            <?php if(get_setting('facebook_pixel') == 1): ?>
                <!-- Facebook Pixel Code -->
                <script>
                    !function (f, b, e, v, n, t, s) {
                        if (f.fbq) return;
                        n = f.fbq = function () {
                            n.callMethod ?
                                n.callMethod.apply(n, arguments) : n.queue.push(arguments)
                        };
                        if (!f._fbq) f._fbq = n;
                        n.push = n;
                        n.loaded = !0;
                        n.version = '2.0';
                        n.queue = [];
                        t = b.createElement(e);
                        t.async = !0;
                        t.src = v;
                        s = b.getElementsByTagName(e)[0];
                        s.parentNode.insertBefore(t, s)
                    }(window, document, 'script',
                        'https://connect.facebook.net/en_US/fbevents.js');
                    fbq('init', '<?php echo e(env('FACEBOOK_PIXEL_ID')); ?>');
                    fbq('track', 'PageView');
                </script>
                <noscript>
                    <img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=<?php echo e(env('FACEBOOK_PIXEL_ID')); ?>&ev=PageView&noscript=1"/>
                </noscript>
                <!-- End Facebook Pixel Code -->
            <?php endif; ?>
            <?php
                echo get_setting('header_script');
            ?>
            <?php echo \Livewire\Livewire::styles(); ?>
        </head>
        <body>
        <!-- aiz-main-wrapper -->
        <div class="aiz-main-wrapper d-flex flex-column bg-white">
            <!-- Header -->
            <?php echo $__env->make('frontend.inc.nav', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php echo $__env->yieldContent('content'); ?>
            <?php echo $__env->make('frontend.inc.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
        <!-- cookies agreement -->
        <?php if(get_setting('show_cookies_agreement') == 'on'): ?>
            <div class="aiz-cookie-alert shadow-xl">
                <div class="p-3 bg-red rounded-15px">
                    <div class="text-white mb-3">
                        <?php
                            echo get_setting('cookies_agreement_text');
                        ?>
                    </div>
                    <button class="btn btn-primary aiz-cookie-accept rounded-25px">
                        <?php echo e(translate('Ok. I Understood')); ?>
                    </button>
                </div>
            </div>
        <?php endif; ?>
        <!-- website popup -->
        <?php if(get_setting('show_website_popup') == 'on'): ?>
            <div class="modal website-popup removable-session d-none" data-key="website-popup" data-value="removed">
                <div class="absolute-full bg-black opacity-60"></div>
                <div class="modal-dialog modal-dialog-centered modal-dialog-zoom modal-md mx-4 mx-md-auto">
                    <div class="modal-content position-relative border-0 rounded-0">
                        <div class="aiz-editor-data">
                            <?php echo get_setting('website_popup_content'); ?>
                        </div>
                        <?php if(get_setting('show_subscribe_form') == 'on'): ?>
                            <div class="pb-5 pt-4 px-3 px-md-5">
                                <form class="" method="POST" action="<?php echo e(route('subscribers.store')); ?>">
                                    <?php echo csrf_field(); ?>
                                    <div class="form-group mb-0">
                                        <input type="email" class="form-control" placeholder="<?php echo e(translate('Your Email Address')); ?>" name="email" required>
                                    </div>
                                    <button type="submit" class="btn btn-primary btn-block mt-3">
                                        <?php echo e(translate('Subscribe Now')); ?>
                                    </button>
                                </form>
                            </div>
                        <?php endif; ?>
                        <button class="absolute-top-right bg-white shadow-lg btn btn-circle btn-icon mr-n3 mt-n3 set-session" data-key="website-popup" data-value="removed" data-toggle="remove-parent" data-parent=".website-popup">
                            <i class="la la-close fs-20"></i>
                        </button>
                    </div>
                </div>
            </div>
        <?php endif; ?>
        <?php echo $__env->make('frontend.partials.modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php echo $__env->make('frontend.partials.account_delete_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <div class="modal fade" id="addToCart">
            <div class="modal-dialog modal-lg modal-dialog-centered modal-dialog-zoom product-modal" id="modal-size" role="document">
                <div class="modal-content position-relative">
                    <div class="c-preloader text-center p-3">
                        <i class="las la-spinner la-spin la-3x"></i>
                    </div>
                    <button type="button" class="close absolute-top-right btn-icon close z-1 btn-circle bg-gray mr-2 mt-2 d-flex justify-content-center align-items-center" data-dismiss="modal" aria-label="Close" style="background: #ededf2; width: calc(2rem + 2px); height: calc(2rem + 2px);">
                        <span aria-hidden="true" class="fs-24 fw-700" style="margin-left: 2px;">&times;</span>
                    </button>
                    <div id="addToCart-modal-body"></div>
                </div>
            </div>
        </div>
        <?php echo $__env->yieldContent('modal'); ?>
        <!-- SCRIPTS -->
        <script src="<?php echo e(static_asset('assets/js/jquery.min.js')); ?>"></script>
        <script src="<?php echo e(static_asset('assets/js/vendors.js')); ?>"></script>
        <script src="<?php echo e(static_asset('assets/js/aiz-core.js?v=')); ?><?php echo e(rand(1000, 9999)); ?>"></script>
        <script src='<?php echo e(static_asset('assets/js/sweetalert2.min.js')); ?>' defer></script>
        <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>

        <?php if(get_setting('facebook_chat') == 1): ?>
            <script type="text/javascript">
                window.fbAsyncInit = function () {
                    FB.init({
                        xfbml: true,
                        version: 'v3.3'
                    });
                };
                (function (d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)[0];
                    if (d.getElementById(id)) return;
                    js = d.createElement(s);
                    js.id = id;
                    js.src = 'https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js';
                    fjs.parentNode.insertBefore(js, fjs);
                }(document, 'script', 'facebook-jssdk'));
            </script>
            <div id="fb-root"></div>
            <!-- Your customer chat code -->
            <div class="fb-customerchat"
                 attribution=setup_tool
                 page_id="<?php echo e(env('FACEBOOK_PAGE_ID')); ?>">
            </div>
        <?php endif; ?>
        <script>
            <?php $__currentLoopData = session('flash_notification', collect())->toArray(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $message): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            AIZ.plugins.notify('<?php echo e($message['level']); ?>', '<?php echo e($message['message']); ?>');
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </script>
        <script>
            $(document).ready(function () {
                $('.category-nav-element').each(function (i, el) {
                    $(el).on('mouseover', function () {
                        if (!$(el).find('.sub-cat-menu').hasClass('loaded')) {
                            $.post('<?php echo e(route('category.elements')); ?>', {
                                _token: AIZ.data.csrf,
                                id: $(el).data('id')
                            }, function (data) {
                                $(el).find('.sub-cat-menu').addClass('loaded').html(data);
                            });
                        }
                    });
                });
                if ($('#lang-change').length > 0) {
                    $('#lang-change .dropdown-menu a').each(function () {
                        $(this).on('click', function (e) {
                            e.preventDefault();
                            var $this = $(this);
                            var locale = $this.data('flag');
                            $.post('<?php echo e(route('language.change')); ?>', {
                                _token: AIZ.data.csrf,
                                locale: locale
                            }, function (data) {
                                location.reload();
                            });
                        });
                    });
                }
                if ($('#currency-change').length > 0) {
                    $('#currency-change .dropdown-menu a').each(function () {
                        $(this).on('click', function (e) {
                            e.preventDefault();
                            var $this = $(this);
                            var currency_code = $this.data('currency');
                            $.post('<?php echo e(route('currency.change')); ?>', {
                                _token: AIZ.data.csrf,
                                currency_code: currency_code
                            }, function (data) {
                                location.reload();
                            });
                        });
                    });
                }
            });
            $('#search').on('keyup', function () {
                search();
            });
            $('#search').on('focus', function () {
                search();
            });

            function search() {
                var searchKey = $('#search').val();
                if (searchKey.length > 0) {
                    $('body').addClass("typed-search-box-shown");
                    $('.typed-search-box').removeClass('d-none');
                    $('.search-preloader').removeClass('d-none');
                    $.post('<?php echo e(route('search.ajax')); ?>', {_token: AIZ.data.csrf, search: searchKey}, function (data) {
                        if (data == '0') {
                            // $('.typed-search-box').addClass('d-none');
                            $('#search-content').html(null);
                            $('.typed-search-box .search-nothing').removeClass('d-none').html('<?php echo e(translate('Sorry, nothing found for')); ?> <strong>"' + searchKey + '"</strong>');
                            $('.search-preloader').addClass('d-none');
                        } else {
                            $('.typed-search-box .search-nothing').addClass('d-none').html(null);
                            $('#search-content').html(data);
                            $('.search-preloader').addClass('d-none');
                        }
                    });
                } else {
                    $('.typed-search-box').addClass('d-none');
                    $('body').removeClass("typed-search-box-shown");
                }
            }

            $(".aiz-user-top-menu").on("mouseover", function (event) {
                $(".hover-user-top-menu").addClass('active');
            })
                .on("mouseout", function (event) {
                    $(".hover-user-top-menu").removeClass('active');
                });
            $(document).on("click", function (event) {
                var $trigger = $("#category-menu-bar");
                if ($trigger !== event.target && !$trigger.has(event.target).length) {
                    $("#click-category-menu").slideUp("fast");
                    ;
                    $("#category-menu-bar-icon").removeClass('show');
                }
            });

            function updateNavCart(view, count) {
                $('.cart-count').html(count);
                $('#cart_items').html(view);
            }

            function removeFromCart(key) {
                $.post('<?php echo e(route('cart.removeFromCart')); ?>', {
                    _token: AIZ.data.csrf,
                    id: key
                }, function (data) {
                    updateNavCart(data.nav_cart_view, data.cart_count);
                    $('#cart-summary').html(data.cart_view);
                    AIZ.plugins.notify('success', "<?php echo e(translate('Item has been removed from cart')); ?>");
                    $('#cart_items_sidenav').html(parseInt($('#cart_items_sidenav').html()) - 1);
                });
            }

            function showLoginModal() {
                $('#login_modal').modal();
            }

            function addToCompare(id) {
                $.post('<?php echo e(route('compare.addToCompare')); ?>', {_token: AIZ.data.csrf, id: id}, function (data) {
                    $('#compare').html(data);
                    AIZ.plugins.notify('success', "<?php echo e(translate('Item has been added to compare list')); ?>");
                    $('#compare_items_sidenav').html(parseInt($('#compare_items_sidenav').html()) + 1);
                });
            }

            function addToWishList(id) {
                <?php if(Auth::check() && Auth::user()->user_type == 'customer'): ?>
                $.post('<?php echo e(route('wishlists.store')); ?>', {_token: AIZ.data.csrf, id: id}, function (data) {
                    if (data != 0) {
                        $('#wishlist').html(data);
                        AIZ.plugins.notify('success', "<?php echo e(translate('Item has been added to wishlist')); ?>");
                    } else {
                        AIZ.plugins.notify('warning', "<?php echo e(translate('Please login first')); ?>");
                    }
                });
                <?php elseif(Auth::check() && Auth::user()->user_type != 'customer'): ?>
                AIZ.plugins.notify('warning', "<?php echo e(translate('Please Login as a customer to add products to the WishList.')); ?>");
                <?php else: ?>
                AIZ.plugins.notify('warning', "<?php echo e(translate('Please login first')); ?>");
                <?php endif; ?>
            }

            function showAddToCartModal(id) {
                if (!$('#modal-size').hasClass('modal-lg')) {
                    $('#modal-size').addClass('modal-lg');
                }
                $('#addToCart-modal-body').html(null);
                $('#addToCart').modal();
                $('.c-preloader').show();
                $.post('<?php echo e(route('cart.showCartModal')); ?>', {_token: AIZ.data.csrf, id: id}, function (data) {
                    $('.c-preloader').hide();
                    $('#addToCart-modal-body').html(data);
                    AIZ.plugins.slickCarousel();
                    AIZ.plugins.zoom();
                    AIZ.extra.plusMinus();
                    getVariantPrice();
                });
            }

            $('#option-choice-form input').on('change', function () {
                getVariantPrice();
            });

            function getVariantPrice() {
                if ($('#option-choice-form input[name=quantity]').val() > 0 && checkAddToCartValidity()) {
                    $.ajax({
                        type: "POST",
                        url: '<?php echo e(route('products.variant_price')); ?>',
                        data: $('#option-choice-form').serializeArray(),
                        success: function (data) {
                            $('.product-gallery-thumb .carousel-box').each(function (i) {
                                if ($(this).data('variation') && data.variation == $(this).data('variation')) {
                                    $('.product-gallery-thumb').slick('slickGoTo', i);
                                }
                            })
                            $('#option-choice-form #chosen_price_div').removeClass('d-none');
                            $('#option-choice-form #chosen_price_div #chosen_price').html(data.price);
                            $('#available-quantity').html(data.quantity);
                            $('.input-number').prop('max', data.max_limit);
                            if (parseInt(data.in_stock) == 0 && data.digital == 0) {
                                $('.buy-now').addClass('d-none');
                                $('.add-to-cart').addClass('d-none');
                                $('.out-of-stock').removeClass('d-none');
                            } else {
                                $('.buy-now').removeClass('d-none');
                                $('.add-to-cart').removeClass('d-none');
                                $('.out-of-stock').addClass('d-none');
                            }
                            AIZ.extra.plusMinus();
                        }
                    });
                }
            }

            function checkAddToCartValidity() {
                var names = {};
                $('#option-choice-form input:radio').each(function () { // find unique names
                    names[$(this).attr('name')] = true;
                });
                var count = 0;
                $.each(names, function () { // then count them
                    count++;
                });
                if ($('#option-choice-form input:radio:checked').length == count) {
                    return true;
                }
                return false;
            }

            function addToCart() {
                <?php if(Auth::check() && Auth::user()->user_type != 'customer'): ?>
                AIZ.plugins.notify('warning', "<?php echo e(translate('Please Login as a customer to add products to the Cart.')); ?>");
                return false;
                <?php endif; ?>
                if (checkAddToCartValidity()) {
                    $('#addToCart').modal();
                    $('.c-preloader').show();
                    console.log($('#option-choice-form').serializeArray())
                    $.ajax({
                        type: "POST",
                        url: '<?php echo e(route('cart.addToCart')); ?>',
                        data: $('#option-choice-form').serializeArray(),
                        success: function (data) {
                            $('#addToCart-modal-body').html(null);
                            $('.c-preloader').hide();
                            $('#modal-size').removeClass('modal-lg');
                            $('#addToCart-modal-body').html(data.modal_view);
                            AIZ.extra.plusMinus();
                            AIZ.plugins.slickCarousel();
                            updateNavCart(data.nav_cart_view, data.cart_count);
                        }
                    });
                } else {
                    AIZ.plugins.notify('warning', "<?php echo e(translate('Please choose all the options')); ?>");
                }
            }

            function buyNow() {
                <?php if(Auth::check() && Auth::user()->user_type != 'customer'): ?>
                AIZ.plugins.notify('warning', "<?php echo e(translate('Please Login as a customer to add products to the Cart.')); ?>");
                return false;
                <?php endif; ?>
                if (checkAddToCartValidity()) {
                    $('#addToCart-modal-body').html(null);
                    $('#addToCart').modal();
                    $('.c-preloader').show();
                    $.ajax({
                        type: "POST",
                        url: '<?php echo e(route('cart.addToCart')); ?>',
                        data: $('#option-choice-form').serializeArray(),
                        success: function (data) {
                            if (data.status == 1) {
                                $('#addToCart-modal-body').html(data.modal_view);
                                updateNavCart(data.nav_cart_view, data.cart_count);
                                window.location.replace("<?php echo e(route('cart')); ?>");
                            } else {
                                $('#addToCart-modal-body').html(null);
                                $('.c-preloader').hide();
                                $('#modal-size').removeClass('modal-lg');
                                $('#addToCart-modal-body').html(data.modal_view);
                            }
                        }
                    });
                } else {
                    AIZ.plugins.notify('warning', "<?php echo e(translate('Please choose all the options')); ?>");
                }
            }

            function bid_single_modal(bid_product_id, min_bid_amount) {
                <?php if(Auth::check() && (isCustomer() || isSeller())): ?>
                var min_bid_amount_text = "(<?php echo e(translate('Min Bid Amount: ')); ?>" + min_bid_amount + ")";
                $('#min_bid_amount').text(min_bid_amount_text);
                $('#bid_product_id').val(bid_product_id);
                $('#bid_amount').attr('min', min_bid_amount);
                $('#bid_for_product').modal('show');
                <?php elseif(Auth::check() && isAdmin()): ?>
                AIZ.plugins.notify('warning', '<?php echo e(translate('Sorry, Only customers & Sellers can Bid.')); ?>');
                <?php else: ?>
                $('#login_modal').modal('show');
                <?php endif; ?>
            }

            function clickToSlide(btn, id) {
                $('#' + id + ' .aiz-carousel').find('.' + btn).trigger('click');
                $('#' + id + ' .slide-arrow').removeClass('link-disable');
                var arrow = btn == 'slick-prev' ? 'arrow-prev' : 'arrow-next';
                if ($('#' + id + ' .aiz-carousel').find('.' + btn).hasClass('slick-disabled')) {
                    $('#' + id).find('.' + arrow).addClass('link-disable');
                }
            }

            function goToView(params) {
                document.getElementById(params).scrollIntoView({behavior: "smooth", block: "center"});
            }

            function copyCouponCode(code) {
                navigator.clipboard.writeText(code);
                AIZ.plugins.notify('success', "<?php echo e(translate('Coupon Code Copied')); ?>");
            }

            $(document).ready(function () {
                $('.cart-animate').animate({margin: 0}, "slow");
                $({deg: 0}).animate({deg: 360}, {
                    duration: 2000,
                    step: function (now) {
                        $('.cart-rotate').css({
                            transform: 'rotate(' + now + 'deg)'
                        });
                    }
                });
                setTimeout(function () {
                    $('.cart-ok').css({fill: '#d43533'});
                }, 2000);
            });
        </script>
        <?php if(addon_is_activated('otp_system')): ?>
            <script type="text/javascript">
                // Country Code
                var isPhoneShown = true,
                    countryData = window.intlTelInputGlobals.getCountryData(),
                    input = document.querySelector("#phone-code");
                for (var i = 0; i < countryData.length; i++) {
                    var country = countryData[i];
                    if (country.iso2 == 'bd') {
                        country.dialCode = '88';
                    }
                }
                var iti = intlTelInput(input, {
                    separateDialCode: true,
                    utilsScript: "<?php echo e(static_asset('assets/js/intlTelutils.js')); ?>?1590403638580",
                    onlyCountries: <?php echo get_active_countries()->pluck('code') ?>,
                    customPlaceholder: function (selectedCountryPlaceholder, selectedCountryData) {
                        if (selectedCountryData.iso2 == 'bd') {
                            return "01xxxxxxxxx";
                        }
                        return selectedCountryPlaceholder;
                    }
                });
                var country = iti.getSelectedCountryData();
                $('input[name=country_code]').val(country.dialCode);
                input.addEventListener("countrychange", function (e) {
                    // var currentMask = e.currentTarget.placeholder;
                    var country = iti.getSelectedCountryData();
                    $('input[name=country_code]').val(country.dialCode);
                });
                var isPhoneShown = false;

                function toggleEmailPhone(el) {
                    if (isPhoneShown) {
                        $('.phone-form-group').addClass('d-none');
                        $('.email-form-group').removeClass('d-none');
                        $('input[name=phone]').val(null);
                        isPhoneShown = false;
                        $(el).html('*<?php echo e(translate('Use Phone Instead')); ?>');
                    } else {
                        $('.phone-form-group').removeClass('d-none');
                        $('.email-form-group').addClass('d-none');
                        $('input[name=email]').val(null);
                        isPhoneShown = true;
                        $(el).html('<i>*<?php echo e(translate('Use Email Instead')); ?></i>');
                    }
                }
            </script>
        <?php endif; ?>
        <script>
            var acc = document.getElementsByClassName("aiz-accordion-heading");
            var i;
            for (i = 0; i < acc.length; i++) {
                acc[i].addEventListener("click", function () {
                    this.classList.toggle("active");
                    var panel = this.nextElementSibling;
                    if (panel.style.maxHeight) {
                        panel.style.maxHeight = null;
                    } else {
                        panel.style.maxHeight = panel.scrollHeight + "px";
                    }
                });
            }
        </script>
        <?php
            echo get_setting('footer_script');
        ?>
       <?php echo $__env->yieldContent('script'); ?>
        <?php echo \Livewire\Livewire::styles(); ?>
        <?php echo \Livewire\Livewire::scripts(); ?>
        </body>
        </html>
<?php /**PATH /var/www/devs.lapieza.net/resources/views/frontend/layouts/app.blade.php ENDPATH**/ ?>