@extends('admin.layouts.master') @php $isReceipt = $payment->direction === 'in'; @endphp @section('title', $isReceipt ? 'إضافة مقبوضات' : 'إضافة دفعة') @section('page_title', $isReceipt ? 'إضافة مقبوضات' : 'إضافة دفعة') @section('breadcrumbs') @endsection @section('content') @if($errors->any())
@endif
@csrf

{{ $isReceipt ? 'بيانات المقبوضات' : 'بيانات الدفعة' }}

@if($isReceipt) @else @endif
{{-- Allocation: open invoices --}}

توزيع على فواتير مفتوحة (اختياري)

@if($openInvoices->isEmpty())

سيتم تحميل الفواتير المفتوحة بعد اختيار {{ $isReceipt ? 'العميل' : 'المورد' }}.

@else @include('admin.payments._allocations_table', ['invoices' => $openInvoices]) @endif
@endsection @push('scripts') @endpush