{{-- Image de fond de l'en-tête de l'entreprise --}} @if($company->header_image)
En-tête
@endif
{{-- Titre et logo client --}}

{{ $documentType }} {{ strtoupper($customer->name ?? '') }}

{{-- Tableaux d'informations --}}
REFERENCE {{ $reference }}
DATE {{ $date }}
NIF {{ $company->nif ?? '-' }}
EXPEDIEE
PAR
@if($company->director_name) {{ $company->director_name }} @else - @endif
NOM DU
CLIENT
{{ $customer->name ?? '-' }}
ADRESSE {{ $customer->address ?? 'Lomé-TOGO' }}
TEL {{ $customer->phone ?? '-' }}
{{-- Section désignation/objet --}}
Désignation/Objet Montant/Forfait en Francs CFA
{{-- Lignes de la facture --}}
@if($lines && $lines->count() > 0) @foreach($lines as $line)
{!! strip_tags($line->description, '
    1. ') !!}

@endforeach @elseif($title)

{{ strtoupper($title) }}

@if($subtitle)

{{ strtoupper($subtitle) }}

@endif @endif
{{-- Montant HT --}}
Montant HT {{ number_format($amount_ht, 0, ',', ' ') }}
{{-- TVA --}}
TVA 18% {{ number_format($amount_tax, 0, ',', ' ') }}

--------------

{{-- Total TTC --}}
Total TTC {{ number_format($amount_ttc, 0, ',', ' ') }}
{{-- Reste à payer (si des paiements existent) --}} @if(isset($amount_paid) && $amount_paid > 0)
Déjà payé {{ number_format($amount_paid, 0, ',', ' ') }}
Reste à payer {{ number_format($amount_ttc - $amount_paid, 0, ',', ' ') }}
@endif
{{-- Montant en lettres --}}

Arrêté la présente {{ strtolower($documentTitle) }} pour un montant de {{ strtolower($amountInWords) }} francs CFA toutes taxes comprises.

{{-- Signature --}}

{{ $company->director_title ?? 'Le Directeur' }}

@if($company->director_name) {{ $company->director_name }} @else - @endif