{{ trans_choice('loan::general.loan',2) }} {{ trans_choice('loan::general.disbursed',2) }} {{number_format(\Modules\Loan\Entities\Loan::where('status','active')->sum('principal'))}}
{{ trans_choice('loan::general.total',1) }} {{ trans_choice('loan::general.repayment',2) }} {{number_format(\Modules\Loan\Entities\LoanTransaction::where('reversed',0)->whereIn('loan_transaction_type_id',[2,5,8])->sum('amount'))}}
{{ trans_choice('loan::general.total',1) }} {{ trans_choice('loan::general.outstanding',2) }} {{number_format($total_balance)}}
{{ trans_choice('loan::general.total',1) }} {{ trans_choice('loan::general.arrears',2) }} {{number_format($total_arrears_amount)}}