@extends('layouts.app') @section('title', 'Customer Receipts') @section('content')
@forelse($payments as $payment) @empty @endforelse
Customer Invoice # Date Amount Method Reference
{{ $payment->salesInvoice->customer->name ?? '' }} {{ $payment->salesInvoice->invoice_number ?? '-' }} {{ $payment->receipt_date ? \Carbon\Carbon::parse($payment->receipt_date)->format('d M Y') : '' }} {{ number_format($payment->amount, 2) }} {{ str_replace('_', ' ', $payment->payment_method) }} {{ $payment->reference_number ?? '-' }}
No receipts recorded.
@if($payments->hasPages())
{{ $payments->links() }}
@endif @endsection