first commit
This commit is contained in:
185
resources/views/accessb2b/confirmation.blade.php
Normal file
185
resources/views/accessb2b/confirmation.blade.php
Normal file
@ -0,0 +1,185 @@
|
||||
@extends(env("CLIENT_PATH").".welcome")
|
||||
@section("content")
|
||||
<div class="form-box">
|
||||
|
||||
<div class="infotext">
|
||||
<h1> Visitor Confirmation</h1>
|
||||
<h5>Welcome <?php echo $data->name; ?></h5>
|
||||
</div>
|
||||
<form>
|
||||
@csrf
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="form-group"><label for="from-name">Name</label>
|
||||
<input class="form-control" type="text" id="from-name" name="name" required="" disabled value="<?php echo $data->name; ?>">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-6 col-md-12 col-lg-6">
|
||||
<div class="form-group"><label for="from-email">Email</label>
|
||||
<input class="form-control" type="email" value="<?php echo $data->email; ?>" id="from-email" name="email" required="" disabled>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-12 col-lg-6">
|
||||
<div class="form-group"><label for="from-phone">Mobile Number</label>
|
||||
<div class="input-group">
|
||||
<input class="form-control" type="text" value="<?php echo $data->mobile; ?>" id="from-phone" name="mobile" required="" disabled>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-6 col-md-12 col-lg-6">
|
||||
<div class="form-group"><label for="from-qualifications">Highest Qualification</label>
|
||||
<input class="form-control" type="text" value="<?php echo $data->highest_qualification; ?>" id="from-qualifications" name="from-qualifications" required="" disabled>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-12 col-lg-6">
|
||||
<div class="form-group"><label for="board">University / Board:</label>
|
||||
<div class="input-group">
|
||||
<input class="form-control" type="text" value="<?php echo $data->highest_college; ?>" required="" disabled>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group"><label for="preferred_destination">Preferred Study Destination:</label>
|
||||
<div class="select-group">
|
||||
<input class="form-control" type="text" value="<?php echo $data->intrested_for_country; ?>" required="" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="form-group"><label for="from-calltime">Message / Enquiry</label>
|
||||
<input class="form-control" type="text" value="<?php echo $data->remarks; ?>" required="" disabled>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@push("css")
|
||||
<style>
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body{
|
||||
background: #9c1e5b;
|
||||
}
|
||||
|
||||
.form-box{
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
margin-top: 5%;
|
||||
margin-bottom: 5%;
|
||||
background-color: white;
|
||||
width: 98%;
|
||||
border-radius: 5px;
|
||||
box-shadow: 10px 10px 0 0 #3e2c75;
|
||||
}
|
||||
|
||||
.boximage{
|
||||
width: 100%;
|
||||
height: auto;
|
||||
|
||||
background-size: cover;
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
|
||||
.infotext {
|
||||
width: 100%;
|
||||
padding: 3%;
|
||||
text-align: center;
|
||||
color: #162c38;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
h1{
|
||||
font-family: 'Roboto Slab', serif;
|
||||
font-size: 1.1em;
|
||||
color: #162c38;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.infotext p{
|
||||
line-height: 1.5em;
|
||||
letter-spacing:0.05em;
|
||||
}
|
||||
|
||||
form{
|
||||
width: 100%;
|
||||
padding: 5%;
|
||||
}
|
||||
.required-input{
|
||||
color: #f00;
|
||||
}
|
||||
input{
|
||||
display: block;
|
||||
width: 100%;
|
||||
border: solid 1px #bbb7b7;
|
||||
border-radius: 5px;
|
||||
margin-bottom: 15px;
|
||||
padding: 2%;
|
||||
font-size: 0.8em;
|
||||
font-family: sans-serif;
|
||||
letter-spacing:0.1em;
|
||||
color: #888;
|
||||
text-align: left;
|
||||
}
|
||||
input[type=submit]{
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
background-color: #a82d2d;
|
||||
color:#fff;
|
||||
text-align: center;
|
||||
}
|
||||
input[type=submit]:hover{
|
||||
background-color: #711616;
|
||||
cursor: pointer;
|
||||
}
|
||||
.form-control{
|
||||
height: 50px;
|
||||
background: #ecf0f4;
|
||||
border-color: transparent;
|
||||
padding: 0 15px;
|
||||
font-size: 16px;
|
||||
-webkit-transition: all 0.3s ease-in-out;
|
||||
-moz-transition: all 0.3s ease-in-out;
|
||||
-o-transition: all 0.3s ease-in-out;
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
.form-control:focus{
|
||||
border-color: #00bcd9;
|
||||
-webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, .1);
|
||||
-moz-box-shadow: 0px 0px 20px rgba(0, 0, 0, .1);
|
||||
box-shadow: 0px 0px 20px rgba(0, 0, 0, .1);
|
||||
}
|
||||
textarea.form-control{
|
||||
height: 160px;
|
||||
padding-top: 15px;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
|
||||
.content-column ul li {
|
||||
|
||||
list-style-type: disc;
|
||||
|
||||
margin-left: 20px;
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
@endpush
|
11
resources/views/accessb2b/emails/email-template.blade.php
Normal file
11
resources/views/accessb2b/emails/email-template.blade.php
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>@yield('email_subject')</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
@yield('content')
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
26
resources/views/accessb2b/emails/enquiry-response.blade.php
Normal file
26
resources/views/accessb2b/emails/enquiry-response.blade.php
Normal file
@ -0,0 +1,26 @@
|
||||
@component('mail::message')
|
||||
|
||||
Dear {{$formData['name']}},
|
||||
|
||||
Thank you for submitting the online enquiry form. We appreciate your interest in our services. Our team has received your request, and we are excited to assist you.
|
||||
|
||||
You can expect to hear back from our team within the next working day. We are dedicated to providing excellent service and will do our best to address your enquiry thoroughly.
|
||||
|
||||
If you have any further questions or need immediate assistance, feel free to contact us at any time.
|
||||
|
||||
Just for your reference, here below are your submitted details.
|
||||
|
||||
|
||||
- **Name:** {{ $formData['name'] }}
|
||||
- **Email:** {{ $formData['email'] }}
|
||||
- **Phone:** {{ $formData['phone'] }}
|
||||
- **Preferred Destination:** {{ $formData['preferred_destination'] }}
|
||||
- **Mode of Counselling:** {{ $formData['mode_of_counselling'] }}
|
||||
- **Nearest Branch:** {{ $formData['nearest_branch'] }}
|
||||
- **Message:** {{ $formData['message'] }}
|
||||
|
||||
|
||||
Best regards,
|
||||
Access Education Webmaster
|
||||
|
||||
@endcomponent
|
22
resources/views/accessb2b/emails/enquiry-submitted.blade.php
Normal file
22
resources/views/accessb2b/emails/enquiry-submitted.blade.php
Normal file
@ -0,0 +1,22 @@
|
||||
@component('mail::message')
|
||||
# New Online Enquiry Form Submission
|
||||
|
||||
Congratulations on receiving a new online enquiry form submission!
|
||||
|
||||
Your expertise and dedication have attracted yet another prosperous user seeking guidance. We are excited to share the details of the form that has been submitted:
|
||||
|
||||
Thank you for making a difference in people's lives. Keep up the excellent work!
|
||||
|
||||
- **Name:** {{ $formData['name'] }}
|
||||
- **Email:** {{ $formData['email'] }}
|
||||
- **Phone:** {{ $formData['phone'] }}
|
||||
- **Preferred Destination:** {{ $formData['preferred_destination'] }}
|
||||
- **Mode of Counselling:** {{ $formData['mode_of_counselling'] }}
|
||||
- **Nearest Branch:** {{ $formData['nearest_branch'] }}
|
||||
- **Message:** {{ $formData['message'] }}
|
||||
|
||||
|
||||
Best regards,
|
||||
{{env("APP_NAME")}}
|
||||
|
||||
@endcomponent
|
@ -0,0 +1,63 @@
|
||||
@extends('emails.email-template')
|
||||
@section('content')
|
||||
<p>Dear {{ $formData['name'] }},</p>
|
||||
|
||||
<p>
|
||||
<b>Explore the Difference at the wri International Education Fair - Your Path to a Brighter Future!</b>
|
||||
</p>
|
||||
|
||||
<p>Your participation has been confirmed for the upcoming wri International Education Fair, scheduled for Sunday,
|
||||
October 1st, 2023, at our wri office premises in Putalisadak.</p>
|
||||
|
||||
<p>"We lead because we are differently better." This encapsulates our unwavering commitment to excellence and innovation
|
||||
in
|
||||
the realm of international education. We invite you to join us and experience this difference firsthand.</p>
|
||||
|
||||
<p><strong>Here's a glimpse of what awaits you at the wri International Education Fair:</strong></p>
|
||||
<ul>
|
||||
<li>Direct Engagement with University Officials: Gain exclusive access to representatives from renowned universities
|
||||
in
|
||||
Australia, Canada, the UK, and the USA. This rare opportunity enables you to engage directly with experts and
|
||||
gather
|
||||
invaluable insights.
|
||||
</li>
|
||||
<li>Irresistible Offers and Discounts: Discover enticing offers and substantial discounts on tuition fees and
|
||||
related
|
||||
expenses, making world-class education more accessible than ever.
|
||||
</li>
|
||||
<li>Personalized Guidance: Our team of experienced advisors will be on hand to provide personalized counseling,
|
||||
helping
|
||||
you chart your academic journey, navigate application processes, and make informed choices about your future.
|
||||
</li>
|
||||
<li>Up to 100% Scholarships: Learn about a plethora of scholarship opportunities that can potentially cover the
|
||||
entirety
|
||||
of your educational costs, ensuring financial concerns don't hinder your academic ambitions.</li>
|
||||
<li> Fun and Games: Immerse yourself in a day of exciting activities and games, adding an element of enjoyment to
|
||||
your
|
||||
educational exploration.</li>
|
||||
<li> Exciting Gifts: As a token of our appreciation, attendees will have the chance to win captivating prizes,
|
||||
including
|
||||
QFX movie tickets and more.
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>We invite you to embrace this exceptional opportunity to embark on your international education journey. Join us at
|
||||
the
|
||||
wri International Education Fair and uncover the unique qualities that set us apart.</p>
|
||||
<p> To RSVP or obtain more details, please reach out to us at 9841327905. We eagerly anticipate your
|
||||
presence at the wri International Education Fair on Sunday, October 1st, 2023 from 10 am to 5 pm. together,
|
||||
let's
|
||||
step into a brighter and more promising future.</P>
|
||||
|
||||
<img src="{{ $message->embed(public_path('wri/assets/images/post_for_mail.jpg')) }}" alt="Embedded Image">
|
||||
|
||||
|
||||
<h3> Just for your reference, here below are your submitted details.</h3>
|
||||
|
||||
<p>Name: {{ $formData['name'] }}</p>
|
||||
<p>Email: {{ $formData['email'] }}</p>
|
||||
<p>Phone: {{ $formData['mobile'] }}</p>
|
||||
<p>Warm regards,</p>
|
||||
<p> wri</p>
|
||||
<p> 9841327905</p>
|
||||
@endsection
|
@ -0,0 +1,44 @@
|
||||
@extends('emails.email-template')
|
||||
@section('content')
|
||||
<p>Dear {{ $formData['name'] }},</p>
|
||||
|
||||
<h1>Thank You for Registering!</h1>
|
||||
<p>Your participation has been confirmed for the upcoming <strong>Pranjal International Education Fair 2023</strong> scheduled for <strong>1st October, 2023, Sunday</strong> at our wri office premises in <em>Putalisadak Chowk, Putalisadak (way to Bagbazar)</em>!</p>
|
||||
|
||||
<h2>Event Details:</h2>
|
||||
<ul>
|
||||
<li>One Single Day!</li>
|
||||
<li>One Single Place!</li>
|
||||
<li>All your craved study destinations in one place!</li>
|
||||
<li>Meet 150+ University Representatives from <strong>Australia</strong>, <strong>Canada</strong>, <strong>UK</strong>, & <strong>USA</strong>!</li>
|
||||
<li>On Spot Offer Letter, scholarships and more…</li>
|
||||
</ul>
|
||||
|
||||
<p>"<em>We lead because we are differently better."</em> This encapsulates our unwavering commitment to excellence and innovation in the realm of international education. We invite you to join us and experience this difference firsthand.</p>
|
||||
|
||||
<h2>What Awaits You:</h2>
|
||||
<ul>
|
||||
<li>Direct Engagement with University Officials: Gain exclusive access to representatives from renowned universities in Australia, Canada, the UK, and the USA.</li>
|
||||
<li>Irresistible Offers and Discounts: Discover enticing offers and substantial discounts on tuition fees and related expenses, making world-class education more accessible than ever.</li>
|
||||
<li>Personalized Guidance: Our team of experienced advisors will be on hand to provide personalized counseling, helping you chart your academic journey, navigate application processes, and make informed choices about your future.</li>
|
||||
<li>Up to 100% Scholarships: Learn about a plethora of scholarship opportunities that can potentially cover the entirety of your educational costs, ensuring financial concerns don't hinder your academic ambitions.</li>
|
||||
<li>Fun and Games: Immerse yourself in a day of exciting activities and games, adding an element of enjoyment to your educational exploration.</li>
|
||||
<li>Exciting Gifts: As a token of our appreciation, attendees will have the chance to win captivating prizes, including QFX movie tickets and more.</li>
|
||||
</ul>
|
||||
|
||||
<p>We invite you to embrace this exceptional opportunity to embark on your international education journey. Join us at the wri International Education Fair and uncover the unique qualities that set us apart.</p>
|
||||
|
||||
<p>To RSVP or obtain more details, please reach out to us at <strong>WhatsApp 9841327905</strong>. We eagerly anticipate your presence at the wri International Education Fair on <strong>Sunday, October 1st, 2023</strong> from <strong>10 am to 5 pm</strong>. Together, let's step into a brighter and more promising future.</p>
|
||||
|
||||
<img src="{{ $message->embed(public_path('pranjal/assets/images/post_for_mail.jpg')) }}" alt="Embedded Image">
|
||||
|
||||
|
||||
<h3> Just for your reference, here below are your submitted details.</h3>
|
||||
|
||||
<p>Name: {{ $formData['name'] }}</p>
|
||||
<p>Email: {{ $formData['email'] }}</p>
|
||||
<p>Phone: {{ $formData['mobile'] }}</p>
|
||||
<p>Warm regards,</p>
|
||||
<p> wri</p>
|
||||
<p> 9841327905</p>
|
||||
@endsection
|
0
resources/views/accessb2b/form.blade.php
Normal file
0
resources/views/accessb2b/form.blade.php
Normal file
333
resources/views/accessb2b/home.blade.php
Normal file
333
resources/views/accessb2b/home.blade.php
Normal file
@ -0,0 +1,333 @@
|
||||
@extends(env('CLIENT_PATH') . '.welcome')
|
||||
@section('content')
|
||||
<div class="form-box">
|
||||
<div class="boximage">
|
||||
<img src="<?php echo site_url(SITEVARS->Campaigns[0]->cover_photo); ?>" class="img-fluid" />
|
||||
</div>
|
||||
<!-- <div class="infotext">
|
||||
<h1> <?php //echo SITEVARS->Campaigns[0]->title;
|
||||
?></h1>
|
||||
</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-row">
|
||||
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="form-group"><label for="from-name">Name</label><span class="required-input">*</span>
|
||||
<input class="form-control" type="text" id="from-name" name="name" required="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-6 col-md-12 col-lg-6">
|
||||
<div class="form-group"><label for="from-email">Email</label><span class="required-input">*</span>
|
||||
<input class="form-control" type="email" id="from-email" name="email" required="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-12 col-lg-6">
|
||||
<div class="form-group"><label for="from-phone">Mobile Number</label><span class="required-input">*</span>
|
||||
<div class="input-group">
|
||||
<input class="form-control" type="text" id="from-phone" name="mobile" required pattern="9\d{9}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-12 col-md-6 col-lg-6">
|
||||
<div class="form-group"><label for="from-qualifications">Highest Qualification</label><span class="required-input">*</span>
|
||||
<select class="form-control" id="from-qualifications" type="text" name="qualification" required="">
|
||||
<option value="">Select Qualification</option>
|
||||
<?php foreach (LMS::getQualifications() as $key) : ?>
|
||||
<option value="{{$key->alias}}">{{$key->title}}</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-3 col-lg-3">
|
||||
<div class="form-group"><label for="highest_grade">Highest Scored:</label><span class="required-input">*</span>
|
||||
<div class="input-group">
|
||||
<input class="form-control" type="text" id="highest_grade" name="highest_grade" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-3 col-lg-3">
|
||||
<div class="form-group"><label for="highest_year">Passed Year:</label><span class="required-input">*</span>
|
||||
<div class="input-group">
|
||||
<input class="form-control" type="text" id="highest_year" name="highest_year" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- <div class="col-12 col-sm-6 col-md-12 col-lg-12">
|
||||
<div class="form-group"><label for="preferred_destination">Preferred Study Destination:</label>
|
||||
<div class="select-group">
|
||||
<select name="preferred_destination" class="form-control field-info">
|
||||
<option value="" selected="" disabled="">Preferred Study Destination</option>
|
||||
<option value="UK">Study in UK</option>
|
||||
<option value="Australia">Study in Australia</option>
|
||||
<option value="USA">Study in USA</option>
|
||||
<option value="Canada">Study in Canada</option>
|
||||
<option value="Other Destination">Others</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="form-group"><label for="from-calltime">Message / Enquiry</label>
|
||||
<textarea name="message" class="form-control" rows="5"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-row">
|
||||
<input type="hidden" name="g-recaptcha-response" value="">
|
||||
|
||||
<div class="col"><button class="btn btn-success btn-block" type="submit" id="submitButton">Register</button></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<?php //pre(SITEVARS->Campaigns[0]);
|
||||
?>
|
||||
<div class="modal fade" id="success-modal" tabindex="-1" role="dialog" aria-labelledby="success-modal-label" aria-hidden="true">
|
||||
<div class="modal-dialog modal-xl" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" style="display: none;">
|
||||
<h5 class="modal-title" id="success-modal-label">Success</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<!-- <div id="modal-text-area">
|
||||
</div> -->
|
||||
<div id="success-modal-qr">
|
||||
</div>
|
||||
<!-- <div id="canvas-area">
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" id="downloadButton" class="btn btn-success full-width" style="width: 100%;">Download</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="error-modal" tabindex="-1" role="dialog" aria-labelledby="error-modal-label" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="error-modal-label">Form Validation Errors</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<!-- Error messages will be displayed here -->
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#enquiry-form').submit(function(e) {
|
||||
e.preventDefault();
|
||||
$("#submitButton").prop("disabled", true);
|
||||
var formData = $(this).serialize();
|
||||
var response = "";
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '<?php echo route('registration.submit'); ?>',
|
||||
data: formData,
|
||||
success: function(response) {
|
||||
if (response.status) {
|
||||
$('#registration-id').text(response.registration_id);
|
||||
$('#success-modal-label').text("Registration is successful");
|
||||
$('#success-modal-qr').html("<img src='" + response.qr_code +
|
||||
"' class='img-fluid' />");
|
||||
var downloadLink = document.createElement('a');
|
||||
downloadLink.href = response.qr_code;
|
||||
downloadLink.download =
|
||||
'pranjal_educaiton_consultancy_qrcode.png';
|
||||
$('#success-modal').modal('show');
|
||||
$form[0].reset();
|
||||
$("#submitButton").prop("disabled", false);
|
||||
} else if (response.message ==
|
||||
'Mobile number already exists. Returning existing data.') {
|
||||
var existingRegistrationData = response.registration;
|
||||
var downloadLink = document.createElement('a');
|
||||
downloadLink.href = response.qr_code;
|
||||
downloadLink.download =
|
||||
'pranjal_educaiton_consultancy_qrcode.png';
|
||||
$('#success-modal-label').text(response.message);
|
||||
$('#success-modal-qr').html("<img src='" + response.qr_code +
|
||||
"' class='img-fluid' />");
|
||||
$('#success-modal').modal('show');
|
||||
$("#submitButton").prop("disabled", false);
|
||||
} else {
|
||||
var errorMessages = '';
|
||||
$.each(response.errors, function(field, errors) {
|
||||
errorMessages += errors.join('<br>');
|
||||
});
|
||||
$('#error-modal .modal-body').html(errorMessages);
|
||||
$('#error-modal').modal('show');
|
||||
$("#submitButton").prop("disabled", false);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#success-modal').on('hidden.bs.modal', function() {
|
||||
$('#enquiry-form')[0].reset(); // Reset the form
|
||||
fbq('track', 'CompleteRegistration', {
|
||||
currency: "USD",
|
||||
value: 1.00
|
||||
});
|
||||
});
|
||||
$('#downloadButton').on('click', function() {
|
||||
var downloadLink = document.createElement('a');
|
||||
downloadLink.href = $('#success-modal-qr img').attr('src');
|
||||
downloadLink.download = 'pranjal_educaiton_consultancy_qrcode.png';
|
||||
downloadLink.click();
|
||||
$("#submitButton").prop("disabled", false);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@push('css')
|
||||
<style>
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #9c1e5b;
|
||||
}
|
||||
|
||||
.form-box {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
margin-top: 5%;
|
||||
margin-bottom: 5%;
|
||||
background-color: white;
|
||||
width: 98%;
|
||||
border-radius: 5px;
|
||||
box-shadow: 10px 10px 0 0 #3e2c75;
|
||||
}
|
||||
|
||||
.boximage {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
|
||||
background-size: cover;
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
|
||||
.infotext {
|
||||
width: 100%;
|
||||
padding: 3%;
|
||||
text-align: center;
|
||||
color: #162c38;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: 'Roboto Slab', serif;
|
||||
font-size: 1.1em;
|
||||
color: #162c38;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.infotext p {
|
||||
line-height: 1.5em;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
form {
|
||||
width: 100%;
|
||||
padding: 5%;
|
||||
}
|
||||
|
||||
.required-input {
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
input {
|
||||
display: block;
|
||||
width: 100%;
|
||||
border: solid 1px #bbb7b7;
|
||||
border-radius: 5px;
|
||||
margin-bottom: 15px;
|
||||
padding: 2%;
|
||||
font-size: 0.8em;
|
||||
font-family: sans-serif;
|
||||
letter-spacing: 0.1em;
|
||||
color: #888;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
input[type=submit] {
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
background-color: #a82d2d;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
input[type=submit]:hover {
|
||||
background-color: #711616;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
height: 50px;
|
||||
background: #ecf0f4;
|
||||
border-color: transparent;
|
||||
padding: 0 15px;
|
||||
font-size: 16px;
|
||||
-webkit-transition: all 0.3s ease-in-out;
|
||||
-moz-transition: all 0.3s ease-in-out;
|
||||
-o-transition: all 0.3s ease-in-out;
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
border-color: #00bcd9;
|
||||
-webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, .1);
|
||||
-moz-box-shadow: 0px 0px 20px rgba(0, 0, 0, .1);
|
||||
box-shadow: 0px 0px 20px rgba(0, 0, 0, .1);
|
||||
}
|
||||
|
||||
textarea.form-control {
|
||||
height: 160px;
|
||||
padding-top: 15px;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
|
||||
.content-column ul li {
|
||||
|
||||
list-style-type: disc;
|
||||
|
||||
margin-left: 20px;
|
||||
|
||||
}
|
||||
</style>
|
||||
@endpush
|
320
resources/views/accessb2b/office-reception.blade.php
Normal file
320
resources/views/accessb2b/office-reception.blade.php
Normal file
@ -0,0 +1,320 @@
|
||||
@extends(env("CLIENT_PATH").".welcome")
|
||||
@section("content")
|
||||
<div class="form-box">
|
||||
<div class="boximage">
|
||||
<img src="<?php echo site_url(SITEVARS->Campaigns[0]->cover_photo);?>" class="img-fluid" />
|
||||
</div>
|
||||
<!-- <div class="infotext">
|
||||
<h1> <?php //echo SITEVARS->Campaigns[0]->title;?></h1>
|
||||
</div> -->
|
||||
<form method="post" action="#" id="enquiry-form">
|
||||
@csrf
|
||||
<input type="hidden" name="sources_id" value="2" />
|
||||
<input type="hidden" name="campaigns_id" value="<?php echo SITEVARS->Campaigns[0]->campaign_id; ?>" />
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="form-group"><label for="from-name">Name</label><span class="required-input">*</span>
|
||||
<input class="form-control" type="text" id="from-name" name="name" required="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-6 col-md-12 col-lg-6">
|
||||
<div class="form-group"><label for="from-email">Email</label><span class="required-input">*</span>
|
||||
<input class="form-control" type="email" id="from-email" name="email" required="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-12 col-lg-6">
|
||||
<div class="form-group"><label for="from-phone">Mobile Number</label><span class="required-input">*</span>
|
||||
<div class="input-group">
|
||||
<input class="form-control" type="text" id="from-phone" name="mobile" required="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-6 col-md-12 col-lg-6">
|
||||
<div class="form-group"><label for="from-qualifications">Highest Qualification</label><span class="required-input">*</span>
|
||||
<select class="form-control" id="from-qualifications" type="text" name="qualification" required="">
|
||||
<option value="">Select Qualification</option>
|
||||
<option value="SEE/SLC">SEE/SLC</option>
|
||||
<option value="A levels">A levels</option>
|
||||
<option value="10+2/PCL">10+2/PCL</option>
|
||||
<option value="Bachelors (3 years)">Bachelors (3 Years)</option>
|
||||
<option value="Bachelors (4 years)">Bachelors (4 Years)</option>
|
||||
<option value="Master's and Above">Master's and Above</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-12 col-lg-6">
|
||||
<div class="form-group"><label for="board">University / Board:</label><span class="required-input">*</span>
|
||||
<div class="input-group">
|
||||
<input class="form-control" type="text" id="board" name="board" required="" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group"><label for="preferred_destination">Preferred Study Destination:</label><span class="required-input">*</span>
|
||||
<div class="select-group">
|
||||
<select name="preferred_destination" class="form-control field-info" required="">
|
||||
<option value="" selected="" disabled="">Preferred Study Destination *</option>
|
||||
<option value="study-in-australia">Study in Australia</option>
|
||||
<option value="study-in-new-zealand">Study in New Zealand</option>
|
||||
<option value="study-in-canada">Study in Canada</option>
|
||||
<option value="study-in-uk">Study in UK</option>
|
||||
<option value="study-in-usa">Study in USA</option>
|
||||
<option value="other">Others</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="form-group"><label for="from-calltime">Message / Enquiry</label><span class="required-input">*</span>
|
||||
<textarea name="message" class="form-control" rows="5" re></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-row">
|
||||
<input type="hidden" name="g-recaptcha-response" value="">
|
||||
|
||||
<div class="col"><button class="btn btn-success btn-block" type="submit" id="submitButton">Get Admit Pass <i class="fa fa-chevron-circle-right"></i></button></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<?php //pre(SITEVARS->Campaigns[0]); ?>
|
||||
<div class="modal fade" id="success-modal" tabindex="-1" role="dialog" aria-labelledby="success-modal-label" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" style="display: none;">
|
||||
<h5 class="modal-title" id="success-modal-label">Success</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div id="modal-text-area">
|
||||
</div>
|
||||
<div id="success-modal-qr">
|
||||
</div>
|
||||
<div id="canvas-area">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" id="downloadButton" class="btn btn-success full-width" style="width: 100%;">Download : Presidential Pass</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="error-modal" tabindex="-1" role="dialog" aria-labelledby="error-modal-label" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="error-modal-label">Form Validation Errors</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<!-- Error messages will be displayed here -->
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@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 PRESIDENTIAL 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 = 'presidential_astro_solutions_qr_code.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 = 'presidential_astro_solutions_qr_code.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 = 'presidential_astro_solutions_qr_code.png';
|
||||
downloadLink.click();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@push("css")
|
||||
<style>
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body{
|
||||
|
||||
|
||||
}
|
||||
|
||||
.form-box{
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
margin-top: 5%;
|
||||
margin-bottom: 5%;
|
||||
background-color: white;
|
||||
width: 98%;
|
||||
border-radius: 5px;
|
||||
box-shadow: 10px 10px 0 0 #083079;
|
||||
}
|
||||
|
||||
.boximage{
|
||||
width: 100%;
|
||||
height: auto;
|
||||
|
||||
background-size: cover;
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
|
||||
.infotext {
|
||||
width: 100%;
|
||||
padding: 3%;
|
||||
text-align: center;
|
||||
color: #162c38;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
h1{
|
||||
font-family: 'Roboto Slab', serif;
|
||||
font-size: 1.1em;
|
||||
color: #162c38;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.infotext p{
|
||||
line-height: 1.5em;
|
||||
letter-spacing:0.05em;
|
||||
}
|
||||
|
||||
form{
|
||||
width: 100%;
|
||||
padding: 5%;
|
||||
}
|
||||
.required-input{
|
||||
color: #f00;
|
||||
}
|
||||
input{
|
||||
display: block;
|
||||
width: 100%;
|
||||
border: solid 1px #bbb7b7;
|
||||
border-radius: 5px;
|
||||
margin-bottom: 15px;
|
||||
padding: 2%;
|
||||
font-size: 0.8em;
|
||||
font-family: sans-serif;
|
||||
letter-spacing:0.1em;
|
||||
color: #888;
|
||||
text-align: left;
|
||||
}
|
||||
input[type=submit]{
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
background-color: #a82d2d;
|
||||
color:#fff;
|
||||
text-align: center;
|
||||
}
|
||||
input[type=submit]:hover{
|
||||
background-color: #711616;
|
||||
cursor: pointer;
|
||||
}
|
||||
.form-control{
|
||||
height: 50px;
|
||||
background: #ecf0f4;
|
||||
border-color: transparent;
|
||||
padding: 0 15px;
|
||||
font-size: 16px;
|
||||
-webkit-transition: all 0.3s ease-in-out;
|
||||
-moz-transition: all 0.3s ease-in-out;
|
||||
-o-transition: all 0.3s ease-in-out;
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
.form-control:focus{
|
||||
border-color: #00bcd9;
|
||||
-webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, .1);
|
||||
-moz-box-shadow: 0px 0px 20px rgba(0, 0, 0, .1);
|
||||
box-shadow: 0px 0px 20px rgba(0, 0, 0, .1);
|
||||
}
|
||||
textarea.form-control{
|
||||
height: 160px;
|
||||
padding-top: 15px;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
|
||||
.content-column ul li {
|
||||
|
||||
list-style-type: disc;
|
||||
|
||||
margin-left: 20px;
|
||||
|
||||
}
|
||||
</style>
|
||||
@endpush
|
326
resources/views/accessb2b/office-visits.blade.php
Normal file
326
resources/views/accessb2b/office-visits.blade.php
Normal file
@ -0,0 +1,326 @@
|
||||
@extends(env("CLIENT_PATH").".welcome")
|
||||
@section("content")
|
||||
<div class="form-box">
|
||||
<div class="boximage">
|
||||
<img src="<?php echo site_url(SITEVARS->Campaigns[0]->cover_photo); ?>" class="img-fluid" />
|
||||
</div>
|
||||
<!-- <div class="infotext">
|
||||
<h1> <?php //echo SITEVARS->Campaigns[0]->title;
|
||||
?></h1>
|
||||
</div> -->
|
||||
<form method="post" action="#" id="enquiry-form">
|
||||
@csrf
|
||||
<input type="hidden" name="sources_id" value="2" />
|
||||
<input type="hidden" name="campaigns_id" value="<?php echo SITEVARS->Campaigns[0]->campaign_id; ?>" />
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="form-group"><label for="from-name">Name</label><span class="required-input">*</span>
|
||||
<input class="form-control" type="text" id="from-name" name="name" required="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-6 col-md-12 col-lg-6">
|
||||
<div class="form-group"><label for="from-email">Email</label><span class="required-input">*</span>
|
||||
<input class="form-control" type="email" id="from-email" name="email" required="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-12 col-lg-6">
|
||||
<div class="form-group"><label for="from-phone">Mobile Number</label><span class="required-input">*</span>
|
||||
<div class="input-group">
|
||||
<input class="form-control" type="text" id="from-phone" name="mobile" required="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-6 col-md-12 col-lg-6">
|
||||
<div class="form-group"><label for="from-qualifications">Highest Qualification</label><span class="required-input">*</span>
|
||||
<select class="form-control" id="from-qualifications" type="text" name="qualification" required="">
|
||||
<option value="">Select Qualification</option>
|
||||
<option value="SEE/SLC">SEE/SLC</option>
|
||||
<option value="A levels">A levels</option>
|
||||
<option value="10+2/PCL">10+2/PCL</option>
|
||||
<option value="Bachelors (3 years)">Bachelors (3 Years)</option>
|
||||
<option value="Bachelors (4 years)">Bachelors (4 Years)</option>
|
||||
<option value="Master's and Above">Master's and Above</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 col-md-12 col-lg-6">
|
||||
<div class="form-group"><label for="board">University / Board:</label><span class="required-input">*</span>
|
||||
<div class="input-group">
|
||||
<input class="form-control" type="text" id="board" name="board" required="" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group"><label for="preferred_destination">Preferred Study Destination:</label><span class="required-input">*</span>
|
||||
<div class="select-group">
|
||||
<select name="preferred_destination" class="form-control field-info" required="">
|
||||
<option value="" selected="" disabled="">Preferred Study Destination *</option>
|
||||
<option value="study-in-australia">Study in Australia</option>
|
||||
<option value="study-in-usa">Study in USA</option>
|
||||
<option value="study-in-canada">Study in Canada</option>
|
||||
|
||||
|
||||
<option value="other">Others</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-12 col-md-12 col-lg-12">
|
||||
<div class="form-group"><label for="from-calltime">Message / Enquiry</label><span class="required-input">*</span>
|
||||
<textarea name="message" class="form-control" rows="5" re></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group ">
|
||||
<div class="form-row">
|
||||
<input type="hidden" name="g-recaptcha-response" value="">
|
||||
|
||||
<div class="col"><button class="btn btn-primary btn-block" type="submit" id="submitButton">Submit <i class="fa fa-chevron-circle-right"></i></button></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<?php //pre(SITEVARS->Campaigns[0]);
|
||||
?>
|
||||
<div class="modal fade" id="success-modal" tabindex="-1" role="dialog" aria-labelledby="success-modal-label" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" style="display: none;">
|
||||
<h5 class="modal-title" id="success-modal-label">Success</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div id="modal-text-area">
|
||||
</div>
|
||||
<div id="success-modal-qr">
|
||||
</div>
|
||||
<div id="canvas-area">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" id="downloadButton" class="btn btn-success full-width" style="width: 100%;">Download : Presidential Pass</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="error-modal" tabindex="-1" role="dialog" aria-labelledby="error-modal-label" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="error-modal-label">Form Validation Errors</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<!-- Error messages will be displayed here -->
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@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 PRESIDENTIAL 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 = 'presidential_astro_solutions_qr_code.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 = 'presidential_astro_solutions_qr_code.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 = 'presidential_astro_solutions_qr_code.png';
|
||||
downloadLink.click();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@push("css")
|
||||
<style>
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #3e2c75;
|
||||
}
|
||||
|
||||
.form-box {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
margin-top: 5%;
|
||||
margin-bottom: 5%;
|
||||
background-color: white;
|
||||
width: 98%;
|
||||
border-radius: 5px;
|
||||
box-shadow: 10px 10px 0 0 #9c1e5b;
|
||||
}
|
||||
|
||||
.boximage {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
|
||||
background-size: cover;
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
|
||||
.infotext {
|
||||
width: 100%;
|
||||
padding: 3%;
|
||||
text-align: center;
|
||||
color: #162c38;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: 'Roboto Slab', serif;
|
||||
font-size: 1.1em;
|
||||
color: #162c38;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.infotext p {
|
||||
line-height: 1.5em;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
form {
|
||||
width: 100%;
|
||||
padding: 5%;
|
||||
}
|
||||
|
||||
.required-input {
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
input {
|
||||
display: block;
|
||||
width: 100%;
|
||||
border: solid 1px #bbb7b7;
|
||||
border-radius: 5px;
|
||||
margin-bottom: 15px;
|
||||
padding: 2%;
|
||||
font-size: 0.8em;
|
||||
font-family: sans-serif;
|
||||
letter-spacing: 0.1em;
|
||||
color: #888;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
input[type=submit] {
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
background-color: #a82d2d;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
input[type=submit]:hover {
|
||||
background-color: #711616;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
height: 50px;
|
||||
background: #ecf0f4;
|
||||
border-color: transparent;
|
||||
padding: 0 15px;
|
||||
font-size: 16px;
|
||||
-webkit-transition: all 0.3s ease-in-out;
|
||||
-moz-transition: all 0.3s ease-in-out;
|
||||
-o-transition: all 0.3s ease-in-out;
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
border-color: #00bcd9;
|
||||
-webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, .1);
|
||||
-moz-box-shadow: 0px 0px 20px rgba(0, 0, 0, .1);
|
||||
box-shadow: 0px 0px 20px rgba(0, 0, 0, .1);
|
||||
}
|
||||
|
||||
textarea.form-control {
|
||||
height: 160px;
|
||||
padding-top: 15px;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
|
||||
.content-column ul li {
|
||||
|
||||
list-style-type: disc;
|
||||
|
||||
margin-left: 20px;
|
||||
|
||||
}
|
||||
</style>
|
||||
@endpush
|
0
resources/views/accessb2b/partials/footer.blade.php
Normal file
0
resources/views/accessb2b/partials/footer.blade.php
Normal file
0
resources/views/accessb2b/partials/header.blade.php
Normal file
0
resources/views/accessb2b/partials/header.blade.php
Normal file
57
resources/views/accessb2b/partials/seo.blade.php
Normal file
57
resources/views/accessb2b/partials/seo.blade.php
Normal file
@ -0,0 +1,57 @@
|
||||
<?php // dd($data); ?>
|
||||
<title>
|
||||
<?php if (isset($data)) {
|
||||
echo ($data->seo_title != "") ? $data->seo_title : $data->title;
|
||||
echo " | " . SITEVARS->title;
|
||||
} else {
|
||||
echo SITEVARS->seo_title;
|
||||
}
|
||||
?>
|
||||
</title>
|
||||
<meta name="description" content="<?php
|
||||
if (isset($data)) {
|
||||
echo ($data->seo_descriptions != "") ? $data->seo_descriptions : SITEVARS->seo_description;
|
||||
} else {
|
||||
echo SITEVARS->seo_description;
|
||||
}
|
||||
?>">
|
||||
<meta name="keywords" content="<?php
|
||||
if (isset($data)) {
|
||||
echo ($data->seo_keywords != "") ? $data->seo_keywords : SITEVARS->seo_keywords;
|
||||
} else {
|
||||
echo SITEVARS->seo_keywords;
|
||||
}
|
||||
|
||||
?>">
|
||||
<meta name="author" content="Bibhuti Solution Pvt. Ltd.">
|
||||
<meta name="subject" content="<?php
|
||||
if (isset($data)) {
|
||||
echo ($data->seo_descriptions != "") ? $data->seo_descriptions : SITEVARS->seo_description;
|
||||
} else {
|
||||
echo SITEVARS->seo_description;
|
||||
}
|
||||
|
||||
?>">
|
||||
<meta property="og:title" content="<?php if (isset($data)) {
|
||||
echo ($data->seo_title != "") ? $data->seo_title : $data->title;
|
||||
echo " | " . SITEVARS->title;
|
||||
} else {
|
||||
echo SITEVARS->seo_title;
|
||||
}
|
||||
?>">
|
||||
<meta property="og:description" content="<?php
|
||||
if (isset($data)) {
|
||||
echo ($data->seo_descriptions != "") ? $data->seo_descriptions : SITEVARS->seo_description;
|
||||
} else {
|
||||
echo SITEVARS->seo_description;
|
||||
}
|
||||
|
||||
?>">
|
||||
<meta property="og:image" content="<?php echo site_url(SITEVARS->og_image); ?>">
|
||||
<meta property="og:url" content="<?php echo site_url(); ?>">
|
||||
<meta property="og:site_name" content="<?php echo SITEVARS->title; ?>">
|
||||
<?php if(isset($data))
|
||||
{
|
||||
echo $data->og_tags;
|
||||
}
|
||||
?>
|
BIN
resources/views/accessb2b/pdf/fillable-form.pdf
Normal file
BIN
resources/views/accessb2b/pdf/fillable-form.pdf
Normal file
Binary file not shown.
0
resources/views/accessb2b/pdf/multipage-template
Normal file
0
resources/views/accessb2b/pdf/multipage-template
Normal file
BIN
resources/views/accessb2b/pdf/multipage-template.pdf
Normal file
BIN
resources/views/accessb2b/pdf/multipage-template.pdf
Normal file
Binary file not shown.
0
resources/views/accessb2b/pdf/single-page-template
Normal file
0
resources/views/accessb2b/pdf/single-page-template
Normal file
173
resources/views/accessb2b/welcome.blade.php
Normal file
173
resources/views/accessb2b/welcome.blade.php
Normal file
@ -0,0 +1,173 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title><?php echo SITEVARS->Campaigns[0]->seo_title;?> : {{env("APP_NAME")}}</title>
|
||||
<link rel="icon" type="image/x-icon" href="<?php echo SITEVARS->icon; ?>">
|
||||
@if (!View::hasSection('seo'))
|
||||
@include(env("CLIENT_PATH").'.partials.seo')
|
||||
@endif
|
||||
@yield("seo")
|
||||
<!-- Stylesheets -->
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Responsive -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
|
||||
@stack("css")
|
||||
<?php echo SITEVARS->meta_pixel_code; ?>
|
||||
<style>
|
||||
.sbuttons {
|
||||
bottom: 5%;
|
||||
position: fixed;
|
||||
margin: 1em;
|
||||
left: 0;
|
||||
z-index: 9999;
|
||||
}
|
||||
.sbutton {
|
||||
display: block;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
color: white;
|
||||
margin: 20px auto 0;
|
||||
box-shadow: 0px 5px 11px -2px rgba(0, 0, 0, 0.18), 0px 4px 12px -7px rgba(0, 0, 0, 0.15);
|
||||
cursor: pointer;
|
||||
-webkit-transition: all .1s ease-out;
|
||||
transition: all .1s ease-out;
|
||||
position: relative;
|
||||
}
|
||||
.sbutton > i {
|
||||
font-size: 38px;
|
||||
line-height: 60px;
|
||||
transition: all .2s ease-in-out;
|
||||
transition-delay: 2s;
|
||||
}
|
||||
.sbutton:active,
|
||||
.sbutton:focus,
|
||||
.sbutton:hover {
|
||||
box-shadow: 0 0 4px rgba(0, 0, 0, .14), 0 4px 8px rgba(0, 0, 0, .28);
|
||||
}
|
||||
.sbutton:not(:last-child) {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
margin: 20px auto 0;
|
||||
opacity: 0;
|
||||
}
|
||||
.sbutton:not(:last-child) > i {
|
||||
font-size: 25px;
|
||||
line-height: 60px;
|
||||
transition: all .3s ease-in-out;
|
||||
}
|
||||
.sbuttons:hover .sbutton:not(:last-child) {
|
||||
opacity: 1;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
margin: 15px auto 0;
|
||||
}
|
||||
.sbutton:nth-last-child(1) {
|
||||
-webkit-transition-delay: 25ms;
|
||||
transition-delay: 25ms;
|
||||
}
|
||||
.sbutton:not(:last-child):nth-last-child(2) {
|
||||
-webkit-transition-delay: 20ms;
|
||||
transition-delay: 20ms;
|
||||
}
|
||||
.sbutton:not(:last-child):nth-last-child(3) {
|
||||
-webkit-transition-delay: 40ms;
|
||||
transition-delay: 40ms;
|
||||
}
|
||||
.sbutton:not(:last-child):nth-last-child(4) {
|
||||
-webkit-transition-delay: 60ms;
|
||||
transition-delay: 60ms;
|
||||
}
|
||||
.sbutton:not(:last-child):nth-last-child(5) {
|
||||
-webkit-transition-delay: 80ms;
|
||||
transition-delay: 80ms;
|
||||
}
|
||||
.sbutton:not(:last-child):nth-last-child(6) {
|
||||
-webkit-transition-delay: 100ms;
|
||||
transition-delay: 100ms;
|
||||
}
|
||||
|
||||
[tooltip]:before {
|
||||
font-family: 'Roboto';
|
||||
font-weight: 600;
|
||||
border-radius: 2px;
|
||||
background-color: #585858;
|
||||
color: #fff;
|
||||
content: attr(tooltip);
|
||||
font-size: 12px;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
padding: 5px 7px;
|
||||
margin-left: 10px;
|
||||
position: absolute;
|
||||
left: 100%;
|
||||
bottom: 20%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
[tooltip]:hover:before,
|
||||
[tooltip]:hover:after {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
.sbutton.mainsbutton {
|
||||
background: #2ab1ce;
|
||||
}
|
||||
.sbutton.gplus {
|
||||
background: #F44336;
|
||||
}
|
||||
.sbutton.pinteres {
|
||||
background: #e60023;
|
||||
}
|
||||
.sbutton.twitt {
|
||||
background: #03A9F4;
|
||||
}
|
||||
.sbutton.fb {
|
||||
background: #3F51B5;
|
||||
}
|
||||
.sbutton.whatsapp {
|
||||
background: #00e676;
|
||||
}
|
||||
.sbutton.tiktok {
|
||||
background: #000000;
|
||||
}
|
||||
</style>
|
||||
{!!(SITEVARS->meta_pixel_code)?SITEVARS->meta_pixel_code:""!!}
|
||||
</head>
|
||||
|
||||
|
||||
<body class="hidden-bar-wrapper">
|
||||
<div class="sbuttons">
|
||||
<a href="https://www.tiktok.com/@wri_education_ktm" target="_blank" class="sbutton tiktok" tooltip="Tiktok"><i class="fab fa-tiktok"></i></a>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Main Header-->
|
||||
@include(env("CLIENT_PATH").".partials.header")
|
||||
<div class="container">
|
||||
|
||||
@yield("content")
|
||||
</div>
|
||||
<!-- End News Section -->
|
||||
@include(env("CLIENT_PATH").".partials.footer")
|
||||
<div class="scroll-to-top scroll-to-target" data-target="html"><span class="fa fa-arrow-up"></span></div>
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
|
||||
@stack("js")
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user