{{ get_business_name() }}

{{ trans_choice('accounting::general.cash_flow', 1) }}

@php $parent2_index = 1; @endphp @foreach ($account_types as $account_type) @php $parent1_index = $parent2_index; @endphp @php $parent2_index++; $chart_of_account_type = $data->where('account_type', $account_type); @endphp @foreach ($chart_of_account_type as $chart_of_account) @php $parent2_index++; @endphp @endforeach @endforeach
@if (!empty($location_id) && !empty($data->first()->business_location)) {{ trans_choice('accounting::lang.business_location', 1) }}: {{ $data->first()->business_location }} @endif {{ trans_choice('accounting::lang.start_date', 1) }}: {{ readable_date($start_date) }} {{ trans_choice('accounting::lang.end_date', 1) }}: {{ readable_date($end_date) }}
{{ trans_choice('accounting::lang.account', 1) }} {{ trans_choice('accounting::general.gl_code', 1) }} {{ trans_choice('accounting::general.debit', 1) }} {{ trans_choice('accounting::general.credit', 1) }} {{ trans_choice('accounting::general.balance', 1) }}
{{ ucfirst($account_type) }}
{{ $chart_of_account->name }} {{ $chart_of_account->gl_code }} {{ number_format($chart_of_account->debit, 2) }} {{ number_format($chart_of_account->credit, 2) }} {{ number_format($chart_of_account->credit - $chart_of_account->debit, 2) }}
{{ trans('accounting::lang.total_for') }} {{ $account_type }} {{ number_format($chart_of_account_type->sum('debit'), 2) }} {{ number_format($chart_of_account_type->sum('credit'), 2) }} {{ number_format($chart_of_account_type->sum('credit') - $chart_of_account_type->sum('debit'), 2) }}
{{ trans_choice('accounting::general.net_cash_flow', 1) }} {{ trans('accounting::general.net_cash_flow_formula') }} {{ number_format($data->sum('debit'), 2) }} {{ number_format($data->sum('credit'), 2) }} {{ number_format($data->sum('credit') - $data->sum('debit'), 2) }}