@extends('master.app') @section('title', 'Supplier Payments') @section('body')
{{-- TOP BAR --}}
Supplier Payments
Track payments, filter, print receipts
@include('general.valert') {{-- SIMPLE FILTER (TOP OF PAGE) --}}
Reset
{{-- Quick stats --}} @php $sumAmount = $payments->sum('amount'); @endphp
Records
{{ $payments->total() }}
This Page Total
{{ number_format((float) $sumAmount, 2) }}
Quick Filter
Invoice / Supplier / Date
{{-- TABLE --}}
@forelse($payments as $row) @empty @endforelse
# Number Supplier Title Date Payment Action
{{ $loop->iteration }} #{{ $row->invoice_number }} {{ $row->supplier->name ?? 'N/A' }} {{ $row->title ?? '-' }} {{ $row->date }} {{ number_format((float) $row->amount, 2) }} {{ $row->currency->title_en ?? '' }}
No payments found.
{{-- Pagination --}}
{{ $payments->links('pagination::bootstrap-4') }}
@endsection @section('pageJs') @endsection