text: $(document).ready(function () {
  
      $('.AddToCartBtn').click(function (e) {
          e.preventDefault();
  
          var product_id = $(this).closest('.product_data').find('.prod_id').val();
          var product_qty = $(this).closest('.product_data').find('.qty-input').val();
  
          // alert(product_id);
          // alert(product_qty);
  
          $.ajaxSetup({
              headers: {
              'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
              }
          });
  
          $.ajax({
              url: "/add-to-cart",
  
              method:"post",
  
              data:{
                  'product_id': product_id,
                  'product_qty': product_qty,
              },
              data: {
                  _token: '{{ csrf_token() }}',
                  'product_id': product_id,
                  'product_qty': product_qty,
  
              },
              success:function(response){
                  alert(response.status);
  
              }
  
          });
  
      });
  
      $('.increment-btn').click(function (e) {
          e.preventDefault();
          var incre_value = $(this).parents('.quantity').find('.qty-input').val();
          var value = parseInt(incre_value, 10);
          value = isNaN(value) ? 0 : value;
          if(value<10){
              value++;
              $(this).parents('.quantity').find('.qty-input').val(value);
          }
  
      });
  
      $('.decrement-btn').click(function (e) {
          e.preventDefault();
          var decre_value = $(this).parents('.quantity').find('.qty-input').val();
          var value = parseInt(decre_value, 10);
          value = isNaN(value) ? 0 : value;
          if(value>1){
              value--;
              $(this).parents('.quantity').find('.qty-input').val(value);
          }
      });
  
  });
  