From 4848ef5b4117f045485628d1fd844f9e2db5637d Mon Sep 17 00:00:00 2001 From: Subash Date: Thu, 21 Aug 2025 11:46:15 +0545 Subject: [PATCH 1/2] feat: Implement dynamic accordion for study resources and enhance layout for better user experience --- .../client/raffles/layouts/app.blade.php | 1 + .../study-destination-template.blade.php | 411 +++++++++++++++++- 2 files changed, 393 insertions(+), 19 deletions(-) diff --git a/resources/views/client/raffles/layouts/app.blade.php b/resources/views/client/raffles/layouts/app.blade.php index f987415..08be1e9 100644 --- a/resources/views/client/raffles/layouts/app.blade.php +++ b/resources/views/client/raffles/layouts/app.blade.php @@ -615,6 +615,7 @@ }); }); + diff --git a/resources/views/client/raffles/pages/study-destination-template.blade.php b/resources/views/client/raffles/pages/study-destination-template.blade.php index b65b31b..6073776 100644 --- a/resources/views/client/raffles/pages/study-destination-template.blade.php +++ b/resources/views/client/raffles/pages/study-destination-template.blade.php @@ -66,49 +66,60 @@ - + @php + $accordionId = "accordion-questions-{$index}"; + @endphp

Why Study in {{ $page->title }}

-
- @foreach ($page->custom as $key => $value) + +
+ + @foreach ($child->custom as $key => $item) + @php + $headingId = "heading-{$index}-{$key}"; + $collapseId = "collapse-{$index}-{$key}"; + @endphp +
-
+ +
-

{{ $value['key'] ?? '' }}

+

{{ $item['key'] ?? '' }}

@endforeach
-
+
@@ -173,3 +184,365 @@ @include('client.raffles.pages.call-request') @endsection +@extends('client.raffles.layouts.app') +@section('content') + + +
+ study uk +
+ +
+
+

Study in {{ $page->title }}

+
+
+ + @if ($page->children) +
+
+
+ +
+ +
+
+ @foreach ($page->children as $index => $child) +
+
+
+

{{ $child->short_description }}

+
+
+

{!! $child->description !!}

+
+
+
+ +
+
+
+
+
+
+
+
+
+ + + +
+

+ Why Study in {{ $page->title }} +

+
+ @foreach ($page->children as $index => $value) + @foreach ($value->custom as $key => $item) +
+ +
+
+

{{ $item['key'] ?? '' }}

+
+
+
+ @endforeach + @endforeach +
+ +
+ + +
+
+
+
+
+
Office Blog
+
+ +
+ @foreach ($child->custom as $index => $item) +
+
+
+
+ blog +
+ +
+
+
+
+
+

+ {{ $item['key'] ?? '' }} +

+
+
+

+ {{ $item['value'] ?? '' }} +

+
+
+
+
+ @endforeach +
+
+
+
+
+
+
+
+ @endforeach +
+
+
+
+ @endif + @include('client.raffles.pages.call-request') +
+@endsection +@extends('client.raffles.layouts.app') +@section('content') + + +
+ study uk +
+ +
+
+

Study in {{ $page->title }}

+
+
+ + @if ($page->children) +
+
+
+ +
+ +
+
+ @foreach ($page->children as $index => $child) +
+
+
+

{{ $child->short_description }}

+
+
+

{!! $child->description !!}

+
+
+
+ +
+
+
+
+
+
+
+
+
+ + + +
+

+ Why Study in {{ $page->title }} +

+
+ @foreach ($page->children as $index => $value) + @foreach ($value->custom as $key => $item) +
+ +
+
+

{{ $item['key'] ?? '' }}

+
+
+
+ @endforeach + @endforeach +
+ +
+ + +
+
+
+
+
+
Office Blog
+
+ +
+ @foreach ($child->custom as $index => $item) +
+
+
+
+ blog +
+ +
+
+
+
+
+

+ {{ $item['key'] ?? '' }} +

+
+
+

+ {{ $item['value'] ?? '' }} +

+
+
+
+
+ @endforeach +
+
+
+
+
+
+
+
+ @endforeach +
+
+
+
+ @endif + @include('client.raffles.pages.call-request') +
+@endsection From 7d80e017110c69ddf77b699ca2e3e00abd03a44f Mon Sep 17 00:00:00 2001 From: Subash Date: Thu, 21 Aug 2025 11:57:20 +0545 Subject: [PATCH 2/2] feat: Add required fields to forms for improved validation in contact and cost calculator pages --- .../raffles/pages/contact-template.blade.php | 9 +++++---- .../raffles/pages/cost-calculator.blade.php | 18 +++++++++--------- .../raffles/parts/get-in-touch.blade.php | 16 ++++++++-------- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/resources/views/client/raffles/pages/contact-template.blade.php b/resources/views/client/raffles/pages/contact-template.blade.php index f91b587..92c7a4a 100644 --- a/resources/views/client/raffles/pages/contact-template.blade.php +++ b/resources/views/client/raffles/pages/contact-template.blade.php @@ -54,14 +54,15 @@ @csrf
+ id="name" placeholder=" Name" required> + id="email" placeholder="Email" required>
- + id="subject" placeholder="Subject" required> + diff --git a/resources/views/client/raffles/pages/cost-calculator.blade.php b/resources/views/client/raffles/pages/cost-calculator.blade.php index 49a3f10..5ed23df 100644 --- a/resources/views/client/raffles/pages/cost-calculator.blade.php +++ b/resources/views/client/raffles/pages/cost-calculator.blade.php @@ -135,7 +135,7 @@
-
+
@@ -148,7 +148,7 @@
+ id="{{ $country->id }}" required> @@ -167,7 +167,7 @@
+ id="{{ $status }}" required>
@@ -183,7 +183,7 @@
- + @@ -192,7 +192,7 @@
- + @@ -211,7 +211,7 @@
+ value="" required>
diff --git a/resources/views/client/raffles/parts/get-in-touch.blade.php b/resources/views/client/raffles/parts/get-in-touch.blade.php index f348464..bdfcc05 100644 --- a/resources/views/client/raffles/parts/get-in-touch.blade.php +++ b/resources/views/client/raffles/parts/get-in-touch.blade.php @@ -34,26 +34,26 @@ @csrf + name="name" id="name" placeholder=" Name" required> + name="address" id="address" placeholder=" Address" required>
+ name="email" id="email" placeholder="Your Email" required>
+ placeholder="Language Test Score (ilets overall: 7.0 )" required> - - + name="qualification" id="qualification" placeholder="Recent Education Qualification" + required> + +