@extends('frontend.layout') @section('title', $page->name) @section('content') @php // Extract sections from the page data $serviceContentSection = $page->sections->firstWhere('section_name', 'service_content_form_section'); $imageContentSection = $page->sections->firstWhere('section_name', 'image_content_section'); $virtualCfoWhySection = $page->sections->firstWhere('section_name', 'virtual_cfo_why_section'); $serviceWhySection = $page->sections->firstWhere('section_name', 'service_why_section'); @endphp @if($serviceContentSection && !empty($serviceContentSection->section_json)) {{ $serviceContentSection->section_json['sub_heading'] }} {{ $serviceContentSection->section_json['heading'] }} @for($i = 0; $i <= 4; $i++) @if(isset($serviceContentSection->section_json['list_' . $i])) {{ $serviceContentSection->section_json['list_' . $i] }} @endif @endfor Different services offered for Virtual CFO Virtual CFO startups Payroll Management GST Registration, Human Resource Management, Management of finances, and much more @csrf {{ $serviceContentSection->section_json['form_heading'] }} {{ $serviceContentSection->section_json['form_sub_heading'] }} {{ $serviceContentSection->section_json['form_button_text'] }} @endif @if($imageContentSection && !empty($imageContentSection->section_table)) @php $imageContentItems = array_values($imageContentSection->section_table); @endphp @foreach($imageContentItems as $index => $item) @if(isset($item['title']) && isset($item['paragraph'])) @if($index % 2 === 0) {{ $item['title'] }} {!! nl2br(e($item['paragraph'])) !!} @else {{ $item['title'] }} {!! nl2br(e($item['paragraph'])) !!} @endif @endif @endforeach @endif @if($virtualCfoWhySection && !empty($virtualCfoWhySection->section_table)) {{ $virtualCfoWhySection->section_json['sub_heading'] }} {{ $virtualCfoWhySection->section_json['heading'] }} @foreach(array_values($virtualCfoWhySection->section_table) as $index => $item) @if(isset($item['title']) && isset($item['paragraph'])) @if(isset($item['icon'])) @else @endif {{ $item['title'] }} {{ $item['paragraph'] }} @endif @endforeach @endif @if($serviceWhySection && !empty($serviceWhySection->section_table)) {{ $serviceWhySection->section_json['heading'] }} @foreach(array_values($serviceWhySection->section_table) as $index => $item) @if(isset($item['title']) && isset($item['paragraph'])) {{ $item['title'] }} {{ $item['paragraph'] }} @if(isset($item['icon'])) @else @endif @endif @endforeach @endif @endsection
{{ $serviceContentSection->section_json['form_sub_heading'] }}
{{ $item['paragraph'] }}