Files
2026-07-27 08:19:38 +01:00

2 lines
504 B
PHP

@if($faqs->isNotEmpty())<section class="section"><div class="wrap faq"><div><span class="section-label">{{ $data['eyebrow'] ?? 'FAQ' }}</span><h2>{{ $data['heading'] ?? '' }}</h2></div><div>@foreach($faqs->take($data['limit'] ?? 12) as $faq)<article><button type="button" @click="openFaq = openFaq === {{ $faq->id }} ? null : {{ $faq->id }}">{{ $faq->question }}<span>+</span></button><p x-cloak x-show="openFaq === {{ $faq->id }}">{{ $faq->answer }}</p></article>@endforeach</div></div></section>@endif