@extends('layouts.app') @section('title', 'Supplier Payments') @section('breadcrumb') @endsection @section('content')
৳{{ number_format($totalPaid, 0) }}
Total (filtered)
৳{{ number_format(\App\Models\Supplier::sum('current_due'), 0) }}
Total Outstanding
@forelse($payments as $pmt) @empty @endforelse
Date Supplier Invoice Amount Method Account Reference By
{{ $pmt->payment_date->format('d M Y') }} {{ $pmt->supplier->name }} @if($pmt->purchase) {{ $pmt->purchase->invoice_no }} @elseGeneral@endif ৳{{ number_format($pmt->amount, 2) }} {{ ucfirst(str_replace('_',' ',$pmt->payment_method)) }} {{ $pmt->account->name }} {{ $pmt->reference ?? '—' }} {{ $pmt->creator->name }}
No payments found.
@if($payments->hasPages())@endif
@endsection