{{-- resources/views/purchases/payments/index.blade.php --}} @extends('layouts.app') @section('title', 'Supplier Payments') @section('page_title', 'Supplier Payments') @section('page_subtitle', 'Payments made to suppliers') @section('content')
This month: ${{ number_format($totalPaidThisMonth, 2) }}
Orders
Supplier Payments {{ $payments->total() }} total
@if($payments->isEmpty())

No supplier payments yet

@else
@foreach($payments as $payment) @endforeach
Reference Supplier PO Method Amount Date
{{ $payment->reference }} {{ $payment->supplier?->name }} @if($payment->purchaseOrder) {{ $payment->purchaseOrder->po_number }} @else — @endif {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }} {{ $payment->currency }} {{ number_format($payment->amount, 2) }} {{ $payment->paid_at->format('d M Y') }} View →
@if($payments->hasPages())
{{ $payments->links() }}
@endif @endif
@endsection