@php $tabs = []; $quantity = min((int) $shortcode->quantity, 20); if ($quantity) { for ($i = 1; $i <= $quantity; $i++) { $tabs[] = [ 'title' => $shortcode->{'title_' . $i}, 'image' => $shortcode->{'image_' . $i}, 'description' => $shortcode->{'description_' . $i}, ]; } } $tabs = collect($tabs)->split(2); @endphp
@if ($title = $shortcode->title)

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

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

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

@endif
@if (count($tabs) > 0) @foreach($tabs[0] as $tab)
{{ $tab['title'] }} {{ $tab['title'] }}
@if ($tab['description'])

{{ $tab['description'] }}

@endif
@endforeach @endif
@if ($image = $shortcode->image) {{ __('Image') }} @endif
@if (count($tabs) > 1) @foreach($tabs[1] as $tab)
{{ $tab['title'] }} {{ $tab['title'] }}
@if ($tab['description'])

{{ $tab['description'] }}

@endif
@endforeach @endif