@php $hasContactInfo = $shortcode->title || $shortcode->subtitle || $shortcode->name_1 || $shortcode->address_1 || $shortcode->name_2 || $shortcode->address_2 || $shortcode->name_3 || $shortcode->address_3; @endphp @if ($hasContactInfo)

{{ $shortcode->title }}

{{ $shortcode->subtitle }}
@for ($i = 1; $i <= 3; $i++) @if ($shortcode->{'name_' . $i} && $shortcode->{'address_' . $i})
{{ $shortcode->{'name_' . $i} }}

{{ $shortcode->{'address_' . $i} }}

@if ($phone = $shortcode->{'phone_' . $i})

{{ $phone }}

@endif @if ($email = $shortcode->{'email_' . $i})

{{ $email }}

@endif
@endif @endfor
@if ($shortcode->show_contact_form && is_plugin_active('contact'))
{!! Theme::partial('shortcodes.contact-form', compact('shortcode', 'form')) !!}
@endif
@else @if ($shortcode->show_contact_form && is_plugin_active('contact')) @php $cssClass = ''; @endphp
{!! Theme::partial('shortcodes.contact-form', compact('shortcode', 'form', 'cssClass')) !!}
@endif @endif