@if($export == '1') @endif
@if($export == '1') @endif @if ($ReportData['catEstalist']) @foreach ($ReportData['catEstalist'] as $category_name => $categoriesList) @foreach ($ReportData['establishments'] as $establishment) @endforeach @php $is_header = 1; @endphp @if($is_header == '1') @foreach ($ReportData['establishments'] as $establishment) @endforeach @endif @foreach ($categoriesList as $prod_sku_name => $stores) @php $pr_sku_name = explode('_',$prod_sku_name); $product_sku = $pr_sku_name[0]; $product_name = $pr_sku_name[1]; $product_id = '';$order_item_id = ''; @endphp @foreach ($stores as $dList) @php if(isset($dList['prod_item_id'])){ $prod_item_id = explode('_',$dList['prod_item_id']); $product_id .= isset($prod_item_id[0]) ? $prod_item_id[0]."," : ''; $order_item_id .= isset($prod_item_id[1]) ? $prod_item_id[1]."," : ''; } @endphp @endforeach @php $order_item_id = implode(',',array_unique(explode(',',rtrim($order_item_id, ",")))); $product_id = implode(',',array_unique(explode(',',rtrim($product_id, ",")))); $product_id_first = explode(',',rtrim($product_id, ","))[0]; @endphp @foreach ($stores as $dList) @php $is_header++; @endphp @endforeach @endforeach @endforeach @else @endif

{{ __('lbl.category_establishment_report') }} Report

{{ __('lbl.from') }} {{$timeFilter['start']}} {{ __('lbl.to') }} {{$timeFilter['end']}}
{{$category_name}}{{$establishment}}
{{ __('lbl.sales_price')}} {{ __('lbl.discounts')}} {{ __('lbl.quantity')}} {{ __('lbl.net_sales')}}
{{$product_name}} ({{$product_sku}}) @if(!empty($dList['sold_price_of_product'])) ${{number_format((float) $dList['sold_price_of_product'], 2)}} @endif @if(!empty($dList['discounts'])) ${{number_format((float) $dList['discounts'], 2)}} @endif @if(!empty($dList['quantity'])) {{$dList['quantity']}} @endif @if(!empty($dList['net_sales'])) ${{number_format((float) $dList['net_sales'], 2)}} @endif
{{__('lbl.no_record_found')}}
@if($export == '1') @endif