@php $sections = $page->publishedSections; @endphp {{-- Intro + rich body --}} @if ($page->intro || $page->body)
@if ($page->intro)

{{ $page->intro }}

@endif @if ($page->body)
{!! $page->body !!}
@endif
@endif {{-- Sections --}} @if ($sections->isNotEmpty())
@if ($sections->count() <= 3) {{-- Editorial rows --}}
@foreach ($sections as $section)
@if ($section->eyebrow){{ $section->eyebrow }}@endif @if ($section->heading)

{{ $section->heading }}

@endif @if ($section->subheading)

{{ $section->subheading }}

@endif
@foreach (preg_split('/\r\n\r\n|\n\n/', (string) $section->body) as $para) @if (trim($para) !== '')

{{ $para }}

@endif @endforeach @if (!empty($section->bullets))
    @foreach ($section->bullets as $bullet)
  • {{ $bullet }}
  • @endforeach
@endif
@endforeach
@else {{-- Card grid --}}
@foreach ($sections as $i => $section) @php $isNum = $section->eyebrow && preg_match('/^\d+$/', trim($section->eyebrow)); @endphp
@if ($isNum) {{ $section->eyebrow }} @elseif ($section->eyebrow) {{ $section->eyebrow }} @endif @if ($section->heading)

{{ $section->heading }}

@endif @if ($section->body)

{{ $section->body }}

@endif @if (!empty($section->bullets))
    @foreach ($section->bullets as $bullet)
  • {{ $bullet }}
  • @endforeach
@endif
@endforeach
@endif
@endif {{-- CTA --}} @if ($page->cta_label)

Ready to take the next step in Tanzania?

{{ $page->cta_label }}
@endif