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

{{ $title }}

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

{{ $description }}

@endif @if($shortcode->button_url && $shortcode->button_label) {{ $shortcode->button_label }} @endif
@foreach($tabs as $tab) @if($loop->odd)
@if($tab['image'])
{{ $tab['title'] }}
@endif
@if ($tab['title'])

{{ $tab['title'] }}

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

{!! BaseHelper::clean($tab['description']) !!}

@endif
@else
@if ($tab['title'])

{{ $tab['title'] }}

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

{!! BaseHelper::clean($tab['description']) !!}

@endif
@if ($tab['image'])
{{ $tab['title'] }}
@endif
@endif @endforeach