@php $tabs = []; $quantity = min((int) $shortcode->quantity, 20); if ($quantity) { for ($i = 1; $i <= $quantity; $i++) { $tabs[] = [ 'key' => $shortcode->{'key_' . $i}, 'title' => $shortcode->{'title_' . $i}, 'subtitle' => $shortcode->{'subtitle_' . $i}, 'description' => $shortcode->{'description_' . $i}, 'image' => $shortcode->{'image_' . $i}, 'checklists' => $shortcode->{'checklists_' . $i}, ]; } } @endphp
@if ($subtitle = $shortcode->subtitle) {{ $subtitle }} @endif @if ($title = $shortcode->title)

{{ $title }}

@endif
@foreach($tabs as $tab) @php $checklists = explode(',', $tab['checklists']); @endphp
$loop->first]) id="tab-{{ Str::slug($tab['key']) }}" role="tabpanel" aria-labelledby="tab-explore-1">
@if ($tab['image']) {{ $tab['key'] }} @endif
@if ($tab['subtitle']) {{ $tab['subtitle'] }} @endif @if ($tab['title'])

{{ $tab['title'] }}

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

{{ $tab['description'] }}

@endif
    @foreach($checklists as $item)
  • {{ $item }}
  • @endforeach
@endforeach