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