@if(Helper::widgetAccess('show_column_tax_amount')) @endif @php $backcolor = ''; $flag = ''; $total_grand_total=0;$total_product_price=0;$total_net_sales=0;$total_tax_amount=0;$total_discount_amount=0; @endphp @if(!empty($orderInfo['order_items'])) @foreach($orderInfo['order_items'] as $pro) @php $dRate = ($pro['discountType']==1 && $pro['discountRate']>0) ? '('.$pro['discountRate'].'%)' : ''; $flag='';$backcolor = ''; $discount_amount=0; $grand_total = ($pro['price']-$pro['discount_amount']+$pro['tax_amount']+$pro['crv_amount']); $price_amount = $pro['price']; $tax_amount = $pro['tax_amount']; $tax_perc=0; if($pro['price']){ $tax_perc = round($pro['tax_amount']*100/$pro['price'],2); } $discount_amount = $pro['discount_amount']; $net_amount = ($pro['price']-$pro['discount_amount']); $backcolor='#fffccc'; @endphp @if($pro['returned']=='1') @php $backcolor='#ffdddd'; $flag = '(RETURNED)'; @endphp @else @php $total_grand_total = $total_grand_total + $grand_total; $total_product_price = $total_product_price + $price_amount; $total_tax_amount = $total_tax_amount + $tax_amount; $total_discount_amount = $total_discount_amount + $discount_amount; $total_net_sales = $total_net_sales + $net_amount; @endphp @endif @if(Helper::widgetAccess('show_column_tax_amount')) @endif @if(!empty($pro['attribute'])) @foreach($pro['attribute'] as $attr) @endforeach @endif @endforeach @endif @if(Helper::widgetAccess('show_column_tax_amount')) @endif
{{ __('lbl.product_name') }} {{ __('lbl.product_sku') }} {{ __('lbl.barcode') }} {{ __('lbl.product_price') }} {{ __('lbl.quantity') }} {{ __('lbl.net_sales')}}{{ __('lbl.tax') }}{{ __('lbl.crv_tax') }} {{ __('lbl.discount') }} {{ __('lbl.subtotal') }} {{ __('lbl.grand_total') }}
{{ $pro['product_name'] }} {{$flag}} {{ $pro['product_sku'] }} {{ $pro['product_barcode'] }} {{storecurrency().number_format(floatval($pro['price'])/$pro['quantity'],2) }} {{$pro['quantity']}} {{storecurrency().number_format((floatval($pro['price'])/$pro['quantity'])*$pro['quantity'],2) }}{{storecurrency().$pro['tax_amount'] }} (%{{$tax_perc}}){{storecurrency().$pro['crv_amount'] }} {{storecurrency().$pro['discount_amount'] }} {{$dRate}} {{storecurrency().number_format(floatval($pro['price']),2) }} {{storecurrency().$grand_total }}
   - {{$attr['attributes_name']}} {{$attr['order_item_unique_id']}} {{storecurrency().number_format($attr['price'],2)}}
{{ __('lbl.item_grand_total') }} {{storecurrency().$total_net_sales}}{{storecurrency().$total_tax_amount}} {{storecurrency().number_format($total_discount_amount,2)}} {{storecurrency().$total_product_price}} {{storecurrency().$total_grand_total}}