@php $tabs = []; $quantity = min((int) $shortcode->quantity, 20) ?: 6; $isActive = false; if ($quantity) { for ($i = 1; $i <= $quantity; $i++) { if ($title = $shortcode->{'title_' . $i}) { $isActive = !$isActive ? $shortcode->{'active_' . $i} == 'yes' : false; $tabs[] = [ 'title' => $title, 'data' => $shortcode->{'data_' . $i}, 'color' => $shortcode->{'color_' . $i}, ]; } } } $tabs = array_chunk($tabs, 2); @endphp
@if ($subtitle = $shortcode->subtitle)
{{ $subtitle }}
@endif @if ($title = $shortcode->title)

{{ $title }}

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

{{ $description }}

@endif
@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
@foreach($tabs as $tab)
@foreach($tab as $item)
$loop->parent->first, 'hasBorder' => $loop->first && $loop->parent->first, $item['color']]) data-wow-delay=".0s">
{{ $item['data'] }}
{!! BaseHelper::clean($item['title']) !!}
@endforeach
@endforeach