@if(session('error'))
{{ session('error') }}
@endif @if(session('ok'))
{{ session('ok') }}
@endif @if($errors->any())
@foreach($errors->all() as $e)
{{ $e }}
@endforeach
@endif

إضافة سند دفع مورد

رقم السند يتم إنشاؤه تلقائيًا داخل الفرع
@csrf

فلترة سندات الدفع

حسب الفرع / المورد / الفترة / المرجع
مسح
عدد السندات
{{ number_format((int)($totals->payments_count ?? 0)) }}
إجمالي المدفوع
{{ number_format((float)($totals->total_paid ?? 0), 2) }}
الفترة
{{ $from }} → {{ $to }}

سندات الدفع

آخر السندات حسب الفلترة
@forelse($rows as $r) @php $methodLabel = $r->payment_method; if ($r->payment_method === 'cash') $methodLabel = 'كاش'; if ($r->payment_method === 'card') $methodLabel = 'شبكة'; if ($r->payment_method === 'bank_transfer') $methodLabel = 'تحويل بنكي'; @endphp @empty @endforelse
رقم السند التاريخ الفرع المورد طريقة الدفع الحالة المرجع المبلغ المستخدم إجراء
{{ $r->voucher_no_branch }} {{ \Carbon\Carbon::parse($r->payment_date)->format('d-m-Y') }} {{ $r->branch_no }} - {{ $r->branch_name }} {{ $r->supplier_name }} {{ $methodLabel }} @if(($r->status ?? 'active') === 'cancelled') ملغي @else نشط @endif {{ $r->reference_no ?: '-' }} {{ number_format((float)$r->amount, 2) }} {{ $r->created_by_name ?: '-' }}
@if(($r->status ?? 'active') === 'cancelled') طباعة ملغي @else طباعة @endif @if(($r->status ?? 'active') !== 'cancelled') @else ملغي @endif
لا توجد سندات دفع
{{ $rows->links() }}