@extends('frontend::layouts.master') @push('styles') @endpush @section('content') @php $sp_word = explode(' ', $page_init['link_contact']['name']); $last_word = end($sp_word); $title = str_replace($last_word, '', $page_init['link_contact']['name']); if (empty($title)) { $title = $page_init['link_contact']['name']; $last_word = ''; } @endphp @include('frontend::components.page-hero', [ 'title' => $title, 'titleHighlight' => $last_word, 'subtitle' => $page_init['link_contact']['desc'] ?? '', 'image' => !empty($page_init['link_contact']['image']) ? asset($page_init['link_contact']['image']) : '', 'imageAlt' => $page_init['link_contact']['name'] ?? '', 'imagePosition' => 'object-center', ]) {{-- Section A: Head Office --}} @if (!empty($page_init['contact']['office']) || !empty($page_init['contact']['tel'][0]) || !empty($page_init['contact']['email'][0]) || !empty($page_init['contact']['google_map']))
@include('frontend::components.tsic-ellipse-decoration')

{{ __('frontend::lang.page.contact.head_office') }}

@if (!empty($page_init['contact']['office']))

{{ __('frontend::lang.page.contact.address') }}

{{ $page_init['contact']['office'] ?? '' }}

@endif @if (!empty($page_init['contact']['tel'][0]))

{{ __('frontend::lang.page.contact.phone') }}

@foreach ($page_init['contact']['tel'] as $item)

{{ $item }}

@endforeach
@endif @if (!empty($page_init['contact']['email'][0]))

{{ __('frontend::lang.page.contact.email') }}

@foreach ($page_init['contact']['email'] as $item)

{{ $item }}

@endforeach
@endif
@if (!empty($page_init['contact']['google_map']))
{!! $page_init['contact']['google_map'] !!}
@endif
@endif {{-- Section B: Key Contacts --}} @if (!empty($positions['list'][0])) @php $useKeyContactsSlider = count($positions['list']) > 2; @endphp
@include('frontend::components.tsic-ellipse-decoration')

{{ __('frontend::lang.page.contact.key_contacts') }}

@if ($useKeyContactsSlider)
@foreach ($positions['list'] as $contact)

{{ $contact['desc'] ?? '' }}

{{ __('frontend::lang.page.contact.name') }}

{{ $contact['name'] ?? '' }}

@if (!empty($contact['tel'][0]))

{{ __('frontend::lang.page.contact.phone') }}

@foreach ($contact['tel'] as $phone) {{ $phone }} @endforeach

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

{{ __('frontend::lang.page.contact.email') }}

@foreach ($contact['email'] as $email) {{ $email }} @endforeach

@endif
@endforeach
@else
@foreach ($positions['list'] as $contact)

{{ $contact['desc'] ?? '' }}

{{ __('frontend::lang.page.contact.name') }}

{{ $contact['name'] ?? '' }}

@if (!empty($contact['tel'][0]))

{{ __('frontend::lang.page.contact.phone') }}

@foreach ($contact['tel'] as $phone) {{ $phone }} @endforeach

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

{{ __('frontend::lang.page.contact.email') }}

@foreach ($contact['email'] as $email) {{ $email }} @endforeach

@endif
@endforeach
@endif
@endif {{-- Section C: Plant - Gradient: accent/5 → primary/5 --}} @if (!empty($factories['list'][0])) @php $useFactoriesSlider = count($factories['list']) > 1; @endphp
@include('frontend::components.tsic-ellipse-decoration')

{{ __('frontend::lang.page.contact.manufacturing_plant') }}

@if ($useFactoriesSlider)
@foreach ($factories['list'] as $factory)

{{ $factory['name'] ?? '' }}

@if (!empty($factory['desc']))

{{ __('frontend::lang.page.contact.address') }}

{{ $factory['desc'] ?? '' }}

@endif @if (!empty($factory['tel'][0]))

{{ __('frontend::lang.page.contact.phone') }}

@foreach ($factory['tel'] as $tel)

{{ $tel }}

@endforeach
@endif @if (!empty($factory['email'][0]))

Email

@foreach ($factory['email'] as $email)

{{ $email }}

@endforeach
@endif
@if (!empty($factory['google_map']))
{!! $factory['google_map'] !!}
@endif
@endforeach
@else
@foreach ($factories['list'] as $factory)

{{ $factory['name'] ?? '' }}

@if (!empty($factory['desc']))

{{ __('frontend::lang.page.contact.address') }}

{{ $factory['desc'] ?? '' }}

@endif @if (!empty($factory['tel'][0]))

{{ __('frontend::lang.page.contact.phone') }}

@foreach ($factory['tel'] as $tel)

{{ $tel }}

@endforeach
@endif @if (!empty($factory['email'][0]))

Email

@foreach ($factory['email'] as $email)

{{ $email }}

@endforeach
@endif
@if (!empty($factory['google_map']))
{!! $factory['google_map'] !!}
@endif
@endforeach
@endif
@endif {{-- Section D: Inquiry Form --}}
@include('frontend::components.tsic-ellipse-decoration')

{{ __('frontend::lang.page.contact.form_title') }}

{{ __('frontend::lang.page.contact.form_desc') }}

@csrf
@endsection @push('scripts') @if (!empty($useKeyContactsSlider) || !empty($useFactoriesSlider)) @endif {{ module_vite('build-frontend', 'resources/assets/js/contact.js') }} @endpush