@extends('frontend.layout') @section('title', 'GST') @section('content') @php // Extract sections from the page data $contentFormSection = $page->sections->firstWhere('section_name', 'service_content_form_section'); $whySection = $page->sections->firstWhere('section_name', 'service_why_section'); $twoColumnSection = $page->sections->firstWhere('section_name', 'two_column_list'); $iconBoxSection = $page->sections->firstWhere('section_name', 'service_icon_box'); @endphp @if($contentFormSection)
{{ $contentFormSection->section_json['sub_heading'] }}

{{ $contentFormSection->section_json['heading'] }}

{{ $contentFormSection->section_json['paragraph'] }}

    @for($i = 0; $i < 3; $i++) @if(!empty($contentFormSection->section_json["list_$i"]))
  • {{ $contentFormSection->section_json["list_$i"] }}
  • @endif @endfor
@csrf

{{ $contentFormSection->section_json['form_heading'] }}

{{ $contentFormSection->section_json['form_sub_heading'] }}

@endif @if($whySection && !empty($whySection->section_table))
{{ $whySection->section_json['sub_heading'] }}

{{ $whySection->section_json['heading'] }}

@foreach($whySection->section_table as $item) @if(is_array($item) && !empty($item['title']))

{{ $item['title'] }}

{{ $item['paragraph'] }}

@if(!empty($item['icon']))
{{ $item['title'] }}
@endif
@endif @endforeach
@endif @if($twoColumnSection)

{{ $twoColumnSection->section_json['heading'] }}

@if(!empty($twoColumnSection->section_json['list_1']))

{{ $twoColumnSection->section_json['list_1']['heading'] }}

    @for($i = 0; $i < 5; $i++) @if(!empty($twoColumnSection->section_json['list_1']["item_$i"]))
  • {{ $twoColumnSection->section_json['list_1']["item_$i"] }}
  • @endif @endfor
@endif @if(!empty($twoColumnSection->section_json['list_2']))

{{ $twoColumnSection->section_json['list_2']['heading'] }}

    @for($i = 0; $i < 5; $i++) @if(!empty($twoColumnSection->section_json['list_2']["item_$i"]))
  • {{ $twoColumnSection->section_json['list_2']["item_$i"] }}
  • @endif @endfor
@endif
@endif @if($iconBoxSection && !empty($iconBoxSection->section_table))

{{$iconBoxSection->section_json['heading']}}

@endif @endsection