|
@php
if ($type == 1)
{
$companyName = $configurations->where("label","CompanyName")->first()->value;
$codeTva = $configurations->where("label","Code TVA")->first()->value;
}else{
$companyName = $configurations->where("label","SecondCompany")->first()->value;
$codeTva = $configurations->where("label","CodeTvaPara")->first()->value;
}
@endphp
{{$companyName}}
{{$configurations->where("label","Postal code")->first()->value}} {{$configurations->where("label","Adress")->first()->value}}
Code TVA : {{$codeTva}}
@if(isset($deliveryDetails) && count($deliveryDetails) > 0 && isset($deliveryDetails[0]['REF_TTN']))
Copie de la Facture électronique enregistrée auprès de {{$companyName}} sous la référence unique N° {{$deliveryDetails[0]['REF_TTN']}}
@endif
|
@if(isset($deliveryDetails) && count($deliveryDetails) > 0 && isset($deliveryDetails[0]['IMG_QR']))
Facture N° : {{$bill}} |
{{$client->name ?? 'Client non défini'}}
{{$client->adress ?? 'Adresse non disponible'}}
{{$client->city ?? 'Ville non disponible'}}
 
|
| Date : {{$date}} | Édité par : {{ auth()->user()->name }} le : {{ \Carbon\Carbon::now()->format('d-m-Y') }} |
| N° DOCUMENT | NATURE | DATE | TOT. BRUT HT | TOT. REMISE | TOT. HT | TOT. TVA | TOT. TTC |
|---|---|---|---|---|---|---|---|
| {{$Line['NUMBON']}} | {{$Line['KNAT']}} | {{$Line['DATEMVT']}} | {{$Line['BRUT_HT']}} | {{$Line['REMISE']}} | {{$Line['NET_HT']}} | {{ (float) str_replace(',', '.', str_replace(' ', '', $Line['TOT_TVA'])) == 0 ? '' : number_format( (float) str_replace(',', '.', str_replace(' ', '', $Line['TOT_TVA'])), 3, ',', ' ' ) }} | {{number_format((float)$Line['TOT_TTC'], 3, ',', ' ')}} |
| Montant Total BRUT | {{$tot_brut}} |
| Montant Total REMISE | {{$tot_remise}} |
| Montant Total HT | {{$tot_ht}} |
| TVA | {{$tot_tva == '0,000' ?'0':$tot_tva}} |
| Timbre | {{$timbre}} |
| Montant Total TTC | {{$tot_ttc}} |
| RS | {{$displayRets}} |
| Net à payer | {{ number_format($netAPayer, 3, ',', ' ') }} |
| Arrété la présente Facture à la somme de : |
|---|
| {{$price_lettres}} |