@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
| {{ $snapshot['title'] ?? 'إيصال استلام الإيجار والمرافق والصيانة' }} عن شهر {{ $monthName }} {{ $snapshot['year'] }} |
| وحدة رقم: {{ $snapshot['apartment'] }}الدور: {{ $snapshot['floor'] ?: '-' }}نوع الوحدة: {{ $type }}المبنى: {{ $snapshot['building'] }} |
| وصلنا من السيد(ة): {{ $snapshot['payer'] ?: '—' }} |
@foreach($snapshot['lines'] as $line)
| {{ $line['name_snapshot'] }} |
{{ (float)$line['final_amount'] == 0 ? '-' : number_format($line['final_amount'], 2) }} ج.م. |
@endforeach
| الإجمالي | {{ number_format($receipt->total, 2) }} ج.م. |
| {{ $amountInWords }} |
@if($snapshot['footer'] ?? null)@endif
|
@if($receipt->status === 'cancelled')ملغى@elseرقم {{ $receipt->number }}@endif
|