@if ($productMix) @php $totalQty=$totalSales=$itemDisc=$orderDisc=$totalSalesExDisc=$totalCogs=$totalTax=0; $colspan = ($products_taxable==1) ? 13 : 12; @endphp @foreach ($productMix as $key => $categoriesList) {{$key}} @foreach ($categoriesList as $dList) @if(!empty($dList['product_id'])) {{$dList['product_name']}} {{storecurrency().number_format((float) $dList['sold_price_of_product'], 2)}} {{$dList['sales_percentage_of_product']}}% {{ (int) round($dList['quantity'])}} {{storecurrency().number_format((float) $dList['item_discount'], 2)}} {{storecurrency().number_format((float) $dList['order_discount'], 2)}} {{storecurrency().number_format((float) $dList['average_price'], 2)}} {{storecurrency().number_format((float) $dList['cost_of_goods'], 2)}} {{round((int)$dList['percentage_cog'])}}% {{storecurrency().number_format((float) $dList['gm'], 2)}} {{round((int)$dList['gm_percentage'])}}% @if ($products_taxable==1) {{storecurrency().$dList['tax_amount']}} ({{round((int)$dList['tax_percentage'])}}%) @endif {{storecurrency().number_format((float) $dList['sales_price_exl_disc'], 2)}} @php $totalQty += round($dList['quantity']); $totalSales += $dList['sold_price_of_product']; $itemDisc += isset($dList['item_discount']) ? $dList['item_discount'] : 0; $orderDisc += isset($dList['order_discount']) ? $dList['order_discount'] : 0; $totalSalesExDisc += isset($dList['sales_price_exl_disc']) ? $dList['sales_price_exl_disc'] : 0; $totalCogs += isset($dList['cost_of_goods']) ? $dList['cost_of_goods'] : 0; $totalTax += isset($dList['tax_amount']) ? $dList['tax_amount'] : 0; @endphp @endif @endforeach @endforeach {{__('lbl.total')}}
{{storecurrency().$totalSales}}
100%
{{$totalQty}}
{{storecurrency().$itemDisc}}
{{storecurrency().$orderDisc}}
{{storecurrency().$totalCogs}}
@if ($products_taxable==1)
{{storecurrency().$totalTax}}
@endif
{{storecurrency().$totalSalesExDisc}}
@else {{__('lbl.no_record_found')}} @endif