@extends('admin.layouts.master') @section('title', 'PDF فاتورة شراء') @section('content')
رقم الفاتورة: {{ $invoice->invoice_number }}
| # | الصنف | الوصف | الوحدة | الكمية | تكلفة الوحدة | الخصم | الإجمالي |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->product?->name_ar ?? '-' }} | {{ $item->description_ar ?: '-' }} | {{ $item->unit?->name_ar ?? '-' }} | {{ number_format((float)$item->quantity, 2) }} | {{ number_format((float)$item->unit_cost, 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->additional_expenses_total, 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 }}