@if(array_key_exists('custom_pay_1', $payment_types)) @endif @if(array_key_exists('custom_pay_2', $payment_types)) @endif @if(array_key_exists('custom_pay_3', $payment_types)) @endif @if(array_key_exists('custom_pay_4', $payment_types)) @endif @if(array_key_exists('custom_pay_5', $payment_types)) @endif @if(array_key_exists('custom_pay_6', $payment_types)) @endif @if(array_key_exists('custom_pay_7', $payment_types)) @endif @if(array_key_exists('custom_pay_8', $payment_types)) @endif @if(array_key_exists('custom_pay_9', $payment_types)) @endif @if(array_key_exists('custom_pay_10', $payment_types)) @endif
@lang('lang_v1.payment_method') @lang('sale.sale') @lang('lang_v1.expense') @lang('Payment Recovery')
@lang('cash_register.cash_in_hand'): {{ $register_details->cash_in_hand }} --
@lang('cash_register.cash_payment'): {{ $register_details->total_cash }} {{ $register_details->total_cash_expense }} {{ $details['transaction_payment_sums']->total_cash_amount }}
@lang('cash_register.checque_payment'): {{ $register_details->total_cheque }} {{ $register_details->total_cheque_expense }} {{ $details['transaction_payment_sums']->total_cheque_amount }}
@lang('cash_register.card_payment'): {{ $register_details->total_card }} {{ $register_details->total_card_expense }} {{ $details['transaction_payment_sums']->total_card_amount }}
@lang('cash_register.bank_transfer'): {{ $register_details->total_bank_transfer }} {{ $register_details->total_bank_transfer_expense }} {{ $details['transaction_payment_sums']->total_bank_transfer_amount }}
@lang('cash_register.other_payments'): {{ $register_details->total_other }} {{ $register_details->total_other_expense }} {{ $details['transaction_payment_sums']->total_other_amount }}
@lang('lang_v1.advance_payment'): {{ $register_details->total_advance }} {{ $register_details->total_advance_expense }} {{ $details['transaction_payment_sums']->total_advance_amount }}
{{$payment_types['custom_pay_1']}}: {{ $register_details->total_custom_pay_1 }} {{ $register_details->total_custom_pay_1_expense }} {{ $details['transaction_payment_sums']->total_custom_pay_1_amount }}
{{$payment_types['custom_pay_2']}}: {{ $register_details->total_custom_pay_2 }} {{ $register_details->total_custom_pay_2_expense }} {{ $details['transaction_payment_sums']->total_custom_pay_2_amount }}
{{$payment_types['custom_pay_3']}}: {{ $register_details->total_custom_pay_3 }} {{ $register_details->total_custom_pay_3_expense }} {{ $details['transaction_payment_sums']->total_custom_pay_3_amount }}
{{$payment_types['custom_pay_4']}}: {{ $register_details->total_custom_pay_4 }} {{ $register_details->total_custom_pay_4_expense }} {{ $details['transaction_payment_sums']->total_custom_pay_4_amount }}
{{$payment_types['custom_pay_5']}}: {{ $register_details->total_custom_pay_5 }} {{ $register_details->total_custom_pay_5_expense }} {{ $details['transaction_payment_sums']->total_custom_pay_5_amount }}
{{$payment_types['custom_pay_6']}}: {{ $register_details->total_custom_pay_6 }} {{ $register_details->total_custom_pay_6_expense }} {{ $details['transaction_payment_sums']->total_custom_pay_6_amount }}
{{$payment_types['custom_pay_7']}}: {{ $register_details->total_custom_pay_7 }} {{ $register_details->total_custom_pay_7_expense }} {{ $details['transaction_payment_sums']->total_custom_pay_7_amount }}
{{$payment_types['custom_pay_8']}}: {{ $register_details->total_custom_pay_8 }} {{ $register_details->total_custom_pay_8_expense }} {{ $details['transaction_payment_sums']->total_custom_pay_8_amount }}
{{$payment_types['custom_pay_9']}}: {{ $register_details->total_custom_pay_9 }} {{ $register_details->total_custom_pay_9_expense }} {{ $details['transaction_payment_sums']->total_custom_pay_9_amount }}
{{$payment_types['custom_pay_10']}}: {{ $register_details->total_custom_pay_10 }} {{ $register_details->total_custom_pay_10_expense }} {{ $details['transaction_payment_sums']->total_custom_pay_10_amount }}
@lang('cash_register.other_payments'): {{ $register_details->total_other }} {{ $register_details->total_other_expense }}

{{-- --}}
@lang('Cash Sales'): {{ $register_details->total_sale }}
@lang('cash_register.total_refund') {{ $register_details->total_refund }}
@if($register_details->total_cash_refund != 0) Cash: {{ $register_details->total_cash_refund }}
@endif @if($register_details->total_cheque_refund != 0) Cheque: {{ $register_details->total_cheque_refund }}
@endif @if($register_details->total_card_refund != 0) Card: {{ $register_details->total_card_refund }}
@endif @if($register_details->total_bank_transfer_refund != 0) Bank Transfer: {{ $register_details->total_bank_transfer_refund }}
@endif @if(array_key_exists('custom_pay_1', $payment_types) && $register_details->total_custom_pay_1_refund != 0) {{$payment_types['custom_pay_1']}}: {{ $register_details->total_custom_pay_1_refund }} @endif @if(array_key_exists('custom_pay_2', $payment_types) && $register_details->total_custom_pay_2_refund != 0) {{$payment_types['custom_pay_2']}}: {{ $register_details->total_custom_pay_2_refund }} @endif @if(array_key_exists('custom_pay_3', $payment_types) && $register_details->total_custom_pay_3_refund != 0) {{$payment_types['custom_pay_3']}}: {{ $register_details->total_custom_pay_3_refund }} @endif @if($register_details->total_other_refund != 0) Other: {{ $register_details->total_other_refund }} @endif
@lang('lang_v1.total_payment') {{ $register_details->cash_in_hand + $register_details->total_cash - $register_details->total_cash_refund }}
@lang('lang_v1.credit_sales'): {{ $details['transaction_details']->total_sales - $register_details->total_sale }}
@lang('Total Sales Amount'): {{ $details['transaction_details']->total_sales }}
@lang('report.total_expense'): {{ $register_details->total_expense }}
@lang('Total Sale Return Paid'): {{ $details['transaction_return_paid']->total_return_paid ?? 0 }}
@lang('Net Sales'): {{ $details['transaction_return_detail']->total_sales_minus_refunds }}
@lang('Payment Recovery'): {{ $details['transaction_payment_sums']->total_rec_amount }}
@include('cash_register.register_product_details')