@extends('layouts.app') @section('title', 'إشعار ائتمان جديد - '.config('app.name')) @section('breadcrumb') الرئيسية المحاسبة إشعارات الائتمان إشعار جديد @endsection @section('content') @php $creditNoteCustomerOptions = $customers->map(fn ($customer) => [ 'value' => $customer->id, 'label' => trim((string) ($customer->code ?? '').' - '.(string) ($customer->name_ar ?: $customer->name ?? '')), ])->all(); $creditNoteReasonTypeOpts = [ ['value' => 'مرتجع مبيعات', 'label' => 'مرتجع مبيعات'], ['value' => 'تسوية سعر', 'label' => 'تسوية سعر'], ['value' => 'خصم لاحق', 'label' => 'خصم لاحق'], ['value' => 'خطأ فاتورة', 'label' => 'خطأ فاتورة'], ['value' => 'أخرى', 'label' => 'أخرى'], ]; @endphp

إشعار ائتمان جديد

@csrf

تفاصيل إشعار الائتمان

@error('customer_id')

{{ $message }}

@enderror
@error('date')

{{ $message }}

@enderror
@error('sales_invoice_id')

{{ $message }}

@enderror
@error('reference')

{{ $message }}

@enderror
@error('reason_type')

{{ $message }}

@enderror

بنود إشعار الائتمان

الوصف الكمية سعر الوحدة نسبة الضريبة الإجمالي حذف
@error('lines')

{{ $message }}

@enderror
المجموع الفرعي SAR 0.00
الضريبة SAR 0.00
الإجمالي SAR 0.00

ملاحظات

@error('notes')

{{ $message }}

@enderror
إلغاء
@endsection @php $defaultCreditNoteLines = old('lines', [ ['description' => '', 'quantity' => 1, 'unit_price' => 0, 'tax_percent' => $defaultVatPercent], ]); @endphp @push('scripts') @include('finance.partials.note-line-items-script', [ 'tableBodyId' => 'credit-note-lines', 'addButtonId' => 'add-line-btn', 'subtotalId' => 'subtotal-text', 'taxId' => 'tax-text', 'grandTotalId' => 'grand-total-text', 'partySelectId' => 'customer_id', 'invoiceSelectId' => 'sales_invoice_id', 'invoicePartyAttr' => 'data-customer-id', 'currencyLabel' => 'SAR', 'lineDefaults' => $defaultCreditNoteLines, 'defaultVatJs' => (float) $defaultVatPercent, ]) @endpush