@extends('backoffice.dashboard') @section('content') @if(Auth::check()) @if ($errors->any()) @endif
@csrf @method('PUT')

{{$formulaire->type_ar}}

تفاصيل المطلب

تحيين الاستمارة

الوضعية الحالية:
@if($institution->id_statut == 1) موافقة @elseif($institution->id_statut == 3) عدم موافقة @elseif($institution->id_statut == 4) موافقة شريطة @elseif($institution->id_statut == 5) ارجاء لابداء الراي @else في الانتظار @endif

إذا كنت ترغب في تعديل الوضعية الحالية، يرجى الاختيار من القائمة أدناه:

{{-- nouveau div (shown when status is 4 or 5) --}}
{{-- reject textarea shown only when status == 3 --}}
{{-- history card (compact) --}}
تاريخ تغيّر الوضعية
@if(! isset($institution->statutHistories) || $institution->statutHistories->isEmpty())

لا توجد تغييرات سابقة.

@else
@foreach($institution->statutHistories as $hist) @php $from = optional($hist->fromStatut)->statut_ar ?? optional($hist->fromStatut)->libelle_ar ?? '—'; $to = optional($hist->toStatut)->statut_ar ?? optional($hist->toStatut)->libelle_ar ?? '—'; $toId = optional($hist->toStatut)->id_statut; $badgeClass = $toId === 1 ? 'badge-success' : ($toId === 3 ? 'badge-danger' : 'badge-muted'); $changer = optional($hist->changer)->nom_prenom ?? optional($hist->changer)->email ?? 'نظام'; @endphp
{{ $hist->created_at->format('d/m/Y H:i') }}
بواسطة: {{ $changer }}
{{ $from }} {{ $to }}
@if($hist->commentaire)
سبب / تعليق
{{ $hist->commentaire }}
@endif
@endforeach
@endif
المستثمر
خاصيات النشاط
heberg_rest) == 1 ? 'checked' : '' }}>
heberg_stage_activ) == 1 ? 'checked' : '' }}>
camping) == 1 ? 'checked' : '' }}>
activ_educative) == 1 ? 'checked' : '' }}>
voyage) == 1 ? 'checked' : '' }}>
evenement) == 1 ? 'checked' : '' }}>
autre) == 1 ? 'checked' : '' }}>
@php // small helper to build a usable URL from stored path (kept minimal) $buildFileUrl = function ($path) { if (!$path) return null; if (filter_var($path, FILTER_VALIDATE_URL)) return $path; if (\Illuminate\Support\Str::contains($path, '/storage/')) return asset($path); if (\Illuminate\Support\Str::contains($path, 'shared_uploads')) { $filename = basename($path); try { return route('shared.image', ['filename' => $filename]); } catch (\Throwable $e) {} return url('/shared_uploads/images/' . rawurlencode($filename)); } return url('/' . ltrim($path, '/')); }; $selectedTypeOld = old('id_imm', $institution->id_immo); $certUrl = $institution->certif_class_immobiliere ? $buildFileUrl($institution->certif_class_immobiliere) : null; @endphp
{{-- file input should not be required on edit --}} @if($certUrl) @elseif(!empty($institution->certif_class_immobiliere))
{{ \Illuminate\Support\Str::limit($institution->certif_class_immobiliere, 60) }}
@endif
@php $selectedUsageOld = old('id_usage_immo', $institution->id_usage_immo); $contratUrl = $institution->copie_contrat_loc_prop ? $buildFileUrl($institution->copie_contrat_loc_prop) : null; @endphp
@if($contratUrl) @elseif(!empty($institution->copie_contrat_loc_prop))
{{ \Illuminate\Support\Str::limit($institution->copie_contrat_loc_prop, 60) }}
@endif
{{-- If $delegations passed from controller they are rendered and delegation select will be enabled --}}
جدول الاستثمار و التمويل
@foreach($institution->investissements as $index => $inv) @endforeach
الإستثمار مبلغ الإستثمار مصادر التمويل ملاحظات
تصريح على الشرف
إني الممضي أسفله أشهد بصحة البيانات التي تضمنتها هذه الإستمارة كما أصرح أني لم أتعرض إلى أي عقاب جزائي أو إداري من شأنه أن يحجر على إدارة و تسيير مؤسسة أو الإستثمار في الأنشطة المنصوص عليها.
ملاحظات خاصة بالمندوبية الجهوية
رجوع
@else @endif @endsection