@extends('admin.layouts.master') @section('title', 'PDF فاتورة بيع') @section('content')
رقم الفاتورة: {{ $invoice->invoice_number }}
| # | الوصف | النوع | الوحدة | الكمية | سعر الوحدة | الخصم | الإجمالي |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->description_ar }} | {{ $item->line_type === 'service' ? 'خدمة' : 'صنف' }} | {{ $item->unit?->name_ar ?? '-' }} | {{ number_format((float)$item->quantity, 2) }} | {{ number_format((float)$item->unit_price, 2) }} | {{ number_format((float)$item->discount_amount, 2) }} | {{ number_format((float)$item->line_total, 2) }} |
| الإجمالي قبل الخصم | {{ number_format((float)$invoice->subtotal_before_discount, 2) }} |
|---|---|
| خصم الفاتورة | {{ number_format((float)$invoice->discount_amount, 2) }} |
| الضريبة | {{ number_format((float)$invoice->tax_amount, 2) }} |
| الإجمالي النهائي | {{ number_format((float)$invoice->grand_total, 2) }} |
| المدفوع | {{ number_format((float)$invoice->paid_amount, 2) }} |
| المتبقي | {{ number_format((float)$invoice->remaining_amount, 2) }} |
{{ $invoice->notes_ar }}