@extends('accounting::layouts.app') @section('title') {{ trans_choice('accounting::report.accounts_payable_ageing_detail', 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_payable_ageing_detail', 1) }} @endslot @endcomponent
@component('accounting::components.box') @slot('header')
@component('accounting::components.download_action_button', [ 'url' => 'report/accounting/accounts_payable_ageing_detail', 'filters' => 'start_date=' . $start_date . '&end_date=' . $end_date . '&location_id=' . $location_id, ]) @endcomponent
@endslot @slot('body')

{{ trans_choice('accounting::report.accounts_payable_ageing_detail', 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_payable_ageing_detail', 1) }}

@component('accounting::components.tree_view_table', ['table_responsive' => true]) {{ trans_choice('accounting::lang.account', 1) }} {{ trans_choice('accounting::lang.account', 1) }} {{ trans_choice('accounting::general.detail_type', 1) }} {{ trans_choice('accounting::lang.date', 1) }} {{ trans_choice('accounting::lang.transaction', 1) }} {{ trans_choice('accounting::lang.type', 1) }} {{ trans_choice('accounting::general.reference', 1) }} {{ trans_choice('accounting::lang.no', 1) }} {{ trans_choice('accounting::lang.amount', 1) }} @php $row_counter = 1; @endphp @foreach ($days_passed_options as $days_passed => $days_passed_label) @php $parent1_index = $row_counter; @endphp {{ ucfirst($days_passed_label) }} @php $row_counter++; $chart_of_account_subtype = $data->where('days_passed', $days_passed); $filtered_account_subtypes = $chart_of_account_subtype->pluck('account_subtype', 'account_subtype_id'); @endphp @foreach ($filtered_account_subtypes as $account_subtype_id => $account_subtype_name) @php $parent2_index = $row_counter; @endphp {{ ucfirst($account_subtype_name) }} @php $row_counter++; $chart_of_account_subtype = $chart_of_account_subtype->where('account_subtype_id', $account_subtype_id); @endphp @foreach ($chart_of_account_subtype as $chart_of_account) {{ $chart_of_account->chart_of_account }} {{ $chart_of_account->account_detail_type }} {{ readable_date($chart_of_account->transaction_date) }} {{ $chart_of_account->transaction_type }} {{ $chart_of_account->ref_no }} {{ number_format($chart_of_account->amount_due, 2) }} @php $row_counter++; @endphp @endforeach @endforeach {{ trans('accounting::lang.total_for') }} {{ $days_passed_label }} {{ number_format($chart_of_account_subtype->sum('amount_due'), 2) }} @endforeach {{ trans_choice('accounting::lang.total', 1) }} {{ number_format($data->sum('amount_due'), 2) }} @endcomponent
@endslot @endcomponent
@stop @section('javascript') @include('accounting::report.partials.report_js') @endsection