<script src='<?php echo e(asset('themes/frontend/kon10ted/wp-includes/js/dist/vendor/regenerator-runtime.min3937.js')); ?>'
  id='regenerator-runtime-js'></script>
<script src='<?php echo e(asset('themes/frontend/kon10ted/wp-includes/js/dist/vendor/wp-polyfill.min2c7c.js')); ?>'
  id='wp-polyfill-js'></script>


<script src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/themes/yankee/assets/js/popper.min34dd.js')); ?>'
  id='popper-js'></script>
<script src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/themes/yankee/assets/js/bootstrap.min11b8.js')); ?>'
  id='bootstrap-js'></script>
<script src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/plugins/yankee-toolkit/assets/js/slick.minc245.js')); ?>'
  id='slick-js'></script>
<script
  src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/plugins/yankee-toolkit/assets/js/magnific-popup.min4963.js')); ?>'
  id='magnific-popup-js'></script>
<script src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/themes/yankee/assets/js/theme.min1159.js')); ?>'
  id='yankee-theme-scripts-js'></script>
<script
  src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/plugins/yankee-toolkit/assets/js/yankee-toolkit.min330a.js')); ?>'
  id='yankee-toolkit-js'></script>
<script
  src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/plugins/elementor/assets/lib/jquery-numerator/jquery-numerator.min3958.js')); ?>'
  id='jquery-numerator-js'></script>
<script src='<?php echo e(asset('themes/frontend/kon10ted/wp-includes/js/imagesloaded.mineda1.js')); ?>' id='imagesloaded-js'>
</script>
<script
  src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/plugins/yankee-toolkit/assets/js/isotope.pkgd.min7c45.js')); ?>'
  id='isotope-js'></script>
<script defer src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/plugins/mailchimp-for-wp/assets/js/forms6c42.js')); ?>'
  id='mc4wp-forms-api-js'></script>
<script src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/plugins/elementor/assets/js/webpack.runtime.mina7a0.js')); ?>'
  id='elementor-webpack-runtime-js'></script>
<script
  src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/plugins/elementor/assets/js/frontend-modules.mina7a0.js')); ?>'
  id='elementor-frontend-modules-js'></script>
<script
  src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/plugins/elementor/assets/lib/waypoints/waypoints.min05da.js')); ?>'
  id='elementor-waypoints-js'></script>
<script src='<?php echo e(asset('themes/frontend/kon10ted/wp-includes/js/jquery/ui/core.min0028.js')); ?>' id='jquery-ui-core-js'>
</script>
<script src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/plugins/elementor/assets/lib/swiper/swiper.min48f5.js')); ?>'
  id='swiper-js'></script>
<script
  src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/plugins/elementor/assets/lib/share-link/share-link.mina7a0.js')); ?>'
  id='share-link-js'></script>
<script src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/plugins/elementor/assets/lib/dialog/dialog.mind227.js')); ?>'
  id='elementor-dialog-js'></script>
<script id='elementor-frontend-js-before'>
  var elementorFrontendConfig = {
    "environmentMode": {
      "edit": false,
      "wpPreview": false,
      "isScriptDebug": false
    },
    "i18n": {
      "shareOnFacebook": "Share on Facebook",
      "shareOnTwitter": "Share on Twitter",
      "pinIt": "Pin it",
      "download": "Download",
      "downloadImage": "Download image",
      "fullscreen": "Fullscreen",
      "zoom": "Zoom",
      "share": "Share",
      "playVideo": "Play Video",
      "previous": "Previous",
      "next": "Next",
      "close": "Close"
    },
    "is_rtl": false,
    "breakpoints": {
      "xs": 0,
      "sm": 480,
      "md": 768,
      "lg": 1025,
      "xl": 1440,
      "xxl": 1600
    },
    "responsive": {
      "breakpoints": {
        "mobile": {
          "label": "Mobile",
          "value": 767,
          "default_value": 767,
          "direction": "max",
          "is_enabled": true
        },
        "mobile_extra": {
          "label": "Mobile Extra",
          "value": 880,
          "default_value": 880,
          "direction": "max",
          "is_enabled": false
        },
        "tablet": {
          "label": "Tablet",
          "value": 1024,
          "default_value": 1024,
          "direction": "max",
          "is_enabled": true
        },
        "tablet_extra": {
          "label": "Tablet Extra",
          "value": 1200,
          "default_value": 1200,
          "direction": "max",
          "is_enabled": false
        },
        "laptop": {
          "label": "Laptop",
          "value": 1366,
          "default_value": 1366,
          "direction": "max",
          "is_enabled": false
        },
        "widescreen": {
          "label": "Widescreen",
          "value": 2400,
          "default_value": 2400,
          "direction": "min",
          "is_enabled": false
        }
      }
    },
    "version": "3.6.1",
    "is_static": false,
    "experimentalFeatures": {
      "e_dom_optimization": true,
      "a11y_improvements": true,
      "e_import_export": true,
      "e_hidden_wordpress_widgets": true,
      "landing-pages": true,
      "elements-color-picker": true,
      "favorite-widgets": true,
      "admin-top-bar": true
    },
    "urls": {
      "assets": ""
    },
    "settings": {
      "page": [],
      "editorPreferences": []
    },
    "kit": {
      "active_breakpoints": ["viewport_mobile", "viewport_tablet"],
      "lightbox_enable_counter": "yes",
      "lightbox_enable_fullscreen": "yes",
      "lightbox_enable_zoom": "yes",
      "lightbox_enable_share": "yes",
      "lightbox_title_src": "title",
      "lightbox_description_src": "description"
    },
    "post": {
      "id": 118,
      "title": "",
      "excerpt": "",
      "featuredImage": false
    }
  };
