@php $net_cash_flow_from_uses_of_cash_operating_activities_this_year = ($net_profit['this_year'] ?? 0) + ($total_clients['this_year'] ?? 0) + ($total_goods_in_warehouses['this_year'] ?? 0) + ($other_credit_balances['this_year'] ?? 0) + ($total_account_payable['this_year'] ?? 0); $net_cash_flow_from_uses_of_cash_operating_activities_last_year = ($net_profit['last_year'] ?? 0) + ($total_clients['last_year'] ?? 0) + ($total_goods_in_warehouses['last_year'] ?? 0) + ($other_credit_balances['last_year'] ?? 0) + ($total_account_payable['last_year'] ?? 0); @endphp @php $net_cash_used_in_investing_activities_this_year = $total_purchase_of_fixed_assets['this_year']; $net_cash_used_in_investing_activities_last_year = $total_purchase_of_fixed_assets['last_year']; @endphp @php $change_in_cash_during_the_year_for_this_year = $net_cash_flow_from_uses_of_cash_operating_activities_this_year + $net_cash_used_in_investing_activities_this_year; $change_in_cash_during_the_year_for_last_year = $net_cash_flow_from_uses_of_cash_operating_activities_last_year + $net_cash_used_in_investing_activities_last_year; @endphp
# {{ __("Statement") }} {{ now()->subYear()->year }} {{ now()->subYear()->subYear()->year }}
{{ __("Cash flows from operating activities") }}
1 {{ __("Net profit (loss)") }} {{ number_format(round($net_profit['this_year'] ?? 0), 0) }} {{ number_format(round($net_profit['last_year'] ?? 0), 0) }}
2 {{ __("Fixed assets depreciation and amortization") }} 0 0
{{ __("Operating cash flows before changes in working capital items") }} {{ number_format(round($net_profit['this_year'] ?? 0), 0) }} {{ number_format(round($net_profit['last_year'] ?? 0), 0) }}
3 {{ __("Decrease (increase) in debtors") }} {{ number_format(round($total_clients['this_year'] ?? 0), 0) }} {{ number_format(round($total_clients['last_year'] ?? 0), 0) }}
4 {{ __("Decrease (increase) in other debit balances") }} 0 0
5 {{ __("Decrease (increase) in inventory balances") }} {{ number_format(round($total_goods_in_warehouses['this_year'] ?? 0), 0) }} {{ number_format(round($total_goods_in_warehouses['last_year'] ?? 0), 0) }}
6 {{ __("Other credit balances") }} {{ number_format(round($other_credit_balances['this_year'] ?? 0), 0) }} {{ number_format(round($other_credit_balances['last_year'] ?? 0), 0) }}
7 {{ __("Accounts payable") }} {{ number_format(round($total_account_payable['this_year'] ?? 0), 0) }} {{ number_format(round($total_account_payable['last_year'] ?? 0), 0) }}
{{ __("Net cash flow from (uses of cash) operating activities") }} {{ number_format(round($net_cash_flow_from_uses_of_cash_operating_activities_this_year), 0) }} {{ number_format(round($net_cash_flow_from_uses_of_cash_operating_activities_last_year), 0) }}
{{ __("Cash flows from investing activities") }}
8 {{ __("Purchase of fixed assets") }} {{ number_format(round($total_purchase_of_fixed_assets['this_year'] ?? 0), 0) }} {{ number_format(round($total_purchase_of_fixed_assets['last_year'] ?? 0), 0) }}
{{ __("Net cash used in investing activities") }} {{ number_format(round($total_purchase_of_fixed_assets['this_year'] ?? 0), 0) }} {{ number_format(round($total_purchase_of_fixed_assets['last_year'] ?? 0), 0) }}
{{ __("Cash flows from financing operations") }}
9 {{ __("Partners liabilities") }} 0 0
10 {{ __("Net (uses) cash flows from financing activities") }} 0 0
11 {{ __("Change in cash during the year") }} {{ number_format(round($net_cash_flow_from_uses_of_cash_operating_activities_this_year + $net_cash_used_in_investing_activities_this_year), 0) }} {{ number_format(round($net_cash_flow_from_uses_of_cash_operating_activities_last_year + $net_cash_used_in_investing_activities_last_year), 0) }}
12 {{ __("Cash on hand and at banks at the beginning of the year") }} {{ number_format(round($cash_on_hand_and_at_banks_at_the_beginning_of_the_year[0]->balance_last_year + $change_in_cash_during_the_year_for_last_year), 0) }} {{ number_format(round($cash_on_hand_and_at_banks_at_the_beginning_of_the_year[0]->balance_last_year), 0) }}
13 {{ __("Cash on hand and at banks at the end of the year") }} {{ number_format(round($cash_on_hand_and_at_banks_at_the_beginning_of_the_year[0]->balance_this_year + $change_in_cash_during_the_year_for_this_year), 0) }} {{ number_format(round($cash_on_hand_and_at_banks_at_the_beginning_of_the_year[0]->balance_last_year + $change_in_cash_during_the_year_for_last_year), 0) }}