@foreach($receipt_voucher->paymentInvoices as $index=> $receipt) @endforeach
SNO Invoice Invoice Amount Paid Balance
{{++$index}} {{$receipt->invoice_id}} {{number_format($receipt->invoiceAmount()->amount,2)}} {{number_format($receipt->amount,2)}} {{number_format($receipt->invoiceAmount()->amount-$receipt->amount,2)}}