changes
This commit is contained in:
@@ -15,7 +15,7 @@ class CreateConsultationRequest extends FormRequest
|
||||
return [
|
||||
'name' => 'required|string|max:200|regex:/^[a-zA-Z. ]+$/',
|
||||
'email' => 'sometimes|nullable|email|max:255',
|
||||
'contact_no' => 'required|string|max:20',
|
||||
'contact_no' => ['required', 'nullable', 'regex:/^\+?\d{7,15}$/'],
|
||||
'age_group' => 'required|integer|between:1,7',
|
||||
'procedure_of_interest' => 'required|integer|between:1,5',
|
||||
'subject' => 'required|string|max:255',
|
||||
|
@@ -31,7 +31,6 @@ class ContactUsController extends Controller
|
||||
$data['contactUsList'] = $this->contactUsRepository->allContactList($perPage, $filter);
|
||||
|
||||
$data['contactUsCount'] = $data['contactUsList']->count();
|
||||
// dd(($data['contactUsCount']));
|
||||
|
||||
return view('contactus::index', $data);
|
||||
}
|
||||
@@ -120,7 +119,8 @@ class ContactUsController extends Controller
|
||||
|
||||
toastr()->success('Contact detail deleted successfully.');
|
||||
|
||||
return redirect()->route('cms.contactus.index');
|
||||
return redirect()->route('cms.contactUs.index');
|
||||
// return back();
|
||||
} catch (\Throwable $th) {
|
||||
report($th);
|
||||
toastr()->error('Something went wrong.');
|
||||
|
@@ -80,7 +80,7 @@
|
||||
}
|
||||
|
||||
.consulation-form div {
|
||||
padding-bottom: 4px !important;
|
||||
padding-bottom: 0px;
|
||||
}
|
||||
|
||||
|
||||
@@ -88,38 +88,33 @@
|
||||
.iti {
|
||||
display: block !important;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
|
||||
/* Make the input inside take full width */
|
||||
.iti__selected-dial-code,
|
||||
.iti__flag-container {
|
||||
float: left;
|
||||
height: 100%;
|
||||
padding-top: 5px;
|
||||
|
||||
}
|
||||
|
||||
/* Input field inside the container */
|
||||
.iti__country-list,
|
||||
.iti__input {
|
||||
box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Optional: spacing below input like other fields */
|
||||
.phone-number {
|
||||
margin-top: 0.25rem;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.contact-us-form .iti .iti__selected-dial-code {
|
||||
padding-top: 12px !important; /* override for taller inputs */
|
||||
.hair-form-pad{
|
||||
padding-bottom: 8px !important;
|
||||
}
|
||||
|
||||
.appointment-form-field .iti .iti__selected-dial-code {
|
||||
padding-top: 2px !important; /* override for taller inputs */
|
||||
.img-fit {
|
||||
width: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -62,7 +62,7 @@
|
||||
<a href="{{ route('about_us') }}">About Us</a>
|
||||
</li>
|
||||
<li class="dropdown {{ request()->segment(1) == 'hair' ? 'current' : '' }}">
|
||||
<a href="javascript:;">Hair</a>
|
||||
<a href="{{ route('hair_transplant') }}">Hair</a>
|
||||
<ul class="submenu">
|
||||
<li>
|
||||
@empty(!$hairPosts)
|
||||
|
@@ -1,6 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<title>@yield('title') - Arogin Health Care</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
@@ -14,7 +15,15 @@
|
||||
@else
|
||||
<link rel="canonical" href="https://aroginhealthcare.com/" />
|
||||
@endif
|
||||
<link href="{{ asset('source/images/favicon.ico') }}" rel="shortcut icon" type="image/x-icon" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('source/images/favicon-16x16.png') }}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('source/images/favicon-32x32.png') }}">
|
||||
<link rel="icon" type="image/png" sizes="48x48" href="{{ asset('source/images/favicon-48x48.png') }}">
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="{{ asset('source/images/favicon-96x96.png') }}">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="{{ asset('source/images/favicon-192x192.png') }}">
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="{{ asset('source/images/favicon.ico') }}" type="image/x-icon">
|
||||
|
||||
|
||||
<!-- Stylesheets -->
|
||||
<link href="{{ asset('source/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
@@ -25,31 +34,54 @@
|
||||
<link href="{{ asset('source/css/flaticon.css') }}" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
|
||||
<link rel="stylesheet" href="https://unpkg.com/intl-tel-input@17.0.19/build/css/intlTelInput.min.css"/>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css">
|
||||
|
||||
|
||||
<link href="https://arogin.thikeniraj.com.np/source/css/style.min.css" rel="stylesheet">
|
||||
<link href="https://arogin.thikeniraj.com.np/source/css/custom.css" rel="stylesheet">
|
||||
|
||||
|
||||
<link href="{{ asset('source/css/custom.css') }}" rel="stylesheet">
|
||||
|
||||
|
||||
<!-- Responsive -->
|
||||
<link href="{{ asset('source/css/responsive.css') }}" rel="stylesheet">
|
||||
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-LZNMR43YR5"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-LZNMR43YR5');
|
||||
<!-- Google Tag Manager -->
|
||||
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','GTM-5T243ZHB');</script>
|
||||
<!-- End Google Tag Manager -->
|
||||
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Organization",
|
||||
"name": "Arogin Health Care & Research Center",
|
||||
"url": "https://aroginhealthcare.com/",
|
||||
"logo": "https://aroginhealthcare.com/source/images/favicon.png"
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<style>
|
||||
.content-column ul li {
|
||||
list-style-type: disc !important;
|
||||
list-style-position: outside !important;
|
||||
margin-left: 20px !important;
|
||||
display: list-item !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5T243ZHB"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<!-- End Google Tag Manager (noscript) -->
|
||||
|
||||
|
||||
<div class="page-wrapper">
|
||||
|
||||
@include('theme.spade.layouts.includes.header')
|
||||
@@ -58,8 +90,8 @@
|
||||
|
||||
@include('theme.spade.layouts.includes.footer')
|
||||
|
||||
<a class="whatsapp-icon" href="https://wa.me/{{ $generalSetting['mobile_number'] }}" target="_blank"><img src="https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg" alt="WhatsApp" />
|
||||
</a>
|
||||
{{-- <a class="whatsapp-icon" href="https://wa.me/{{ $generalSetting['mobile_number'] }}" target="_blank"><img src="https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg" alt="WhatsApp" />
|
||||
</a> --}}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -78,25 +110,38 @@
|
||||
<script src="https://maps.google.com/maps/api/js?sensor=true"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/intlTelInput.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/utils.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".phone-number").each(function() {
|
||||
var input = this;
|
||||
var iti = window.intlTelInput(this, {
|
||||
initialCountry: "auto",
|
||||
geoIpLookup: function(success, failure) {
|
||||
$.get("https://ipinfo.io", function() {}, "jsonp").always(function(resp) {
|
||||
var countryCode = (resp && resp.country) ? resp.country : "us";
|
||||
success(countryCode);
|
||||
});
|
||||
},
|
||||
separateDialCode: true
|
||||
});
|
||||
$(this).closest("form").on("submit", function(e) {
|
||||
$(input).val(iti.getNumber());
|
||||
$(document).ready(function () {
|
||||
$(".phone-number").each(function () {
|
||||
var input = this;
|
||||
var iti = window.intlTelInput(input, {
|
||||
initialCountry: "auto",
|
||||
geoIpLookup: function (success, failure) {
|
||||
$.get("https://ipinfo.io", function () {}, "jsonp").always(function (resp) {
|
||||
var countryCode = (resp && resp.country) ? resp.country : "us";
|
||||
success(countryCode);
|
||||
});
|
||||
},
|
||||
separateDialCode: true,
|
||||
utilsScript: "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/js/utils.js"
|
||||
});
|
||||
|
||||
// attach validation hook globally
|
||||
$(input).closest("form").on("submit.validatePhone", function (e) {
|
||||
// phone must be valid first
|
||||
if (!iti.isValidNumber()) {
|
||||
e.preventDefault();
|
||||
e.stopImmediatePropagation();
|
||||
toastr.error("Invalid phone number. Please check and try again.");
|
||||
}
|
||||
else{
|
||||
// set formatted number so AJAX gets correct value
|
||||
$(input).val(iti.getNumber());
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@stack('js')
|
||||
</body>
|
||||
|
@@ -32,7 +32,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="blog-area">
|
||||
<div class="post-item">
|
||||
<div class="post-item content-column">
|
||||
<div class="post wow fadeInUp animated" style="margin-bottom: 0px; visibility: visible; animation-name: fadeInUp;">
|
||||
<div class="post-content wow fadeInUp animated" style="visibility: visible; animation-name: fadeInUp;">
|
||||
<h3 class="wow fadeInUp animated" style="visibility: visible; animation-name: fadeInUp;" element-id="122">{{ $blog->title }}</h3>
|
||||
@@ -56,27 +56,27 @@
|
||||
<form action="{{ route('consultat_with_us') }}" method="post">
|
||||
@csrf
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<input class="form-control" type="text" name="name" placeholder="Name *" required>
|
||||
@error('name')
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<input class="form-control" type="email" name="email" placeholder="Email *"
|
||||
required>
|
||||
@error('email')
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12 appointment-form-field">
|
||||
<div class="col-md-12 appointment-form-field hair-form-pad ">
|
||||
<input class="form-control phone-number" type="text" name="contact_no" placeholder="Phone *"
|
||||
required>
|
||||
@error('contact_no')
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<label>Which of the below best applies to you?</label><br>
|
||||
@foreach ($ageGroupOptions as $key => $option)
|
||||
<input type="radio" id="{{ 'option' . $key }}" name="age_group"
|
||||
@@ -88,7 +88,7 @@
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<label for="procedure">Procedure of Interest</label>
|
||||
<select id="procedure" name="procedure_of_interest" class="form-control">
|
||||
<option>Select Procedure</option>
|
||||
@@ -100,26 +100,26 @@
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<input class="form-control" type="text" name="subject" placeholder="Subject *">
|
||||
@error('subject')
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<textarea class="form-control" rows="3" name="message" placeholder="Message *"></textarea>
|
||||
@error('message')
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<p class="term"><input type="checkbox" name="is_aggrement"
|
||||
value="11"> I understand that Arogin may contact me and I give my consent.</p>
|
||||
@error('is_aggrement')
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<button type="submit" class="primary-btn dark hvr-bounce-to-left">
|
||||
<span class="btn-text">Submit</span>
|
||||
<strong class="icon">
|
||||
|
@@ -153,26 +153,26 @@
|
||||
<form action="{{ route('consultat_with_us') }}" method="post">
|
||||
@csrf
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<input class="form-control" type="text" name="name" placeholder="Name *" required>
|
||||
@error('name')
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<input class="form-control" type="email" name="email" placeholder="Email *"
|
||||
required>
|
||||
@error('email')
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12 appointment-form-field">
|
||||
<div class="col-md-12 appointment-form-field hair-form-pad">
|
||||
<input class="form-control phone-number" type="text" name="contact_no" placeholder="Phone *" required>
|
||||
@error('contact_no')
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<label>Which of the below best applies to you?</label><br>
|
||||
@foreach ($ageGroupOptions as $key => $option)
|
||||
<input type="radio" id="{{ 'option' . $key }}" name="age_group"
|
||||
@@ -184,7 +184,7 @@
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<label for="procedure">Procedure of Interest</label>
|
||||
<select id="procedure" name="procedure_of_interest" class="form-control">
|
||||
<option>Select Procedure</option>
|
||||
@@ -196,26 +196,26 @@
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<input class="form-control" type="text" name="subject" placeholder="Subject *">
|
||||
@error('subject')
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<textarea class="form-control" rows="3" name="message" placeholder="Message *"></textarea>
|
||||
@error('message')
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<p class="term"><input type="checkbox" name="is_aggrement"
|
||||
value="11"> I understand that Arogin may contact me and I give my consent.</p>
|
||||
@error('is_aggrement')
|
||||
<div class="text-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 hair-form-pad">
|
||||
<button type="submit" class="primary-btn dark hvr-bounce-to-left">
|
||||
<span class="btn-text">Submit</span>
|
||||
<strong class="icon">
|
||||
|
Reference in New Issue
Block a user