Compare commits

..

No commits in common. '401c4064441430bcad1bbdda91f9bcfc37fbf32a' and 'f2d67186be7006293f2059fa06877d71e36f74d2' have entirely different histories.

  1. 34
      public/admin/css/custom-admin.css
  2. 111
      public/frontend/css/style.css
  3. 251
      resources/views/admin/enquiry/show.blade.php
  4. 2
      resources/views/admin/index.blade.php
  5. 49
      resources/views/admin/layouts/app.blade.php
  6. 107
      resources/views/appointment.blade.php
  7. 24
      resources/views/enquiry-form.blade.php

@ -1,5 +1,5 @@
.sb{ .sb{
background: #326cbf; background: #13a64f;
padding-bottom: 50px; padding-bottom: 50px;
} }
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active{ .sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active{
@ -28,7 +28,7 @@
margin-top: 10px; margin-top: 10px;
} }
.main-header{ .main-header{
background: #326cbf; background: #13a64f;
} }
.nav-link i{ .nav-link i{
color:#fff; color:#fff;
@ -206,7 +206,10 @@ svg{
.create-button{ .create-button{
margin-top:10px; margin-top:10px;
} }
.create-button .col-md-12{
/* display:flex;
justify-content:center; */
}
.create-button .col-md-12 button{ .create-button .col-md-12 button{
padding:10px 50px; padding:10px 50px;
} }
@ -262,6 +265,11 @@ svg{
background: none; background: none;
} }
.table-search{
/* width: fit-content; */
}
.search-form .table-search input{ .search-form .table-search input{
/* margin-right: 10px; */ /* margin-right: 10px; */
border-radius: 5px!important; border-radius: 5px!important;
@ -269,6 +277,7 @@ svg{
.ds-input:focus{ .ds-input:focus{
border-color: #1850b7; border-color: #1850b7;
} }
/* new edit */ /* new edit */
.table td{ .table td{
@ -311,6 +320,9 @@ svg{
background: none; background: none;
border:none; border:none;
color:#fff; color:#fff;
}
.dropdown-menubar .dropdown-menu[data-bs-popper]{
} }
.dropdown-menubar button:active{ .dropdown-menubar button:active{
background-color: none; background-color: none;
@ -350,13 +362,13 @@ svg{
} }
.btn-green{ .btn-green{
color:#fff; color:#fff;
background: #326cbf; background: #13a64f;
border-color:#326cbf; border-color:#13a64f;
} }
.btn-green:hover{ .btn-green:hover{
color:#fff; color:#fff;
background: #D933A2; background: #ea8937;
border-color:#D933A2; border-color:#ea8937;
} }
.card-header{ .card-header{
padding: 1rem 1rem!important; padding: 1rem 1rem!important;
@ -441,7 +453,7 @@ p .font-medium{
font-weight: 700; font-weight: 700;
font-size: 16px; font-size: 16px;
color: #000; color: #000;
width: 300px; width: 400px;
} }
.contact-info{ .contact-info{
display: inline-block; display: inline-block;
@ -473,9 +485,3 @@ p .font-medium{
font-size: 1rem; font-size: 1rem;
padding: 0.6rem 1rem; padding: 0.6rem 1rem;
} }
.contact-info h2{
font-weight: bold;
font-size: 28px;
color: #326CBF;
margin-bottom: 1rem;
}

@ -140,7 +140,7 @@ h2{
opacity: 0; opacity: 0;
transform: translate3d(0, 30px, 0); transform: translate3d(0, 30px, 0);
} }
to { to {
opacity: 1; opacity: 1;
transform: none; transform: none;
@ -308,8 +308,8 @@ Responsive Codes
margin-bottom: 3rem; margin-bottom: 3rem;
} }
.slider-content p, .slider-content p,
.slider-content h2, .slider-content h2,
.slideDown, .slideDown,
.slideUp{ .slideUp{
position: relative; position: relative;
opacity: 0; opacity: 0;
@ -333,7 +333,7 @@ Responsive Codes
font-weight: 900; font-weight: 900;
font-family: "Font Awesome 5 Free"; font-family: "Font Awesome 5 Free";
position: absolute; position: absolute;
opacity: 0; opacity: 0;
top: 10px; top: 10px;
right: -20px; right: -20px;
transition: 0.5s; transition: 0.5s;
@ -416,7 +416,7 @@ Responsive Codes
font-size: 20px; font-size: 20px;
line-height: 29px; line-height: 29px;
text-align: center; text-align: center;
color: #326CBF; color: #326CBF;
margin-bottom: 0; margin-bottom: 0;
} }
.high-visa, .high-visa,
@ -692,7 +692,7 @@ Responsive Codes
.service-page-card{ .service-page-card{
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0px 4px 18px rgba(121, 121, 121, 0.05); box-shadow: 0px 4px 18px rgba(121, 121, 121, 0.05);
border-radius: 12px; border-radius: 12px;
transition: .4s; transition: .4s;
} }
.service-page-card{ .service-page-card{
@ -764,7 +764,7 @@ Responsive Codes
.mr-3 { .mr-3 {
margin-right: 30px; margin-right: 30px;
} }
.dinline { .dinline {
display: inline-block; display: inline-block;
} }
@ -1355,7 +1355,7 @@ Responsive Codes
color: #FFFFFF; color: #FFFFFF;
text-decoration: none; text-decoration: none;
background: #E22899; background: #E22899;
border-radius: 5px; border-radius: 5px;
transition: .6s; transition: .6s;
} }
.featured-article a:hover, .featured-article a:hover,
@ -1732,7 +1732,7 @@ table.lightgrey-weekends tbody td:nth-child(n+6) {
line-height: 48px; line-height: 48px;
letter-spacing: 0.005em; letter-spacing: 0.005em;
color: #326CBF; color: #326CBF;
} }
.enquiry-form-section p{ .enquiry-form-section p{
text-align: center; text-align: center;
} }
@ -2000,9 +2000,6 @@ table.lightgrey-weekends tbody td:nth-child(n+6) {
.displayBtn{ .displayBtn{
display: block; display: block;
} }
.displayEnqBtn{
display: inline-block;
}
/* Footer Css */ /* Footer Css */
/* mobile view css */ /* mobile view css */
@media only screen and (min-width: 320px) and (max-width: 480px) { @media only screen and (min-width: 320px) and (max-width: 480px) {
@ -2011,8 +2008,8 @@ table.lightgrey-weekends tbody td:nth-child(n+6) {
line-height: 38px; line-height: 38px;
} }
h2, h2,
.featured-article h2, .featured-article h2,
.blog-detail-desc h2, .blog-detail-desc h2,
.visa-content h3 { .visa-content h3 {
font-weight: 600; font-weight: 600;
font-size: 22px; font-size: 22px;
@ -2065,7 +2062,7 @@ table.lightgrey-weekends tbody td:nth-child(n+6) {
} }
.services-content h1, .services-content h1,
.why-us-desc h1, .why-us-desc h1,
.testimonials-desc h1, .testimonials-desc h1,
.blog-header h1, .blog-header h1,
.our-values-section h1, .our-values-section h1,
.studyabroad-banner-header h1, .studyabroad-banner-header h1,
@ -2080,18 +2077,18 @@ table.lightgrey-weekends tbody td:nth-child(n+6) {
.about-icons-section{ .about-icons-section{
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
} }
.services-section, .services-section,
.blog-section, .blog-section,
.study-australia-desc, .study-australia-desc,
.study-sydney-section, .study-sydney-section,
.study-melbourne-section, .study-melbourne-section,
.study-detail-section, .study-detail-section,
.scholarship-section, .scholarship-section,
.student-visa-section, .student-visa-section,
.about-header-section, .about-header-section,
.why-et, .why-et,
.student-visa-section, .student-visa-section,
.blogs-section, .why-et, .blogs-section, .why-et,
.faq-section, .faq-section,
.why-us-section, .why-us-section,
.testimonials-section, .testimonials-section,
@ -2262,7 +2259,7 @@ table.lightgrey-weekends tbody td:nth-child(n+6) {
.why-us-img, .why-us-img,
.blog-header p, .blog-header p,
.lets-chat-section p, .lets-chat-section p,
.overseas-section p, .overseas-section p,
.why-et-header p, .why-et-header p,
.about-banner-header p{ .about-banner-header p{
padding: 0; padding: 0;
@ -2271,19 +2268,19 @@ table.lightgrey-weekends tbody td:nth-child(n+6) {
.about-icons-section{ .about-icons-section{
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
} }
.services-section, .services-section,
.blog-section, .blog-section,
.study-australia-desc, .study-australia-desc,
.study-sydney-section, .study-sydney-section,
.study-melbourne-section, .study-melbourne-section,
.study-detail-section, .study-detail-section,
.scholarship-section, .scholarship-section,
.student-visa-section, .student-visa-section,
.about-header-section, .about-header-section,
.why-et, .why-et,
.student-visa-section, .student-visa-section,
.blogs-section, .why-et, .blogs-section, .why-et,
.blog-detail-section, .blog-detail-section,
.faq-section, .faq-section,
.why-us-section, .why-us-section,
.testimonials-section, .testimonials-section,
@ -2298,7 +2295,7 @@ table.lightgrey-weekends tbody td:nth-child(n+6) {
} }
.services-content h1, .services-content h1,
.why-us-desc h1, .why-us-desc h1,
.testimonials-desc h1, .testimonials-desc h1,
.blog-header h1{ .blog-header h1{
font-size: 32px; font-size: 32px;
line-height: 48px; line-height: 48px;
@ -2365,19 +2362,19 @@ table.lightgrey-weekends tbody td:nth-child(n+6) {
.about-icons-section{ .about-icons-section{
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
} }
.services-section, .services-section,
.blog-section, .blog-section,
.study-australia-desc, .study-australia-desc,
.study-sydney-section, .study-sydney-section,
.study-melbourne-section, .study-melbourne-section,
.study-detail-section, .study-detail-section,
.scholarship-section, .scholarship-section,
.student-visa-section, .student-visa-section,
.about-header-section, .about-header-section,
.why-et, .why-et,
.student-visa-section, .student-visa-section,
.blogs-section, .why-et, .blogs-section, .why-et,
.blog-detail-section, .blog-detail-section,
.faq-section, .faq-section,
.why-us-section, .why-us-section,
.testimonials-section, .testimonials-section,
@ -2421,7 +2418,7 @@ table.lightgrey-weekends tbody td:nth-child(n+6) {
.contact-form .row .col-md-8{ .contact-form .row .col-md-8{
width: 100%; width: 100%;
} }
.overseas-section p, .overseas-section p,
.why-et-header p, .why-et-header p,
.about-banner-header p, .about-banner-header p,
.lets-chat-section p{ .lets-chat-section p{
@ -2492,4 +2489,4 @@ table.lightgrey-weekends tbody td:nth-child(n+6) {
.review-card{ .review-card{
min-height: 37pc; min-height: 37pc;
} }
} }

@ -24,135 +24,130 @@
<div class="card-body"> <div class="card-body">
@include('success.success') @include('success.success')
@include('errors.error') @include('errors.error')
<div class="row"> <h2>Personal Details</h2>
<div class="col-md-6"> <ul class="contact-info">
<ul class="contact-info"> <li class="d-flex">
<h2>Personal Details</h2> <span>Full Name:</span>
<li class="d-flex"> <span>{{$enquiry->first_name . ' ' .(!is_null($enquiry->middle_name) ? $enquiry->middle_name .' ' :''). $enquiry->last_name}}</span>
<span>Full Name:</span> </li>
<span>{{$enquiry->first_name . ' ' .(!is_null($enquiry->middle_name) ? $enquiry->middle_name .' ' :''). $enquiry->last_name}}</span> <li class="d-flex">
</li> <span>Date of Birth:</span>
<li class="d-flex"> <span>
<span>Date of Birth:</span> {{$enquiry->dob}}
<span> </span>
{{$enquiry->dob}} </li>
</span> <li class="d-flex">
</li> <span>Gender:</span>
<li class="d-flex"> <span>{{$enquiry->gender}} </span>
<span>Gender:</span> </li>
<span>{{$enquiry->gender}} </span> <li class="d-flex">
</li> <span>Email:</span>
<li class="d-flex"> <span>{{$enquiry->email}}</span>
<span>Email:</span> </li>
<span>{{$enquiry->email}}</span> <li class="d-flex">
</li> <span>Phone:</span>
<li class="d-flex"> <span>{{$enquiry->phone}}</span>
<span>Phone:</span> </li>
<span>{{$enquiry->phone}}</span> <li class="d-flex">
</li> <span>Address:</span>
<li class="d-flex"> <span>{{$enquiry->address}} </span>
<span>Address:</span> </li>
<span>{{$enquiry->address}} </span> <li class="d-flex">
</li> <span>Country of Birth:</span>
<li class="d-flex"> <span>{{$enquiry->cob}} </span>
<span>Country of Birth:</span> </li>
<span>{{$enquiry->cob}} </span> </ul>
</li> <h2>Additional Details</h2>
<li class="d-flex"> <ul class="contact-info">
<span>Highest Qualification:</span> <li class="d-flex">
<span>{{$enquiry->highest_qualification}}</span> <span>Highest Qualification:</span>
</li> <span>{{$enquiry->highest_qualification}}</span>
<li class="d-flex"> </li>
<span>Stream:</span> <li class="d-flex">
<span> <span>Stream:</span>
{{$enquiry->stream}} <span>
</span> {{$enquiry->stream}}
</li> </span>
<li class="d-flex"> </li>
<span>% or GPA:</span> <li class="d-flex">
<span>{{$enquiry->gpa}} </span> <span>% or GPA:</span>
</li> <span>{{$enquiry->gpa}} </span>
</ul> </li>
</div>
<div class="col-md-6">
<ul class="contact-info">
<h2>Additional Details</h2>
<li class="d-flex">
<span>Graduate Year:</span>
<span>{{$enquiry->graduate_year}}</span>
</li>
<li class="d-flex">
<span>Gap after Studies:</span>
<span>{{$enquiry->gap}}</span>
</li>
<li class="d-flex">
<span>Current Status:</span>
<span>{{$enquiry->current_status}} </span>
</li>
<li class="d-flex">
<span>Work Experience Details:</span>
<span>{{$enquiry->work_experience == 'yes' ? 'Yes' : 'No'}} </span>
</li>
@if(!is_null($enquiry->work_experience_details))
<li class="d-flex">
<span>Work Experience:</span>
<span>{{$enquiry->work_experience_details}} </span>
</li>
@endif
@if(!is_null($enquiry->salary_mode))
<li class="d-flex">
<span>Salary Mode:</span>
<span>{{$enquiry->salary_mode}} </span>
</li>
@endif
<li class="d-flex">
<span>Test Score:</span>
<span>{{$enquiry->test_score}} </span>
</li>
<li class="d-flex">
<span>Marital Status:</span>
<span>{{$enquiry->marital_status}} </span>
</li>
@if(!is_null($enquiry->married_date))
<li class="d-flex">
<span>Married Date:</span>
<span>{{$enquiry->married_date}} </span>
</li>
@endif
@if(!is_null($enquiry->spouse_academics))
<li class="d-flex">
<span>Spouse Academics:</span>
<span>{{$enquiry->spouse_academics}} </span>
</li>
@endif
@if(!is_null($enquiry->spouse_work_experience))
<li class="d-flex">
<span>Spouse Work Experience:</span>
<span>{{$enquiry->spouse_work_experience}} </span>
</li>
@endif
@if(!is_null($enquiry->spouse_salary_mode))
<li class="d-flex">
<span>Spouse Salary Mode:</span>
<span>{{$enquiry->spouse_salary_mode}} </span>
</li>
@endif
<li class="d-flex">
<span>Immigration History:</span>
<span>{{$enquiry->immigration_history ?? 'N/A'}} </span>
</li>
<li class="d-flex">
<span>Desired Study Field:</span>
<span>{{$enquiry->desired_study_field ?? 'N/A'}} </span>
</li>
<li class="d-flex">
<span>Desired Location:</span>
<span>{{$enquiry->desired_location ?? 'N/A'}} </span>
</li>
</ul> <li class="d-flex">
</div> <span>Graduate Year:</span>
</div> <span>{{$enquiry->graduate_year}}</span>
</li>
<li class="d-flex">
<span>Gap after Studies:</span>
<span>{{$enquiry->gap}}</span>
</li>
<li class="d-flex">
<span>Current Status:</span>
<span>{{$enquiry->current_status}} </span>
</li>
<li class="d-flex">
<span>Work Experience Details:</span>
<span>{{$enquiry->work_experience == 'yes' ? 'Yes' : 'No'}} </span>
</li>
@if(!is_null($enquiry->work_experience_details))
<li class="d-flex">
<span>Work Experience:</span>
<span>{{$enquiry->work_experience_details}} </span>
</li>
@endif
@if(!is_null($enquiry->salary_mode))
<li class="d-flex">
<span>Salary Mode:</span>
<span>{{$enquiry->salary_mode}} </span>
</li>
@endif
<li class="d-flex">
<span>Test Score:</span>
<span>{{$enquiry->test_score}} </span>
</li>
<li class="d-flex">
<span>Marital Status:</span>
<span>{{$enquiry->marital_status}} </span>
</li>
@if(!is_null($enquiry->married_date))
<li class="d-flex">
<span>Married Date:</span>
<span>{{$enquiry->married_date}} </span>
</li>
@endif
@if(!is_null($enquiry->spouse_academics))
<li class="d-flex">
<span>Spouse Academics:</span>
<span>{{$enquiry->spouse_academics}} </span>
</li>
@endif
@if(!is_null($enquiry->spouse_work_experience))
<li class="d-flex">
<span>Spouse Work Experience:</span>
<span>{{$enquiry->spouse_work_experience}} </span>
</li>
@endif
@if(!is_null($enquiry->spouse_salary_mode))
<li class="d-flex">
<span>Spouse Salary Mode:</span>
<span>{{$enquiry->spouse_salary_mode}} </span>
</li>
@endif
<li class="d-flex">
<span>Immigration History:</span>
<span>{{$enquiry->immigration_history ?? 'N/A'}} </span>
</li>
<li class="d-flex">
<span>Desired Study Field:</span>
<span>{{$enquiry->desired_study_field ?? 'N/A'}} </span>
</li>
<li class="d-flex">
<span>Desired Location:</span>
<span>{{$enquiry->desired_location ?? 'N/A'}} </span>
</li>
</ul>
{!! Form::close() !!} {!! Form::close() !!}
</div> </div>

@ -12,7 +12,7 @@
<div class="col-sm-6"> <div class="col-sm-6">
<ol class="breadcrumb float-sm-right"> <ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="#">Home</a></li> <li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item active">ET Education | Visas Dashboard</li> <li class="breadcrumb-item active">Agility Homecare Dashboard</li>
</ol> </ol>
</div><!-- /.col --> </div><!-- /.col -->
</div><!-- /.row --> </div><!-- /.row -->

@ -6,33 +6,32 @@
<meta name="csrf-token" content="{{ csrf_token() }}"> <meta name="csrf-token" content="{{ csrf_token() }}">
<title>ET-Education | Admin Dashboard</title> <title>ET-Education | Admin Dashboard</title>
<link rel="icon" href="{{url('frontend/icons/favicon.ico')}}">
<!-- Google Font: Source Sans Pro --> <!-- Google Font: Source Sans Pro -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
{!! Html::style('admin/plugins/fontawesome-free/css/all.min.css') !!} {!! Html::style('admin/plugins/fontawesome-free/css/all.min.css') !!}
<!-- Ionicons --> <!-- Ionicons -->
{!! Html::style('admin/css/ionicons/2.0.1/css/ionicons.min.css') !!} {!! Html::style('admin/css/ionicons/2.0.1/css/ionicons.min.css') !!}
<!-- Tempusdominus Bootstrap 4 --> <!-- Tempusdominus Bootstrap 4 -->
{{-- <link rel="stylesheet" href="plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css">--}} {{-- <link rel="stylesheet" href="plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css">--}}
{!! Html::style('admin/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css') !!} {!! Html::style('admin/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css') !!}
<!-- iCheck --> <!-- iCheck -->
{{-- <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css">--}} {{-- <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css">--}}
{!! Html::style('admin/plugins/icheck-bootstrap/icheck-bootstrap.min.css') !!} {!! Html::style('admin/plugins/icheck-bootstrap/icheck-bootstrap.min.css') !!}
<!-- JQVMap --> <!-- JQVMap -->
{{-- <link rel="stylesheet" href="plugins/jqvmap/jqvmap.min.css">--}} {{-- <link rel="stylesheet" href="plugins/jqvmap/jqvmap.min.css">--}}
{!! Html::style('admin/plugins/jqvmap/jqvmap.min.css') !!} {!! Html::style('admin/plugins/jqvmap/jqvmap.min.css') !!}
<!-- Theme style --> <!-- Theme style -->
{{-- <link rel="stylesheet" href="dist/css/adminlte.min.css">--}} {{-- <link rel="stylesheet" href="dist/css/adminlte.min.css">--}}
{!! Html::style('admin/dist/css/adminlte.min.css') !!} {!! Html::style('admin/dist/css/adminlte.min.css') !!}
<!-- overlayScrollbars --> <!-- overlayScrollbars -->
{{-- <link rel="stylesheet" href="plugins/overlayScrollbars/css/OverlayScrollbars.min.css">--}} {{-- <link rel="stylesheet" href="plugins/overlayScrollbars/css/OverlayScrollbars.min.css">--}}
{!! Html::style('admin/plugins/overlayScrollbars/css/OverlayScrollbars.min.css') !!} {!! Html::style('admin/plugins/overlayScrollbars/css/OverlayScrollbars.min.css') !!}
<!-- Daterange picker --> <!-- Daterange picker -->
{{-- <link rel="stylesheet" href="plugins/daterangepicker/daterangepicker.css">--}} {{-- <link rel="stylesheet" href="plugins/daterangepicker/daterangepicker.css">--}}
{!! Html::style('admin/plugins/daterangepicker/daterangepicker.css') !!} {!! Html::style('admin/plugins/daterangepicker/daterangepicker.css') !!}
<!-- summernote --> <!-- summernote -->
{{-- <link rel="stylesheet" href="plugins/summernote/summernote-bs4.min.css">--}} {{-- <link rel="stylesheet" href="plugins/summernote/summernote-bs4.min.css">--}}
{!! Html::style('admin/plugins/summernote/summernote-bs4.min.css') !!} {!! Html::style('admin/plugins/summernote/summernote-bs4.min.css') !!}
{!! Html::style('admin/flatpickr/dist/flatpickr.min.css') !!} {!! Html::style('admin/flatpickr/dist/flatpickr.min.css') !!}

@ -81,18 +81,15 @@
<input type="hidden" name="appointment_id" id="appointment_id"> <input type="hidden" name="appointment_id" id="appointment_id">
<div class="form-group mb-2"> <div class="form-group mb-2">
<label for="name">Name</label> <label for="name">Name</label>
<input type="text" class="form-control mt-1" id="app-name" name="name" onkeyup="validateAppName()"> <input type="text" class="form-control mt-1" id="name" name="name" required>
<span class="error" id="app-name-error"></span>
</div> </div>
<div class="form-group mb-2"> <div class="form-group mb-2">
<label for="email">Email</label> <label for="email">Email</label>
<input type="email" class="form-control mt-1" id="app-email" name="email" onkeyup="validateAppEmail()"> <input type="email" class="form-control mt-1" id="email" name="email" required>
<span class="error" id="app-email-error"></span>
</div> </div>
<div class="form-group mb-2"> <div class="form-group mb-2">
<label for="phone">Phone</label> <label for="phone">Phone</label>
<input type="tel" class="form-control mt-1" id="app-phone" name="phone" onkeyup="validateAppPhone()"> <input type="tel" class="form-control mt-1" id="phone" name="phone" required>
<span class="error" id="app-phone-error"></span>
</div> </div>
<div class="form-group mb-2"> <div class="form-group mb-2">
<label for="notes">Notes</label> <label for="notes">Notes</label>
@ -102,10 +99,7 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" onclick = "submitAppointment()" class="btn btn-primary" id="appointmentbtn">Book Appointment</button> <button type="button" onclick = "submitAppointment(event)" class="btn btn-primary">Book Appointment</button>
<button class="buttonload btn btn-primary" id="buttonenqload" disabled>
<i class="fas fa-spinner fa-pulse"></i> Submiting
</button>
</div> </div>
</div> </div>
</div> </div>
@ -247,79 +241,28 @@
} }
appNameError = document.getElementById('app-name-error'); function submitAppointment(event){
appEmailError = document.getElementById('app-email-error'); event.preventDefault();
appPhoneError = document.getElementById('app-phone-error'); $.ajax({
loaderenqBtn = document.getElementById('buttonenqload'); url: "/appointment_submit",
appointmentBtn = document.getElementById('appointmentbtn'); type: "post",
function validateAppName(){ data: $("form").serialize(),
var appName = document.getElementById('app-name').value; success: function(response) {
if(appName.length == 0){ $("#modal").modal("hide");
$('#name-email').focus(); // var isAmStart = response.appointment.start_time < '12:00:00';
appNameError.innerHTML = "Name Field is required !"; // var isAmEnd = response.appointment.end_time < '12:00:00';
return false;
} Swal.fire({
appNameError.innerHTML = ''; title: 'Booked!!',
return true; text: 'Appointment Successfully Booked for '+response.appointment_detail['name']+' at '+response.formated_date +'('+response.appointment['start_time']+' - ' + response.appointment['end_time']+' )',
} icon: 'success'
}).then(function(){
function validateAppEmail(){ location.reload();
var appEmail = document.getElementById('app-email').value;
if(appEmail.length == 0){
$('#name-email').focus();
appEmailError.innerHTML = "Email Field is required !";
return false;
}
if(!appEmail.match(/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(.\w{2,3})+$/)){
appEmailError.innerHTML = "Invalid email address";
return false;
}
appEmailError.innerHTML = '';
return true;
}
function validateAppPhone(){
var appPhone = document.getElementById('app-phone').value;
if(appPhone.length == 0){
$('#app-phone').focus();
appPhoneError.innerHTML = "Phone Field is required !";
return false;
}
if(!appPhone.match(/^\d{10}$/)){
appPhoneError.innerHTML = "Invalid mobile number";
return false;
}
appPhoneError.innerHTML = '';
return true;
}
function submitAppointment(){
if(!validateAppName() || !validateAppEmail() || !validateAppPhone()){
return false;
}else{
loaderenqBtn.classList.add('displayBtn')
appointmentBtn.classList.add('buttonload')
$.ajax({
url: "/appointment_submit",
type: "post",
data: $("form").serialize(),
success: function(response) {
$("#modal").modal("hide");
// var isAmStart = response.appointment.start_time < '12:00:00';
// var isAmEnd = response.appointment.end_time < '12:00:00';
loaderenqBtn.classList.remove('displayBtn');
Swal.fire({
title: 'Booked!!',
text: 'Appointment Successfully Booked for '+response.appointment_detail['name']+' at '+response.formated_date +'('+response.appointment['start_time']+' - ' + response.appointment['end_time']+' )',
icon: 'success'
}).then(function(){
location.reload();
}
)
} }
}); )
} }
});
} }
</script> </script>

@ -256,10 +256,7 @@
</div> </div>
</div> </div>
<div class="col-md-12 text-center"> <div class="col-md-12 text-center">
<button type="submit" class="enquiry-from-btn" id="enquirybtn">Submit</button> <button type="submit" class="enquiry-from-btn">Submit</button>
<button type="submit" class="enquiry-from-btn buttonload" id="enquirybutnload" disabled>
<i class="fas fa-spinner fa-pulse"></i> Submiting
</button>
</div> </div>
</div> </div>
</form> </form>
@ -273,13 +270,13 @@
var status = "<?php echo $status; ?>"; var status = "<?php echo $status; ?>";
if(php_var.length !== 0){ if(php_var.length !== 0){
Swal.fire({ Swal.fire({
title: 'Submitted!!', title: 'Submitted!!',
text: php_var, text: php_var,
icon: status ? 'success' : 'error' icon: status ? 'success' : 'error'
}) })
} }
fnameError = document.getElementById('error-fname'); fnameError = document.getElementById('error-fname');
lnameError = document.getElementById('error-lname'); lnameError = document.getElementById('error-lname');
dobError = document.getElementById('error-dob'); dobError = document.getElementById('error-dob');
@ -536,8 +533,6 @@
return true; return true;
} }
var enqloaderBtn = document.getElementById('enquirybutnload');
var enquirybtn = document.getElementById('enquirybtn');
function submitEnquiry(){ function submitEnquiry(){
if(!validatefName() || !validatelName() || !validateDob() || !eCob() || !eGender() || if(!validatefName() || !validatelName() || !validateDob() || !eCob() || !eGender() ||
!validateAddress() || !validateEmail() || !validatePhone() || !validateQualification() || !validateAddress() || !validateEmail() || !validatePhone() || !validateQualification() ||
@ -545,8 +540,7 @@
!wExperience() || !validateImmigrationHistory() || !validateStudyField()){ !wExperience() || !validateImmigrationHistory() || !validateStudyField()){
return false; return false;
}else{ }else{
enqloaderBtn.classList.add('displayEnqBtn');
enquirybtn.classList.add('buttonload')
} }
} }
</script> </script>

Loading…
Cancel
Save