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

{{ $receipt->exists?'Edit':'New' }} Receipt

Allocate against invoices or leave the remaining amount as a customer advance.

Back
@csrf @if($receipt->exists)@method('put')@endif
Customer Invoice AllocationEnter amounts only for this customer
@php($saved=old('allocations',$receipt->allocations->pluck('amount','customer_invoice_id')->all()))@foreach($invoices as $inv)@endforeach
InvoiceCustomerDateBalanceAllocate
{{ $inv->invoice_number }}{{ $inv->party->legal_name }}{{ $inv->issue_date->format('d M Y') }}{{ number_format((float)$inv->grand_total-(float)$inv->paid_total-(float)$inv->allocated_total,2) }}
Allocated: 0.00 ยท Unallocated: 0.00
Cancel
@endsection @push('scripts')@endpush