@php $datp = DB::table('transaction')->where('commande_id',$idcmde)->first()->datepaie; $heup = DB::table('transaction')->where('commande_id',$idcmde)->first()->heurepaie; $mtpy = DB::table('transaction')->where('commande_id',$idcmde)->first()->montant; $nom = DB::table('transaction')->where('commande_id',$idcmde)->first()->nom; $mode = DB::table('transaction')->where('commande_id',$idcmde)->first()->payment; $mtfac = $facture->montant; $numero = $facture->reference; @endphp
PHARMACY COPE
Vente et livraison des produits pharmaceutiques
Disponibilité 24h/24 , 7j/7
{{ $adresse }}
Tel. +228 {{ $tel1 }} / {{ $tel2 }}
Washington - USA {{ $heup }}

Fait le {{ implode('/', array_reverse(explode('-', $datp))) }} à {{ $heup }}

FACTURE N° {{ $numero }}

Nom du Client : {{ $nom }}
Quantity Désignation Price Amount
@foreach($ligne as $lignes) @php $lq= strlen($lignes->qte); if ($lq == 1){ $qte = '0'.$lignes->qte ; }else{ $qte = $lignes->qte ; } @endphp

{{$qte}}  

@endforeach
@foreach($ligne as $lignes) @php $lang = app()->getLocale(); $prod = DB::table('produit') ->select( 'image_produit', "designation_$lang as designation", 'categorie_id', 'prix', ) ->where('id', $lignes->produit_id) ->first(); @endphp

  {{$prod->designation}}

@endforeach
@foreach($ligne as $lignes) @php $prix = ( $lignes->somligne / $lignes->qte ) ; @endphp

{{number_format($prix, 0, ' ', ' ')}}  

@endforeach
@foreach($ligne as $lignes) @php $to = $lignes->somligne ; @endphp

{{number_format($to, 0, ' ', ' ')}}  

@endforeach

Total {{number_format($mtfac, 0, ' ', ' ')}} USD

Pay amount {{number_format($mtpy, 0, ' ', ' ')}} USD

@php $today = date('d/m/Y'); @endphp