@php $tabs = []; $quantity = min((int) $shortcode->quantity, 20); if ($quantity) { for ($i = 1; $i <= $quantity; $i++) { $tabs[] = [ 'title' => $shortcode->{'title_' . $i}, 'data' => $shortcode->{'data_' . $i}, 'unit' => $shortcode->{'unit_' . $i}, ]; } } @endphp
@if ($subtitle = $shortcode->subtitle) {{ $subtitle }} @endif @if ($title = $shortcode->title)

{{ $title }}

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

{{ $description }}

@endif
@foreach($tabs as $tab) @if(! $loop->first)

{{ $tab['data'] }}{{ $tab['unit'] }}

{{ $tab['title'] }}

@endif @endforeach
@if ($tab = $tabs[0])

{{ $tab['data'] }}{{ $tab['unit'] }}

{{ $tab['title'] }}

@endif @if ($image1 = $shortcode->image_1)
{{ __('Image 1') }}
@endif
@if ($image2 = $shortcode->image_2)
{{ __('Image 2') }}
@endif @if ($image3 = $shortcode->image_3)
{{ 'Image 3' }}
@endif
@foreach($testimonials as $testimonial)
{{ $testimonial->name }}
{{ $testimonial->name }}
{{ __('Star') }} {{ __('Star') }} {{ __('Star') }} {{ __('Star') }} {{ __('Star') }}

{!! BaseHelper::clean($testimonial->content) !!}

@endforeach