@extends('layouts.master') @section('title', 'Nouvel Engagement') @section('content') {{-- Arrondir légèrement le tableau --}} {{-- /* surbrillance pour le telecharher et le logo */ --}}
@if(session('success'))
{{ session('success') }}
@endif @if ($errors->any())
Veuillez corriger les erreurs suivantes :
@endif
@csrf
Informations Générales
Imputation budgétaire
Détails de la dépense
@forelse($engagement->engagementdetails as $detail) @empty @endforelse
Désignation Détails Nombre Quantité Coût unitaire (FCFA) Montant (FCFA)
{{ $detail->designation }} {{ $detail->details ?? 'N/A' }}
Aucun détail de dépense disponible.
TOTAL ENGAGÉ
0 FCFA
MONTANT RESTANT
0 FCFA
Pièces justificatives
{{-- ========================================================= DOCUMENT JUSTIFICATIF / BESOIN ORDINAIRE ========================================================= --}}
{{-- ================================================= TDR / JUSTIFICATIF ================================================== --}}
TDR / Justificatif
{{-- ================================================= TYPE ================================================== --}}
{{-- ================================================= NUMÉRO DOCUMENT / BESOIN ORDINAIRE ================================================== --}}
{{-- ================================================= RÉFÉRENCE ================================================== --}}
{{-- ================================================= DEVIS / PROFORMA ON GARDE LA SÉLECTION DU FICHIER ================================================== --}}
Devis / Proforma
{{-- ================================================= SÉLECTION DU FICHIER NE PAS SUPPRIMER ================================================== --}} Veuillez joindre le devis ou la facture pro-forma correspondant à cet engagement. {{-- ================================================= ERREUR DE VALIDATION ================================================== --}} @error('documents.proforma') {{ $message }} @enderror {{-- ================================================= FICHIER DÉJÀ ENREGISTRÉ ================================================== --}} @if( isset($engagement) && $engagement->engagementdocuments ->where('type_document', 'proforma') ->count() ) @php $proforma = $engagement ->engagementdocuments ->where('type_document', 'proforma') ->first(); @endphp
{{ $proforma->nom_fichier ?? 'Facture / Devis proforma' }} @if($proforma->chemin_fichier) Voir @endif
@endif
Information : Le numéro et la référence du TDR / justificatif sont déjà enregistrés avec l'engagement. Le devis / proforma doit être ajouté comme pièce justificative de la dépense.
@endsection