@if(!empty($products)) @foreach($products as $product) @php $total_discount = 0; $discount_perc = 0; $total_discount = $product['item_discount'] + $product['order_discount']; if($product['gross_sales'] > 0){ $discount_perc = round((100 * $total_discount) / $product['gross_sales'],2); } @endphp @endforeach @else @endif
{{__('lbl.order_date')}} {{__('lbl.item_unique_id')}} {{__('lbl.sales_amount')}} {{__('lbl.quantity')}} {{__('lbl.net_sales')}} {{__('lbl.item_discount')}} {{__('lbl.order_discount')}} {{__('lbl.total_discount')}} {{__('lbl.discount_percentage')}}
{{$product['order_date']}} {{$product['item_unique_id']}} {{$product['gross_sales']}} {{$product['quantity']}} {{$product['net_sales']}} {{$product['item_discount']}} {{$product['order_discount']}} {{$total_discount}} {{$discount_perc}}%
{{__('lbl.no_record_found')}}