@extends('layouts.app') @section('content')

Payment History for Invoice #{{ $invoice->invoice_number }}

@foreach($payments as $i => $payment) @endforeach
# Amount Method Note User Date Actions
{{ $i+1 }} {{ number_format($payment->amount, 2) }} {{ ucfirst($payment->method) }} {{ $payment->note }} {{ $payment->user->name ?? 'N/A' }} {{ $payment->created_at->format('Y-m-d H:i') }}
@csrf @method('DELETE')
@endsection