@if(Helper::widgetAccess('show_return_columns_in_operations')) @endif @if(Helper::widgetAccess('show_column_tax_amount')) @endif @php $totalQty = 0;$totalSales = 0;$totalItemDiscount = 0;$totalOrderDiscount = 0;$totalNetTotal = 0;$totalTaxAmount = 0; @endphp @if(!empty($OperationsData)) @foreach($OperationsData as $key => $CategoriesList) @php $cat_key = explode('_',$key); $cat_id = $cat_key[0];$cat_name = $cat_key[1]; @endphp @foreach($CategoriesList as $dList) @php $void_raw_quantity=!empty($dList['void_raw_quantity'])?$dList['void_raw_quantity']:'0'; $return_raw_quantity=!empty($dList['return_raw_quantity'])?$dList['return_raw_quantity']:'0'; // 5 DECIMAL CHANGES $raw_sales_price_5 = $dList['raw_sales_price_5']>0 ? $dList['raw_sales_price_5'] : '0'; $tax_amount_5 = $dList['tax_amount_5']>0 ? $dList['tax_amount_5'] : '0'; $net_sales_price_5 = $dList['net_sales_price_5']>0 ? $dList['net_sales_price_5'] : '0'; $item_discount_total_5=$dList['item_discount_total_5']>0?$dList['item_discount_total_5']:'0'; $order_discount_amount_total_5 = $dList['order_discount_amount_total_5']>0 ? $dList['order_discount_amount_total_5'] : '0'; $raw_sales_price_void = !empty($dList['raw_sales_price_void']) ? $dList['raw_sales_price_void'] : '0.00' ; $raw_sales_price_return = !empty($dList['raw_sales_price_return']) ? $dList['raw_sales_price_return'] : '0.00' ; @endphp @if(Helper::widgetAccess('show_return_columns_in_operations')) @endif @if(Helper::widgetAccess('show_column_tax_amount')) @endif @php $totalQty += $dList['raw_quantity']; $totalSales += $raw_sales_price_5; $totalTaxAmount += $tax_amount_5; $totalItemDiscount += $item_discount_total_5; $totalOrderDiscount += $order_discount_amount_total_5; $totalNetTotal += $net_sales_price_5; @endphp @endforeach @endforeach @else @endif @if(Helper::widgetAccess('show_return_columns_in_operations')) @endif @if(Helper::widgetAccess('show_column_tax_amount')) @endif @php $paymentsTotal = $paymentSummary['paymentsTotal']; $surcharge = $paymentSummary['surcharge']; $orderTotal = $paymentSummary['orderTotal']; @endphp @if (!empty($Paymethods)) @foreach ($Paymethods as $key => $Paymethod) @if(isset($paymentSummary[$Paymethod->payment_key.'Amount'])) @endif @endforeach @endif @if (!empty($paymentSummary['CARDS'])) @foreach ($paymentSummary['CARDS'] as $cardType => $cardAmount) @php $cardTypePercentage = ($paymentsTotal != 0) ? $cardAmount * 100 / $paymentsTotal : '0.00'; $cardTypePercentage = round($cardTypePercentage,2); @endphp @endforeach @endif @if(Helper::widgetAccess('show_column_service_charge')) @endif @if(Helper::widgetAccess('show_refund_cash_card_data')) @endif @if(Helper::widgetAccess('show_tax_cash_card_data')) @endif @if (!empty($orderTypes)) @foreach ($orderTypes as $orderType) @php $order_type = $orderType['order_type']==''?'Other':$orderType['order_type']; @endphp @endforeach @php $total_transactions = array_sum(array_column($orderTypes,'total_transactions')); $total_net_sales = array_sum(array_column($orderTypes,'total_net_sales')); @endphp @endif @if(Helper::widgetAccess('show_column_tax_amount')) @endif @php $totalVoidValue=0; @endphp @if(!empty($void_message)) @foreach($void_message as $messages => $prices) @php $totalVoidValue = $totalVoidValue + array_sum($prices); @endphp @endforeach @endif @php $start_amount = $pay_ins = $pay_outs = $safe_drop = $total_end_cash = $expected_cash_from_till = $other = $declared_cash = $variance = $expected_cash_In = $actual_total_cash_to_business = $cash_transactions = 0; @endphp @if($tillCashdrawerLogData) @php $tilLog = !empty($tillCashdrawerLogData) ? $tillCashdrawerLogData->toArray() : []; @endphp @endif @if (!empty($discountReasons)) @foreach ($discountReasons as $key => $reasons) @endforeach @endif

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

