@php
$locale = app()->getLocale();
$statusLabel = trans_field($immobilier->statut, 'statut')
?? $immobilier->statut?->{"statut_{$locale}"}
?? ($immobilier->statut?->statut_en ?? __('site.status_pending'));
@endphp
حالة المطلب
{{ $statusLabel }}
@php
// prefer the model's comment; otherwise use the most recent matching history comment
$modelComment = $immobilier->commentaire_motif ?? null;
$currentComment = !empty($modelComment) ? $modelComment : ($relevantHistory->commentaire ?? null);
$commentFromHistory = empty($modelComment) && isset($relevantHistory) && !empty($relevantHistory->commentaire);
$historyAuthor = $relevantHistory->changer->name ?? $relevantHistory->changed_by ?? null;
$historyAt = isset($relevantHistory->created_at) ? $relevantHistory->created_at->format('Y-m-d H:i') : null;
@endphp
@if(!empty($currentComment))
{{ __('site.start_activity.current_comment') }}
{{ $currentComment }}
@endif
{{-- IDENTITÉ PORTEUR --}}
الاسم و اللقب أو الاسم التجاري
{{ $immobilier->utilisateur->nom_prenom ?? '-' }}
رقم الهاتف
{{ $immobilier->utilisateur->tel ?? '-' }}
البريد الإلكتروني
{{ $immobilier->utilisateur->email ?? '-' }}
العنوان الشخصي
{{ $immobilier->utilisateur->adresse ?? '-' }}
الهوية الشخصية
{{ $typesIdentite->where('id_type', $immobilier->utilisateur->id_type_identite ?? '')->first()->type_ar ?? '-' }}
{{-- IDENTITÉ PROPRIÉTÉ --}}
عنوان العقار
{{ $immobilier->adresse_imm ?? '-' }}
الولاية
{{ $gouvernorats->where('id_gouver', $immobilier->gouvernorat_id ?? '')->first()->nom_ar ?? '-' }}
البلدية
{{ $delegations->where('id_delegation', $immobilier->delegation_id ?? '')->first()->nom_ar ?? '-' }}
صيغة العقار
{{ $typesImmobilier->where('id_type', $immobilier->type_imm_id ?? '')->first()->type_ar ?? '-' }}
المساحة الجملية للعقار
{{ $immobilier->superfici_m2 ?? '-' }} م²
صيغة استغلال العقار
{{ $usagesImmobilier->where('id_usage_imm', $immobilier->usage_id ?? '')->first()->usage_ar ?? '-' }}
{{-- COMPOSANTS --}}