@extends('layouts.inspinia') @section('title', 'Supplier Payments Report') @section('content_header', 'Supplier Payments Report') @section('breadcrumb') @endsection @section('content')
Read-only report. Shows posted supplier payments only.
{{-- Filter Form --}}
Filters
Reset
{{-- Summary Cards --}}

{{ number_format($totalPaid, 2) }}

Total Supplier Payments

{{ $paymentCount }}

Payment Count

{{-- By Method --}} @if($byMethod->isNotEmpty())
Payments by Method
@foreach($byMethod as $row) @endforeach
MethodTotal PaidCount
{{ ucfirst(str_replace('_', ' ', $row->payment_method ?? 'N/A')) }} {{ number_format($row->total, 2) }} {{ $row->cnt }}
@endif {{-- Payments Table --}}
Payment List — {{ $from }} to {{ $to }} {{ $payments->total() }} records
@if($payments->isEmpty())
No payments found for the selected filters.
@else
@foreach($payments as $p) @endforeach
Payment # Date Supplier Amount Paid Allocated Unapplied Method Reference Posted By Posted At
{{ $p->payment_number }} {{ $p->payment_date?->format('d/m/Y') }} {{ $p->supplier?->name }} {{ number_format($p->paid_amount, 2) }} {{ number_format($p->allocated_amount, 2) }} {{ number_format($p->unapplied_amount, 2) }} {{ ucfirst(str_replace('_', ' ', $p->payment_method ?? 'N/A')) }} {{ $p->payment_reference ?? '—' }} {{ $p->postedBy?->name ?? '—' }} {{ $p->posted_at?->format('d/m/Y H:i') ?? '—' }}
Page Totals: {{ number_format($payments->sum('paid_amount'), 2) }} {{ number_format($payments->sum('allocated_amount'), 2) }} {{ number_format($payments->sum('unapplied_amount'), 2) }}
{{ $payments->links() }}
@endif
@endsection