@extends('layouts.app') @section('title',($payment->exists?'Edit':'New').' Payment') @section('page_title',($payment->exists?'Edit':'New').' Payment Voucher') @section('content')

{{ $payment->exists?'Edit':'New' }} Payment

Allocate against vendor bills or record the remaining amount as a vendor advance.

Back
@csrf @if($payment->exists)@method('put')@endif
Vendor Bill AllocationEnter amounts only for this vendor
@php($saved=old('allocations',$payment->allocations->pluck('amount','vendor_bill_id')->all()))@foreach($bills as $bill)@endforeach
BillVendor InvoiceVendorBalanceAllocate
{{ $bill->bill_number }}{{ $bill->vendor_invoice_number }}{{ $bill->party->legal_name }}{{ number_format((float)$bill->grand_total-(float)$bill->paid_total-(float)$bill->allocated_total,2) }}
Allocated: 0.00 ยท Advance: 0.00
Cancel
@endsection @push('scripts')@endpush