@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}, 'address' => $shortcode->{'address_' . $i}, 'phone' => $shortcode->{'phone_' . $i}, 'email' => $shortcode->{'email_' . $i}, ]; } } @endphp

{!! BaseHelper::clean($shortcode->title) !!}

{!! BaseHelper::clean($shortcode->subtitle) !!}

@foreach ($tabs as $tab)
@if (Arr::get($tab, 'image')) {!! BaseHelper::clean(Arr::get($tab, 'title')) !!} @endif

{!! BaseHelper::clean(Arr::get($tab, 'title')) !!}

{{ Arr::get($tab, 'address') }} @if (Arr::get($tab, 'phone'))
{{ __('Phone')}}: {{ Arr::get($tab, 'phone') }} @endif @if (Arr::get($tab, 'email'))
{{ __('Email') }}: {{ Arr::get($tab, 'email') }} @endif

@endforeach