نظرة عامةمرحبًا بك
ملخص تحصيل {{ now()->translatedFormat('F Y') }} للمبنيين.
إجمالي المستحق{{ number_format($due,2) }}جنيه مصري
إجمالي المحصل{{ number_format($paid,2) }}{{ $paidUnits }} شقة مدفوعة
غير المحصل{{ number_format($unpaid,2) }}{{ max(0,$allUnits-$paidUnits) }} شقة غير مدفوعة
نسبة التحصيل{{ $collectionRate }}%
@foreach($buildings as $building)
@php $period=$periods->firstWhere('building_id',$building->id); $units=$period?->accounts->count()??0; $collected=$period?->accounts->where('payment_status','paid')->sum('total_due')??0; $buildingDue=$period?->accounts->sum('total_due')??0; $shares=$buildingShares[$building->id]; @endphp
{{ mb_substr($building->name,0,1) }}{{ $building->name }}
{{ $units }} وحدة مسجلة للشهر @if($period)
{{ $period->status==='finalized'?'معتمد':'مسودة' }}@endif
المستحق{{ number_format($buildingDue,2) }}
المحصل{{ number_format($collected,2) }}
إجمالي الإيجار فقط{{ number_format($shares['rent_total'],2) }}
حصة مجدي{{ number_format($shares['magdy'],2) }}
حصة ماجدة{{ number_format($shares['magda'],2) }}
النسب: {{ $shares['ratio_label'] }}
{{ $period?'فتح حساب الشهر':'إنشاء حساب الشهر' }}
@endforeach