@php $content = $section->content ?? []; @endphp
@php $prefix = "sections[{$section->id}][content]"; @endphp
{{-- HERO BANNER --}}
@if($section->section_name == 'hero_banner')
{{-- WHY CHOOSE US --}}
@elseif($section->section_name == 'why_choose')
@php $features = $content['features'] ?? [['icon' => '', 'title' => '', 'description' => '']]; @endphp
@foreach($features as $i => $feature)
@endforeach
{{-- COUNTRIES TABLE (Simplified) --}}
@elseif($section->section_name == 'countries_table')
@php $countries = $content['countries'] ?? [['name' => '', 'title' => '', 'subtitle' => '', 'link' => '']]; @endphp
@foreach($countries as $i => $country)
@endforeach
{{-- HOW TO APPLY --}}
@elseif($section->section_name == 'how_to_apply')
@php $steps = $content['steps'] ?? [['title' => '', 'description' => '']]; @endphp
@foreach($steps as $i => $step)
@endforeach
{{-- POPULAR DESTINATIONS --}}
@elseif($section->section_name == 'popular_destinations')
@php $destinations = $content['destinations'] ?? [['title' => '', 'subtitle' => '', 'link' => '', 'image' => '']]; @endphp
@foreach($destinations as $i => $dest)
@endforeach
{{-- PRICING CARD (New Section) --}}
@elseif($section->section_name == 'pricing_card')
@php $pricingFeatures = $content['pricing_features'] ?? [['title' => '', 'value' => '']]; @endphp
@foreach($pricingFeatures as $i => $pf)
@endforeach
{{-- FAQ --}}
@elseif($section->section_name == 'faq')
@php $faqs = $content['faqs'] ?? [['question' => '', 'answer' => '']]; @endphp
@foreach($faqs as $i => $faq)
@endforeach
{{-- CTA BANNER --}}
@elseif($section->section_name == 'cta_banner')
{{-- IN PERSON SECTION --}}
@elseif($section->section_name == 'in_person_section')
@php $inPersonItems = $content['in_person'] ?? [['title' => '', 'subtitle' => '']]; @endphp
@foreach($inPersonItems as $i => $item)
@endforeach
{{-- REMOTE SECTION --}}
@elseif($section->section_name == 'remote_section')
@php $remoteItems = $content['remote'] ?? [['title' => '', 'subtitle' => '']]; @endphp
@foreach($remoteItems as $i => $item)
@endforeach
@endif