@extends(niche_shell_layout()) @section('title', niche_label('finance.payment', 'سند صرف').' - '.config('app.name')) @section('breadcrumb') الرئيسية › المحاسبة › {{ niche_label('finance.payment', 'سند صرف') }} @endsection @section('content') @php $paymentFilterSupplierOpts = collect($filterSuppliers ?? [])->map(fn ($s) => [ 'value' => $s->id, 'label' => trim((string) ($s->code !== '' && $s->code !== null ? $s->code.' — ' : '').(string) ($s->name_ar ?? $s->name ?? '')), ])->values()->all(); $paymentFilterExpenseAccountOpts = collect($filterExpenseAccounts ?? [])->map(fn ($a) => [ 'value' => $a->id, 'label' => trim((string) ($a->code ?? '').' — '.(string) ($a->name_ar ?? $a->name_en ?? '')), ])->values()->all(); @endphp
صرف مبالغ للموردين أو للمصروفات وربطها بقيود مالية.
| التاريخ | النوع | المورد / حساب المصروف | المرجع | فاتورة مشتريات | المبلغ | المستخدم |
|---|---|---|---|---|---|---|
| {{ $payment->date?->format('Y-m-d') }} | @if($payment->type === 'supplier') مورد @else مصروف @endif | @if($payment->type === 'supplier') {{ $payment->supplier?->name ?? '—' }} @else {{ $payment->expenseAccount?->code ?? '' }} — {{ $payment->expenseAccount?->name_ar ?? '—' }} @endif | {{ $payment->reference ?? '—' }} | @if($payment->type === 'supplier' && $payment->purchaseInvoices->isNotEmpty()) @foreach($payment->purchaseInvoices as $pi) {{ $pi->reference ?: '#'.$pi->id }}@if($pi->pivot?->amount) ({{ rtrim(rtrim(number_format((float) $pi->pivot->amount, 2, '.', ''), '0'), '.') }})@endif @endforeach @else — @endif | {{ number_format((float) $payment->amount, 2) }} | {{ $payment->creator?->name ?? '—' }} {{ $payment->creator?->email }} |
| لا توجد سندات صرف حتى الآن. أضف أول سند صرف | ||||||