{{ __('lbl.from') }} {{$timeFilter['start']}} {{ __('lbl.to') }} {{$timeFilter['end']}}
{{ __('lbl.establishment') }} {{$storeName}}
{{ __('lbl.product_name') }} {{ __('lbl.category') }} {{ __('lbl.locations') }} {{ __('lbl.unit_cost') }} {{ __('lbl.sales_price') }} {{ __('lbl.vendor_qty_received') }} {{ __('lbl.raw_qty') }} {{ __('lbl.raw_sales') }}{{ __('lbl.return_qty') }} {{ __('lbl.return_sales') }}{{ __('lbl.item_disc') }} {{ __('lbl.order_disc') }} {{ __('lbl.net_totals') }} {{ __('lbl.voids_qty') }} {{ __('lbl.voids_sales') }}{{ __('lbl.total_tax') }}
{{$cat_name}}
{{ $dList['product_name'] }} {{ $dList['categorie_name'] }} {{ $dList['establishment_name'] }} {{storecurrency().$dList['cost_of_goods'] }} {{storecurrency().$dList['sales_price'] }} {{ $dList['vendor_qty_received'] }} {{ $dList['raw_quantity'] }} {{storecurrency().$dList['raw_sales_price'] }}{{ $return_raw_quantity }} {{ $raw_sales_price_return }}{{storecurrency().$dList['item_discount_total']}} {{storecurrency().$dList['order_discount_amount_total']}} {{storecurrency().$dList['net_sales_price']}} {{$void_raw_quantity}} {{storecurrency().$raw_sales_price_void}}{{storecurrency().($dList['tax_amount'])}}
{{ __('lbl.no_record_found') }}
{{ __('lbl.total') }} {{ $totalQty }} {{ number_format($totalSales,2) }}{{ number_format($totalItemDiscount,2) }} {{ number_format($totalOrderDiscount,2) }} {{ number_format($totalNetTotal,2) }} {{ number_format($totalTaxAmount,2) }}
{{ __('lbl.Cash') }} {{storecurrency().$paymentSummary['cashAmount'] }} {{ $paymentSummary['cash_percentage'] }} %
{{ __('lbl.Card') }} {{storecurrency().$paymentSummary['cardtotalpayment'] }} {{ $paymentSummary['card_percentage'] }} %
{{ __('lbl.cash_transctions') }} {{ $paymentSummary['cashTranactions'] }} {{ $paymentSummary['cash_trans_perc'] }} %
{{ __('lbl.card_transctions') }} {{ $paymentSummary['cardTransactions'] }} {{ $paymentSummary['card_trans_perc'] }} %
{{ __('lbl.other_transctions') }} {{ $paymentSummary['otherTransactions'] }} {{ $paymentSummary['other_trans_perc'] }} %
{{ __('lbl.total_transctions') }} {{ $paymentSummary['totalTransactions'] }} 100 %
{{ __($Paymethod->payment_value) }} {{storecurrency().$paymentSummary[$Paymethod->payment_key.'Amount'] }} {{ $paymentSummary[$Paymethod->payment_key.'_percentage'] }} %
{{ __('lbl.CreditM') }} {{storecurrency().$paymentSummary['creditMAmount'] }} {{ $paymentSummary['creditm_percentage'] }} %
{{ $cardType }} {{storecurrency().$cardAmount }} {{ $cardTypePercentage }} %
{{ __('lbl.CustomPayment') }} {{ 0 }} 0.00 %
{{ __('lbl.TotalTenderPayments') }} {{ 0 }} 0.00 %
{{ __('lbl.GiftCards') }} {{storecurrency()}}0 0.00 %
{{ __('lbl.tip_amount') }} {{storecurrency().$paymentSummary['tipAmount'] }} 0.00 %
{{ __('lbl.service_charge') }} {{storecurrency().$paymentSummary['serviceCharge'] }} 0.00 %
{{ __('lbl.service_charge_cash') }} {{storecurrency().$paymentSummary['service_charge_cash'] }} 0.00 %
{{ __('lbl.service_charge_card') }} {{storecurrency().$paymentSummary['service_charge_card'] }} 0.00 %
{{ __('lbl.refunds') }} {{storecurrency().$paymentSummary['refundAmount'] }} 0.00 %
{{ __('lbl.refund_amount_cash') }} {{storecurrency().$paymentSummary['total_refund_cash'] }} 0.00%
{{ __('lbl.refund_amount_card') }} {{storecurrency().$paymentSummary['total_refund_card'] }} 0.00 %
{{ __('lbl.surcharge') }} {{storecurrency().$paymentSummary['surcharge'] }} 0.00 %
{{ __('lbl.tax_amount') }} {{storecurrency().$paymentSummary['tax_amount'] }} 0.00 %
{{ __('lbl.tax_amount_cash') }} {{storecurrency().$paymentSummary['tax_amount_cash'] }} 0.00 %
{{ __('lbl.tax_amount_card') }} {{storecurrency().$paymentSummary['tax_amount_card'] }} 0.00 %
{{ __('lbl.payments_total') }} {{storecurrency().number_format($paymentSummary['paymentsTotal'],2) }} 100.00 %
{{__('lbl.net_sales')}}
{{ __('lbl.taxed_net_sales') }} {{storecurrency().number_format($flatTax['taxed_item_net_sales'],2) }}
{{ __('lbl.untaxed_net_sales') }} {{storecurrency().number_format($flatTax['untaxed_item_net_sales'],2) }}
{{ __('lbl.total') }} {{storecurrency().number_format($flatTax['taxed_item_net_sales']+$flatTax['untaxed_item_net_sales'],2) }}
{{__('lbl.discount_summary')}}
{{ __('lbl.item_discount') }} {{storecurrency().number_format($disSalesTotal['item_discount_total'],2) }}
{{ __('lbl.order_discount') }} {{storecurrency().number_format($disSalesTotal['order_discount_total'],2) }}
{{ __('lbl.total') }} {{storecurrency().number_format($disSalesTotal['item_discount_total']+$disSalesTotal['order_discount_total'],2) }}
{{__('lbl.surcharges')}}
{{ __('lbl.surcharge') }} {{storecurrency().$surcharge }}
{{__('lbl.order_type')}}
{{ __('lbl.order_type') }} {{ __('lbl.transactions') }} {{ __('lbl.net_sales') }} {{ __('lbl.percentage_total_payment') }}
{{ $order_type }} {{ $orderType['total_transactions'] }} {{storecurrency().$orderType['total_net_sales'] }} {{storecurrency().$orderType['percentage'] }} %
{{ $total_transactions }} {{storecurrency().$total_net_sales }} 100 %
{{__('lbl.flattax_summary')}}
{{ __('lbl.tax') }} {{ '@'.$prevailingTax->amount.' %'}} {{storecurrency().round($flatTax['tax_amount_flat'],2) }}
{{ __('lbl.total') }} {{storecurrency().round($flatTax['tax_amount_flat'],2) }}
{{__('lbl.void_reasons')}}
{{ $messages }} {{ array_sum($prices) }}
{{ __('lbl.total') }} {{storecurrency().$totalVoidValue }}
{{__('lbl.gross_product_sales')}}
{{__('lbl.tax_gross_sales')}} {{storecurrency().$flatTax['taxed_item_gross_sales']}}
{{__('lbl.untax_gross_sales')}} {{storecurrency().$flatTax['untaxed_item_gross_sales']}}
{{__('lbl.tax_service_fee')}} {{storecurrency()}}0.00
{{__('lbl.untax_service_fee')}} {{storecurrency()}}0.00
{{__('lbl.shipping_and_handling')}} {{storecurrency()}}0.00
{{__('lbl.crv_charges_incl_sales')}} {{storecurrency()}}0.00
{{__('lbl.total_payments')}} {{storecurrency().number_format($flatTax['item_gross_sales'],2) }}
{{__('lbl.cash_summary')}}
{{ __('lbl.start_amount') }} {{$tilLog['start_amount']}}
{{ __('lbl.pay_ins') }} {{$tilLog['pay_ins'] }}
{{ __('lbl.pay_outs') }} {{$tilLog['pay_outs'] }}
{{ __('lbl.safe_drop') }} {{$safe_drop }}
{{ __('lbl.total_expected_cash') }} {{$tilLog['expected_cash_In'] }}
{{ __('lbl.expected_cash_from_till') }} {{$tilLog['total_end_cash'] }}
{{ __('lbl.other') }} {{ $other }}
{{ __('lbl.declared_cash') }} {{ $tilLog['coin_dispensed'] }}
{{ __('lbl.variance') }} {{ $tilLog['variance'] }}
{{ __('lbl.cash_payments') }} {{ $tilLog['cash_transactions'] }}
{{ __('lbl.number_of_sales_cash_drawer_opened') }} {{ $tilLog['total_transactions'] }}
{{__('lbl.service_performance')}}
{{__('lbl.total_transactions')}} {{ $salesSummary['total_transactions'] }}
{{__('lbl.average_check')}} {{storecurrency().$salesSummary['average_check'] }}
{{__('lbl.total_guests')}} {{$salesSummary['total_guests'] }}
{{__('lbl.average_sale_per_guest')}} {{storecurrency().number_format($salesSummary['average_guest_spent'],2) }}
{{__('lbl.cash_office')}}
{{__('lbl.declared_safe_drops')}} {{storecurrency()}}0.00
{{__('lbl.actual_safe_drops')}} {{storecurrency()}}0.00
{{__('lbl.variance')}} {{storecurrency()}}0.00
{{__('lbl.safe_count')}} {{storecurrency()}}0.00
{{__('lbl.amount_to_deposit')}} {{storecurrency()}}0.00
{{__('lbl.amount_to_safe')}} {{storecurrency()}}0.00
{{__('lbl.net_to_account_for')}}
{{__('lbl.net_to_account_for')}} {{storecurrency().$paymentSummary['orderTotal']}}
{{__('lbl.discount_reasons')}}
{{$reasons['discount_name']}} {{$reasons['total_items']}} {{$reasons['discount_item'] }} {{$reasons['discount_order'] }}