@if($shortcode->title || $shortcode->subtitle)
@if ($title = $shortcode->title)

{!! BaseHelper::clean($title) !!}

@endif @if ($subtitle = $shortcode->subtitle)

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

@endif
@endif
@switch($shortcode->display_type) @case('list')
@foreach($faqs as $faq) @php $isExpanded = $loop->first && $shortcode->expand_first_time; @endphp
{!! BaseHelper::clean($faq->answer) !!}
@endforeach
@break @default @foreach($categories as $category)
@if ($categories->count() > 1)

{{ $category->name }}

@endif
@foreach($category->faqs as $faq)
{!! BaseHelper::clean($faq->answer) !!}
@endforeach
@endforeach @endswitch