@use('App\Services\Date') @extends('reports::layouts.master') @section('title', __('reports::reports.Cash Flow')) @section('page-link') @endsection @section('section_title') @lang('reports::reports.Cash Flow') @endsection @section('action_buttons')
@if(LaravelLocalization::getCurrentLocale() === 'en') @else @endif @isset($data['accounts']) @can('reports.cash-flow.export') @endcan @endisset
@endsection @section('form-open-tag')
@lang('Filter')
@error('fiscal_year_id') @enderror @error('from') @enderror @error('to') @enderror
@endsection @section('koolreport') @isset($data['accounts'])

@lang('reports::reports.Cash Flow')

{{ $data['companyName'] }}

{{$data['dates']['from']}} @lang('to') {{$data['dates']['to']}}

@foreach($data['categories'] as $category) @foreach($category['accounts'] as $account) @if($account['total']!=0) @php if(isset($account['tree'])){ $tree=$account['tree']['directChildren']; } @endphp @isset($account['tree']) {!! generateHTMLForBalanceSheet($tree,1) !!} @endisset @if($account['current_balance']!=$account['total']) @endif @endif @endforeach @if(!$loop->last) @endif @endforeach
@lang('reports::reports.total')
@lang('reports::reports.net_earnings') @if($data['netIncome'] < 0) ({{number_format(abs($data['netIncome']),2)}}) @else {{number_format($data['netIncome'],2)}} @endif
{{ $category['section_name'] }}
{{$account['code']}} - {{$account['name']}} @if($account['current_balance'] < 0) ({{number_format(abs($account['current_balance']),2)}}) @else {{number_format($account['current_balance'],2)}} @endif
@lang('reports::reports.total') {{$account['name']}} @if($account['total'] < 0) ({{number_format(abs($account['total']),2)}}) @else {{number_format($account['total'],2)}} @endif
@lang('reports::reports.total') {{ $category['name'] }} @if($category['total'] < 0) ({{number_format(abs($category['total']),2)}}) @else {{ number_format($category['total'],2) }} @endif

@lang('reports::reports.cash_flow.net_cash_flow') @if($data['totalCashFlow'] < 0) ({{number_format(abs($data['totalCashFlow']),2)}}) @else {{number_format($data['totalCashFlow'],2)}} @endif
@lang('reports::reports.accrual_basis') {{ Date::format(now(), 'datetime') }}
@endisset @endsection @section('extra_scripts_filter_by_date') @endsection