From 4848ef5b4117f045485628d1fd844f9e2db5637d Mon Sep 17 00:00:00 2001 From: Subash Date: Thu, 21 Aug 2025 11:46:15 +0545 Subject: [PATCH] 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