@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
| 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