@extends('layouts.app') @section('content')

التقارير

Excel
إجمالي المستحق{{ number_format($total_due,2) }}
إجمالي المحصل{{ number_format($total_paid,2) }}
غير المحصل{{ number_format($total_due-$total_paid,2) }}
@foreach($accounts as $a)@endforeach
المبنىالشقةالمسؤولالفترةالمستحقالحالةالإيصال
{{ $a->building_name }}{{ $a->apartment_number }}{{ $a->payer_name }}{{ $a->month->month }}/{{ $a->month->year }}{{ number_format($a->total_due,2) }}{{ $a->payment_status==='paid'?'مدفوع':'غير مدفوع' }}@if($r=$a->receipts->where('status','active')->first()){{ $r->number }}@endif
{{ $accounts->links() }}@endsection