Ajouter le 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 actuellement enregistré
{{ $proforma->nom_fichier ?? 'Facture / Devis proforma' }}
@if($proforma->chemin_fichier)
Voir
@endif
@endif