@php $tabs = []; $quantity = min((int) $shortcode->quantity, 20); if ($quantity) { for ($i = 1; $i <= $quantity; $i++) { if (($image = $shortcode->{'image_' . $i}) && ($title = $shortcode->{'title_' . $i})) { $tabs[] = [ 'title' => $title, 'image' => $image, 'link' => $shortcode->{'link_' . $i} ?: '#' ]; } } } @endphp @if (count($tabs))
@if ($shortcode->subtitle)

{!! BaseHelper::clean($shortcode->subtitle) !!}

@endif
@foreach ($tabs as $tab) @endforeach
@endif