@version(2) @php $hr_visuals = array_map(function($hr_nv) { return is_array($hr_nv) ? $hr_nv : (array)$hr_nv; }, is_array($hr_visuals ?? null) ? $hr_visuals : []); if (!function_exists('hr_visual_text')) { function hr_visual_text($hr_t) { return nl2br(escape(preg_replace('//i', "\n", (string)$hr_t))); } } $hr_visual_boxed = ($hr->gnb_width ?? 'boxed') !== 'full'; @endphp @if ($hr_visual_boxed)
@endif
@foreach ($hr_visuals as $hr_vi => $hr_v)
@if (!empty($hr_v['title']))

{!! hr_visual_text($hr_v['title']) !!}

@endif @if (!empty($hr_v['text']))

{!! hr_visual_text($hr_v['text']) !!}

@endif @if (!empty($hr_v['link_url']) && !empty($hr_v['link_text'])) {{ $hr_v['link_text'] }} @endif
@endforeach
@if (count($hr_visuals) > 1)
@foreach ($hr_visuals as $hr_di => $hr_dv) @endforeach
@endif
@if ($hr_visual_boxed)
@endif