ثبت فروش جدید
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@csrf
نام مشتری
@error('customer_name')
{{ $message }}
@enderror
مبلغ کل فروش
@error('amount')
{{ $message }}
@enderror
فاکتور فروش (PDF, JPG, PNG)
@error('invoice_file')
{{ $message }}
@enderror
رسید پرداختی مشتری (PDF, JPG, PNG)
@error('payment_receipt_file')
{{ $message }}
@enderror
اختصاص مبلغ به خریدها
@if(old('allocations')) @foreach(old('allocations') as $index => $allocation)
×
انتخاب خرید
انتخاب کنید...
@foreach($purchases as $purchase)
id ? 'selected' : '' }}> خرید از {{ $purchase->supplier->name }} (مبلغ باقیمانده: {{ $purchase->total_amount - $purchase->allocated_amount }})
@endforeach
@error("allocations.$index.purchase_id")
{{ $message }}
@enderror
مبلغ اختصاص یافته
@error("allocations.$index.allocated_amount")
{{ $message }}
@enderror
@endforeach @else
×
انتخاب خرید
انتخاب کنید...
@foreach($purchases as $purchase)
خرید از {{ $purchase->supplier->name }} (مبلغ باقیمانده: {{ $purchase->total_amount - $purchase->allocated_amount }})
@endforeach
مبلغ اختصاص یافته
@endif
افزودن تخصیص جدید
ثبت فروش