@extends('layouts.app') @section('title', 'تفاصيل الفاتورة') @section('content')
{{ $invoice['customer_name'] ?? '-' }}
{{ $invoice['customer_code'] ?? '-' }}
{{ $invoice['customer_email'] ?? '-' }}
{{ $invoice['customer_phone'] ?? '-' }}
| البند | الوصف | الكمية | السعر الوحدة | الخصم % | المبلغ |
|---|---|---|---|---|---|
| {{ $item['line_number'] ?? '-' }} | {{ $item['description'] ?? '-' }} | {{ number_format($item['quantity'] ?? 0, 2) }} | {{ number_format($item['unit_price'] ?? 0, 2) }} | {{ $item['discount_percentage'] ?? 0 }}% | {{ number_format($item['line_total'] ?? 0, 2) }} |
| لا توجد بنود لهذه الفاتورة | |||||
| تاريخ الدفع | طريقة الدفع | المرجع | المبلغ |
|---|---|---|---|
| {{ isset($payment['payment_date']) ? \Carbon\Carbon::parse($payment['payment_date'])->format('Y-m-d') : '-' }} | {{ $payment['payment_method'] ?? '-' }} | {{ $payment['reference_number'] ?? '-' }} | {{ number_format($payment['amount'] ?? 0, 2) }} |