@php $i = $j = 0; $totalAmount = 0; $totalNetAmoun = 0; $totalIncomeAmount = 0; $totalExpenseAmount = 0; @endphp @foreach($datalist as $k=>$val) @if($val->is_checkout==0) @php if($val->payment_of=='cr') { $totalIncomeAmount += $val->payment_amount; } else if($val->payment_of=='dr') { $totalExpenseAmount += $val->payment_amount; } $totalAmount += $val->payment_amount; $i++; @endphp @endif @endforeach
{{lang_trans('txt_sno')}} {{lang_trans('txt_transaction_id')}} {{lang_trans('txt_activity')}} {{lang_trans('txt_payment_mode')}} {{lang_trans('txt_date')}} {{lang_trans('txt_total_amount')}}
{{$i}} {{$val->transaction_id}} {{getPaymentPurpose($val->purpose)}} {{$val->payment_type}} {{dateConvert($val->payment_date ,'d-m-Y H:i')}} {{numberFormat($val->payment_amount)}}
@php $totalNetAmoun = $totalIncomeAmount-$totalExpenseAmount; @endphp
{{lang_trans('txt_total_income')}} {{numberFormat($totalIncomeAmount)}}
{{lang_trans('txt_total_expense')}} {{numberFormat($totalExpenseAmount)}}
{{lang_trans('txt_total_netamount')}} {{numberFormat($totalNetAmoun)}}
Amount In (Currency Symbol) {{getCurrencySymbol()}}