@php $sections = array_values(array_filter($document['sections'], fn (array $section): bool => ! str_starts_with($section['slug'], 'faq-'))); $faqs = array_values(array_filter($document['sections'], fn (array $section): bool => str_starts_with($section['slug'], 'faq-'))); @endphp

{{ __('ui.home') }} / {{ $document['title'] }}

{{ $document['title'] }}

{{ $document['subtitle'] }}

@if ($document['updated_at'])

{{ __('ui.last_updated') }} {{ $document['updated_at'] }}

@endif
@foreach ($sections as $section)

{{ $section['heading'] }}

@foreach (preg_split("/\n\s*\n/", trim($section['body'])) as $paragraph)

{{ $paragraph }}

@endforeach
@endforeach @if ($faqs !== [])

{{ __('ui.shipping_questions') }}

@foreach ($faqs as $faq)

{{ $faq['body'] }}

@endforeach
@endif