@if($export == '1') @endif @if($export == '1') @endif @php $totalQty = 0;$totalSales = 0;$totalCashQty = 0;$totalCash = 0;$totalCardQty = 0;$totalCard = 0;$totalConvenienceFee = 0;$totalPrice=0;$totalUnitSales = 0; @endphp @if(!empty($dailyCollectionData)) @foreach($dailyCollectionData as $key => $CategoriesList) @php $totalCatQty = 0;$totalCatSales = 0;$totalCatCashQty = 0;$totalCatCash = 0;$totalCatCardQty = 0;$totalCatCard = 0; $totalCatConvenienceFee = 0;$totalCatPrice=0;$totalCatUnitSales = 0; $cat_key = explode('_',$key); $cat_id = $cat_key[0];$cat_name = $cat_key[1]; @endphp @foreach($CategoriesList as $dList) @php //echo '
';print_r($dList);exit;
                    $raw_convenience_fee = $cash_check_quantity = $cash_check_amount = $card_credit_quantity = $card_credit_amount = $raw_order_total = '0.00';
                    if(array_key_exists('orderspaymentinfoproduct',$dList)){
                        $raw_convenience_fee = (((double)$dList['orderspaymentinfoproduct']->card_credit_amount * (double)Helper::configurationKeys('conveniencefee')) / 100);
                        $raw_order_total = $dList['orderspaymentinfoproduct']->cash_check_amount + $dList['orderspaymentinfoproduct']->card_credit_amount + $raw_convenience_fee;
                        $cash_check_quantity = $dList['orderspaymentinfoproduct']->cash_check_quantity;
                        $cash_check_amount = $dList['orderspaymentinfoproduct']->cash_check_amount;
                        $card_credit_quantity = $dList['orderspaymentinfoproduct']->card_credit_quantity;
                        $card_credit_amount = $dList['orderspaymentinfoproduct']->card_credit_amount;
                    }
                    
                @endphp
                
@php $totalQty += $dList['raw_quantity']; $totalPrice += $dList['raw_product_price']; $totalUnitSales += ($dList['raw_product_price']*$dList['raw_quantity']); if(array_key_exists('orderspaymentinfoproduct',$dList)){ $totalCashQty += $dList['orderspaymentinfoproduct']->cash_check_quantity; $totalCash += $dList['orderspaymentinfoproduct']->cash_check_amount; $totalCardQty += $dList['orderspaymentinfoproduct']->card_credit_quantity; $totalCard += $dList['orderspaymentinfoproduct']->card_credit_amount; } $totalConvenienceFee += $raw_convenience_fee; $totalSales += $raw_order_total; //category $totalCatQty += $dList['raw_quantity']; $totalCatPrice += $dList['raw_product_price']; $totalCatUnitSales += ($dList['raw_product_price']*$dList['raw_quantity']); if(array_key_exists('orderspaymentinfoproduct',$dList)){ $totalCatCashQty += $dList['orderspaymentinfoproduct']->cash_check_quantity; $totalCatCash += $dList['orderspaymentinfoproduct']->cash_check_amount; $totalCatCardQty += $dList['orderspaymentinfoproduct']->card_credit_quantity; $totalCatCard += $dList['orderspaymentinfoproduct']->card_credit_amount; } $totalCatConvenienceFee += $raw_convenience_fee; $totalCatSales += $raw_order_total; @endphp @endforeach @endforeach @else @endif @php $totalBills = 0;$total_collection =0; @endphp @if(!empty($denominationData)) @php $other_key = array_search('Other',array_column($denominationData,'denomination')); $total_collection = array_sum(array_column($denominationData, 'collection')); @endphp @foreach($denominationData as $dList) @if($dList['denomination'] != 'Other') @php $totalBills += $dList['collection']; @endphp @endif @endforeach @endif @if($export == '1') @endif

{{Str::upper($storeName)}}

{{ Str::upper( __('lbl.daily_collection_summary')) }} REPORTS

{{ Str::upper( __('lbl.from')) }} {{$timeFilter['start']}} {{ __('lbl.to') }} {{$timeFilter['end']}}
{{ Str::upper( __('lbl.office_receipt_form89')) }}
{{ Str::upper( __('lbl.service_nos')) }} {{$service_number}}
{{ Str::upper(__('lbl.quantity')) }} {{ __('lbl.unit_price_in_usd') }} {{ __('lbl.total_colletion_in_usd') }} {{ __('lbl.cash_check_quantity') }} {{ __('lbl.cash_check') }} {{ __('lbl.card_credit_quantity') }} {{ __('lbl.card_credit') }} {{ __('lbl.convenience_fee') }} {{ __('lbl.total_sales') }}
{{Str::upper($cat_name)}}
{{ $dList['product_name'] }} {{ $dList['raw_quantity'] }} {{storecurrency().$dList['raw_product_price'] }} {{storecurrency().($dList['raw_product_price']*$dList['raw_quantity']) }} {{ $cash_check_quantity }} {{storecurrency().$cash_check_amount }} {{ $card_credit_quantity }} {{storecurrency().$card_credit_amount }} {{storecurrency().$raw_convenience_fee }} {{storecurrency().$raw_order_total }}
{{ __('lbl.sub_total') }} {{ $totalCatQty }} {{storecurrency().number_format($totalCatUnitSales,2)}} {{$totalCatCashQty}} {{storecurrency().number_format($totalCatCash,2) }} {{$totalCatCardQty}} {{storecurrency().number_format($totalCatCard,2) }} {{storecurrency().number_format($totalCatConvenienceFee,2) }} {{storecurrency().number_format($totalCatSales,2) }}
{{ __('lbl.no_record_found') }}
{{ __('lbl.total') }} {{ $totalQty }} {{storecurrency().number_format($totalUnitSales,2) }} {{$totalCashQty}} {{storecurrency().number_format($totalCash,2) }} {{$totalCardQty}} {{storecurrency().number_format($totalCard,2) }} {{storecurrency().number_format($totalConvenienceFee,2) }} {{storecurrency().number_format($totalSales,2) }}

{{ __('lbl.break_down_of_denomination') }}

{{$dList['denomination']}} {{$dList['quantity']}} {{storecurrency().$dList['collection']}}
{{ __('lbl.total_bills') }} {{storecurrency().$totalBills}}
{{ __('lbl.total_coins') }} {{ $denominationData[$other_key]['quantity'] }} {{storecurrency().$denominationData[$other_key]['collection']}}
{{ __('lbl.total_collection_per_cash_register') }} {{storecurrency().$total_collection}}
{{ __('lbl.discrepancies') }} {{storecurrency().$denominationData[$other_key]['variance']}}
 
{{ __('lbl.officer_name') }}
{{ __('lbl.signature') }}
@if($export == '1') @endif