@php $tabs = []; $quantity = min((int) $shortcode->quantity, 20); if ($quantity) { for ($i = 1; $i <= $quantity; $i++) { $tabs[] = [ 'title' => $shortcode->{'title_' . $i}, 'description' => $shortcode->{'description_' . $i}, 'icon_image' => $shortcode->{'icon_image_' . $i}, 'label' => $shortcode->{'label_' . $i}, 'url' => $shortcode->{'url_' . $i}, ]; } } @endphp
@if ($subtitle = $shortcode->subtitle)
{{ $subtitle }}
@endif @if ($title = $shortcode->title)

{{ $title }}

@endif
@foreach($tabs as $tab)
@if ($tab['icon_image'])
{{ $tab['title'] }}
@endif
@if ($tab['title'])

{{ $tab['title'] }}

@endif @if($tab['description'])

{{ $tab['description'] }}

@endif
@if($tab['label'] && $tab['url']) {{ $tab['label'] }} @endif
@endforeach
@if ($shortcode->button_primary_url && $shortcode->button_primary_label) {{ $shortcode->button_primary_label }} @endif @if($shortcode->button_secondary_url && $shortcode->button_secondary_label) {{ $shortcode->button_secondary_label }} @endif