@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
Receipt Payment Statement
{{--
kxghixd
--}}
@php
//echo var_dump($projectMatchedId);
//echo var_dump($vouchers);
// echo $projectSelected."
";
// echo $projectTypeSelected."
";
// echo $branchSelected."
";
//echo $fiscalYearId."
";
@endphp
{{-- 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
Ambala Foundation
House # 62, Block # Ka, Piciculture Housing Society, Shyamoli, Dhaka-1207
Receipt Payment Statement
{{--
{{$selectedBranchName}}
--}}
{{date('F d, Y',strtotime($endDate))}}
Branch Name : @php
if($selectedBranchName==null){
echo "All";
}
else{
echo $selectedBranchName;
}
@endphp
Reporting Peroid : {{date('d-m-Y',strtotime($startDate))." to ".date('d-m-Y',strtotime($endDate))}}
Project Name : @php
if($selectedProjectName==null){
echo "All";
}
else{
echo $selectedProjectName;
}
@endphp
Print Date : {{date('F d,Y')}}
Project Type : @php
if($selectedProjectTypeName==null){
echo "All";
}
else{
echo $selectedProjectTypeName;
}
@endphp
| Particulars |
@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
Notes |
FI Year ({{$previousfiscalYear}}) |
FI Year ({{$fiscalYearName}}) |
@elseif($searchMethodSelected==2)
Notes |
This Month |
This Year |
Cumulative |
@elseif($searchMethodSelected==3)
Notes |
Time Period {{date('d-m-Y',strtotime($startDate))." to ".date('d-m-Y',strtotime($endDate))}} |
@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)
| Receipt |
@elseif($searchMethodSelected==2)
| Receipt |
@elseif($searchMethodSelected==3)
| Receipt |
@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/demo_bk/resources/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 1285
Warning: Undefined variable $info in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 1285
Warning: Trying to access array offset on value of type null in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 14
Warning: Attempt to read property "isGroupHead" on null in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 43
@if($child->isGroupHead==1)
{{strtoupper($child->name).' ['.$child->code.']'}}
@else
{{$child->name.' ['.$child->code.']'}}
@endif
|
@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)
|
@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 |
{{-- Current Year --}}
@elseif($info['searchMethodSelected']==2)
|
@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 |
{{-- Date Range --}}
@elseif($info['searchMethodSelected']==3)
|
@if($info['type']=='receipt'){{number_format($currentDebit,2)}}@else {{number_format($currentCredit,2)}} @endif |
@endif
@else
{{-- If RoundUp Not Selected --}}
{{-- Fiscal Year --}}
@if($info['searchMethodSelected']==1)
|
@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 |
{{-- Current Year --}}
@elseif($info['searchMethodSelected']==2)
|
@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 |
{{-- Date Range --}}
@elseif($info['searchMethodSelected']==3)
|
@if($info['type']=='receipt'){{number_format($currentDebit,2,'.','')}}@else {{number_format($currentCredit,2,'.','')}} @endif |
@endif
@endif
Warning: Attempt to read property "id" on null in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 223
Warning: Undefined variable $ledger in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 1289
Warning: Attempt to read property "isGroupHead" on null in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 1289
@endif {{-- End foreach loop for Child1 --}}
@endforeach {{-- End foreach loop for ledger --}}
@if($searchMethodSelected==1)
| Total Receipt |
|
|
@elseif($searchMethodSelected==2)
Total Receipt |
|
|
|
@elseif($searchMethodSelected==3)
Total Receipt |
|
@endif
@if($searchMethodSelected==1)
| Total |
|
|
@elseif($searchMethodSelected==2)
Total |
|
|
|
@elseif($searchMethodSelected==3)
Total |
|
@endif
{{-- End Receipt --}}
{{-- Payment --}}
@if($searchMethodSelected==1)
| Payment |
@elseif($searchMethodSelected==2)
| Payment |
@elseif($searchMethodSelected==3)
| Payment |
@endif
@foreach($ledgers as $ledger)
@if(in_array($ledger->id,$creditLedgerMatchedId))
Warning: Undefined variable $ledger in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 1399
Warning: Attempt to read property "isGroupHead" on null in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 43
@if($child->isGroupHead==1)
{{strtoupper($child->name).' ['.$child->code.']'}}
@else
{{$child->name.' ['.$child->code.']'}}
@endif
|
@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)
|
@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 |
{{-- Current Year --}}
@elseif($info['searchMethodSelected']==2)
|
@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 |
{{-- Date Range --}}
@elseif($info['searchMethodSelected']==3)
|
@if($info['type']=='receipt'){{number_format($currentDebit,2)}}@else {{number_format($currentCredit,2)}} @endif |
@endif
@else
{{-- If RoundUp Not Selected --}}
{{-- Fiscal Year --}}
@if($info['searchMethodSelected']==1)
|
@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 |
{{-- Current Year --}}
@elseif($info['searchMethodSelected']==2)
|
@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 |
{{-- Date Range --}}
@elseif($info['searchMethodSelected']==3)
|
@if($info['type']=='receipt'){{number_format($currentDebit,2,'.','')}}@else {{number_format($currentCredit,2,'.','')}} @endif |
@endif
@endif
Warning: Attempt to read property "id" on null in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 223
Warning: Undefined variable $ledger in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 1403
Warning: Attempt to read property "isGroupHead" on null in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/reports/consolidatedReceiptPaymentStatement.blade.php on line 1403
@endif {{-- End foreach loop for Child1 --}}
@endforeach {{-- End foreach loop for ledger --}}
@if($searchMethodSelected==1)
| Total Payment |
|
|
@elseif($searchMethodSelected==2)
Total Payment |
|
|
|
@elseif($searchMethodSelected==3)
Total Payment |
|
@endif
{{-- End Payment --}}
@php
printClosingBalance($data);
@endphp
@if($searchMethodSelected==1)
| Total |
|
|
@elseif($searchMethodSelected==2)
Total |
|
|
|
@elseif($searchMethodSelected==3)
Total |
|
@endif
@endif
{{-- Filtering --}}