@extends('admin.layouts.master') @section('title', 'إضافة دفعة') @section('content')

إضافة دفعة جديدة

تسجيل سند قبض احترافي مع ربط مباشر بالفاتورة وتحديث حالة السداد.

العودة للمدفوعات
@csrf
بيانات السند
@error('sales_invoice_id')
{{ $message }}
@enderror
@error('customer_id')
{{ $message }}
@enderror
@error('cash_register_id')
{{ $message }}
@enderror
@error('cashier_shift_id')
{{ $message }}
@enderror
@error('payment_method')
{{ $message }}
@enderror
@error('amount')
{{ $message }}
@enderror
@error('payment_date')
{{ $message }}
@enderror
@error('reference')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror
@error('notes')
{{ $message }}
@enderror
ملخص الفاتورة المرتبطة
العميل
إجمالي الفاتورة0.00
المدفوع0.00
المستحق0.00
الدفعة الحالية0.00
المتبقي بعد السداد0.00
ملاحظة: يتم تحديث حالة الفاتورة تلقائيا بعد حفظ الدفعة.
إلغاء
@endsection @php $invoiceSummaries = $invoices->mapWithKeys(function ($invoice) { return [ $invoice->id => [ 'id' => $invoice->id, 'customer_id' => $invoice->customer_id, 'customer_name' => $invoice->customer?->name ?? 'عميل نقدي', 'total' => (float) $invoice->total, 'paid' => (float) $invoice->paid_amount, 'due' => (float) $invoice->due_amount, ], ]; })->all(); @endphp @push('scripts') @endpush