{{-- Barre impression --}}
{{ $document->reference }} — {{ $document->documentType?->label }} — {{ $document->client_nom }} ← Retour
{{-- Watermark --}}
{{-- ===== HEADER ===== --}}
{{-- Structure identique à la maquette de référence (facture.png / proforma.png / livraison.png) : 1) Logo Icavi Secure (seul, grande taille) 2) Informations de l'entreprise juste en dessous Les badges Evolis/Origine et le destinataire sont dans la colonne de droite (voir header-right), alignés en haut avec le logo — pas empilés sous le logo. --}} {{-- Logo principal --}}
Icavi Secure
{{-- Infos entreprise --}}
Tél: (+237) 657 618 162 / 679 09 86 39
(+33) 781 043 242
Email: contact@icavi-secure.com
Site web: www.icavi-secure.com
N°RCCM: RC/DLN/2022/B/874
NIU: M042217228042W
{{-- Badges Evolis Partner + Evolis Repair + Origine France, en haut, alignés à droite (même hauteur que le logo) --}}
Evolis Partner Evolis Repair Origine France
{{-- Destinataire : nom + tél + adresse + N°RCCM/NIU si renseignés --}}
{{ $document->client_nom }}
@php $clientModel = $document->client; @endphp @if($document->client_telephone)
Tel : {{ $document->client_telephone }}
@endif {{-- Adresse : priorité au texte saisi sur le document (instantané au moment de la transaction, cf. EVOLUTION-design-flux.md §E.2), ville de la fiche client en repli seulement si le document n'a rien de saisi. --}} @if($document->client_adresse || $clientModel?->city)
{{ $document->client_adresse ?? $clientModel?->city }}
@endif {{-- N°RCCM et NIU : affichés uniquement si le document les contient --}} @if($document->client_rc || $document->client_niu)
@if($document->client_rc)
N° RCCM : {{ $document->client_rc }}
@endif @if($document->client_niu)
NIU : {{ $document->client_niu }}
@endif
@endif
{{-- ===== BLOC TITRE DOCUMENT ===== --}}
@if($document->correspondant) @endif @if($document->date_livraison) @else @endif
{{ strtoupper($document->documentType?->label ?? $document->type_code) }} : {{ strtoupper($document->title) }}
Correspondant ICAVI : {{ $document->correspondant }} @if($document->correspondant_tel)   Tel : {{ $document->correspondant_tel }} @endif
{{ strtoupper($document->documentType?->label ?? '') }} N° {{ $document->reference }}     Date : {{ $document->date_document->format('d/m/Y') }}     Imprimé le : {{ now()->format('d/m/Y') }} Date livraison : {{ $document->date_livraison->format('d/m/Y') }}
{{-- ===== TABLE LIGNES ===== --}} @php $isBL = $document->type_code === 'BL'; @endphp @if($isBL) @else @endif @foreach($document->lines->sortBy('ligne_ordre') as $line) @if($isBL) @else @endif @endforeach {{-- Lignes vides de remplissage --}} @for($i = $document->lines->count(); $i < 4; $i++) @if($isBL) @else @endif @endfor @if(!$isBL) @if($document->remise_globale > 0) @endif {{-- IS : taxe affichée à titre informatif, non ajoutée au total (cf. maquette de référence proforma.png : le TOTAL reste égal au Montant HT). --}} @if($document->tva_taux > 0) @endif @endif
REF DÉSIGNATIONQTÉ
COMMANDÉE
QTÉ
LIVRÉE
UMQUANTITÉ PRIX
UNITAIRE
MONTANT
HT
{{ str_pad($line->ligne_ordre, 3, '0', STR_PAD_LEFT) }}
{{ $line->designation }}
@if($line->notes_ligne)
{{ $line->notes_ligne }}
@endif @if($line->reference_prod && str_contains(strtolower($line->designation), 'origine'))
Origine France
@endif
{{ number_format($line->quantite, 0, ',', ' ') }} {{ number_format($line->quantite_livree ?? $line->quantite, 0, ',', ' ') }} {{ $line->unite ?? 'Unité' }}{{ number_format($line->quantite, 0, ',', ' ') }} {{ number_format($line->prix_unitaire, 0, ',', ' ') }} {{ number_format($line->montant_ht, 0, ',', ' ') }}
 
TOTAL HT {{ number_format($document->sous_total, 0, ',', ' ') }}
Remise ({{ $document->remise_globale }}%) -{{ number_format($document->remise_montant, 0, ',', ' ') }}
IS ({{ number_format($document->tva_taux, 2) }}%) {{ number_format($document->tva_montant, 0, ',', ' ') }}
TOTAL {{ number_format($document->total_ttc, 0, ',', ' ') }}
{{-- ===== MONTANT EN LETTRES ===== --}} @if(!$isBL && $document->total_en_lettres)
La présente {{ strtolower($document->documentType?->label ?? 'facture') }} s'élève à la somme de : {{ $document->total_en_lettres }}
@elseif(!$isBL)
La présente {{ strtolower($document->documentType?->label ?? 'facture') }} s'élève à la somme de : {{ \App\Helpers\NumberToWords::convert($document->total_ttc) }} franc CFA HT
@endif {{-- ===== VALIDITE ===== --}} @if($document->validite_texte)
{{ $document->validite_texte }}
@endif {{-- ===== CONDITIONS PAIEMENT ===== --}} @if($document->conditions_paiement)
Condition règlement : {{ $document->conditions_paiement }}
@endif {{-- ===== SIGNATURES ===== --}} {{-- Bloc affiché sur tous les types de document (Proforma, Devis, Facture, Bon de livraison, Bon de commande, Avoir) : la case Icavi Secure porte la signature de M. Raymond T. et le cachet de la société, déposés dans public/assets/images (demande utilisateur du 2026-08-27) — la case Client reste vide, à signer par le destinataire. --}}
Signature & Cachet Client
Signature & Cachet Icavi Secure
Signature Raymond T. Cachet Icavi Secure
{{-- ===== FOOTER ===== --}}
{{-- /page --}}