حالة الترخيص:
@if($license->status == 'under_review')
قيد المراجعة
@elseif($license->status == 'approved')
مقبول
@else
مرفوض
@endif
تاريخ الطلب:
{{ $license->created_at->format('Y-m-d') }}
بيانات المدرسة
اسم المدرسة:
{{ $license->branch->school->school_name ?? '-' }}
نوع المدرسة:
@php
$types = json_decode($license->branch->school->type ?? '[]', true);
@endphp
{{ !empty($types) ? implode('، ', $types) : '-' }}
المحافظة:
{{ $license->branch->school->city->name ?? '-' }}
{{-- بيانات الفرع --}}
بيانات الفرع
اسم الفرع: {{ $license->branch->name ?? '—' }}
المنطقة التعليمية: {{ $license->branch->area->name ?? '—' }}
عنوان المدرسة: {{ $license->branch->school_address ?? '—' }}
أقرب معلم بارز: {{ $license->branch->nearest_landmark ?? '—' }}
اسم مدير المدرسة: {{ $license->branch->name_manage ?? '—' }}
هاتف مدير المدرسة: {{ $license->branch->phone_manage ?? '—' }}
رقم الهاتف الثابت: {{ $license->branch->phone ?? '—' }}
وصف المدرسة:
{!! nl2br(e($license->branch->description ?? '—')) !!}
{{-- ملفات المدرسة والفرع --}}
الملفات المرفقة
@php
$files = [
'السيرة الذاتية لمدير المدرسة' => $license->branch->cv_manage,
'عقد الإيجار' => $license->branch->contrect_image,
'مخطط مبنى المدرسة' => $license->branch->plan_image,
'الصورة الرئيسية' => $license->branch->main_image,
'الصور الفرعية' => $license->branch->secondary_image,
'دراسة الجدوى' => $license->branch->file_feasibility,
'كشف الحساب البنكي' => $license->branch->bank_statement,
'وثائق أخرى' => $license->branch->other_document,
];
$icons = [
'السيرة الذاتية لمدير المدرسة' => 'bi-file-earmark-pdf',
'عقد الإيجار' => 'bi-file-earmark-image',
'مخطط مبنى المدرسة' => 'bi-file-earmark-image',
'الصورة الرئيسية' => 'bi-file-earmark-image',
'الصور الفرعية' => 'bi-file-earmark-image',
'دراسة الجدوى' => 'bi-file-earmark-pdf',
'كشف الحساب البنكي' => 'bi-file-earmark-pdf',
'وثائق أخرى' => 'bi-file-earmark-text',
];
@endphp
@foreach ($files as $label => $file)
@endforeach
{{-- خريطة جوجل --}}
@if($license->branch->latitude && $license->branch->longitude)
الموقع على الخريطة
الإحداثيات: {{ $license->branch->latitude }}, {{ $license->branch->longitude }}
العنوان: {{ $license->branch->school_address }}
{{-- JavaScript لتحميل الخريطة --}}
{{-- استدعاء Google Maps API --}}
@endif
{{-- تعديل حالة الترخيص --}}
@endsection