حالة الطلب
@php
// show DB-based statut using trans_field, fallback to translation
$displayStatut = trans_field($debutActivite->statut, 'statut') ?? __('site.jeunesse.status.pending');
// determine which comment to show (prefer the current record's commentaire_motif)
$currentComment = !empty($debutActivite->commentaire_motif)
? $debutActivite->commentaire_motif
: ($relevantHistory->commentaire ?? null);
// if relevantHistory exists and we want metadata:
$historyAuthor = $relevantHistory->changer->name ?? $relevantHistory->changed_by ?? null;
$historyAt = isset($relevantHistory->created_at) ? $relevantHistory->created_at->format('Y-m-d H:i') : null;
@endphp
{{ $displayStatut }}
@if(!empty($currentComment))
{{ __('site.start_activity.current_comment') }}
{{ $currentComment }}
@endif
{{-- IDENTITÉ DU PORTEUR --}}
هوية الباعث
الاسم و اللقب أو الاسم التجاري
{{ $debutActivite->insts->utilisateur->nom_prenom ?? '-' }}
رقم الهوية
{{ $debutActivite->insts->utilisateur->cin ?? $debutActivite->insts->utilisateur->passport ?? $debutActivite->insts->utilisateur->num_fiscal ?? '-' }}
الهاتف
{{ $debutActivite->insts->utilisateur->tel ?? '-' }}
البريد الإلكتروني
{{ $debutActivite->insts->utilisateur->email ?? '-' }}
{{-- DATE DE DÉBUT --}}
تاريخ بداية النشاط
تاريخ البداية
{{ $debutActivite->date_debut_activite ? $debutActivite->date_debut_activite->format('d/m/Y') : '-' }}
{{-- DOCUMENTS (commentés pour l’instant) --}}
{{--
الوثائق المرفقة
@php
$docs = [
'preuve_propriete_location' => 'نسخة من شهادة الملكية أو عقد الكراء ...',
'plan_architectural' => 'مخطط معماري ...',
'declaration_investissement' => 'شهادة تصريح بالاستثمار ...',
'identification' => 'بطاقة تعريف / جواز ...',
'extrait_registre_national_entreprise' => 'السجل الوطني للمؤسسات ...',
'certificat_prevention' => 'شهادة الوقاية ...',
'contrat_assurance' => 'عقد التأمين ...',
'approbation_autorite_minicipale' => 'اعتماد السلطة المحلية ...'
];
@endphp
| الوثيقة |
عرض الملف |
@foreach($docs as $field => $label)
| {{ $label }} |
@if($debutActivite->$field)
عرض الملف
@else
-
@endif
|
@endforeach
--}}