{{-- Body copy + FAQ. Pages that also supply sections_hi/faqs_hi get both languages; the header switch shows one. --}} @php $langs = [['en', $content['sections'], $content['faqs'], 'People also ask']]; if (! empty($content['sections_hi'])) { $langs[] = ['hi', $content['sections_hi'], $content['faqs_hi'] ?? [], 'लोग यह भी पूछते हैं']; } $bilingual = count($langs) > 1; @endphp @foreach($langs as [$lang, $sections, $faqs, $faqTitle]) @if($sections || array_filter($faqs))
@foreach($sections as [$h2, $html]) @if($html)

{!! $h2 !!}

{!! $html !!}
@endif @endforeach @if(array_filter($faqs))

{{ $faqTitle }}

@foreach(array_filter($faqs) as [$q, $a])
{{ $q }}

{{ $a }}

@endforeach
@endif
@endif @endforeach