@extends('layout') @section('page_title', 'Payments') @section('content')

Payment Management

All Payments

@if($payments->isEmpty())

No payments found

There are currently no payments in the system.

@else
@foreach($payments as $payment) @endforeach
ID Agreement Customer Product Amount Due Date Status Actions
{{ $payment->id }} #{{ $payment->agreement->id }} @if($payment->agreement->customer) {{ $payment->agreement->customer->name }} @else {{ $payment->agreement->customer_name }} @endif @if($payment->agreement->product) {{ $payment->agreement->product->name }} @else @endif {{ $currency }}{{ number_format($payment->amount, 2) }} {{ $payment->due_date->format('M d, Y') }} @if($payment->status === 'paid') Paid
{{ $payment->paid_at?->format('M d, Y') }}
@else Pending @endif
@if($payment->status !== 'paid')
@csrf
@else @endif
Showing {{ $payments->firstItem() }} to {{ $payments->lastItem() }} of {{ $payments->total() }} payments
{{ $payments->links() }}
@endif
@endsection