@php /** * Mirrors html/home-electronics.html ยง10 (lines 4588-4683): two-column FAQ. * LEFT col = sect-heading type-3 (h1 + desc + Shop Now CTA). RIGHT col = * `faq-accordion_item` custom accordion (5 items, first open by default). * * Heading + subheading + button_text/url come from shortcode attrs. Question * answers seeded via the FAQ plugin. */ $heading = trim((string) ($shortcode->title ?? '')); $subtitle = trim((string) ($shortcode->subtitle ?? '')); $buttonText = trim((string) ($shortcode->button_text ?? '')); $buttonUrl = trim((string) ($shortcode->button_url ?? '')) ?: '#'; @endphp {{-- .faq-accordion_item padding/typography overrides live in assets/sass/component/_inline-migrated.scss. --}}
@if ($heading !== '')

{!! BaseHelper::clean(nl2br($heading)) !!}

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

{!! BaseHelper::clean(nl2br($subtitle)) !!}

@endif @if ($buttonText !== '') {!! BaseHelper::clean($buttonText) !!} @endif
@forelse ($faqs as $i => $faq) @php $itemId = $uid . '-item-' . $i; @endphp
{!! BaseHelper::clean($faq->answer) !!}
@empty

{{ __('No FAQs found.') }}

@endforelse