From f06525dc6f3d55d0798389fb812a3b4a054fbd99 Mon Sep 17 00:00:00 2001 From: Subash Date: Tue, 29 Jul 2025 13:18:06 +0545 Subject: [PATCH] study destination template for improved tab functionality and content display --- .../study-destination-template.blade.php | 78 ++++++++----------- 1 file changed, 34 insertions(+), 44 deletions(-) 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 e864624..d02573d 100644 --- a/resources/views/client/raffles/pages/study-destination-template.blade.php +++ b/resources/views/client/raffles/pages/study-destination-template.blade.php @@ -17,12 +17,11 @@
    - @foreach ($page->children as $child) -
  • + @foreach ($page->children as $index => $child) +
  • - +
    {{ $child->title }}
  • @@ -32,22 +31,20 @@
    - @foreach ($page->children as $child) -
    + @foreach ($page->children as $index => $child) +

    {{ $child->short_description }}

    -

    - {!! $child->description !!} -

    +

    {!! $child->description !!}

    + src="assets/images/study-destinations/uk.png" alt="">
    + +

    - {{ $child->title }} + Why Study in UK

    -
    - - @foreach ($page->custom as $index => $item) - @php - $isFirst = $loop->first; - $headingId = 'heading-question-' . ($index + 1); - $collapseId = 'collapse-question-item-' . ($index + 1); - @endphp - + @foreach ($page->custom as $key => $value)
    -
    +
    -

    {{ $item['key'] }}

    +

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

    @endforeach
    +
    @@ -122,7 +114,7 @@
    - @foreach ($child->custom as $item) + @foreach ($child->custom as $index => $item)
    -
    -

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

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