{{-- Invoice print page. HTML-rendered (NOT DomPDF) so the browser shapes Arabic glyphs correctly and applies the bidi algorithm. Users print to PDF via the native browser dialog — produces clean output with proper letter-joining that DomPDF cannot do. --}}
| # | الوصف | الكمية | السعر | الخصم | الإجمالي |
|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ $item->description }} | {{ number_format($item->quantity, $item->quantity == intval($item->quantity) ? 0 : 2) }} | {{ number_format($item->unit_price, 2) }} | {{ number_format($item->discount, 2) }} | {{ number_format($item->total, 2) }} |
| المجموع الفرعي | {{ number_format($invoice->subtotal, 2) }} |
| الخصم | - {{ number_format($invoice->discount_amount, 2) }} |
| الضريبة ({{ rtrim(rtrim(number_format($invoice->tax_rate, 2), '0'), '.') }}%) | {{ number_format($invoice->tax_amount, 2) }} |
| الإجمالي | {{ number_format($invoice->total, 2) }} |
| المدفوع | {{ number_format($invoice->paid_amount, 2) }} |
| المتبقي | {{ number_format($invoice->balance, 2) }} |