@extends('accounting::layouts.app') @section('title') {{ trans_choice('accounting::report.accounts_receivable_ageing_summary', 1) }} @endsection @section('css') @include('accounting::report.partials.report_css') @endsection @section('content') @include('accounting::layouts.nav') @component('accounting::components.section_header') @slot('title') {{ trans_choice('accounting::general.accounting', 1) }} {{ trans_choice('accounting::lang.report', 2) }} @endslot @slot('subtitle') {{ trans_choice('accounting::report.accounts_receivable_ageing_summary', 1) }} @endslot @endcomponent
@component('accounting::components.box') @slot('header')
@component('accounting::components.download_action_button', [ 'url' => Request::url(), 'filters' => http_build_query($_GET), ]) @endcomponent
@endslot @slot('body')

{{ trans_choice('accounting::report.accounts_receivable_ageing_summary', 1) }} @if (!empty($start_date)) {{ trans('accounting::lang.for_period') }}: {{ readable_date($start_date) }} {{ trans('accounting::lang.to') }} {{ readable_date($end_date) }} @endif

{{ trans_choice('accounting::lang.clear', 1) }}!
@endslot @endcomponent @component('accounting::components.box') @slot('body')

{{ trans_choice('accounting::report.accounts_receivable_ageing_summary', 1) }}

@component('accounting::components.tree_view_table') {{ trans_choice('accounting::lang.account', 1) }} {{ trans('accounting::lang.current') }} {{ trans('accounting::general.one_to_thirty') }} {{ trans('accounting::general.thirty_one_to_sixty') }} {{ trans('accounting::general.sixty_one_to_ninety') }} {{ trans('accounting::general.ninety_one_and_over') }} {{ trans_choice('accounting::lang.amount', 1) }} @foreach ($chart_of_accounts as $chart_of_account_name => $chart_of_account_id) @php $chart_of_account = $data->where('chart_of_account_id', $chart_of_account_id); @endphp {{ $chart_of_account_name }} {{ $chart_of_account->where('transaction_date', $days_past->today)->sum('amount_due') }} {{ $chart_of_account->whereBetween('transaction_date', [$days_past->thirty_days_ago, $days_past->yesterday])->sum('amount_due') }} {{ $chart_of_account->whereBetween('transaction_date', [$days_past->sixty_days_ago, $days_past->thirty_one_days_ago])->sum('amount_due') }} {{ $chart_of_account->whereBetween('transaction_date', [$days_past->ninety_days_ago, $days_past->sixty_one_days_ago])->sum('amount_due') }} {{ $chart_of_account->where('transaction_date', '<=', $days_past->ninety_one_days_ago)->sum('amount_due') }} {{ $chart_of_account->sum('amount_due') }} @endforeach {{ trans('accounting::lang.total') }} {{ $data->where('transaction_date', $days_past->today)->sum('amount_due') }} {{ $data->whereBetween('transaction_date', [$days_past->thirty_days_ago, $days_past->yesterday])->sum('amount_due') }} {{ $data->whereBetween('transaction_date', [$days_past->sixty_days_ago, $days_past->thirty_one_days_ago])->sum('amount_due') }} {{ $data->whereBetween('transaction_date', [$days_past->ninety_days_ago, $days_past->sixty_one_days_ago])->sum('amount_due') }} {{ $data->where('transaction_date', '<=', $days_past->ninety_one_days_ago)->sum('amount_due') }} {{ $data->sum('amount_due') }} @endcomponent @endslot @endcomponent
@stop @section('javascript') @include('accounting::report.partials.report_js') @endsection