@php $tabs = []; $quantity = min((int) $shortcode->quantity, 20); if ($quantity) { for ($i = 1; $i <= $quantity; $i++) { if (($tabName = $shortcode->{'tab_name_' . $i}) && ($title = $shortcode->{'title_' . $i})) { $tabs[] = [ 'tab_name' => $tabName, 'title' => $title, 'subtitle' => $shortcode->{'subtitle_' . $i}, 'link' => $shortcode->{'link_' . $i}, 'link_title' => $shortcode->{'link_title_' . $i}, 'open_in_new_tab' => $shortcode->{'open_in_new_tab_' . $i}, 'image' => $shortcode->{'image_' . $i}, 'video' => $shortcode->{'video_' . $i}, 'bg_color' => $shortcode->{'bg_color_' . $i}, ]; } } } @endphp @if (count($tabs))
@if ($title = $shortcode->title)

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

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

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

@endif
@foreach ($tabs as $tab)
$loop->first]) id="tab-{{ $loop->iteration }}" role="tabpanel" aria-labelledby="tab-{{ $loop->iteration }}">

{!! BaseHelper::clean(Arr::get($tab, 'title')) !!}

{!! BaseHelper::clean(Arr::get($tab, 'subtitle')) !!}

@if (($link = Arr::get($tab, 'link')) && ($title = Arr::get($tab, 'link_title'))) @endif
@if (Arr::get($tab, 'video')) @endif @if (Arr::get($tab, 'image')) {!! BaseHelper::clean(Arr::get($tab, 'title')) !!} @endif
@endforeach
@endif