@lang('reports.Customer_Indebtness_by_Duration_Summary')

@lang('reports.customer_indebt_summary_sum')

$1200

@lang('reports.filter')

@lang('reports.Customer_Indebtness_by_Duration_Summary')

@lang('reports.customer_indebtness_by_duration_summary')

@lang('reports.as_of_date') 2020-12-04

@php $totalClientBalance = 0; @endphp @foreach ($clients as $client) @php $currentTotal = 0; $first_to_thirtytTotal = 0; $thirty_to_fourthTotal = 0; $fourth_to_fifthTotal = 0; $fifth_to_sixthTotal = 0; $sixth_to_seventhTotal = 0; $eighth_to_ninthTotal = 0; $seventh_to_eighthTotal = 0; $ninth_to_aboveTotal = 0; @endphp @endforeach
@lang('reports.Customer_Name') @lang('reports.Current') 1:30 31:40 41:50 51:60 61:70 71:80 81:90 @lang('reports.91_and_above')
@foreach ($client->branches as $branch)

{{ $branch->name }}

@endforeach

@lang('reports.Total')

{{ $client->balance }} @php $currentTotal += $client->balance; $totalClientBalance += $client->balance; @endphp

@foreach ($client->branches as $branch)

{{ $branch->balance }} @php $currentTotal += $branch->balance; $totalClientBalance += $branch->balance; @endphp

@endforeach

${{ $currentTotal }}

${{ $client->first_to_thirty }} @php $first_to_thirtytTotal += $client->first_to_thirty; @endphp

@foreach ($client->branches as $branch)

${{ $branch->first_to_thirty }} @php $first_to_thirtytTotal += $branch->first_to_thirty; @endphp

@endforeach

${{ $first_to_thirtytTotal }}

${{ $client->thirty_to_fourth }} @php $thirty_to_fourthTotal += $client->thirty_to_fourth; @endphp

@foreach ($client->branches as $branch)

${{ $branch->thirty_to_fourth }} @php $thirty_to_fourthTotal += $branch->thirty_to_fourth; @endphp

@endforeach

${{ $thirty_to_fourthTotal }}

${{ $client->fourth_to_fifth }} @php $fourth_to_fifthTotal += $client->fourth_to_fifth; @endphp

@foreach ($client->branches as $branch)

${{ $branch->fourth_to_fifth }} @php $fourth_to_fifthTotal += $branch->fourth_to_fifth; @endphp

@endforeach

${{ $fourth_to_fifthTotal }}

${{ $client->fifth_to_sixth }} @php $fifth_to_sixthTotal += $client->fifth_to_sixth; @endphp

@foreach ($client->branches as $branch)

${{ $branch->fifth_to_sixth }} @php $fifth_to_sixthTotal += $branch->fifth_to_sixth; @endphp

@endforeach

${{ $fifth_to_sixthTotal }}

${{ $client->seventh_to_eighth }} @php $seventh_to_eighthTotal += $client->seventh_to_eighth; @endphp

@foreach ($client->branches as $branch)

${{ $branch->seventh_to_eighth }} @php $seventh_to_eighthTotal += $branch->seventh_to_eighth; @endphp

@endforeach

${{ $seventh_to_eighthTotal }}

${{ $client->seventh_to_eighth }} @php $seventh_to_eighthTotal += $client->seventh_to_eighth; @endphp

@foreach ($client->branches as $branch)

${{ $branch->seventh_to_eighth }} @php $seventh_to_eighthTotal += $branch->seventh_to_eighth; @endphp

@endforeach

${{ $seventh_to_eighthTotal }}

${{ $client->eighth_to_ninth }} @php $eighth_to_ninthTotal += $client->eighth_to_ninth; @endphp

@foreach ($client->branches as $branch)

${{ $branch->eighth_to_ninth }} @php $eighth_to_ninthTotal += $branch->eighth_to_ninth; @endphp

@endforeach

${{ $eighth_to_ninthTotal }}

${{ $client->ninth_to_above }} @php $ninth_to_aboveTotal += $client->ninth_to_above; @endphp

@foreach ($client->branches as $branch)

${{ $branch->ninth_to_above }} @php $ninth_to_aboveTotal += $branch->ninth_to_above; @endphp

@endforeach

${{ $ninth_to_aboveTotal }}

@lang('reports.Email')

@lang('reports.Send_report')

@lang('reports.Send_a_report_to_a_prefered_email')

@lang('reports.To')
@lang('reports.CC')
@lang('reports.Subject')
@lang('reports.Body')
@endsection @section('custom_script') @endsection