</script>
<script src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/plugins/elementor/assets/js/frontend.mina7a0.js')); ?>'
  id='elementor-frontend-js'></script>
<script
  src='<?php echo e(asset('themes/frontend/kon10ted/wp-content/plugins/elementor/assets/js/preloaded-modules.mina7a0.js')); ?>'
  id='preloaded-modules-js'></script>


<script>
  (function($) {

    $("#form-booking").submit(function(e) {
      //  $(".form-process").show();
      e.preventDefault();
      var form = $(this);
      var url = form.attr('action');
      $.ajax({
        type: "POST",
        url: url,
        data: form.serialize(),
        success: function(response) {
          form[0].reset();
          //  $(".form-process").hide();
          alert(response.message);
          location.reload();
        },
        error: function(response) {
          //  $(".form-process").hide();
          // Get errors
          if (typeof response.responseJSON.errors !== 'undefined') {
            var errors = response.responseJSON.errors;
            // Foreach and show errors to html
            var elementErrors = '';
            $.each(errors, function(index, item) {
              if (item === 'CSRF token mismatch.') {
                item = "<?php echo app('translator')->get('CSRF token mismatch.'); ?>";
              }
              elementErrors += '<p>' + item + '</p>';
            });
            $(".form-result").html(elementErrors);
          } else {
            var errors = response.responseJSON.message;
            if (errors === 'CSRF token mismatch.') {
              $(".form-result").html("<?php echo app('translator')->get('CSRF token mismatch.'); ?>");
            } else if (errors === 'The given data was invalid.') {
              $(".form-result").html("<?php echo app('translator')->get('The given data was invalid.'); ?>");
            } else {
              $(".form-result").html(errors);
            }
          }
        }
      });
    });

    // Form ajax default
    $(".form_ajax").submit(function(e) {
      e.preventDefault();
      var form = $(this);
      var url = form.attr('action');
      $.ajax({
        type: "POST",
        url: url,
        data: form.serialize(),
        success: function(response) {
          form[0].reset();
          alert(response.message);
          location.reload();
        },
        error: function(response) {
          // Get errors
          console.log(response);
          var errors = response.responseJSON.errors;
          // Foreach and show errors to html
          var elementErrors = '';
          $.each(errors, function(index, item) {
            if (item === 'CSRF token mismatch.') {
              item = "<?php echo app('translator')->get('CSRF token mismatch.'); ?>";
            }
            elementErrors += '<p>' + item + '</p>';
          });
        }
      });
    });

    // Add to cart
    $(document).on('click', '.add-to-cart', function() {
      let _root = $(this);
      let _html = _root.html();
      let _id = _root.attr("data-id");
      let _quantity = _root.attr("data-quantity") ?? $("#quantity").val();
      if (_id > 0) {
        _root.html("<?php echo app('translator')->get('Processing...'); ?>");
        var url = "<?php echo e(route('frontend.order.add_to_cart')); ?>";
        $.ajax({
          type: "POST",
          url: url,
          data: {
            "_token": "<?php echo e(csrf_token()); ?>",
            "id": _id,
            "quantity": _quantity
          },
          success: function(data) {
            _root.html(_html);
            window.location.reload();
          },
          error: function(data) {
            // Get errors
            var errors = data.responseJSON.message;
            alert(errors);
            location.reload();
          }
        });
      }
    });

    $(".update-cart").change(function(e) {
      e.preventDefault();
      var ele = $(this);
      $.ajax({
        url: '<?php echo e(route('frontend.order.cart.update')); ?>',
        method: "PATCH",
        data: {
          _token: '<?php echo e(csrf_token()); ?>',
          id: ele.parents("tr").attr("data-id"),
          quantity: ele.parents("tr").find(".qty").val()
        },
        success: function(response) {
          window.location.reload();
        }
      });
    });

    $(".remove-from-cart").click(function(e) {
      e.preventDefault();
      var ele = $(this);
      if (confirm("<?php echo e(__('Are you sure want to remove?')); ?>")) {
        $.ajax({
          url: '<?php echo e(route('frontend.order.cart.remove')); ?>',
          method: "DELETE",
          data: {
            _token: '<?php echo e(csrf_token()); ?>',
            id: ele.parents("tr").attr("data-id")
          },
          success: function(response) {
            window.location.reload();
          }
        });
      }
    });

  })(jQuery);

  const filterArray = (array, fields, value) => {
    fields = Array.isArray(fields) ? fields : [fields];
    return array.filter((item) => fields.some((field) => item[field] === value));
  };
</script>

<?php if(isset($web_information->source_code->footer)): ?>
  <?php echo $web_information->source_code->footer; ?>

<?php endif; ?>
<?php /**PATH D:\project\kon10ted\resources\views/frontend/panels/scripts.blade.php ENDPATH**/ ?>