@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}, ]; } } @endphp
@if ($title = $shortcode->title)

{{ $title }}

@endif @if ($shortcode->subtitle)

{{ $shortcode->subtitle }}

@endif
@if ($shortcode->button_url && $shortcode->button_label) {{ $shortcode->button_label }} @endif
@foreach(collect($tabs)->split(2) as $tabs)
    @foreach($tabs as $tab)
  • @if ($tab['title'])
    {{ $tab['title'] }}
    @endif
    @if($tab['description'])

    {{ $tab['description'] }}

    @endif
  • @endforeach
@endforeach