@extends('frontend.layouts.app') @php $locale = app()->getLocale(); $isRtl = $locale === 'ar'; // Get settings $heroTitle = $isRtl ? (setting('contact_hero_title_ar') ?: setting('contact_hero_title') ?: 'تواصل معنا') : (setting('contact_hero_title') ?: 'Contact Us'); $heroSubtitle = $isRtl ? (setting('contact_hero_subtitle_ar') ?: setting('contact_hero_subtitle') ?: 'نحن هنا لمساعدتك') : (setting('contact_hero_subtitle') ?: 'We are here to help'); $formTitle = $isRtl ? (setting('contact_form_title_ar') ?: setting('contact_form_title') ?: 'أرسل لنا رسالة') : (setting('contact_form_title') ?: 'Send us a message'); $mapEmbed = setting('contact_map_embed'); // Extract src from iframe if full iframe provided if ($mapEmbed && str_contains($mapEmbed, ' {{-- Background --}}
{{ $isRtl ? 'تواصل معنا' : 'Get In Touch' }}

{{ $heroTitle }}

{{ $heroSubtitle }}

{{-- Contact Content --}}
{{-- Contact Info Cards --}}
{{-- Phone --}} @if($phone)

{{ $isRtl ? 'الهاتف' : 'Phone' }}

{{ $phone }}
@endif {{-- Email --}} @if($email)

{{ $isRtl ? 'البريد الإلكتروني' : 'Email' }}

{{ $email }}
@endif {{-- Address --}} @if($address)

{{ $isRtl ? 'العنوان' : 'Address' }}

{{ $address }}

@endif {{-- Working Hours --}}

{{ $isRtl ? 'ساعات العمل' : 'Working Hours' }}

{{ $workingHours }}

{{-- WhatsApp --}} @if($whatsapp) {{ $isRtl ? 'تواصل عبر واتساب' : 'Chat on WhatsApp' }} @endif
{{-- Contact Form --}}

{{ $formTitle }}

@if(session('success'))
{{ session('success') }}
@endif
@csrf
@error('name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('message')

{{ $message }}

@enderror
{{-- Map Section --}} @if($mapEmbed)
@endif {{-- CTA --}} @include('frontend.sections.cta') @endsection