193 lines
7.3 KiB
PHP
193 lines
7.3 KiB
PHP
<?php $__env->startSection('content'); ?>
|
|
<?php echo $__env->make('client.rohini.pages.partials.breadcrumb', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
|
|
<!--Contact Page Start-->
|
|
<section class="contact-page">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-xl-4 col-lg-5">
|
|
<div class="contact-page__left">
|
|
<div class="section-title-two text-left">
|
|
<div class="section-title-two__tagline-box">
|
|
<p class="section-title-two__tagline"><?php echo e($page->short_description); ?></p>
|
|
<div class="section-title-two__shape"> <img src="rohini/assets/images/shapes/section-title-two-shape.png" alt=""> </div>
|
|
</div>
|
|
<h2 class="section-title-two__title"><?php echo e($page->title); ?> !! </h2>
|
|
</div>
|
|
<div class="contact-page__contact-info">
|
|
<ul class="list-unstyled contact-page__contact-info-list">
|
|
<li>
|
|
<div class="icon"> <span class="icon-phone-call-1"></span> </div>
|
|
<div class="text">
|
|
<p><a href="tel:01<?php echo e(setting('phone')); ?>">+977 1-<?php echo e(setting('phone')); ?></a></p>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<div class="icon"> <span class="icon-location1"></span> </div>
|
|
<div class="text">
|
|
<p><?php echo e(setting('location')); ?></p>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<div class="icon"> <span class="icon-email"></span> </div>
|
|
<div class="text">
|
|
<p><a href="mailto:<?php echo e(setting('email')); ?>"><?php echo e(setting('email')); ?></a></p>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xl-8 col-lg-7">
|
|
<div class="contact-page__right">
|
|
<div class="contact-page__form-box">
|
|
<h5 class="contact-page__form-title">Get in Touch</h5>
|
|
<form id="enquiry_form" class="">
|
|
<?php echo csrf_field(); ?>
|
|
<div class="row">
|
|
<div class="col-xl-12">
|
|
<div class="comment-form__input-box text-message-box">
|
|
<div class="comment-form__input-box-name">
|
|
<p>Comments</p>
|
|
</div>
|
|
<textarea name="message" id="message2" placeholder="Comments"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xl-6">
|
|
<div class="comment-form__input-box">
|
|
<div class="comment-form__input-box-name">
|
|
<p>Full Name</p>
|
|
</div>
|
|
<input type="text" placeholder="Full name" id="name2" name="name">
|
|
</div>
|
|
</div>
|
|
<div class="col-xl-6">
|
|
<div class="comment-form__input-box">
|
|
<div class="comment-form__input-box-name">
|
|
<p>Your email</p>
|
|
</div>
|
|
<input type="email" placeholder="Your email" id="email2" name="email">
|
|
</div>
|
|
</div>
|
|
<div class="col-xl-6">
|
|
<div class="comment-form__input-box">
|
|
<div class="comment-form__input-box-name">
|
|
<p>Phone</p>
|
|
</div>
|
|
<input type="text" placeholder="Phone" id="mobile2" name="phone">
|
|
</div>
|
|
</div>
|
|
<div class="col-xl-6">
|
|
<div class="comment-form__input-box">
|
|
<div class="comment-form__input-box-name">
|
|
<p>Subject</p>
|
|
</div>
|
|
<input type="text" id="subject2" placeholder="Subject" name="subject">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xl-12">
|
|
<div class="checked-box">
|
|
<input type="checkbox" name="skipper1" id="skipper" checked="">
|
|
<label for="skipper"><span></span>Save my name, email, and website
|
|
in
|
|
this browser
|
|
for the next time I comment.</label>
|
|
</div>
|
|
<div class="comment-form__btn-box">
|
|
<button id="contact-submit" type="submit" class="thm-btn"><span
|
|
class="icon-right-arrow"></span>Send Message</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<div class="result"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!--Contact Page End-->
|
|
<!--Google Map Start-->
|
|
<section class="contact-page-google-map">
|
|
<div class="container">
|
|
<?php echo setting('map'); ?>
|
|
|
|
</div>
|
|
</section>
|
|
<!--Google Map End-->
|
|
<?php $__env->stopSection(); ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?php $__env->startPush('js'); ?>
|
|
<script>
|
|
$(document).ready(function () {
|
|
toastr.options = {
|
|
"closeButton": true,
|
|
"progressBar": true,
|
|
"positionClass": "toast-top-right",
|
|
"timeOut": "3000"
|
|
};
|
|
|
|
$('#enquiry_form').submit(function (event) {
|
|
event.preventDefault();
|
|
var submitButton = $('#contact-submit');
|
|
|
|
|
|
// Prepare the form data
|
|
var formData = {
|
|
name: $('#name2').val(),
|
|
email: $('#email2').val(),
|
|
mobile: $('#mobile2').val(),
|
|
subject: $('#subject2').val(),
|
|
message: $('#message2').val(),
|
|
_token: $('meta[name="csrf-token"]').attr('content') // CSRF token
|
|
};
|
|
|
|
// Submit form via AJAX
|
|
$.ajax({
|
|
url: "<?php echo e(route('enquiry.submit')); ?>",
|
|
method: 'POST',
|
|
data: formData,
|
|
beforeSend: function() {
|
|
submitButton.prop('disabled', true);
|
|
submitButton.text("Sending...");
|
|
},
|
|
success: function (response) {
|
|
// Display success Toastr message
|
|
toastr.success('Your enquiry has been submitted successfully!');
|
|
|
|
// Optionally, clear the form
|
|
$('#enquiry_form')[0].reset();
|
|
},
|
|
error: function (xhr) {
|
|
if (xhr.status === 422 && xhr.responseJSON && xhr.responseJSON.errors) {
|
|
$.each(xhr.responseJSON.errors, function (key, messages) {
|
|
// messages is an array, show the first error
|
|
toastr.error(messages[0]);
|
|
});
|
|
} else if (xhr.responseJSON && xhr.responseJSON.message) {
|
|
toastr.error(xhr.responseJSON.message);
|
|
} else {
|
|
toastr.error('An error occurred while submitting your enquiry.');
|
|
}
|
|
},
|
|
complete: function() {
|
|
submitButton.prop('disabled', false);
|
|
submitButton.text("Send Message");
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
<?php $__env->stopPush(); ?>
|
|
|
|
|
|
<?php echo $__env->make('client.rohini.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\installed\xampp\htdocs\bib\Consultancy-CCMS\resources\views/client/rohini/pages/contact-template.blade.php ENDPATH**/ ?>
|