| ردیف |
کد |
شرح کالا |
تعداد |
بهای واحد (ریال) |
جمع کل (ریال) |
@php $num = 0; $sum_amount = 0; @endphp
@foreach(\DB::select('select *,(select title from products where id=tg_cart_items.product_id) as title,(select link from products where id=tg_cart_items.product_id) as link,(select tax from products where id=tg_cart_items.product_id) as tax from tg_cart_items where tg_cart_id =' . $item->id,array()) as $item2)
@php $num +=1 ; @endphp
@php
$amount = $item2->amount;
$amount_num = $item2->amount * $item2->num ;
$tax_sum = 0;
if($item2->tax == 0 && $item->status != 6 && $item->is_card ==0){
$amount += $tax * $amount / 100;
$amount_num += $tax * $amount_num / 100;
$tax_sum = $tax * $amount_num / 100;
}
$sum_amount += $amount_num;
/*
if($item2->tax == 0 && $item->is_card==0){
$amount += $tax * $amount / 100;
$amount_num += $tax * $amount_num / 100;
$tax_sum = $tax * $amount_num / 100;
}
*/
@endphp
| {{ $num}} |
P{{ $item2->product_id }} |
{{ $item2->title }} {{ ($item2->color !="" ? " - " . $item2->color : "" ) }} |
{{ $item2->num }} |
{{ number_format( $amount * 10, 0, '', ',') }} |
{{ number_format($amount_num * 10 , 0, '', ',') }} |
@endforeach
| جمع کل |
{{ number_format( $sum_amount * 10 ,0, '', ',') }} |
| تخفیف |
{{ number_format( ($item->discount_accepted + $item->discount_admin ) * 10 ,0, '', ',') }} |
@if(1==2)
| مالیات |
{{number_format( $tax_sum * 10 ,0 , '', ',') }} |
@endif
@php
if($item->discount_amount!=0)
$item->discount_bons = 0;
@endphp
| قابل پرداخت |
{{ number_format( $sum_amount * 10 ,0, '', ',') }} |
| نوع پرداخت
آنلاین
کارت به کارت
غیر نقدی
|
روش ارسال:
{{ ($item->shipping_type==0 ? '-' : '') }}
{{ ($item->shipping_type==1 ? 'باربری' : '') }}
{{ ($item->shipping_type==2 ? 'پست' : '') }}
{{ ($item->shipping_type==3 ? 'اکسپرس' : '') }}
{{ ($item->shipping_type==4 ? 'تیپاکس' : '') }}
{{ ($item->shipping_type==5 ? 'دنت اکسپرس' : '') }}
{{ ($item->shipping_type==6 ? 'پست DTS' : '') }}
|