Payment Report
@php $sno = 1; @endphp @foreach($payments as $payment) @endforeach
Sl.No Invoice No Customer Total Amount Paid Amount Balance Paid Date
{{ $sno++ }} INV{{ str_pad($payment->invoice_id, 4, '0', STR_PAD_LEFT) }} {{ $payment->invoice->customer->name ?? '-' }} {{ number_format($payment->invoice->total_amount ?? 0, 2) }} {{ number_format($payment->amount_paid, 2) }} {{ number_format($payment->balance, 2) }} {{ $payment->created_at->format('d-m-Y') }}