@include('partials.reportHead.index') {{-- search type fiscal year --}} @if ($searchType == 'fiscalYear') {{-- section A --}} {{-- surplus --}} {{-- ///////////////non cash item expenses/////////////////// --}} @foreach ($allCashNonCashArr as $segmentType => $segmentLedgerArray) {!! $treeView[$segmentType] !!} {{-- non cash expense --}} @if ($segmentType == 'non-cash-expense') @php $subTotalNonCashExpensePY = $subTotal[$segmentType]['previousYear']; $subTotalNonCashExpenseCY = $subTotal[$segmentType]['currentYear']; @endphp {{-- non cash income --}} @elseif ($segmentType == 'non-cash-income') @php $subTotalNonCashIncomePY = $subTotal[$segmentType]['previousYear']; $subTotalNonCashIncomeCY = $subTotal[$segmentType]['currentYear']; @endphp {{-- cash operating activities --}} @elseif ($segmentType == 'cash-operating') @php $subTotalCashOperatingPY = $subTotal[$segmentType]['previousYear']; $subTotalCashOperatingCY = $subTotal[$segmentType]['currentYear']; $netCashOperatingPY = $previousYearSurplus + $subTotalNonCashExpensePY + $subTotalCashOperatingPY + $subTotalNonCashIncomePY; $netCashOperatingCY = $currentYearSurplus + $subTotalNonCashExpenseCY + $subTotalCashOperatingCY + $subTotalNonCashIncomeCY; @endphp {{-- cash investing activities --}} @elseif ($segmentType == 'cash-investing') @php $netCashInvestingPY = $subTotal[$segmentType]['previousYear']; $netCashInvestingCY = $subTotal[$segmentType]['currentYear']; @endphp @elseif ($segmentType == 'cash-financing') @php $netCashFinancingPY = $subTotal[$segmentType]['previousYear']; $netCashFinancingCY = $subTotal[$segmentType]['currentYear']; $netCashIncreaseDecreasePY = $netCashOperatingPY + $netCashInvestingPY + $netCashFinancingPY; $netCashIncreaseDecreaseCY = $netCashOperatingCY + $netCashInvestingCY + $netCashFinancingCY; @endphp @endif @endforeach {{-- array loop--}} {{-- cash and bank balance --}} {{-- search type current year --}} @elseif ($searchType == 'currentYear') {{-- section A --}} {{-- surplus --}} {{-- ///////////////non cash item expenses/////////////////// --}} @foreach ($allCashNonCashArr as $segmentType => $segmentLedgerArray) {!! $treeView[$segmentType] !!} {{-- non cash expense --}} @if ($segmentType == 'non-cash-expense') @php $subTotalNonCashExpenseThisMonth = $subTotal[$segmentType]['thisMonth']; $subTotalNonCashExpenseThisYear = $subTotal[$segmentType]['thisYear']; $subTotalNonCashExpenseCumulative = $subTotal[$segmentType]['cumulative']; @endphp {{-- non cash income --}} @elseif ($segmentType == 'non-cash-income') @php $subTotalNonCashIncomeThisMonth = $subTotal[$segmentType]['thisMonth']; $subTotalNonCashIncomeThisYear = $subTotal[$segmentType]['thisYear']; $subTotalNonCashIncomeCumulative = $subTotal[$segmentType]['cumulative']; @endphp {{-- cash operating activities --}} @elseif ($segmentType == 'cash-operating') @php $subTotalCashOperatingThisMonth = $subTotal[$segmentType]['thisMonth']; $subTotalCashOperatingThisYear = $subTotal[$segmentType]['thisYear']; $subTotalCashOperatingCumulative = $subTotal[$segmentType]['cumulative']; $netCashOperatingThisMonth = $thisMonthSurplus + $subTotalNonCashExpenseThisMonth + $subTotalCashOperatingThisMonth + $subTotalNonCashIncomeThisMonth; $netCashOperatingThisYear = $thisYearSurplus + $subTotalNonCashExpenseThisYear + $subTotalCashOperatingThisYear + $subTotalNonCashIncomeThisYear; $netCashOperatingCumulative = $cumulativeSurplus + $subTotalNonCashExpenseCumulative + $subTotalCashOperatingCumulative + $subTotalNonCashIncomeCumulative; @endphp {{-- cash investing activities --}} @elseif ($segmentType == 'cash-investing') @php $netCashInvestingThisMonth = $subTotal[$segmentType]['thisMonth']; $netCashInvestingThisYear = $subTotal[$segmentType]['thisYear']; $netCashInvestingCumulative = $subTotal[$segmentType]['cumulative']; @endphp @elseif ($segmentType == 'cash-financing') @php $netCashFinancingThisMonth = $subTotal[$segmentType]['thisMonth']; $netCashFinancingThisYear = $subTotal[$segmentType]['thisYear']; $netCashFinancingCumulative = $subTotal[$segmentType]['cumulative']; $netCashIncreaseDecreaseThisMonth = $netCashOperatingThisMonth + $netCashInvestingThisMonth + $netCashFinancingThisMonth; $netCashIncreaseDecreaseThisYear = $netCashOperatingThisYear + $netCashInvestingThisYear + $netCashFinancingThisYear; $netCashIncreaseDecreaseCumulative = $netCashOperatingCumulative + $netCashInvestingCumulative + $netCashFinancingCumulative; @endphp @endif @endforeach {{-- array loop--}} {{-- cash and bank balance --}} @endif
Particulars Previous Year
({{ $cashFlowStatementLoadTableArr['previousFiscalYearName'] }})
Current Year
({{ $cashFlowStatementLoadTableArr['thisFiscalYearName'] }})
A. Cash flows from operating activities
Surplus for the period {{ number_format($previousYearSurplus, 2) }} {{ number_format($currentYearSurplus, 2) }}
Add: Amount considered as non cash items expenses
Sub-total of non cash items expenses {{ number_format($subTotalNonCashExpensePY, 2) }} {{ number_format($subTotalNonCashExpenseCY, 2) }}
Less: Amount considered as non cash items income
Sub-total of non cash items income {{ number_format($subTotalNonCashIncomePY, 2) }} {{ number_format($subTotalNonCashIncomeCY, 2) }}
Net Cash used in operating activities {{ number_format($netCashOperatingPY, 2) }} {{ number_format($netCashOperatingCY, 2) }}
B. Cash flows from investing ativities
Net Cash used in investing activities {{ number_format($netCashInvestingPY, 2) }} {{ number_format($netCashInvestingCY, 2) }}
C. Cash flows from financing ativities
Net Cash used in financing activities {{ number_format($netCashFinancingPY, 2) }} {{ number_format($netCashFinancingCY, 2) }}
D. Net Cash increase/decrease (A+B+C) {{ number_format($netCashIncreaseDecreasePY, 2) }} {{ number_format($netCashIncreaseDecreaseCY, 2) }}
Add. Cash and Bank balance at the begining {{ number_format($previousYearOpeningBalanceCashNBank, 2) }} {{ number_format($currentYearOpeningBalanceCashNBank, 2) }}
Cash and Bank balance at the end {{ number_format($netCashIncreaseDecreasePY + $previousYearOpeningBalanceCashNBank, 2) }} {{ number_format($netCashIncreaseDecreaseCY + $currentYearOpeningBalanceCashNBank, 2) }}
Particulars This Month This Year Cumulative
A. Cash flows from operating activities
Surplus for the period {{ number_format($thisMonthSurplus, 2) }} {{ number_format($thisYearSurplus, 2) }} {{ number_format($cumulativeSurplus, 2) }}
Add: Amount considered as non cash items expenses
Sub-total of non cash items expenses {{ number_format($subTotalNonCashExpenseThisMonth, 2) }} {{ number_format($subTotalNonCashExpenseThisYear, 2) }} {{ number_format($subTotalNonCashExpenseCumulative, 2) }}
Less: Amount considered as non cash items income
Sub-total of non cash items income {{ number_format($subTotalNonCashIncomeThisMonth, 2) }} {{ number_format($subTotalNonCashIncomeThisYear, 2) }} {{ number_format($subTotalNonCashIncomeCumulative, 2) }}
Net Cash used in operating activities {{ number_format($netCashOperatingThisMonth, 2) }} {{ number_format($netCashOperatingThisYear, 2) }} {{ number_format($netCashOperatingCumulative, 2) }}
B. Cash flows from investing ativities
Net Cash used in investing activities {{ number_format($netCashInvestingThisMonth, 2) }} {{ number_format($netCashInvestingThisYear, 2) }} {{ number_format($netCashInvestingCumulative, 2) }}
C. Cash flows from financing ativities
Net Cash used in financing activities {{ number_format($netCashFinancingThisMonth, 2) }} {{ number_format($netCashFinancingThisYear, 2) }} {{ number_format($netCashFinancingCumulative, 2) }}
D. Net Cash increase/decrease (A+B+C) {{ number_format($netCashIncreaseDecreaseThisMonth, 2) }} {{ number_format($netCashIncreaseDecreaseThisYear, 2) }} {{ number_format($netCashIncreaseDecreaseCumulative, 2) }}
Add. Cash and Bank balance at the begining {{ number_format($thisMonthOpeningCashNBankBalance, 2) }} {{ number_format($thisYearOpeningCashNBankBalance, 2) }} {{ number_format($cumOpeningCashNBankBalance, 2) }}
Cash and Bank balance at the end {{ number_format($netCashIncreaseDecreaseThisMonth + $thisMonthOpeningCashNBankBalance, 2) }} {{ number_format($netCashIncreaseDecreaseThisYear + $thisYearOpeningCashNBankBalance, 2) }} {{ number_format($netCashIncreaseDecreaseCumulative + $cumOpeningCashNBankBalance, 2) }}
@php $newArr = json_encode($monthEndUnprocessedBranchesByMonth); @endphp {{-- {!! $newArr = $monthEndUnprocessedBranches->toJson() !!} --}}
@if ($withZero == 0) @endif