Merge branch 'main' of ssh://bibgit.com:22022/Bibhuti-Solutions/new_raffles into alika

This commit is contained in:
2025-08-20 11:18:27 +05:45
18 changed files with 421 additions and 231 deletions

View File

@@ -202,11 +202,12 @@
const data = await res.json();
if (res.ok) {
form.reset();
toastr.success(data.message || 'Contact Submitted successful!');
window.location.href =
"{{ route('thankyou') }}"; // ✅ redirect instead of toastr
} else if (data.errors && data.errors.email) {
data.errors.email.forEach(msg => toastr.error(msg));
} else {
toastr.error('Submittion failed. Please try again.');
toastr.error('Submission failed. Please try again.');
}
} catch (err) {
console.error(err);
@@ -219,6 +220,45 @@
});
</script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const form = document.getElementById('counselor-form');
const submitBtn = document.getElementById('counselor-submit-btn');
const url = form.action;
form.addEventListener('submit', async (e) => {
e.preventDefault();
submitBtn.disabled = true;
submitBtn.textContent = 'Submitting…';
const formData = new FormData(form);
try {
const res = await fetch(url, {
method: 'POST',
headers: {
'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]')
.content
},
body: formData
});
const data = await res.json();
if (res.ok) {
form.reset();
window.location.href =
"{{ route('thankyou') }}"; // ✅ redirect instead of toastr
} else if (data.errors && data.errors.email) {
data.errors.email.forEach(msg => toastr.error(msg));
} else {
toastr.error('Submission failed. Please try again.');
}
} catch (err) {
console.error(err);
toastr.error('Something went wrong. Please try again.');
} finally {
submitBtn.disabled = false;
submitBtn.textContent = 'Submit';
}
});
});
</script>
<script>
$(document).ready(function() {

View File

@@ -216,7 +216,9 @@
<div id="collapse-service-menu-1" class="accordion-collapse collapse menu-dropdown"
data-bs-parent="#menu-dropdown" role="tabpanel" aria-labelledby="service-menu-1">
<ul>
<li><a class="hover:text-brand" href=" x ">Study in UK</a></li>
<li><a class="hover:text-brand"
href=" x ">Study
in UK</a></li>
<li><a class="hover:text-brand" href="study-usa.php">Study in USA</a></li>
<li><a class="hover:text-brand" class="hover:text-brand"
href="study-canada.php">Study in Canada</a></li>

View File

@@ -134,125 +134,9 @@
<div class="row" id="interactiveSection">
{{-- <div class="col col-lg-7">
<div class="wizard-container">
<div class="nav" id="step-nav">
<button class="active" data-step="0">Country</button>
<button data-step="1">Stay Type</button>
<button data-step="2">Other Services</button>
<button data-step="3">Program Level</button>
<button data-step="4">Program</button>
</div>
<form id="multiStepForm" method="GET" action="{{ route('cost.getCost') }}">
<!-- Step 1: Select Country -->
<div class="tab-pane active" data-step="0">
<h2 class="step-title">Which country are you planning to study in?</h2>
<div class="form-group">
<div class="d-flex flex-wrap">
@foreach ($countries as $country)
<div class="form-check country-card me-3 mb-3">
<input class="form-check-input" type="radio" name="country_id"
value="{{ $country->id }}" id="{{ $country->id }}">
<label class="form-check-label" for="{{ $country->id }}">
{{ $country->title }}
</label>
</div>
@endforeach
</div>
</div>
<div style="text-align:right;">
<button type="button" class="btn btn-next">Next</button>
</div>
</div>
<!-- Step 2: Stay Type Status -->
<div class="tab-pane" data-step="1">
<h2 class="step-title">Are you going alone or with a dependent?</h2>
<div class="form-group">
<div class="d-flex flex-wrap">
@foreach ($livingStatusOptions as $key => $status)
<div class="form-check status-card me-3 mb-3">
<input class="form-check-input" type="radio" name="status_type_id"
value="{{ $key }}" id="status_type_{{ $key }}">
<label class="form-check-label" for="status_type_{{ $key }}">
{{ $status }}
</label>
</div>
@endforeach
</div>
</div>
<div style="display:flex; justify-content:space-between;">
<button type="button" class="btn btn-prev">Previous</button>
<button type="button" class="btn btn-next">Next</button>
</div>
</div>
<!-- Step 3: Proficiency -->
<div class="tab-pane" data-step="2">
<h2 class="step-title">Do you want to include other services?</h2>
<div class="form-group">
<input type="radio" name="services" id="yes" value="yes"> <label
for="yes">Yes</label>
<input type="radio" name="services" id="no" value="no"> <label
for="no">No</label>
</div>
<div style="display:flex; justify-content:space-between;">
<button type="button" class="btn btn-prev">Previous</button>
<button type="button" class="btn btn-next">Next</button>
</div>
</div>
<!-- Step 4: Basic -->
<div class="tab-pane" data-step="3">
<h2 class="step-title">Which Level are you applying for?</h2>
<div class="form-group">
@foreach ($programLevelOptions as $level)
<input type="radio" name="" id="" value=""> <label
for="program_level_id">{{ $level }}</label>
@endforeach
</div>
<div style="display:flex; justify-content:space-between;">
<button type="button" class="btn btn-prev">Previous</button>
<button type="button" class="btn btn-next">Next</button>
</div>
</div>
<!-- Step 5: Contact -->
<div class="tab-pane" data-step="4">
<h2 class="step-title">Which Program are you applying for?</h2>
<div class="form-group">
<div class="d-flex flex-wrap">
@foreach ($programss as $key => $program)
<select name="program_id" class="form-control" required>
<option value="">Select Program</option>
<option value="{{ $key }}">{{ $program }}</option>
</select>
@endforeach
</div>
</div>
<div style="display:flex; justify-content:space-between;">
<button type="button" class="btn btn-prev">Previous</button>
<button type="submit" class="btn btn-next">Finish</button>
</div>
</div>
</form>
</div>
</div> --}}
<div class="col col-lg-7">
<form id="cost-calculator">
<form id="cost-calculator" method="GET" action="{{ route('cost.getCost') }}">
<div class="cost-choosing">
<div class="step-content active" id="step1">
@@ -260,42 +144,17 @@
<h5 class="text-ter text-18 font-medium pb-20">Where do you want to study</h5>
<div class="row flex flex-wrap py-20">
<div class="col col-sm-4">
<div class="flex items-center gap-10 px-10 py-12 bg-white rounded-30 tabs">
<input name="country" type="radio" id="country1">
<label class="text-20 text-ter p-0 m-0" for="country1">UK</label>
@foreach ($countries as $country)
<div class="col col-sm-4">
<div class="flex items-center gap-10 px-10 py-12 bg-white rounded-30 tabs">
<input type="radio" name="country_id" value="{{ $country->id }}"
id="{{ $country->id }}">
<label class="text-20 text-ter p-0 m-0"
for="country1">{{ $country->title }}</label>
</div>
</div>
</div>
<div class="col col-sm-4">
<div class="flex items-center gap-10 px-10 py-12 bg-white rounded-30 tabs">
<input name="country" type="radio" id="country2">
<label class="text-20 text-ter p-0 m-0" for="country2">Australia</label>
</div>
</div>
<div class="col col-sm-4">
<div class="flex items-center gap-10 px-10 py-12 bg-white rounded-30 tabs">
<input name="country" type="radio" id="country3">
<label class="text-20 text-ter p-0 m-0" for="country3">USA</label>
</div>
</div>
<div class="col col-sm-4">
<div class="flex items-center gap-10 px-10 py-12 bg-white rounded-30 tabs">
<input name="country" type="radio" id="country4">
<label class="text-20 text-ter p-0 m-0" for="country4">Newzealand</label>
</div>
</div>
@endforeach
</div>
</div>
<div class="step-content" id="step2">
@@ -304,34 +163,16 @@
</h5>
<div class="row flex flex-wrap py-20">
<div class="col col-sm-6">
<div class="flex items-center gap-10 px-10 py-12 bg-white rounded-30 tabs">
<input name="alone" type="radio" id="alone">
<label class="text-20 text-ter p-0 m-0" for="alone">Alone</label>
@foreach ($livingStatusOptions as $key => $status)
<div class="col col-sm-6">
<div class="flex items-center gap-10 px-10 py-12 bg-white rounded-30 tabs">
<input type="radio" name="status_type_id" value="{{ $key }}"
id="status_type_{{ $key }}">
<label class="text-20 text-ter p-0 m-0"
for="alone">{{ $status }}</label>
</div>
</div>
</div>
<div class="col col-sm-6">
<div class="flex items-center gap-10 px-10 py-12 bg-white rounded-30 tabs">
<input name="alone" type="radio" id="spouse">
<label class="text-20 text-ter p-0 m-0" for="spouse">With Spouse</label>
</div>
</div>
<div class="col col-sm-6">
<div class="flex items-center gap-10 px-10 py-12 bg-white rounded-30 tabs">
<input name="alone" type="radio" id="child">
<label class="text-20 text-ter p-0 m-0" for="child">With Spouse and
child</label>
</div>
</div>
@endforeach
</div>
</div>
<div class="step-content" id="step3">
@@ -366,25 +207,16 @@
<h5 class="text-ter text-18 font-medium pb-20">Which Level are you applying for?</h5>
<div class="row flex flex-wrap py-20">
<div class="col col-sm-4">
<div class="flex items-center gap-10 px-10 py-12 bg-white rounded-30 tabs">
<input name="level" type="radio" id="bachelors">
<label class="text-20 text-ter p-0 m-0" for="bachelors">Bachelors</label>
@foreach ($programLevelOptions as $level)
<div class="col col-sm-4">
<div class="flex items-center gap-10 px-10 py-12 bg-white rounded-30 tabs">
<input type="radio" name="" id="" value="">
<label for="program_level_id">
<label class="text-20 text-ter p-0 m-0"
for="bachelors">{{ $level }}</label>
</div>
</div>
</div>
<div class="col col-sm-4">
<div class="flex items-center gap-10 px-10 py-12 bg-white rounded-30 tabs">
<input name="level" type="radio" id="masters">
<label class="text-20 text-ter p-0 m-0" for="masters">Masters</label>
</div>
</div>
@endforeach
</div>
</div>
<div class="step-content" id="step5">
@@ -394,11 +226,12 @@
<div class="row flex py-20">
<div class="col col-sm-12">
<div class="flex items-center gap-10 px-10 py-12 bg-white rounded-30 tabs">
<select name="" id="">
<option value="">Select Program</option>
<option value="">Masters in Information Technology</option>
</select>
@foreach ($programss as $key => $program)
<select name="program_id" id="">
<option value="">Select Program</option>
<option value="{{ $key }}">{{ $program }}</option>
</select>
@endforeach
</div>

View File

@@ -67,7 +67,6 @@
</a>
</div>
</div>
<div class="text-center">
<p class="mb-0 fs-5 test-muted"><i>Estimated Cost Calculation For
{{ $cost->country?->title ?? 'N/A' }}</i> (<strong

View File

@@ -1,8 +1,7 @@
@extends('client.raffles.layouts.app')
@section('content')
@php
$firstAcc = $page->children[0];
@endphp
<div class="study-destinations-banner">
<img src="{{ asset($page->banner) }}" width="1425" height="356" alt="study uk">
</div>
@@ -12,7 +11,8 @@
<h2 class="md:text-30 text-60 text-sec">Study in {{ $page->title }}</h2>
<div class="title-line mx-auto"></div>
</div>
@if ($page->children->count() > 0)
@if ($page->children)
<section class="free-resources-content tab-container">
<div class="row">
<div class="col col-md-3">

View File

@@ -53,12 +53,11 @@
<div class="w-full flex flex-wrap flex-xl-nowrap">
<div class="w-100percent lg:w-full flex animation-element">
<a href="study-usa.php"
<a href="{{ $slider->button_url }}"
class="btn btn-solid btn-hover-txt-marquee btn-hover-txt-marquee-y btn-icon-right lg:text-12 text-18 font-light rounded-20 leading-5 bg-brand module-btn-sm">
<span class="btn-txt " data-text="Find my dream university"
data-split-text="true"
data-split-options='{"type": "chars, words"}'>Find my dream
university</span>
data-split-options='{"type": "chars, words"}'>{{ $slider->button_text }}</span>
<span class="btn-icon mt-3"><i
class="fa-solid fa-arrow-right text-11 bg-white rounded-full text-brand banner-arrow"></i></span></a>
</div>

View File

@@ -31,7 +31,7 @@
consultation </span>with Certified Counsellors</h5>
</div>
<form action="{{ route('enquiry.store') }}" method="POST" id="contact-form">
<form action="{{ route('counselor.store') }}" method="POST" id="counselor-form">
@csrf
<input class="w-full mb-10 rounded-6 py-15 text-14 px-10 border-bottom" type="text"
name="name" id="name" placeholder=" Name">
@@ -43,17 +43,18 @@
<input class="w-60percent mb-10 rounded-6 py-15 text-14 px-10" type="email"
name="email" id="email" placeholder="Your Email">
<input class="w-30percent mb-10 rounded-6 py-15 text-14 px-10" type="number"
inputmode="numeric" name="mobile" id="mobile" placeholder="Contact">
inputmode="numeric" name="contact" id="contact" placeholder="Contact">
</div>
<input class="w-full mb-10 rounded-6 py-15 text-14 px-10" type="text" name="score"
id="score" placeholder="Language Test Score (ilets overall: 7.0 )">
<input class="w-full mb-10 rounded-6 py-15 text-14 px-10" type="text"
name="test_score" id="test_score"
placeholder="Language Test Score (ilets overall: 7.0 )">
<input class="w-full mb-20 rounded-6 py-15 text-14 px-10" type="text"
name="qualification" id="qualification"
placeholder="Recent Education Qualification">
<input class="mb-20" type="checkbox">
<label class="text-14 mb-20" for="">I accept the terms & conditions</label>
<button type="submit" id="submit-btn"
<button type="submit" id="counselor-submit-btn"
class=" w-full py-10 bg-sec text-white rounded-10 text-16 border-0 button-hover">
<i class="fa-solid fa-paper-plane text-white text-16 pr-5"></i>
Send Message</button>