@php $snapshot = $receipt->snapshot; $monthNames = [1=>'يناير',2=>'فبراير',3=>'مارس',4=>'أبريل',5=>'مايو',6=>'يونيو',7=>'يوليو',8=>'أغسطس',9=>'سبتمبر',10=>'أكتوبر',11=>'نوفمبر',12=>'ديسمبر']; $month = (int) ($snapshot['month'] ?? $receipt->issued_on->month); $year = (int) ($snapshot['year'] ?? $receipt->issued_on->year); $monthName = $monthNames[$month] ?? (string) $month; $type = ($snapshot['occupancy_type'] ?? '') === 'ownership' ? 'تمليك' : 'إيجار'; $issuer = trim((string) ($snapshot['issuer'] ?? '')) ?: 'تامر مجدي فركوح'; $receiptDate = \Carbon\Carbon::create($year, $month, 1)->locale('ar')->translatedFormat('j F Y'); $linePairs = collect($snapshot['lines'] ?? [])->chunk(2); @endphp
| {{ $snapshot['title'] ?? 'إيصال استلام الإيجار والمرافق والصيانة' }} عن شهر {{ $monthName }} {{ $year }} إيصال رقم {{ $receipt->number }} | |||
| وحدة رقم: {{ $snapshot['apartment'] }} الدور: {{ $snapshot['floor'] ?: '-' }} نوع الوحدة: {{ $type }} المبنى: {{ $snapshot['building'] }} | |||
| وصلنا من السيد(ة): {{ $snapshot['payer'] ?: '—' }} | |||
| {{ $pair[$index]['name_snapshot'] }} | {{ (float) $pair[$index]['final_amount'] == 0 ? '-' : number_format($pair[$index]['final_amount'], 2) }} ج.م. | @else@endif @endforeach | |
| الإجمالي | {{ number_format($receipt->total, 2) }} ج.م. | ||
| {{ $amountInWords }} | |||
| تحريرًا في {{ $receiptDate }} — عن المالك: {{ $issuer }} | |||
| {{ $snapshot['footer'] }} | |||