@extends('layouts.admin') @php $contactData = $profile->contactData(); $card = $contactData['card'] ?? []; $fields = $contactData['fields'] ?? []; $whatsapp = $contactData['whatsapp'] ?? []; @endphp @section('title', app()->isLocale('ar') ? 'إعدادات صفحة ونموذج تواصل معنا' : 'Contact Us & Form Settings') @section('content') 👁️ {{ app()->isLocale('ar') ? 'معاينة صفحة تواصل معنا' : 'Preview Contact Page' }} @if(session('status'))
{{ session('status') }}
@endif

{{ app()->isLocale('ar') ? 'الرسائل الواردة' : 'Incoming messages' }}

{{ app()->isLocale('ar') ? 'طلبات نموذج تواصل معنا' : 'Contact form submissions' }}

{{ app()->isLocale('ar') ? 'كل طلب يرسله زائر من نموذج التواصل يُحفظ هنا تلقائيًا.' : 'Every request submitted through the public contact form is stored here automatically.' }}

{{ number_format($submissions->total()) }}
@if($submissions->isEmpty())
{{ app()->isLocale('ar') ? 'لا توجد رسائل واردة حتى الآن.' : 'No contact messages have been received yet.' }}
@else
@foreach($submissions as $submission) @endforeach
{{ app()->isLocale('ar') ? 'وقت الاستلام' : 'Received' }} {{ app()->isLocale('ar') ? 'الاسم' : 'Name' }} {{ app()->isLocale('ar') ? 'بيانات التواصل' : 'Contact details' }} {{ app()->isLocale('ar') ? 'الرسالة / الفكرة' : 'Message / idea' }} {{ app()->isLocale('ar') ? 'الحالة' : 'Status' }}
{{ $submission->created_at?->format('Y-m-d') }}
{{ $submission->created_at?->format('H:i') }}
{{ $submission->name ?: (app()->isLocale('ar') ? 'غير محدد' : 'Not provided') }} @if($submission->email) {{ $submission->email }}
@endif @if($submission->phone) {{ $submission->phone }} @endif @if(!$submission->email && !$submission->phone) {{ app()->isLocale('ar') ? 'غير متاح' : 'Not provided' }} @endif
{{ $submission->message }} {{ app()->isLocale('ar') ? 'جديد' : 'New' }}
@if($submissions->hasPages())
{{ $submissions->links() }}
@endif @endif
@csrf @method('PUT') {{-- 1. عنوان وهوية كارت النموذج (Form Card Header & Identity) --}}

{{ app()->isLocale('ar') ? 'القسم 1' : 'Section 1' }}

{{ app()->isLocale('ar') ? '📝 عنوان وهوية نموذج التواصل (اعرض فكرتك علينا)' : 'Contact Form Header & Identity' }}

{{ app()->isLocale('ar') ? 'التحكم في الشعار والعنوان والوصف الترحيبي أعلى كارت التواصل.' : 'Customize the title, subtitle, and logo on top of the contact card.' }}

{{-- 2. حقول الإدخال في النموذج (Form Fields Management) --}}

{{ app()->isLocale('ar') ? 'القسم 2' : 'Section 2' }}

{{ app()->isLocale('ar') ? '⚙️ تخصيص حقول النموذج (Form Fields)' : 'Form Fields Customization' }}

{{ app()->isLocale('ar') ? 'تعديل نصوص الحقول والتلميحات وخيارات الإلزامية والتفعيل.' : 'Customize labels, placeholders, and required status for each field.' }}

{{-- Field: Name --}}
👤 {{ app()->isLocale('ar') ? 'حقل الاسم (Name Field)' : 'Name Field' }}
{{-- Field: Phone --}}
📞 {{ app()->isLocale('ar') ? 'حقل رقم الهاتف (Phone Field)' : 'Phone Field' }}
{{-- Field: Email --}}
✉️ {{ app()->isLocale('ar') ? 'حقل البريد الإلكتروني (Email Field)' : 'Email Field' }}
{{-- Field: Idea / Message --}}
💡 {{ app()->isLocale('ar') ? 'حقل نص الفكرة / الرسالة (Idea / Message Field)' : 'Message / Idea Field' }}
{{-- 3. زر الإرسال عبر واتساب (WhatsApp Button & Pre-filled Message) --}}

{{ app()->isLocale('ar') ? 'القسم 3' : 'Section 3' }}

{{ app()->isLocale('ar') ? '💬 زر وتكامل واتساب (WhatsApp Action Button)' : 'WhatsApp Dispatch & Action Button' }}

{{ app()->isLocale('ar') ? 'تحديد نص الزر، رقم الواتساب المستقبل، وقالب الرسالة التلقائي الترحيبي.' : 'Configure button text, recipient phone number, and template message.' }}

{{ app()->isLocale('ar') ? 'مثال: +966500000000 أو +201000000000' : 'e.g. +966500000000' }}
{{ app()->isLocale('ar') ? 'الرموز المتاحة للدمج: {name} (الاسم)، {phone} (الهاتف)، {email} (البريد)، {idea} (الفكرة والرسالة).' : 'Available placeholders: {name}, {phone}, {email}, {idea}' }}
{{-- 4. بيانات التواصل الرسمية للشركة (Company Official Contact Info) --}}

{{ app()->isLocale('ar') ? 'القسم 4' : 'Section 4' }}

{{ app()->isLocale('ar') ? '🏢 بيانات التواصل الرسمية للشركة' : 'Official Company Contact Coordinates' }}

{{ app()->isLocale('ar') ? 'البريد والهاتف والعنوان المعروض في التذييل وصفحات الموقع.' : 'Public corporate contact details shown in footer and site headers.' }}

@endsection