@extends('layouts.app') @section('title', 'فاتورة مبيعات: ' . $invoice->invoice_number) @section('page_title', 'الفاتورة الضريبية') @section('content')
العودة للقائمة @if(!$invoice->is_reversed) @else الفاتورة ملغاة ومعكوسة بالكامل @endif

{{ $invoice->tenant->name }}

الرقم الضريبي: {{ $invoice->tenant->tax_number }}

{{ $invoice->branch->name ?? 'الفرع الرئيسي' }} | {{ $invoice->branch->location ?? '' }}

فاتورة ضريبية مبسطة

رقم الفاتورة: {{ $invoice->invoice_number }}

تاريخ الإصدار: {{ $invoice->invoice_date->format('Y-m-d') }}

تاريخ الاستحقاق: {{ $invoice->due_date->format('Y-m-d') }}

بيانات العميل

{{ $invoice->customer->name }}

الهاتف: {{ $invoice->customer->phone }}

العنوان: {{ $invoice->customer->address }}

تفاصيل السداد والترحيل

طريقة الدفع: @if($invoice->payment_method === 'cash') نقدي @elseif($invoice->payment_method === 'bank') تحويل بنكي @else ذمم مدينة (آجل) @endif

حالة القيد المحاسبي: مرحل تلقائياً (JV)

@foreach($invoice->items as $index => $item) @endforeach
# البيان / المنتج الكمية السعر الضريبة ({{ number_format($invoice->tenant->tax_rate, 2) }}%) الإجمالي شامل الضريبة
{{ $index + 1 }} {{ $item->product->name }} كود: {{ $item->product->code }} {{ number_format($item->quantity, 2) }} {{ number_format($item->price, 2) }} {{ $invoice->tenant->currency }} {{ number_format($item->tax_amount, 2) }} {{ $invoice->tenant->currency }} {{ number_format($item->total, 2) }} {{ $invoice->tenant->currency }}

ترميز الفوترة الإلكترونية

موافق لمتطلبات هيئة الزكاة والضريبة والجمارك

SmartERP-Pro ZATCA Phase I
الإجمالي الخاضع للضريبة (غير شامل الضريبة): {{ number_format($invoice->subtotal, 2) }} {{ $invoice->tenant->currency }}
ضريبة القيمة المضافة ({{ number_format($invoice->tenant->tax_rate, 2) }}%): {{ number_format($invoice->tax_amount, 2) }} {{ $invoice->tenant->currency }}
صافي القيمة المستحقة: {{ number_format($invoice->total, 2) }} {{ $invoice->tenant->currency }}

تأكيد إلغاء وعكس الفاتورة

سيؤدي الإلغاء إلى إرجاع المنتجات المبيعة إلى المخزن العام وضبط مديونية العميل وعكس القيود المحاسبية بالكامل.

@csrf
@endsection