Get in Touch

Fill out the form below, and we’ll get back to you shortly.

CAPTCHA Image
Enquire Now
whatsapp
// // `); // // AJAX submit to Laravel // $.ajax({ // url: $('#whatsappForm').attr('action'), // method: 'POST', // data: $('#whatsappForm').serialize(), // success: function () { // const waNumber = '971542797571'; // const waMessage = 'Inquiry from the website.'; // const waUrl = 'https://api.whatsapp.com/send/?phone=' + waNumber + '&text=' + encodeURIComponent(waMessage); // newTab.location.href = waUrl; // $('#whatsappForm')[0].reset(); // $('#exampleModal-4').modal('hide'); // $("#submitbtn").prop("disabled", false).text("Start Chat with Us"); // }, // error: function () { // newTab.close(); // alert('Something went wrong. Please try again.'); // $("#submitbtn").prop("disabled", false).text("Start Chat with Us"); // } // }); // }); // WhatsApp Form New Validation $("#whatsappForm").validate({ rules: { wa_phone: { required: true, digits: true, minlength: 10, maxlength: 15 }, message:{ noUrl: true, noCyrillic: true, noSpamWords: true, noHtml:true, // minSubmitTime: true } }, messages: { wa_phone: { required: "Contact number is required.", digits: "Please enter only digits.", minlength: "Contact number must be at least 10 digits.", maxlength: "Contact number must not exceed 15 digits." } }, errorPlacement: function(error, element) { // Place error inside your custom error div if (element.attr("name") === "wa_phone") { error.appendTo("#wa_phone_error"); } else { error.insertAfter(element); } }, highlight: function(element) { $(element).addClass('is-invalid'); }, unhighlight: function(element) { $(element).removeClass('is-invalid'); }, submitHandler: function(form) { // Clear old errors $('#wa_phone_error').text(''); $('#wa_phone').removeClass('is-invalid'); let phone = $('#wa_phone').val().trim(); // Build full phone with dial code const countryData = iti.getSelectedCountryData(); fullPhone.value = "+" + countryData.dialCode + phone; countryName.value = countryData.name; // $("#submitbtn").prop("disabled", true).text("Submitting..."); $("#submitbtn").prop("disabled", true).html('Connecting to WhatsApp...'); // Open blank tab NOW (synchronous = bypasses popup blocker) // Show loading in the new tab instead of about:blank const newTab = window.open('', '_blank'); newTab.document.write(` Connecting to WhatsApp...

Connecting to WhatsApp...

`); // AJAX submit to Laravel $.ajax({ url: $('#whatsappForm').attr('action'), method: 'POST', data: $('#whatsappForm').serialize(), success: function () { const waNumber = '971542797571'; const waMessage = 'Inquiry from the website.'; const waUrl = 'https://api.whatsapp.com/send/?phone=' + waNumber + '&text=' + encodeURIComponent(waMessage); newTab.location.href = waUrl; $('#whatsappForm')[0].reset(); $('#exampleModal-4').modal('hide'); $("#submitbtn").prop("disabled", false).text("Start Chat with Us"); }, error: function () { newTab.close(); alert('Something went wrong. Please try again.'); $("#submitbtn").prop("disabled", false).text("Start Chat with Us"); } }); } }); // ── Remove error while typing ── $('#wa_phone').on('input', function () { if ($(this).val().trim() !== '') { $('#wa_phone_error').text(''); $(this).removeClass('is-invalid'); } }); });