@php use Illuminate\Support\Facades\Auth; @endphp Détails commande Détails commande

{{$configurations->where("label", "CompanyName")->first()->value}}

{{$configurations->where("label", "Adress")->first()->value}} {{$configurations->where("label", "Postal code")->first()->value}} {{$configurations->where("label", "Code TVA")->first()->label}} : {{$configurations->where("label", "Code TVA")->first()->value}}

Bon de Commande N° : {{$order->id}}

{{$client->name}}

{{$client->adress}} {{$client->city}}
@php if ($deliveryFrom) { $blLabel = 'BL médicament N° : ' ; $blValue = $deliveryFrom ; }else{ $blLabel = '' ; $blValue = '' ; } @endphp @php if ($deliveryFromPara) { $blLabel = 'BL Para N° : ' ; $blValue = $deliveryFromPara ; }else{ $blLabel = '' ; $blValue = '' ; } @endphp
Etat :     @switch($order->status) @case(0) En cours de validation @break; @case(2) Validée @break; @case(3) Annulée @break; @case(4) En attente de traitement @break; @case(5) En cours de livraison @break; @case(6) Livrée @break; @case(7) Rejetée @break; @endswitch Date :     {{ \Carbon\Carbon::parse($order->created_at)->format('d/m/Y H:i') }}
{{$blLabel}}     {{$blValue}} {{$blLabel}}    {{$blValue}}
@foreach($finalArray as $line) @php $rowClass = ''; if ($line['quantity'] == $line['delivered']) { $rowClass = ''; } elseif ($line['delivered'] == 0) { $rowClass = 'text-danger'; } elseif ($line['quantity'] != $line['delivered']) { $rowClass = 'text-info'; } @endphp @endforeach
Réf. Désignation Forme Qté Commandée Qté Livrée P.U HT Total H.T TVA
{{-- @if(!empty($line['product_id']))--}} {{-- {{ $line['product_id'] }}--}} @if(!empty($line['product_code'])) {{ $line['product_code'] }} @else {{ $line['para_product_code'] }} @endif @if($line['product_designation'] != '') {{ $line['product_designation'] }} @else {{ $line['para_product_designation'] }} @endif {{ $line['form'] }} {{ (intval($line['quantity']))=='0'?'':intval($line['quantity']) }} {{ (intval($line['delivered']))=='0'?'':(intval($line['delivered'])) }} {{ $line['price_ht'] == 0 ? '' : number_format((float)$line['price_ht'], 3, ',', ' ') }} {{ ($line['price_ht'] * $line['quantity']) == 0 ? '' : number_format((float)($line['price_ht'] * $line['quantity']), 3, ',', ' ') }} {{ (intval($line['tva'])) == '0'?'':(intval($line['tva'])) }}
Montant Total HT {{ $tot_ht == 0.000 ? '0' : number_format($tot_ht, 3, ',', ' ') }} TND
TVA {{ $total_tva == 0.000 ? '0' : number_format($total_tva, 3, ',', ' ') }} TND
Montant Total TTC {{ $tot_ttc == 0.000 ? '0' : number_format($tot_ttc, 3, ',', ' ') }} TND
Quantité livrée égale à la quantité commandée
Quantité livrée égale à 0
Quantité livrée différente de la quantité commandée
Arrété la présente Commande à la somme de :
{{$price_lettres[0]}} dinars et {{$price_lettres[1]}} millimes
@php $root=""; if (Auth::guard('admin')->check()) { $root ="orders.generatePDFAdmin"; } if (Auth::guard('web')->check()) { $root ="orders.generatePDF"; } @endphp Générer PDF