@foreach($detailBlocks as $block)
@if($block['type'] === 'custom')
@php($section = $block['section'])
@include('site.partials.entry-section')
@elseif($block['name'] === 'overview' && $entry->body)
{{ $isProduct ? $copy['detail_intro'] : $copy['detail_eyebrow'] }}{{ $setting('body_heading', $isProduct ? 'What makes '.strtolower($entry->title).' worth considering?' : $copy['detail_heading']) }}
{{ $entry->body }}
@elseif($block['name'] === 'highlights' && $entry->highlights)
{{ $setting('highlights_heading', $copy['detail_highlights']) }}
@foreach(preg_split('/\r?\n/', trim($entry->highlights)) as $line)@if(trim($line))- {{ trim($line) }}
@endif @endforeach
@elseif($block['name'] === 'uses' && $entry->best_for)
{{ $setting('uses_heading', $copy['detail_uses']) }}
@if($isProduct){{ $copy['detail_uses_intro'] }}
@endif@foreach(preg_split('/\r?\n/', trim($entry->best_for)) as $line)@if(trim($line))
↗{{ trim($line) }}
@endif @endforeach
@elseif($block['name'] === 'tips' && $entry->selection_tips)
{{ $setting('tips_heading', $isProduct ? $copy['detail_selection'] : $copy['detail_tips']) }}
{{ $entry->selection_tips }}
@elseif($block['name'] === 'process' && !$isProduct)
@elseif($block['name'] === 'faq')
{{ $setting('faq_heading', $copy['detail_faq_heading']) }}
@foreach(range(1,$isProduct ? 3 : 2) as $n){{ $setting('faq_'.$n.'_q', $copy['detail_faq_'.$n.'_q']) }}
{{ $setting('faq_'.$n.'_a', $copy['detail_faq_'.$n.'_a']) }}
@endforeach
@elseif($block['name'] === 'brief' && $isProduct)
@elseif($block['name'] === 'gallery' && $isProduct && $productGallery->isNotEmpty())
@endif
@endforeach