@extends('welcome') @section('title', __('contactus.seo_title', ['company' => config('app.name')])) @section('meta_description', __('contactus.seo_description')) @section('content')

{{ __('contactus.breadcrumb_title') }}

{{ __('contactus.info_title') }}

{{ __('contactus.info_text') }}

@php // Company contact info (config-driven) $contact = config('shop.contact', []); $addressLines = (array) data_get($contact, 'address_lines', []); $phones = (array) data_get($contact, 'phones', []); $emails = (array) data_get($contact, 'emails', []); // Social (config-driven) $socialLinks = config('app.social', []); $socialIcons = [ 'facebook' => 'fab fa-facebook-f', 'instagram' => 'fab fa-instagram', 'twitter' => 'fab fa-twitter', 'linkedin' => 'fab fa-linkedin-in', 'youtube' => 'fab fa-youtube', 'tiktok' => 'fab fa-tiktok', 'whatsapp' => 'fab fa-whatsapp', ]; $hasSocial = false; foreach ($socialIcons as $platform => $icon) { if (!empty($socialLinks[$platform])) { $hasSocial = true; break; } } @endphp

{{ __('contactus.address_title') }}

@if(!empty($addressLines)) {!! nl2br(e(implode("\n", $addressLines))) !!} @else {{ __('contactus.address_fallback') }} @endif

{{ __('contactus.phone_title') }}

@if(!empty($phones)) @foreach($phones as $phone) @php $label = is_array($phone) ? ($phone['label'] ?? '') : ''; $value = is_array($phone) ? ($phone['value'] ?? '') : (string) $phone; $tel = preg_replace('/\s+/', '', $value); @endphp @if(!empty($value)) {{ $value }}@if(!empty($label)) {{ $label }}@endif @endif @endforeach @else {{ __('contactus.phone_fallback') }} @endif

{{ __('contactus.email_title') }}

@if(!empty($emails)) @foreach($emails as $email) @php $value = is_array($email) ? ($email['value'] ?? '') : (string) $email; @endphp @if(!empty($value)) {{ $value }} @endif @endforeach @else {{ __('contactus.email_fallback') }} @endif

{{ __('contactus.social_title') }}

@if($hasSocial)
@foreach($socialIcons as $platform => $icon) @if(!empty($socialLinks[$platform])) @endif @endforeach
@else

{{ __('contactus.social_fallback') }}

@endif
@csrf

{{ __('contactus.form_title') }}

@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('number')
{{ $message }}
@enderror
@error('subject')
{{ $message }}
@enderror
@error('message')
{{ $message }}
@enderror

@if($errors->any()) {{ __('contactus.form_error_general') }} @endif

@endsection @push('styles') @endpush