| شروط الدفع | {{ $invoice->payment_terms ?? '—' }} |
| اعتماد بتاريخ | {{ $invoice->posted_at?->format('Y-m-d H:i') ?? '—' }} |
| الإجمالي | {{ number_format((float) $invoice->total, 2) }} {{ $invoice->currency_code }} |
| المدفوع | {{ number_format((float) $invoice->paid_amount, 2) }} |
| المتبقي | {{ number_format($invoice->remaining_amount, 2) }} |
البنود
| # | الوصف | الكمية | السعر |
خصم | ضريبة | الإجمالي |
@foreach($invoice->items as $i => $item)
| {{ $i + 1 }} |
@if($item->product){{ $item->product->sku }} @endif{{ $item->description }} |
{{ number_format((float) $item->quantity, 2) }} |
{{ number_format((float) $item->unit_price, 2) }} |
{{ number_format((float) $item->discount_amount, 2) }} |
{{ number_format((float) $item->tax_amount, 2) }} |
{{ number_format((float) $item->total, 2) }} |
@endforeach
@if($invoice->payments->isNotEmpty())
الدفعات
| الرقم | التاريخ | الحساب | المبلغ المطبق | الحالة |
@foreach($invoice->payments as $p)
| {{ $p->number }} |
{{ $p->payment_date?->format('Y-m-d') }} |
{{ $p->account?->name }} |
{{ number_format((float) $p->pivot->amount_applied, 2) }} |
{{ $p->status }} |
@endforeach
@endif