@extends('layouts.public') @section('content') @php /** * Help Centre — the product's only FAQ surface. * * A hero with a search box over one accordion, and nothing else: the four category cards were * shortcuts that only pre-filtered the very accordion sitting below them, and the closing band * repeated the Contact link the "no matches" line and the footer already carry. * * @var array $faqs */ @endphp

{{ t_raw('footer.help') }}

@php /* The page's messages belong UNDER its title band, inside the page the reader is looking at — not floating above it. getFlashes() consumes, so the layout's own call further out finds nothing and does not draw it twice. */ @endphp
@partial('flash')
@php // Each line renders only when it has something in it: a cleared field left an empty heading behind, // which still takes its margins and puts a blank

in front of a search engine. The search box // stays regardless — it is the section's function, not its wording. $helpHeroEyebrow = trim(t_raw('help.hero_eyebrow')); $helpHeroTitle = trim(t_raw('help.hero_title')); $helpHeroSub = trim(t_raw('help.hero_sub')); $helpFaqEyebrow = trim(t_raw('help.faq_eyebrow')); $helpFaqTitle = trim(t_raw('help.faq_title')); $helpFaqSub = trim(t_raw('help.faq_sub')); @endphp @if (setting('help_hero_enabled', '1') === '1')
@if ($helpHeroEyebrow !== ''){{ $helpHeroEyebrow }}@endif @if ($helpHeroTitle !== '')

{{ $helpHeroTitle }}

@endif @if ($helpHeroSub !== '')

{{ $helpHeroSub }}

@endif
@endif @if (setting('help_faq_enabled', '1') === '1' && ($faqs || $helpFaqEyebrow !== '' || $helpFaqTitle !== '' || $helpFaqSub !== ''))
@if ($helpFaqEyebrow !== ''){{ $helpFaqEyebrow }}@endif @if ($helpFaqTitle !== '')

{{ $helpFaqTitle }}

@endif @if ($helpFaqSub !== '')

{{ $helpFaqSub }}

@endif
@foreach ($faqs as $i => $faq) @php $isFirst = ($i === 0); @endphp

{{ $faq['a'] }}
@endforeach
@endif @endsection