210 lines
8.3 KiB
PHP
210 lines
8.3 KiB
PHP
|
@extends(env("CLIENT_PATH").".welcome")
|
||
|
@section("content")
|
||
|
|
||
|
|
||
|
<div class="image-holder"> <img src="{{template('images/form-wizard.png')}}" alt>
|
||
|
</div>
|
||
|
|
||
|
<form method="post" action="#" id="enquiry-form">
|
||
|
@csrf
|
||
|
<input type="hidden" name="sources_id" value="3" />
|
||
|
<input type="hidden" name="campaigns_id" value="<?php echo SITEVARS->Campaigns[0]->campaign_id; ?>" />
|
||
|
<div class="form-header">
|
||
|
<a href="#">#CANANDA BONANZA 2.0</a>
|
||
|
<h3>Register for the ABROAD STUDY</h3>
|
||
|
</div>
|
||
|
<div id="wizard">
|
||
|
|
||
|
<h4></h4>
|
||
|
<section>
|
||
|
<div class="form-row" style="margin-bottom: 26px;">
|
||
|
<label for>
|
||
|
Full Name
|
||
|
</label>
|
||
|
<div class="form-holder">
|
||
|
<input class="form-control" type="text" id="from-name" name="name" required="">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-row">
|
||
|
<label for>
|
||
|
Email Address
|
||
|
</label>
|
||
|
<div class="form-holder">
|
||
|
<input class="form-control" type="email" id="from-email" name="email" required="">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-row">
|
||
|
<label for>
|
||
|
Mobile Number
|
||
|
</label>
|
||
|
<div class="form-holder">
|
||
|
<input class="form-control" type="text" id="from-phone" name="mobile" required="">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
<h4></h4>
|
||
|
<section>
|
||
|
<div class="form-row">
|
||
|
<label for>
|
||
|
Highest Qualification
|
||
|
</label>
|
||
|
<div class="form-holder">
|
||
|
<select class="form-control" id="from-qualifications" type="text" name="qualification" required="">
|
||
|
<option value="">Select Qualification</option>
|
||
|
<option value="SEE/SLC" class="option">SEE/SLC</option>
|
||
|
<option value="A levels" class="option">A levels</option>
|
||
|
<option value="10+2/PCL" class="option">10+2/PCL</option>
|
||
|
<option value="Bachelors (3 years)" class="option">Bachelors (3 Years)</option>
|
||
|
<option value="Bachelors (4 years)" class="option">Bachelors (4 Years)</option>
|
||
|
<option value="Master's and Above" class="option">Master's and Above</option>
|
||
|
</select>
|
||
|
|
||
|
<i class="zmdi zmdi-caret-down"></i>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-row">
|
||
|
<label for>
|
||
|
University / Board
|
||
|
</label>
|
||
|
<div class="form-holder">
|
||
|
<input class="form-control" type="text" id="board" name="board" required="" autocomplete="off">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-row">
|
||
|
<label for>
|
||
|
Preferred Study Destination
|
||
|
</label>
|
||
|
<div class="form-holder">
|
||
|
<select name="preferred_destination" class="form-control field-info" required="">
|
||
|
<option value="" selected="" disabled="">Preferred Study Destination *</option>
|
||
|
<option value="study-in-australia" class="option">Study in Australia</option>
|
||
|
<option value="study-in-usa" class="option">Study in USA</option>
|
||
|
<option value="study-in-canada" class="option">Study in Canada</option>
|
||
|
<option value="other" class="option">Others</option>
|
||
|
</select>
|
||
|
|
||
|
<i class="zmdi zmdi-caret-down"></i>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</section>
|
||
|
|
||
|
<h4></h4>
|
||
|
<section>
|
||
|
|
||
|
<div class="form-row">
|
||
|
<label for>
|
||
|
Message / Enquiry
|
||
|
</label>
|
||
|
<div class="form-holder">
|
||
|
<textarea name="message" class="form-control" rows="5" re></textarea>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-row" style="margin-bottom: 50px;">
|
||
|
<label for>
|
||
|
Gender:
|
||
|
</label>
|
||
|
<div class="form-holder">
|
||
|
<div class="checkbox-circle">
|
||
|
<label class="male">
|
||
|
<input type="radio" name="gender" value="male" checked> Male<br>
|
||
|
<span class="checkmark"></span>
|
||
|
</label>
|
||
|
<label class="female">
|
||
|
<input type="radio" name="gender" value="female"> Female<br>
|
||
|
<span class="checkmark"></span>
|
||
|
</label>
|
||
|
<label>
|
||
|
<input type="radio" name="gender" value="transgender">Transgender<br>
|
||
|
<span class="checkmark"></span>
|
||
|
</label>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="checkbox-circle" style="margin-bottom: 48px;">
|
||
|
<label>
|
||
|
<input type="checkbox" checked>I agree all statement in Terms & Conditions
|
||
|
<span class="checkmark"></span>
|
||
|
</label>
|
||
|
</div>
|
||
|
|
||
|
</section>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
@endsection
|
||
|
|
||
|
@push("js")
|
||
|
<script>
|
||
|
$(document).ready(function () {
|
||
|
$('#enquiry-form').submit(function (e) {
|
||
|
e.preventDefault();
|
||
|
var formData = $(this).serialize();
|
||
|
var response = "";
|
||
|
$.ajax({
|
||
|
type: 'POST',
|
||
|
url: '<?php echo route("registration.submit"); ?>',
|
||
|
data: formData,
|
||
|
success: function (response) {
|
||
|
// fbq('trackCustom', 'EventRegistration', {promotion: 'astro_solutions'});
|
||
|
// fbq('track', 'PageView');
|
||
|
if (response.status) {
|
||
|
$('#registration-id').text(response.registration_id);
|
||
|
$('#success-modal-label').text("Registration is successful");
|
||
|
$('#success-modal-qr').html("<p class='text-center' style=' text-align: center!important;background-color: #830404;color: white;padding: 10px;font-weight: 600;'>Please download/save this Nirvana Australian Education Fest PASS. You must present this to participate in the event.</p><img src='" + response.qr_code + "' class='img-fluid' />");
|
||
|
var downloadLink = document.createElement('a');
|
||
|
downloadLink.href = response.qr_code;
|
||
|
downloadLink.download = 'nirvana_australian_edcation_fest_qrcode.png'; // Set the desired file name
|
||
|
// downloadLink.click();
|
||
|
$('#success-modal').modal('show');
|
||
|
$form[0].reset();
|
||
|
} else if (response.message == 'Mobile number already exists. Returning existing data.') {
|
||
|
var existingRegistrationData = response.registration;
|
||
|
//$('#modal-text-area').html(JSON.stringify(existingRegistrationData));
|
||
|
var downloadLink = document.createElement('a');
|
||
|
downloadLink.href = response.qr_code;
|
||
|
downloadLink.download = 'nirvana_australian_edcation_fest_qrcode.png'; // Set the desired file name
|
||
|
//downloadLink.click();
|
||
|
$('#success-modal-label').text(response.message);
|
||
|
$('#success-modal-qr').html("<img src='" + response.qr_code + "' class='img-fluid' />");
|
||
|
$('#success-modal').modal('show');
|
||
|
} else {
|
||
|
var errorMessages = '';
|
||
|
$.each(response.errors, function (field, errors) {
|
||
|
errorMessages += errors.join('<br>');
|
||
|
});
|
||
|
$('#error-modal .modal-body').html(errorMessages);
|
||
|
$('#error-modal').modal('show');
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
|
||
|
$('#success-modal').on('hidden.bs.modal', function () {
|
||
|
$('#enquiry-form')[0].reset(); // Reset the form
|
||
|
});
|
||
|
$('#downloadButton').on('click', function () {
|
||
|
// Trigger the download when the button is clicked
|
||
|
var downloadLink = document.createElement('a');
|
||
|
downloadLink.href = $('#success-modal-qr img').attr('src');
|
||
|
downloadLink.download = 'nirvana_australian_edcation_fest_qrcode.png';
|
||
|
downloadLink.click();
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
@endpush
|