{{ __('تفاصيل الفاتورة الإلكترونية') }}

@if (session('success')) @endif @if (session('error')) @endif

فاتورة إلكترونية رقم: {{ $einvoice->invoice_number }}

معلومات الفاتورة

رقم الفاتورة:
{{ $einvoice->invoice_number }}
نوع الفاتورة:
@switch($einvoice->invoice_type) @case('standard') فاتورة قياسية @break @case('simplifixed') فاتورة مبسطة @break @case('debit_note') إشعار مدين @break @case('credit_note') إشعار دائن @break @default {{ $einvoice->invoice_type }} @endswitch
تاريخ الفاتورة:
{{ $einvoice->invoice_date->format('Y-m-d') }}
وقت الإصدار:
{{ $einvoice->issue_time->format('H:i:s') }}
تاريخ الاستحقاق:
{{ $einvoice->due_date ? $einvoice->due_date->format('Y-m-d') : 'غير محدد' }}
حالة الفاتورة:
@switch($einvoice->status) @case('draft') مسودة @break @case('generated') تم الإنشاء @break @case('signed') تم التوقيع @break @case('reported') تم الإبلاغ @break @case('cleared') تمت المقاصة @break @case('rejected') مرفوضة @break @default {{ $einvoice->status }} @endswitch

المبالغ

المبلغ قبل الضريبة:
{{ number_format($einvoice->subtotal, 2) }} ريال
مبلغ الخصم:
{{ number_format($einvoice->discount_amount, 2) }} ريال
مبلغ الضريبة:
{{ number_format($einvoice->ta_amount, 2) }} ريال
المبلغ الإجمالي:
{{ number_format($einvoice->total_amount, 2) }} ريال

معلومات البائع

اسم البائع:
{{ $einvoice->seller_name }}
الرقم الضريبي:
{{ $einvoice->seller_ta_number }}
العنوان:
{{ $einvoice->seller_address ?: 'غير محدد' }}
معلومات الاتصال:
{{ $einvoice->seller_contact ?: 'غير محدد' }}

معلومات المشتري

اسم المشتري:
{{ $einvoice->buyer_name }}
الرقم الضريبي:
{{ $einvoice->buyer_ta_number ?: 'غير محدد' }}
العنوان:
{{ $einvoice->buyer_address ?: 'غير محدد' }}
معلومات الاتصال:
{{ $einvoice->buyer_contact ?: 'غير محدد' }}

عناصر الفاتورة

@foreach ($einvoice->items as $inde => $item) @endforeach
# المنتج الوصف الكمية سعر الوحدة الخصم المبلغ قبل الضريبة الضريبة الإجمالي
{{ $inde + 1 }} {{ $item->name }} @if ($item->item_code)
{{ $item->item_code }}
@endif
{{ $item->description ?: '-' }} {{ $item->quantity }} {{ $item->unit ?: '' }} {{ number_format($item->unit_price, 2) }} {{ $item->discount_rate > 0 ? $item->discount_rate . '%' : '-' }} {{ number_format($item->subtotal, 2) }} {{ $item->ta_rate }}% ({{ number_format($item->ta_amount, 2) }}) {{ number_format($item->total, 2) }}
@if ($einvoice->status === 'generated')
@csrf
@elseif ($einvoice->status === 'signed')
@if ($einvoice->isEligibleForClearance())
@csrf
@endif @if ($einvoice->isEligibleForReporting())
@csrf
@endif
@endif @if ($einvoice->zatca_error_messages && count($einvoice->zatca_error_messages) > 0)

أخطاء هيئة الزكاة والدخل

    @foreach ($einvoice->zatca_error_messages as $error)
  • {{ $error['message'] ?? $error }}
  • @endforeach
@endif @if ($einvoice->logs->isNotEmpty())

سجل العمليات

@foreach ($einvoice->logs()->orderBy('created_at', 'desc')->get() as $log) @endforeach
التاريخ الإجراء الحالة التفاصيل المستخدم
{{ $log->created_at->format('Y-m-d H:i:s') }} @switch($log->action) @case('generate') إنشاء @break @case('sign') توقيع @break @case('clearance') مقاصة @break @case('reporting') إبلاغ @break @default {{ $log->action }} @endswitch @if ($log->status === 'success') نجاح @else فشل @endif {{ $log->details }} {{ $log->user ? $log->user->name : 'غير محدد' }}
@endif