|
@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}}
Matricule Fiscal : {{$codeTva}}
@if(isset($data) && count($data) > 0 && isset($data[0]['REF_TTN']))
Copie de la Facture électronique enregistrée auprès de {{$companyName}} sous la référence unique N° {{$data[0]['REF_TTN']}}
@endif
|
@if(isset($data) && count($data) > 0 && isset($data[0]['IMG_QR']))
Facture N° : {{$bill}} |
{{$client->name}}
{{$client->adress}}
{{$client->city}}
|
| Date Facture : {{$date}} | Code Client : {{$client->id_backend}} | Éditée le : {{ \Carbon\Carbon::now()->format('d-m-Y H:i') }} par : {{ auth()->user()->name }} |
| N° Document | Nature | Date | TOT. Brut HT | TOT. Remise | TOT. HT | TOT. TVA | TOT. TTC |
|---|---|---|---|---|---|---|---|
| {{$row['NUMBON']}} | {{$row['KNAT']}} | {{ \Carbon\Carbon::parse($row['DATEMVT'])->format('d-m-Y') }} | {{$row['BRUT_HT']}} | {{$row['REMISE'] == '0,000'?'':$row['REMISE']}} | {{$row['NET_HT']}} | {{ (float)$row['TOT_TVA'] == 0 ? '' : $row['TOT_TVA']}} | {{ (float)$row['TOT_TTC'] == 0 ? '' : $row['TOT_TTC']}} |
| Total BRUT | {{$brut}} | ||||
|---|---|---|---|---|---|
| Total REMISE | {{$remise}} | ||||
| Total HT | {{$ht}} | ||||
| Total TVA | {{$tva == '0,000'?'0':$tva}} | ||||
| Timbre | {{$timbre}} | ||||
| Total TTC | {{$ttc}} | ||||
| RS | {{$displayRets}} | ||||
| Net à payer | {{ number_format($netAPayer, 3, ',', ' ') }} | ||||
| Arrétée la présente Facture à la somme de : {{$price_lettres}} |