@include('pos.supplier._purchasing_nav')

Supplier Payments

Select a supplier, review due, and record payments.
@php $selectedSupplierDisplay = ''; if (!empty($supplier)) { $selectedSupplierDisplay = trim((string) $supplier->supplier_name . ' ' . ((string) ($supplier->supplier_mobile ? ('0' . $supplier->supplier_mobile) : ''))); $selectedSupplierDisplay = trim($selectedSupplierDisplay) . ' (#' . (string) $supplier->supplier_id . ')'; } @endphp @foreach($suppliers as $sup) @endforeach
@if($supplier) View Supplier @endif Clear
@if($supplier)
{{ $supplier->supplier_name }} Due: {{ number_format((float) ($supplier->due_balance ?? 0), 2) }}
@endif
@if($supplier)
Supplier Details
Name{{ $supplier->supplier_name }}
Mobile{{ $supplier->supplier_mobile ? '0'.$supplier->supplier_mobile : '-' }}
Company{{ $supplier->supplier_company ?: '-' }}
Address
{{ $supplier->supplier_address1 ?: '-' }}
Summary
Total Invoice
{{ number_format((float) ($supplier->total_invoice ?? 0), 2) }}
Total Payment
{{ number_format((float) ($supplier->total_payment ?? 0), 2) }}
Due Balance
{{ number_format((float) ($supplier->due_balance ?? 0), 2) }}
Last 5 Payments
@forelse($lastPayments as $payment) @empty @endforelse
Time User Amount
{{ \Carbon\Carbon::parse($payment->sp_add_date.' '.$payment->sp_add_time)->format('Y-m-d h:i A') }} {{ $payment->user_name }} {{ number_format((float) $payment->sp_amount, 2) }}
No payments yet.
Add Payment
Allocated FIFO across due purchases
{{ $supplier->supplier_name }}
@csrf
@error('sp_amount')
{{ $message }}
@enderror