@extends('layouts.app') @section('title', 'إنشاء ' . ($returnType === 'credit_note' ? 'إشعار دائن' : 'فاتورة مرتجعة')) @section('content')

{{ $returnType === 'credit_note' ? 'إنشاء إشعار دائن' : 'إنشاء فاتورة مرتجعة' }}

عودة للفاتورة
@csrf
{{ $invoice->customer ? $invoice->customer->name : 'العميل غير موجود' }}
{{ $invoice->invoice_number ?? '-' }}
{{ $invoice->invoice_date ? $invoice->invoice_date->format('Y-m-d') : '-' }}
@forelse($items as $index => $item) @if($item && $item->id) @endif @empty @endforelse
# اسم الصنف الوحدة الوصف الكمية سعر الوحدة خصم % ضريبة % الإجمالي
{{ $index + 1 }} {{ optional($item->item)->name ?? '-' }} {{ optional(optional($item->itemUnit)->unit)->name ?? '-' }}
{{ number_format($item->total, 2) }}

لا توجد عناصر في الفاتورة الأصلية

@error('attachment') {{ $message }} @enderror
المبلغ الفرعي: 0.00
إجمالي الخصم (-): 0.00
إجمالي الضريبة (+): 0.00
الإجمالي النهائي: 0.00
إلغاء
@endsection