@php $snapshot = $receipt->snapshot; $monthNames = [1=>'يناير',2=>'فبراير',3=>'مارس',4=>'أبريل',5=>'مايو',6=>'يونيو',7=>'يوليو',8=>'أغسطس',9=>'سبتمبر',10=>'أكتوبر',11=>'نوفمبر',12=>'ديسمبر']; $monthName = $monthNames[(int) ($snapshot['month'] ?? 0)] ?? ($snapshot['month'] ?? ''); $type = ($snapshot['occupancy_type'] ?? '') === 'ownership' ? 'تمليك' : 'إيجار'; @endphp
@foreach($snapshot['lines'] as $line) @endforeach @if($snapshot['footer'] ?? null)@endif
{{ $snapshot['title'] ?? 'إيصال استلام الإيجار والمرافق والصيانة' }} عن شهر {{ $monthName }} {{ $snapshot['year'] }}
وحدة رقم: {{ $snapshot['apartment'] }}الدور: {{ $snapshot['floor'] ?: '-' }}نوع الوحدة: {{ $type }}المبنى: {{ $snapshot['building'] }}
وصلنا من السيد(ة): {{ $snapshot['payer'] ?: '—' }}
{{ $line['name_snapshot'] }} {{ (float)$line['final_amount'] == 0 ? '-' : number_format($line['final_amount'], 2) }} ج.م.
الإجمالي{{ number_format($receipt->total, 2) }} ج.م.
{{ $amountInWords }}
@if($receipt->status === 'cancelled')ملغى@elseرقم {{ $receipt->number }}@endif