@if(!empty($productMix)) @foreach($productMix as $key => $dateList) @php $transactions=0; $total_category_sales=0; $other_gross_receipt_array=[]; $total_transaction_count_array=[];$retailer_id=[]; @endphp @foreach($dateList as $dList) @if(in_array($dList['categorie_name'],array_values($priority_categories))) @php $cat_key = array_search($dList['categorie_name'],$priority_categories); $retailer_id[$dList['store_id']]=$dList['retailer_id']; @endphp @else @if(in_array($dList['store_id'],array_keys($priority_establishments))) @php $other_gross_receipt_array[$dList['store_id']][] = $dList['sold_price_of_category']; $total_transaction_count_array[$dList['store_id']][] = $dList['transactions']; @endphp @endif @endif @endforeach @foreach($priority_establishments as $store_id => $establishment) @php if(isset($other_gross_receipt_array[$store_id])){ $other_gross_receipt_sum = array_sum($other_gross_receipt_array[$store_id]); }else{ $other_gross_receipt_sum = 0; } if(isset($total_transaction_count_array[$store_id])){ $total_transaction_count_sum = array_sum($total_transaction_count_array[$store_id]); }else{ $total_transaction_count_sum = 0; } @endphp @if(isset($retailer_id[$store_id])) @endif @endforeach @endforeach @else @endif
{{ __('lbl.DFW_company_name') }} {{ __('lbl.contract_number') }} {{ __('lbl.store_id') }} {{ __('lbl.DFW_store_name') }} {{ __('lbl.gate_location') }} {{ __('lbl.business_transaction_date') }} {{ __('lbl.report_date') }} {{ __('lbl.description') }} {{ __('lbl.value') }}
Gameway, Inc. 10494 {{ '10494'.'_'.$dList['retailer_id'] }} {{ 'GAMEWAY'.'_'.$dList['business_name'] }} {{ $dList['business_name'] }} {{ $dList['business_transaction_date'] }} {{ date('m/d/Y') }} {{ 'Category'.' '.$cat_key }} Sales {{ $dList['sold_price_of_category'] }}
Gameway, Inc. 10494 {{ '10494'.'_'.$retailer_id[$store_id] }} {{ 'GAMEWAY'.'_'.$establishment }} {{ $establishment }} {{ $dList['business_transaction_date'] }} {{ date('m/d/Y') }} Other Gross Receipts {{ $other_gross_receipt_sum }}
Gameway, Inc. 10494 {{ '10494'.'_'.$retailer_id[$store_id] }} {{ 'GAMEWAY'.'_'.$establishment }} {{ $establishment }} {{ $dList['business_transaction_date'] }} {{ date('m/d/Y') }} Total Transaction Count {{ $total_transaction_count_sum }}
{{ __('lbl.no_record_found') }}