@extends('layouts.app') @section('title', __('accounting::lang.account_recievable_ageing_report')) @section('content') @include('accounting::layouts.nav')
{!! Form::label('location_id', __('purchase.business_location') . ':') !!} {!! Form::select('location_id', $business_locations, request()->input('location_id'), ['class' => 'form-control select2', 'style' => 'width:100%']); !!}

@lang( 'accounting::lang.account_recievable_ageing_report' )

@php $total_current = 0; $total_1_30 = 0; $total_31_60 = 0; $total_61_90 = 0; $total_greater_than_90 = 0; $grand_total = 0; @endphp @foreach($report_details as $report) @php $total_current += $report['<1']; $total_1_30 += $report['1_30']; $total_31_60 += $report['31_60']; $total_61_90 += $report['61_90']; $total_greater_than_90 += $report['>90']; $grand_total += $report['total_due']; @endphp @endforeach
@lang( 'sale.customer_name') @lang( 'lang_v1.current') @lang( 'accounting::lang.1_30_days' ) @lang( 'accounting::lang.31_60_days' ) @lang( 'accounting::lang.61_90_days' ) @lang( 'accounting::lang.91_and_over' ) @lang('sale.total')
{{$report['name']}} @format_currency($report['<1']) @format_currency($report['1_30']) @format_currency($report['31_60']) @format_currency($report['61_90']) @format_currency($report['>90']) @format_currency($report['total_due'])
@lang('sale.total') @format_currency($total_current) @format_currency($total_1_30) @format_currency($total_31_60) @format_currency($total_61_90) @format_currency($total_greater_than_90) @format_currency($grand_total)
@stop @section('javascript') @stop