@extends('layouts/acc_layout') @section('title', '|') @section('content') @include('successMsg') @php function printOpeningBalance($data) { $startDate = $data['startDate']; $endDate = $data['endDate']; $currectFiscalYearId = DB::table('gnr_fiscal_year')->where('fyStartDate','<=',$startDate)->where('fyEndDate','>=',$startDate)->value('id'); //previous fiscal year id $currentFiscalYearStartDate = DB::table('gnr_fiscal_year')->where('id',$currectFiscalYearId)->value('fyStartDate'); $dateToCompare = date('Y-m-d', strtotime('-1 day', strtotime($currentFiscalYearStartDate))); $previousfiscalYearId = DB::table('gnr_fiscal_year')->where('fyEndDate',$dateToCompare)->value('id'); //previous previous fiscal year id $previousfiscalYearStartDate = DB::table('gnr_fiscal_year')->where('id',$previousfiscalYearId)->value('fyStartDate'); $dateToCompareTwo = date('Y-m-d', strtotime('-1 day', strtotime($previousfiscalYearStartDate))); $previousPreviousfiscalYearId = DB::table('gnr_fiscal_year')->where('fyEndDate',$dateToCompareTwo)->value('id'); //Cash Type Ledgers $cashTypeLedgers = DB::table('acc_account_ledger')->where('accountTypeId',4)->pluck('id')->toArray(); //Bank Type Ledgers $bankTypeLedgers = DB::table('acc_account_ledger')->where('accountTypeId',5)->pluck('id')->toArray(); // IF Search By Fiscal Year if ($data['searchMethodSelected']==1) { if ($previousfiscalYearId!=null) { $cashInHandForCurrentFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$cashTypeLedgers)->where('fiscalYearId',$previousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); if ($previousPreviousfiscalYearId!=null) { $cashInHandForPreviousFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$cashTypeLedgers)->where('fiscalYearId',$previousPreviousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); } else{ $cashInHandForPreviousFiscalYear = 0; } } else{ $cashInHandForCurrentFiscalYear = 0; $cashInHandForPreviousFiscalYear = 0; } if ($previousfiscalYearId!=null) { $cashInBankForCurrentFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$bankTypeLedgers)->where('fiscalYearId',$previousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); if ($previousPreviousfiscalYearId!=null) { $cashInBankForPreviousFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$bankTypeLedgers)->where('fiscalYearId',$previousPreviousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); } else{ $cashInBankForPreviousFiscalYear = 0; } } else{ $cashInBankForCurrentFiscalYear = 0; $cashInBankForPreviousFiscalYear = 0; } if ($data['roundUpSelected']==1) { echo " ASSET ". " ".str_repeat(' ', (4))."OPENING BALANCE ".number_format($cashInHandForPreviousFiscalYear+$cashInBankForPreviousFiscalYear,2)." ".number_format($cashInHandForCurrentFiscalYear+$cashInBankForCurrentFiscalYear,2)." ". " ".str_repeat(' ', (4*2))."CASH IN HAND ".number_format($cashInHandForPreviousFiscalYear,2)." ".number_format($cashInHandForCurrentFiscalYear,2)." ". " ".str_repeat(' ', (4*2))."CASH IN BANK ".number_format($cashInBankForPreviousFiscalYear,2)." ".number_format($cashInBankForCurrentFiscalYear,2)." " ; } else{ echo " ASSET ". " ".str_repeat(' ', (4))."OPENING BALANCE ".number_format($cashInHandForPreviousFiscalYear+$cashInBankForPreviousFiscalYear,2,'.','')." ".number_format($cashInHandForCurrentFiscalYear+$cashInBankForCurrentFiscalYear,2,'.','')." ". " ".str_repeat(' ', (4*2))."CASH IN HAND ".number_format($cashInHandForPreviousFiscalYear,2,'.','')." ".number_format($cashInHandForCurrentFiscalYear,2,'.','')." ". " ".str_repeat(' ', (4*2))."CASH IN BANK ".number_format($cashInBankForPreviousFiscalYear,2,'.','')." ".number_format($cashInBankForCurrentFiscalYear,2,'.','')." " ; } } // IF Search By Current Year elseif ($data['searchMethodSelected']==2) { if ($previousfiscalYearId!=null) { $cashInHandForCurrentFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$cashTypeLedgers)->where('fiscalYearId',$previousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); } else{ $cashInHandForCurrentFiscalYear = 0; } if ($previousfiscalYearId!=null) { $cashInBankForCurrentFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$bankTypeLedgers)->where('fiscalYearId',$previousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); } else{ $cashInBankForCurrentFiscalYear = 0; } $obThisMonth = $cashInHandForCurrentFiscalYear+$data['thisMonthTransactionOfBankTypeDebit']-$data['thisMonthTransactionOfBankTypeCredit']+$cashInBankForCurrentFiscalYear+$data['thisMonthTransactionOfBankTypeDebit']-$data['thisMonthTransactionOfBankTypeCredit']; $obThisYear = $cashInHandForCurrentFiscalYear+$cashInBankForCurrentFiscalYear; if ($data['roundUpSelected']==1) { echo " ASSET ". " ".str_repeat(' ', (4))."OPENING BALANCE ".number_format($obThisMonth,2)." ".number_format($obThisYear,2)." ". " ".str_repeat(' ', (4*2))."CASH IN HAND ".number_format($cashInHandForCurrentFiscalYear+$data['thisMonthTransactionOfBankTypeDebit']-$data['thisMonthTransactionOfBankTypeCredit'],2)." ".number_format($cashInHandForCurrentFiscalYear,2)." ". " ".str_repeat(' ', (4*2))."CASH IN BANK ".number_format($cashInBankForCurrentFiscalYear+$data['thisMonthTransactionOfBankTypeDebit']-$data['thisMonthTransactionOfBankTypeCredit'],2)." ".number_format($cashInBankForCurrentFiscalYear,2)." " ; } else{ echo " ASSET ". " ".str_repeat(' ', (4))."OPENING BALANCE ".number_format($obThisMonth,2,'.','')." ".number_format($obThisYear,2,'.','')." ". " ".str_repeat(' ', (4*2))."CASH IN HAND ".number_format($cashInHandForCurrentFiscalYear+$data['thisMonthTransactionOfBankTypeDebit']-$data['thisMonthTransactionOfBankTypeCredit'],2,'.','')." ".number_format($cashInHandForCurrentFiscalYear,2,'.','')." ". " ".str_repeat(' ', (4*2))."CASH IN BANK ".number_format($cashInBankForCurrentFiscalYear+$data['thisMonthTransactionOfBankTypeDebit']-$data['thisMonthTransactionOfBankTypeCredit'],2,'.','')." ".number_format($cashInBankForCurrentFiscalYear,2,'.','')." " ; } } // IF Search By Date Range elseif ($data['searchMethodSelected']==3) { if ($previousfiscalYearId!=null) { $cashInHandForCurrentFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$cashTypeLedgers)->where('fiscalYearId',$previousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); } else{ $cashInHandForCurrentFiscalYear = 0; } if ($previousfiscalYearId!=null) { $cashInBankForCurrentFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$bankTypeLedgers)->where('fiscalYearId',$previousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); } else{ $cashInBankForCurrentFiscalYear = 0; } $obThisPeriod = $cashInHandForCurrentFiscalYear+$data['thisPeriodTransactionOfCashTypeDebit']-$data['thisPeriodTransactionOfCashTypeCredit']+$cashInBankForCurrentFiscalYear+$data['thisPeriodTransactionOfBankTypeDebit']-$data['thisPeriodTransactionOfBankTypeCredit']; if ($data['roundUpSelected']==1) { echo " ASSET ". " ".str_repeat(' ', (4))."OPENING BALANCE ".number_format($obThisPeriod,2)." ". " ".str_repeat(' ', (4*2))."CASH IN HAND ".number_format($cashInHandForCurrentFiscalYear+$data['thisPeriodTransactionOfCashTypeDebit']-$data['thisPeriodTransactionOfCashTypeCredit'],2)." ". " ".str_repeat(' ', (4*2))."CASH IN BANK ".number_format($cashInBankForCurrentFiscalYear+$data['thisPeriodTransactionOfBankTypeDebit']-$data['thisPeriodTransactionOfBankTypeCredit'],2)." " ; } else{ echo " ASSET ". " ".str_repeat(' ', (4))."OPENING BALANCE ".number_format($obThisPeriod,2,'.','')." ". " ".str_repeat(' ', (4*2))."CASH IN HAND ".number_format($cashInHandForCurrentFiscalYear+$data['thisPeriodTransactionOfCashTypeDebit']-$data['thisPeriodTransactionOfCashTypeCredit'],2,'.','')." ". " ".str_repeat(' ', (4*2))."CASH IN BANK ".number_format($cashInBankForCurrentFiscalYear+$data['thisPeriodTransactionOfBankTypeDebit']-$data['thisPeriodTransactionOfBankTypeCredit'],2,'.','')." " ; } } } function printClosingBalance($data) { $startDate = $data['startDate']; $endDate = $data['endDate']; $currectFiscalYearId = DB::table('gnr_fiscal_year')->where('fyStartDate','<=',$startDate)->where('fyEndDate','>=',$startDate)->value('id'); //previous fiscal year id $currentFiscalYearStartDate = DB::table('gnr_fiscal_year')->where('id',$currectFiscalYearId)->value('fyStartDate'); $dateToCompare = date('Y-m-d', strtotime('-1 day', strtotime($currentFiscalYearStartDate))); $previousfiscalYearId = DB::table('gnr_fiscal_year')->where('fyEndDate',$dateToCompare)->value('id'); //previous previous fiscal year id $previousfiscalYearStartDate = DB::table('gnr_fiscal_year')->where('id',$previousfiscalYearId)->value('fyStartDate'); $dateToCompareTwo = date('Y-m-d', strtotime('-1 day', strtotime($previousfiscalYearStartDate))); $previousPreviousfiscalYearId = DB::table('gnr_fiscal_year')->where('fyEndDate',$dateToCompareTwo)->value('id'); //Cash Type Ledgers $cashTypeLedgers = DB::table('acc_account_ledger')->where('accountTypeId',4)->pluck('id')->toArray(); //Bank Type Ledgers $bankTypeLedgers = DB::table('acc_account_ledger')->where('accountTypeId',5)->pluck('id')->toArray(); // IF Search By Fiscal Year if ($data['searchMethodSelected']==1) { if ($previousfiscalYearId!=null) { $cashInHandForCurrentFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$cashTypeLedgers)->where('fiscalYearId',$previousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); if ($previousPreviousfiscalYearId!=null) { $cashInHandForPreviousFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$cashTypeLedgers)->where('fiscalYearId',$previousPreviousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); } else{ $cashInHandForPreviousFiscalYear = 0; } } else{ $cashInHandForCurrentFiscalYear = 0; $cashInHandForPreviousFiscalYear = 0; } if ($previousfiscalYearId!=null) { $cashInBankForCurrentFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$bankTypeLedgers)->where('fiscalYearId',$previousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); if ($previousPreviousfiscalYearId!=null) { $cashInBankForPreviousFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$bankTypeLedgers)->where('fiscalYearId',$previousPreviousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); } else{ $cashInBankForPreviousFiscalYear = 0; } } else{ $cashInBankForCurrentFiscalYear = 0; $cashInBankForPreviousFiscalYear = 0; } //Transaction $previousFiscalYearCashDebit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['previousfiscalYearVouchers'])->whereIn('debitAcc',$cashTypeLedgers)->sum('amount'); $previousFiscalYearCashCredit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['previousfiscalYearVouchers'])->whereIn('creditAcc',$cashTypeLedgers)->sum('amount'); $previousFiscalYearCash = $previousFiscalYearCashDebit - $previousFiscalYearCashCredit; $previousFiscalYearBankDebit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['previousfiscalYearVouchers'])->whereIn('debitAcc',$bankTypeLedgers)->sum('amount'); $previousFiscalYearBankCredit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['previousfiscalYearVouchers'])->whereIn('creditAcc',$bankTypeLedgers)->sum('amount'); $previousFiscalYearBank = $previousFiscalYearBankDebit - $previousFiscalYearBankCredit; $currentFiscalYearCahDebit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['vouchers'])->whereIn('debitAcc',$cashTypeLedgers)->sum('amount'); $currentFiscalYearCashCredit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['vouchers'])->whereIn('creditAcc',$cashTypeLedgers)->sum('amount'); $currentFiscalYearCash = $currentFiscalYearCahDebit - $currentFiscalYearCashCredit; $currentFiscalYearBankDebit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['vouchers'])->whereIn('debitAcc',$bankTypeLedgers)->sum('amount'); $currentFiscalYearBankCredit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['vouchers'])->whereIn('creditAcc',$bankTypeLedgers)->sum('amount'); $currentFiscalYearBank = $currentFiscalYearBankDebit - $currentFiscalYearBankCredit; //End Transaction if ($data['roundUpSelected']==1) { echo " ASSET ". " ".str_repeat(' ', (4))."CLOSING BALANCE ".number_format($cashInHandForPreviousFiscalYear+$previousFiscalYearCash+$cashInBankForPreviousFiscalYear+$previousFiscalYearBank,2)." ".number_format($cashInHandForCurrentFiscalYear+$currentFiscalYearCash+$cashInBankForCurrentFiscalYear+$currentFiscalYearBank,2)." ". " ".str_repeat(' ', (4*2))."CASH IN HAND ".number_format($cashInHandForPreviousFiscalYear+$previousFiscalYearCash,2)." ".number_format($cashInHandForCurrentFiscalYear+$currentFiscalYearCash,2)." ". " ".str_repeat(' ', (4*2))."CASH IN BANK ".number_format($cashInBankForPreviousFiscalYear+$previousFiscalYearBank,2)." ".number_format($cashInBankForCurrentFiscalYear+$currentFiscalYearBank,2)." " ; } else{ echo " ASSET ". " ".str_repeat(' ', (4))."CLOSING BALANCE ".number_format($cashInHandForPreviousFiscalYear+$previousFiscalYearCash+$cashInBankForPreviousFiscalYear+$previousFiscalYearBank,2,'.','')." ".number_format($cashInHandForCurrentFiscalYear+$currentFiscalYearCash+$cashInBankForCurrentFiscalYear+$currentFiscalYearBank,2,'.','')." ". " ".str_repeat(' ', (4*2))."CASH IN HAND ".number_format($cashInHandForPreviousFiscalYear+$previousFiscalYearCash,2,'.','')." ".number_format($cashInHandForCurrentFiscalYear+$currentFiscalYearCash,2,'.','')." ". " ".str_repeat(' ', (4*2))."CASH IN BANK ".number_format($cashInBankForPreviousFiscalYear+$previousFiscalYearBank,2,'.','')." ".number_format($cashInBankForCurrentFiscalYear+$currentFiscalYearBank,2,'.','')." " ; } //var_dump(); } // IF Search By Current Year elseif ($data['searchMethodSelected']==2) { if ($previousfiscalYearId!=null) { $cashInHandForCurrentFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$cashTypeLedgers)->where('fiscalYearId',$previousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); } else{ $cashInHandForCurrentFiscalYear = 0; } if ($previousfiscalYearId!=null) { $cashInBankForCurrentFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$bankTypeLedgers)->where('fiscalYearId',$previousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); } else{ $cashInBankForCurrentFiscalYear = 0; } $obThisMonth = $cashInHandForCurrentFiscalYear+$data['thisMonthTransactionOfBankTypeDebit']-$data['thisMonthTransactionOfBankTypeCredit']+$cashInBankForCurrentFiscalYear+$data['thisMonthTransactionOfBankTypeDebit']-$data['thisMonthTransactionOfBankTypeCredit']; $obThisYear = $cashInHandForCurrentFiscalYear+$cashInBankForCurrentFiscalYear; //Transaction $thisMonthCashDebit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['thisMonthVoucherIds'])->whereIn('debitAcc',$cashTypeLedgers)->sum('amount'); $thisMonthCashCredit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['thisMonthVoucherIds'])->whereIn('creditAcc',$cashTypeLedgers)->sum('amount'); $thisMonthCash = $thisMonthCashDebit - $thisMonthCashCredit; $thisMonthBankDebit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['thisMonthVoucherIds'])->whereIn('debitAcc',$bankTypeLedgers)->sum('amount'); $thisMonthBankCredit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['thisMonthVoucherIds'])->whereIn('creditAcc',$bankTypeLedgers)->sum('amount'); $thisMonthBank = $thisMonthBankDebit - $thisMonthBankCredit; $currentFiscalYearCahDebit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['vouchers'])->whereIn('debitAcc',$cashTypeLedgers)->sum('amount'); $currentFiscalYearCashCredit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['vouchers'])->whereIn('creditAcc',$cashTypeLedgers)->sum('amount'); $currentFiscalYearCash = $currentFiscalYearCahDebit - $currentFiscalYearCashCredit; $currentFiscalYearBankDebit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['vouchers'])->whereIn('debitAcc',$bankTypeLedgers)->sum('amount'); $currentFiscalYearBankCredit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['vouchers'])->whereIn('creditAcc',$bankTypeLedgers)->sum('amount'); $currentFiscalYearBank = $currentFiscalYearBankDebit - $currentFiscalYearBankCredit; //End Transaction if ($data['roundUpSelected']==1) { echo " ASSET ". " ".str_repeat(' ', (4))."CLOSING BALANCE ".number_format($obThisMonth+$thisMonthCash+$thisMonthBank,2)." ".number_format($obThisYear+$currentFiscalYearCash+$currentFiscalYearBank,2)." ".number_format($obThisYear+$currentFiscalYearCash+$currentFiscalYearBank,2)." ". " ".str_repeat(' ', (4*2))."CASH IN HAND ".number_format($cashInHandForCurrentFiscalYear+$data['thisMonthTransactionOfBankTypeDebit']-$data['thisMonthTransactionOfBankTypeCredit']+$thisMonthCash,2)." ".number_format($cashInHandForCurrentFiscalYear+$currentFiscalYearCash,2)." ".number_format($cashInHandForCurrentFiscalYear+$currentFiscalYearCash,2)." ". " ".str_repeat(' ', (4*2))."CASH IN BANK ".number_format($cashInBankForCurrentFiscalYear+$data['thisMonthTransactionOfBankTypeDebit']-$data['thisMonthTransactionOfBankTypeCredit']+$thisMonthBank,2)." ".number_format($cashInBankForCurrentFiscalYear+$currentFiscalYearBank,2)." ".number_format($cashInBankForCurrentFiscalYear+$currentFiscalYearBank,2)." " ; } else{ echo " ASSET ". " ".str_repeat(' ', (4))."CLOSING BALANCE ".number_format($obThisMonth+$thisMonthCash+$thisMonthBank,2,'.','')." ".number_format($obThisYear+$currentFiscalYearCash+$currentFiscalYearBank,2)." ".number_format($obThisYear+$currentFiscalYearCash+$currentFiscalYearBank,2,'.','')." ". " ".str_repeat(' ', (4*2))."CASH IN HAND ".number_format($cashInHandForCurrentFiscalYear+$data['thisMonthTransactionOfBankTypeDebit']-$data['thisMonthTransactionOfBankTypeCredit']+$thisMonthCash,2,'.','')." ".number_format($cashInHandForCurrentFiscalYear+$currentFiscalYearCash,2,'.','')." ".number_format($cashInHandForCurrentFiscalYear+$currentFiscalYearCash,2,'.','')." ". " ".str_repeat(' ', (4*2))."CASH IN BANK ".number_format($cashInBankForCurrentFiscalYear+$data['thisMonthTransactionOfBankTypeDebit']-$data['thisMonthTransactionOfBankTypeCredit']+$thisMonthBank,2,'.','')." ".number_format($cashInBankForCurrentFiscalYear+$currentFiscalYearBank,2,'.','')." ".number_format($cashInBankForCurrentFiscalYear+$currentFiscalYearBank,2,'.','')." " ; } } // IF Search By Date Range elseif ($data['searchMethodSelected']==3) { if ($previousfiscalYearId!=null) { $cashInHandForCurrentFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$cashTypeLedgers)->where('fiscalYearId',$previousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); } else{ $cashInHandForCurrentFiscalYear = 0; } if ($previousfiscalYearId!=null) { $cashInBankForCurrentFiscalYear = DB::table('acc_opening_balance')->whereIn('ledgerId',$bankTypeLedgers)->where('fiscalYearId',$previousfiscalYearId)->where('projectId',$data['projectSelected'])->whereIn('projectTypeId',$data['projectTypeId'])->whereIn('branchId',$data['branchId'])->sum('balanceAmount'); } else{ $cashInBankForCurrentFiscalYear = 0; } $obThisPeriod = $cashInHandForCurrentFiscalYear+$data['thisPeriodTransactionOfCashTypeDebit']-$data['thisPeriodTransactionOfCashTypeCredit']+$cashInBankForCurrentFiscalYear+$data['thisPeriodTransactionOfBankTypeDebit']-$data['thisPeriodTransactionOfBankTypeCredit']; //Transaction $thisPeriodCashDebit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['thisPeriodVoucherIds'])->whereIn('debitAcc',$cashTypeLedgers)->sum('amount'); $thisPeriodCashCredit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['thisPeriodVoucherIds'])->whereIn('creditAcc',$cashTypeLedgers)->sum('amount'); $thisPeriodCash = $thisPeriodCashDebit - $thisPeriodCashCredit; $thisPeriodBankDebit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['thisPeriodVoucherIds'])->whereIn('debitAcc',$bankTypeLedgers)->sum('amount'); $thisPeriodBankCredit = DB::table('acc_voucher_details')->whereIn('voucherId',$data['thisPeriodVoucherIds'])->whereIn('creditAcc',$bankTypeLedgers)->sum('amount'); $thisPeriodBank = $thisPeriodBankDebit - $thisPeriodBankCredit; //End Transaction if ($data['roundUpSelected']==1) { echo " ASSET ". " ".str_repeat(' ', (4))."CLOSING BALANCE ".number_format($obThisPeriod+$thisPeriodCash+$thisPeriodBank,2)." ". " ".str_repeat(' ', (4*2))."CASH IN HAND ".number_format($cashInHandForCurrentFiscalYear+$data['thisPeriodTransactionOfCashTypeDebit']-$data['thisPeriodTransactionOfCashTypeCredit']+$thisPeriodCash,2)." ". " ".str_repeat(' ', (4*2))."CASH IN BANK ".number_format($cashInBankForCurrentFiscalYear+$data['thisPeriodTransactionOfBankTypeDebit']-$data['thisPeriodTransactionOfBankTypeCredit']+$thisPeriodBank,2)." " ; } else{ echo " ASSET ". " ".str_repeat(' ', (4))."CLOSING BALANCE ".number_format($obThisPeriod+$thisPeriodCash+$thisPeriodBank,2,'.','')." ". " ".str_repeat(' ', (4*2))."CASH IN HAND ".number_format($cashInHandForCurrentFiscalYear+$data['thisPeriodTransactionOfCashTypeDebit']-$data['thisPeriodTransactionOfCashTypeCredit']+$thisPeriodCash,2,'.','')." ". " ".str_repeat(' ', (4*2))."CASH IN BANK ".number_format($cashInBankForCurrentFiscalYear+$data['thisPeriodTransactionOfBankTypeDebit']-$data['thisPeriodTransactionOfBankTypeCredit']+$thisPeriodBank,2,'.','')." " ; } } } @endphp
{{-- Add Ledger --}}

Receipt Payment Statement

{{--
kxghixd
--}}
@php //echo var_dump($projectMatchedId); //echo var_dump($vouchers); // echo $projectSelected."
"; // echo $projectTypeSelected."
"; // echo $branchSelected."
"; //echo $fiscalYearId."
"; @endphp
{!! Form::open(['url' => 'receiptPaymentStatement','method' => 'get']) !!} @php $userBranchId = Auth::user()->branchId; @endphp @if($userBranchId==1)
{!! Form::label('', 'Project:', ['class' => 'control-label pull-left']) !!}
@endif @if($userBranchId==1)
{!! Form::label('', 'Pro. Type:', ['class' => 'control-label pull-left']) !!}
@endif @if($userBranchId==1)
{!! Form::label('', 'Branch:', ['class' => 'control-label pull-left']) !!}
@endif
{!! Form::label('', 'Voucher Type:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('voucherType',[''=>'Without JV',1=>'With JV',2=>'Only JV'],$voucherTypeSelected,['class'=>'form-control']) !!}
{!! Form::label('', 'Round Up:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('roundUp',[1=>'Yes',0=>'No'],$roundUpSelected,['class'=>'form-control']) !!}
{!! Form::label('depthLevel', 'Depth Level:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('depthLevel',[''=>'All',1=>'Level-1',2=>'Level-2',3=>'Level-3',4=>'Level-4'],$depthLevelSelected,['class'=>'form-control']) !!}
{!! Form::label('withZero', '\'0\' Balance:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('withZero',[''=>'Yes',1=>'No'],$withZeroSelected,['class'=>'form-control']) !!}
{!! Form::label('', 'Search By:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('searchMethod',['1'=>'Fiscal Year','2'=>'Current Year','3'=>'Date Range'],$searchMethodSelected,['id'=>'searchMethod','class'=>'form-control input-sm']) !!}
{!! Form::label('', ' ', ['class' => 'control-label']) !!}
{!! Form::text('dateFrom',$dateFromSelected,['id'=>'dateFrom','placeholder'=>'From','class'=>'form-control input-sm','readonly','style'=>'cursor:pointer']) !!}
{!! Form::text('dateTo',$dateToSelected,['id'=>'dateTo','placeholder'=>'To','class'=>'form-control input-sm','readonly','style'=>'cursor:pointer']) !!}
{!! Form::submit('Search',['id'=>'search','class'=>'btn btn-primary btn-xs','style'=>'font-size:15px;']) !!}
{!! Form::close() !!}
{{-- End Filtering Group --}} @if(!$firstRequest) @php if($branchSelected===0){ $selectedBranchName = "All Branches"; } else{ $selectedBranchName = DB::table('gnr_branch')->where('id',$branchSelected)->value('name'); } $selectedProjectName = DB::table('gnr_project')->where('id',$projectSelected)->value('name'); $selectedProjectTypeName = DB::table('gnr_project_type')->where('id',$projectTypeSelected)->value('name'); @endphp

@if($searchMethodSelected==1) @php $fiscalYearName = DB::table('gnr_fiscal_year')->where('id',$fiscalYearSelected)->value('name'); $curentFiscalYearStartDate = DB::table('gnr_fiscal_year')->where('id',$fiscalYearSelected)->value('fyStartDate'); $previousfiscalYearDate = strtotime($curentFiscalYearStartDate.' -1 year'); $Fdate = date('Y-m-d',$previousfiscalYearDate); $previousfiscalYear = DB::table('gnr_fiscal_year')->where('fyStartDate','=',$Fdate)->value('name'); @endphp @elseif($searchMethodSelected==2) @elseif($searchMethodSelected==3) @endif @php $data = array( 'searchMethodSelected' => $searchMethodSelected, 'fiscalYearSelected' => $fiscalYearSelected, 'startDate' => $startDate, 'endDate' => $endDate, 'thisMonthTransactionOfCashTypeDebit' => $thisMonthTransactionOfCashTypeDebit, 'thisMonthTransactionOfCashTypeCredit' => $thisMonthTransactionOfCashTypeCredit, 'thisMonthTransactionOfBankTypeDebit' => $thisMonthTransactionOfBankTypeDebit, 'thisMonthTransactionOfBankTypeCredit' => $thisMonthTransactionOfBankTypeCredit, 'thisPeriodTransactionOfCashTypeDebit' => $thisPeriodTransactionOfCashTypeDebit, 'thisPeriodTransactionOfCashTypeCredit' => $thisPeriodTransactionOfCashTypeCredit, 'thisPeriodTransactionOfBankTypeDebit' => $thisPeriodTransactionOfBankTypeDebit, 'thisPeriodTransactionOfBankTypeCredit' => $thisPeriodTransactionOfBankTypeCredit, 'previousfiscalYearVouchers' => $previousfiscalYearVouchers, 'vouchers' => $vouchers, 'thisMonthVoucherIds' => $thisMonthVoucherIds, 'thisPeriodVoucherIds' => $thisPeriodVoucherIds, 'roundUpSelected' => $roundUpSelected, 'projectSelected' => $projectSelected, 'projectTypeId' => $projectTypeId, 'branchId' => $branchId ); printOpeningBalance($data); @endphp {{-- Receipt --}} @if($searchMethodSelected==1) @elseif($searchMethodSelected==2) @elseif($searchMethodSelected==3) @endif @php $info = array( 'loopTrack' => $loopTrack, 'vouchers' => $vouchers, 'previousfiscalYearVouchers' => $previousfiscalYearVouchers, 'openingVouchers' => $openingVouchers, 'roundUpSelected' => $roundUpSelected, 'fiscalYearId' => $fiscalYearId, 'searchMethodSelected' => $searchMethodSelected, 'thisMonthVoucherIds' => $thisMonthVoucherIds, 'type' => $type, 'startDate' => $startDate, 'endDate' => $endDate ); @endphp @foreach($ledgers as $ledger) @if(in_array($ledger->id,$debitLedgerMatchedId))
Warning: Undefined variable $ledger in /home/shikkhaplus/public_html/resources_16_05_2024/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 1285

Warning: Undefined variable $info in /home/shikkhaplus/public_html/resources_16_05_2024/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 1285
@php $childId = $child->id; $openingDebit = 0; $openingCredit = 0; $currentDebit = 0; $currentCredit = 0; $thisMonthDebit = 0; $thisMonthCredit = 0; $previousFiscalYearDebit = 0; $previousFiscalYearCredit = 0; $debitSum = 0; $creditSum = 0; $openingDebitForCumulative = 0; $currentDebitForCumulative = 0; $cumulativeDebit = 0; $cumulativeCredit = 0; $openingCreditForCumulative = 0; $currentCreditForCumulative = 0; $amount = 0; if ($child->isGroupHead==0) { /*Get Data for Fiscal Year*/ if ($info['searchMethodSelected']==1) { } /*End Get Data for Fiscal Year*/ //Curent Debit Credit $currentDebit = DB::table('acc_voucher_details') ->where('debitAcc', $childId) ->whereIn('voucherId',$info['vouchers']) ->sum('amount'); $currentCredit = DB::table('acc_voucher_details') ->where('creditAcc', $childId) ->whereIn('voucherId',$info['vouchers']) ->sum('amount'); //Previous Year Debit Credit $previousFiscalYearDebit = DB::table('acc_voucher_details') ->where('debitAcc', $childId) ->whereIn('voucherId',$info['previousfiscalYearVouchers']) ->sum('amount'); $previousFiscalYearCredit = DB::table('acc_voucher_details') ->where('creditAcc', $childId) ->whereIn('voucherId',$info['previousfiscalYearVouchers']) ->sum('amount'); //End Previous Year Debit Credit //This Month Debit Credit $thisMonthDebit = DB::table('acc_voucher_details') ->where('debitAcc', $childId) ->whereIn('voucherId',$info['thisMonthVoucherIds']) ->sum('amount'); $thisMonthCredit = DB::table('acc_voucher_details') ->where('creditAcc', $childId) ->whereIn('voucherId',$info['thisMonthVoucherIds']) ->sum('amount'); //End This Month Debit Credit //cumulative $startDate = $info['startDate']; $endDate = $info['endDate']; $currectFiscalYearId = DB::table('gnr_fiscal_year')->where('fyStartDate','<=',$startDate)->where('fyEndDate','>=',$startDate)->value('id'); //previous fiscal year id $currentFiscalYearStartDate = DB::table('gnr_fiscal_year')->where('id',$currectFiscalYearId)->value('fyStartDate'); $dateToCompare = date('Y-m-d', strtotime('-1 day', strtotime($currentFiscalYearStartDate))); $previousfiscalYearId = DB::table('gnr_fiscal_year')->where('fyEndDate',$dateToCompare)->value('id'); if ($previousfiscalYearId!=null) { $openingDebitForCumulative = DB::table('acc_opening_balance')->where('ledgerId',$childId)->where('fiscalYearId',$previousfiscalYearId)->sum('debitAmount'); $openingCreditForCumulative = DB::table('acc_opening_balance')->where('ledgerId',$childId)->where('fiscalYearId',$previousfiscalYearId)->sum('creditAmount'); } $currentDebitForCumulative = DB::table('acc_voucher_details')->where('debitAcc',$childId)->sum('amount'); $currentCreditForCumulative = DB::table('acc_voucher_details')->where('creditAcc',$childId)->sum('amount'); $cumulativeDebit = $openingDebitForCumulative + $currentDebitForCumulative; $cumulativeCredit = $openingCreditForCumulative + $currentCreditForCumulative; //End cumulative } @endphp {{-- If RoundUp Selected --}} @if($info['roundUpSelected']==1) {{-- Fiscal Year --}} @if($info['searchMethodSelected']==1) {{-- Current Year --}} @elseif($info['searchMethodSelected']==2) {{-- Date Range --}} @elseif($info['searchMethodSelected']==3) @endif @else {{-- If RoundUp Not Selected --}} {{-- Fiscal Year --}} @if($info['searchMethodSelected']==1) {{-- Current Year --}} @elseif($info['searchMethodSelected']==2) {{-- Date Range --}} @elseif($info['searchMethodSelected']==3) @endif @endif
Warning: Attempt to read property "id" on null in /home/shikkhaplus/public_html/resources_16_05_2024/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 223

Warning: Undefined variable $ledger in /home/shikkhaplus/public_html/resources_16_05_2024/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 1289

Warning: Attempt to read property "isGroupHead" on null in /home/shikkhaplus/public_html/resources_16_05_2024/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 1289
@endif {{-- End foreach loop for Child1 --}} @endforeach {{-- End foreach loop for ledger --}} @if($searchMethodSelected==1) @elseif($searchMethodSelected==2) @elseif($searchMethodSelected==3) @endif @if($searchMethodSelected==1) @elseif($searchMethodSelected==2) @elseif($searchMethodSelected==3) @endif {{-- End Receipt --}} {{-- Payment --}} @if($searchMethodSelected==1) @elseif($searchMethodSelected==2) @elseif($searchMethodSelected==3) @endif @foreach($ledgers as $ledger) @if(in_array($ledger->id,$creditLedgerMatchedId))
Warning: Undefined variable $ledger in /home/shikkhaplus/public_html/resources_16_05_2024/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 1399
@php $childId = $child->id; $openingDebit = 0; $openingCredit = 0; $currentDebit = 0; $currentCredit = 0; $thisMonthDebit = 0; $thisMonthCredit = 0; $previousFiscalYearDebit = 0; $previousFiscalYearCredit = 0; $debitSum = 0; $creditSum = 0; $openingDebitForCumulative = 0; $currentDebitForCumulative = 0; $cumulativeDebit = 0; $cumulativeCredit = 0; $openingCreditForCumulative = 0; $currentCreditForCumulative = 0; $amount = 0; if ($child->isGroupHead==0) { /*Get Data for Fiscal Year*/ if ($info['searchMethodSelected']==1) { } /*End Get Data for Fiscal Year*/ //Curent Debit Credit $currentDebit = DB::table('acc_voucher_details') ->where('debitAcc', $childId) ->whereIn('voucherId',$info['vouchers']) ->sum('amount'); $currentCredit = DB::table('acc_voucher_details') ->where('creditAcc', $childId) ->whereIn('voucherId',$info['vouchers']) ->sum('amount'); //Previous Year Debit Credit $previousFiscalYearDebit = DB::table('acc_voucher_details') ->where('debitAcc', $childId) ->whereIn('voucherId',$info['previousfiscalYearVouchers']) ->sum('amount'); $previousFiscalYearCredit = DB::table('acc_voucher_details') ->where('creditAcc', $childId) ->whereIn('voucherId',$info['previousfiscalYearVouchers']) ->sum('amount'); //End Previous Year Debit Credit //This Month Debit Credit $thisMonthDebit = DB::table('acc_voucher_details') ->where('debitAcc', $childId) ->whereIn('voucherId',$info['thisMonthVoucherIds']) ->sum('amount'); $thisMonthCredit = DB::table('acc_voucher_details') ->where('creditAcc', $childId) ->whereIn('voucherId',$info['thisMonthVoucherIds']) ->sum('amount'); //End This Month Debit Credit //cumulative $startDate = $info['startDate']; $endDate = $info['endDate']; $currectFiscalYearId = DB::table('gnr_fiscal_year')->where('fyStartDate','<=',$startDate)->where('fyEndDate','>=',$startDate)->value('id'); //previous fiscal year id $currentFiscalYearStartDate = DB::table('gnr_fiscal_year')->where('id',$currectFiscalYearId)->value('fyStartDate'); $dateToCompare = date('Y-m-d', strtotime('-1 day', strtotime($currentFiscalYearStartDate))); $previousfiscalYearId = DB::table('gnr_fiscal_year')->where('fyEndDate',$dateToCompare)->value('id'); if ($previousfiscalYearId!=null) { $openingDebitForCumulative = DB::table('acc_opening_balance')->where('ledgerId',$childId)->where('fiscalYearId',$previousfiscalYearId)->sum('debitAmount'); $openingCreditForCumulative = DB::table('acc_opening_balance')->where('ledgerId',$childId)->where('fiscalYearId',$previousfiscalYearId)->sum('creditAmount'); } $currentDebitForCumulative = DB::table('acc_voucher_details')->where('debitAcc',$childId)->sum('amount'); $currentCreditForCumulative = DB::table('acc_voucher_details')->where('creditAcc',$childId)->sum('amount'); $cumulativeDebit = $openingDebitForCumulative + $currentDebitForCumulative; $cumulativeCredit = $openingCreditForCumulative + $currentCreditForCumulative; //End cumulative } @endphp {{-- If RoundUp Selected --}} @if($info['roundUpSelected']==1) {{-- Fiscal Year --}} @if($info['searchMethodSelected']==1) {{-- Current Year --}} @elseif($info['searchMethodSelected']==2) {{-- Date Range --}} @elseif($info['searchMethodSelected']==3) @endif @else {{-- If RoundUp Not Selected --}} {{-- Fiscal Year --}} @if($info['searchMethodSelected']==1) {{-- Current Year --}} @elseif($info['searchMethodSelected']==2) {{-- Date Range --}} @elseif($info['searchMethodSelected']==3) @endif @endif
Warning: Attempt to read property "id" on null in /home/shikkhaplus/public_html/resources_16_05_2024/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 223

Warning: Undefined variable $ledger in /home/shikkhaplus/public_html/resources_16_05_2024/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 1403

Warning: Attempt to read property "isGroupHead" on null in /home/shikkhaplus/public_html/resources_16_05_2024/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 1403
@endif {{-- End foreach loop for Child1 --}} @endforeach {{-- End foreach loop for ledger --}} @if($searchMethodSelected==1) @elseif($searchMethodSelected==2) @elseif($searchMethodSelected==3) @endif {{-- End Payment --}} @php printClosingBalance($data); @endphp @if($searchMethodSelected==1) @elseif($searchMethodSelected==2) @elseif($searchMethodSelected==3) @endif
ParticularsNotes FI Year
({{$previousfiscalYear}})
FI Year
({{$fiscalYearName}})
Notes This Month This Year CumulativeNotes Time Period
{{date('d-m-Y',strtotime($startDate))." to ".date('d-m-Y',strtotime($endDate))}}
Receipt
Receipt
Receipt

Warning: Trying to access array offset on value of type null in /home/shikkhaplus/public_html/resources_16_05_2024/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 14
                                
Warning: Attempt to read property "isGroupHead" on null in /home/shikkhaplus/public_html/resources_16_05_2024/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 43
@if($child->isGroupHead==1) {{strtoupper($child->name).' ['.$child->code.']'}} @else {{$child->name.' ['.$child->code.']'}} @endif
@if($info['type']=='receipt'){{number_format($previousFiscalYearDebit,2)}}@else {{number_format($previousFiscalYearCredit,2)}} @endif @if($info['type']=='receipt'){{number_format($currentDebit,2)}}@else {{number_format($currentCredit,2)}} @endif @if($info['type']=='receipt'){{number_format($thisMonthDebit,2)}}@else {{number_format($thisMonthCredit,2)}} @endif @if($info['type']=='receipt'){{number_format($currentDebit,2)}}@else {{number_format($currentCredit,2)}} @endif @if($info['type']=='receipt'){{number_format($cumulativeDebit,2)}}@else {{number_format($cumulativeCredit,2)}} @endif @if($info['type']=='receipt'){{number_format($currentDebit,2)}}@else {{number_format($currentCredit,2)}} @endif @if($info['type']=='receipt'){{number_format($previousFiscalYearDebit,2,'.','')}}@else {{number_format($previousFiscalYearCredit,2,'.','')}} @endif @if($info['type']=='receipt'){{number_format($currentDebit,2,'.','')}}@else {{number_format($currentCredit,2,'.','')}} @endif @if($info['type']=='receipt'){{number_format($thisMonthDebit,2,'.','')}}@else {{number_format($thisMonthCredit,2,'.','')}} @endif @if($info['type']=='receipt'){{number_format($currentDebit,2,'.','')}}@else {{number_format($currentCredit,2,'.','')}} @endif @if($info['type']=='receipt'){{number_format($cumulativeDebit,2,'.','')}}@else {{number_format($cumulativeCredit,2,'.','')}} @endif @if($info['type']=='receipt'){{number_format($currentDebit,2,'.','')}}@else {{number_format($currentCredit,2,'.','')}} @endif
Total Receipt Total Receipt Total Receipt
Total Total Total
Payment
Payment
Payment
    
Warning: Attempt to read property "isGroupHead" on null in /home/shikkhaplus/public_html/resources_16_05_2024/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 43
@if($child->isGroupHead==1) {{strtoupper($child->name).' ['.$child->code.']'}} @else {{$child->name.' ['.$child->code.']'}} @endif
@if($info['type']=='receipt'){{number_format($previousFiscalYearDebit,2)}}@else {{number_format($previousFiscalYearCredit,2)}} @endif @if($info['type']=='receipt'){{number_format($currentDebit,2)}}@else {{number_format($currentCredit,2)}} @endif @if($info['type']=='receipt'){{number_format($thisMonthDebit,2)}}@else {{number_format($thisMonthCredit,2)}} @endif @if($info['type']=='receipt'){{number_format($currentDebit,2)}}@else {{number_format($currentCredit,2)}} @endif @if($info['type']=='receipt'){{number_format($cumulativeDebit,2)}}@else {{number_format($cumulativeCredit,2)}} @endif @if($info['type']=='receipt'){{number_format($currentDebit,2)}}@else {{number_format($currentCredit,2)}} @endif @if($info['type']=='receipt'){{number_format($previousFiscalYearDebit,2,'.','')}}@else {{number_format($previousFiscalYearCredit,2,'.','')}} @endif @if($info['type']=='receipt'){{number_format($currentDebit,2,'.','')}}@else {{number_format($currentCredit,2,'.','')}} @endif @if($info['type']=='receipt'){{number_format($thisMonthDebit,2,'.','')}}@else {{number_format($thisMonthCredit,2,'.','')}} @endif @if($info['type']=='receipt'){{number_format($currentDebit,2,'.','')}}@else {{number_format($currentCredit,2,'.','')}} @endif @if($info['type']=='receipt'){{number_format($cumulativeDebit,2,'.','')}}@else {{number_format($cumulativeCredit,2,'.','')}} @endif @if($info['type']=='receipt'){{number_format($currentDebit,2,'.','')}}@else {{number_format($currentCredit,2,'.','')}} @endif
Total Payment Total Payment Total Payment
Total Total Total
@endif
{{-- Filtering --}}