@extends('backoffice.dashboard') @section('content') @if(Auth::check())
{{-- Header --}}

@if(isset($pdfTemplate)) تعديل قالب النتائج @else إنشاء قالب نتائج جديد @endif

عودة
{{-- Body --}}
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @if(isset($pdfTemplate)) @method('PUT') @endif
@error('template_name')
{{ $message }}
@enderror
@php $assignedOld = old('assigned_states', $pdfTemplate->assigned_states ?? []); @endphp @foreach($candidateStates as $stateKey => $stateLabel)
@endforeach
{{-- Tabs --}}
{{-- Header Tab --}}
رأس الصفحة (Header)
الصيغ المدعومة: JPEG, PNG, JPG, GIF (الحد الأقصى: 5MB)
@error('header_image')
{{ $message }}
@enderror @if(isset($pdfTemplate) && $pdfTemplate->header_image_path && Storage::disk('concours')->exists($pdfTemplate->header_image_path))
الصورة الحالية:
@endif
الحد الأقصى: 5MB
@error('header_pdf')
{{ $message }}
@enderror @if(isset($pdfTemplate) && $pdfTemplate->header_pdf_path)
ملف موجود
@endif
{{-- Attributes Tab --}}
اختر الحقول المراد عرضها
بيانات المترشح
@foreach($availableCandidateAttributes as $key => $label)
@endforeach
بيانات المناظرة
@foreach($availableConcoursAttributes as $key => $label)
@endforeach
تلميح: الحقول المختارة هنا ستظهر في قسم رأس المحتوى بشكل تلقائي في PDF. يمكنك أيضاً استخدام متغيرات مثل @{{ candidate_nom }} و @{{ concours_titre_ar }} في محتوى الصفحة.
{{-- Body Tab --}}
محتوى الصفحة (Body)
@error('template_body')
{{ $message }}
@enderror
المتغيرات المتاحة:
  • للمترشح: @{{ candidate_id }}, @{{ candidate_nom }}, @{{ candidate_prenom }}, @{{ candidate_cin }}, @{{ candidate_date_naissance }}, @{{ candidate_tel }}, @{{ candidate_email }}, @{{ candidate_adresse }}, @{{ candidate_gouvernorat }}, @{{ candidate_code_postale }}, @{{ candidate_etat }}
  • للمناظرة: @{{ concours_titre_ar }}, @{{ concours_titre_fr }}, @{{ concours_titre_en }}, @{{ concours_date_debut }}, @{{ concours_date_fin }}, @{{ concours_etat }}
{{-- Footer Tab --}}
{{-- Form Actions --}}
إلغاء
@else @endif @endsection