{{-- Barre impression --}}
{{ $document->reference }} — {{ $document->documentType?->label }} — {{ $document->client_nom }} ← Retour
{{-- Watermark --}}
{{-- ===== HEADER ===== --}}
{{-- Structure identique à la maquette de référence : 1) Logo Icavi Secure (seul, grande taille) 2) Badges Evolis Partner + Evolis Repair + Drapeau France "Origine" → sur une seule rangée horizontale juste sous le logo 3) Informations de l'entreprise --}} {{-- Logo principal --}}
Icavi Secure
{{-- Badges Evolis + France juste en dessous du nom --}}
Evolis Partner Evolis Repair
France Origine
{{-- 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
{{-- Destinataire : nom + ville + N°RC et N°Cont si renseignés --}}
{{ $document->client_nom }}
@php $clientModel = $document->client; @endphp @if($clientModel?->city || $document->client_adresse)
{{ $clientModel?->city ?? $document->client_adresse }}
@endif {{-- N°RC et N°Cont : affichés uniquement si le document les contient --}} @if($document->client_rc || $document->client_niu)
@if($document->client_rc)
N°RC : {{ $document->client_rc }}
@endif @if($document->client_niu)
N° Cont : {{ $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') }} 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 @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, 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, ',', ' ') }}
TVA ({{ number_format($document->tva_taux, 2) }}%) {{ number_format($document->tva_montant, 0, ',', ' ') }}
TOTAL TTC {{ 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 ===== --}} @if($document->type_code !== 'BL')
Signature & Cachet Client
Signature & Cachet Icavi Secure
@endif {{-- ===== FOOTER ===== --}}
{{-- /page --}}