{{-- PAS d'image de fond - sera imprimé sur papier à en-tête physique --}}

{{ $documentType }} :

@if($title)

{{ $title }}

@endif @if($subtitle)

({{ $subtitle }})

@endif
{{ $reference }} DATE : {{ $date }}
@if($customer && isset($customer->logo) && $customer->logo) @else
@endif

CLIENT : {{ $customer->name ?? 'N/A' }}

ADRESSE : {{ $customer->address ?? 'Lomé - Togo' }}

TEL : {{ $customer->phone ?? 'N/A' }}

@php $calculatedHT = 0; @endphp @if($lines && $lines->count() > 0) @foreach($lines as $line) @php $unitPrice = $line->unit_price ?? 0; $qty = $line->quantity ?? 1; $lineTotal = $unitPrice * $qty; $calculatedHT += $lineTotal; @endphp @endforeach @else @php $calculatedHT = $amount_ht; @endphp @endif @php $calculatedTax = $calculatedHT * 0.18; $calculatedTTC = $calculatedHT + $calculatedTax; @endphp @if(isset($amount_paid) && $amount_paid > 0) @endif
DESIGNATION COÛT UNITAIRE QUANTITE COÛT TOTAL
{!! strip_tags($line->description, '
    1. ') !!}
{{ number_format($unitPrice, 0, ',', ' ') }} FCFA {{ $qty }} {{ number_format($lineTotal, 0, ',', ' ') }} FCFA
{{ $title ?? 'Prestation' }} {{ number_format($amount_ht, 0, ',', ' ') }} FCFA 1 {{ number_format($amount_ht, 0, ',', ' ') }} FCFA
MONTANT HT {{ number_format($calculatedHT, 0, ',', ' ') }} FCFA
TVA 18% {{ number_format($calculatedTax, 0, ',', ' ') }} FCFA
MONTANT TTC {{ number_format($calculatedTTC, 0, ',', ' ') }} FCFA
DÉJÀ PAYÉ {{ number_format($amount_paid, 0, ',', ' ') }} FCFA
RESTE À PAYER {{ number_format($calculatedTTC - $amount_paid, 0, ',', ' ') }} FCFA

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

Moyen de paiement :

  • Tmoney
  • Flooz
  • Virement bancaire

Informations de paiement :

  • Intitulé de Compte : {{ $company->bank_account_name ?? 'N/A' }}
  • RIB : {{ $company->bank_rib ?? 'N/A' }}

{{ $company->director_title ?? 'Directeur Général' }},

@if($company && $company->director_name) {{ explode(' ', $company->director_name)[0] ?? '' }} {{ implode(' ', array_slice(explode(' ', $company->director_name), 1)) }} @else - @endif