@extends('layouts.app') @section('title','Payments') @section('page_title','Payment Vouchers') @section('content')

Payment Vouchers

Vendor payments, customer refunds and other outgoing payments.

@if(auth()->user()->hasPermission('payments.create'))+ New Payment@endif
{{ $payments->total() }} payments
@forelse($payments as $p)@php($s=$p->status instanceof \App\Enums\DocumentStatus?$p->status->value:$p->status)@empty@endforelse
PaymentDateTypePayeeMethodAmountAllocatedStatus
{{ $p->payment_number }}
{{ $p->reference_number }}
{{ $p->payment_date->format('d M Y') }}{{ ucwords(str_replace('_',' ',$p->payment_type)) }}{{ $p->party?->legal_name }}{{ ucwords(str_replace('_',' ',$p->payment_method)) }}{{ $p->currency_code }} {{ number_format((float)$p->amount,2) }}{{ number_format((float)$p->allocated_total,2) }}{{ ucwords(str_replace('_',' ',$s)) }}Open
No payments found.
{{ $payments->links() }}
@endsection