@extends('frontend::layouts.master') @section('content') @php $contact = $data['page_init']['contact'] ?? []; $setting = $data['page_init']['setting'] ?? []; $recaptcha = $setting['recapcha'] ?? []; $recaptchaSiteKey = $recaptcha['site_key'] ?? ''; $social = $contact['social'] ?? []; $contactHeroImage = !empty($contact['image']) ? check_file($contact['image']) : null; $mapsSearchUrl = !empty(trim($contact['office'] ?? '')) ? 'https://www.google.com/maps/search/?api=1&query=' . rawurlencode(preg_replace('/\s+/', ' ', trim($contact['office']))) : 'https://www.google.com/maps'; $showMoreInformationButton = trim($contact['button_link'] ?? '') !== ''; $moreInformationUrl = $showMoreInformationButton ? trim($contact['button_link']) : ''; $moreInformationIsExternal = $showMoreInformationButton && (str_starts_with($moreInformationUrl, 'http://') || str_starts_with($moreInformationUrl, 'https://')); $heroButtonUrl = trim((string) ($contact['link'] ?? '')); $showHeroButton = $heroButtonUrl !== ''; $heroButtonOpenInNewTab = $showHeroButton && (str_starts_with($heroButtonUrl, 'http://') || str_starts_with($heroButtonUrl, 'https://')); @endphp @if (!empty($contact['desc']))

{!! _html($contact['desc']) !!}

@endif
@if (!empty(trim($contact['gmap'] ?? '')))
{!! $contact['gmap'] !!}
@endif

{{ __('field.contact.title') }}

@if (!empty($contact['email']))

{{ __('field.email') }} :

{{ $contact['email'] }}
@endif @if (!empty($contact['tel']))

{{ __('field.tel') }} :

{{ $contact['tel'] }}
@endif @if (!empty(trim($contact['office'] ?? '')))

@if (!empty(trim($contact['name'] ?? ''))) {{ trim($contact['name']) }} — @endif {{ __('field.contact.office_heading') }}

{{ trim($contact['office']) }}

@endif
@if (!empty($social))

{{ __('field.contact.social_heading') }}

@if (!empty($social['facebook']['url']))
Facebook
@endif @if (!empty($social['line']['url']))
Line
@endif @if (!empty($social['twitter']['url']))
X (Twitter)
@endif @if (!empty($social['tiktok']['url']))
TikTok
@endif @if (!empty($social['instagram']['url']))
Instagram
@endif @if (!empty($social['youtube']['url']))
Youtube
@endif @if (!empty($social['linkedin']['url']))
LinkedIn
@endif
@endif @if (! empty($contact['gmap']) || $showMoreInformationButton)
@if (! empty($contact['gmap'])) {{ __('field.gmap') }} @endif @if ($showMoreInformationButton) {{ __('field.contact.more_information') }} @endif
@endif

{{ __('field.contact.form_title') }}

{{ __('field.contact.form_heading_line_1') }} {{ __('field.contact.form_heading_line_2') }} {{ __('field.contact.form_heading_line_3') }}

@csrf
@if (!empty($recaptchaSiteKey))
@endif
@endsection @push('scripts') @if (!empty($recaptchaSiteKey)) @endif @endpush