@extends('admin.layouts.master') @section('title', 'تقرير أعمار الديون — الموردون') @section('page_title', 'تقرير أعمار الديون — الموردون (Aging)') @section('breadcrumbs') @endsection @section('content')

أعمار الديون — الموردون

@if($rows->isEmpty())

لا توجد فواتير شراء مفتوحة.

@else @php $sums = ['0_30'=>0,'31_60'=>0,'61_90'=>0,'90_plus'=>0,'total'=>0]; @endphp @foreach($rows as $r) @php foreach (['0_30','31_60','61_90','90_plus','total'] as $k) $sums[$k] += $r[$k]; @endphp @endforeach
المورد 0-30 31-60 61-90 90+ الإجمالي
{{ $r['name'] }} {{ number_format($r['0_30'], 2) }} {{ number_format($r['31_60'], 2) }} {{ number_format($r['61_90'], 2) }} {{ number_format($r['90_plus'], 2) }} {{ number_format($r['total'], 2) }}
الإجمالي {{ number_format($sums['0_30'], 2) }} {{ number_format($sums['31_60'], 2) }} {{ number_format($sums['61_90'], 2) }} {{ number_format($sums['90_plus'], 2) }} {{ number_format($sums['total'], 2) }}
@endif
@endsection