|
@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[2]->value}}
{{$configurations[3]->value}}
Code TVA: {{$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}} |
{{ strtoupper($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 }} |
| REF ARTICLE | DESIGNATION | QTÉ | P.U.HT | TOTAL H.T | TVA |
|---|---|---|---|---|---|
| {{$row['ART']}} | {{$row['DESIG']}} | {{$row['QTS']}} | {{$row['PRHT']}} | {{$row['PRHT']*$row['QTS']}} | {{$row['TAUXTVA']}} |
| Total BRUT | {{$brut}} | ||||
|---|---|---|---|---|---|
| Total REMISE | {{$remise}} | ||||
| Total HT | {{$ht}} | ||||
| Total TVA | {{$tva}} | ||||
| Timbre | {{$timbre}} | ||||
| Total TTC | {{$ttc}} | ||||
| RS | {{$displayRets}} | ||||
| Net à payer | {{ number_format($netAPayer, 3, ',', ' ') }} | ||||
| RS | {{$rets}} | ||||
| Net à payer | {{ number_format($netAPayer, 3, ',', ' ') }} | ||||
| Arrétée la présente Facture à la somme de : {{$price_lettres}} |