@extends('layouts.app') @section('title', 'Payment Details: ' . $supplierPayment->payment_number) @section('content')

{{ $supplierPayment->payment_number }}

Payment Details

LKR {{ number_format($supplierPayment->amount, 2) }}

{{ $supplierPayment->payment_date->format('M d, Y') }}

{{ $supplierPayment->payment_method->label() }}

{{ $supplierPayment->reference_number ?? '-' }}

Payment Information

{{ $supplierPayment->supplier->company_name }}

@if($supplierPayment->supplier->contact_person)

{{ $supplierPayment->supplier->contact_person }}

@endif @if($supplierPayment->supplier->phone)

{{ $supplierPayment->supplier->phone }}

@endif
{{ $supplierPayment->supplierCredit->credit_number }} @if($supplierPayment->supplierCredit->invoice_number)

Invoice: {{ $supplierPayment->supplierCredit->invoice_number }}

@endif

{{ $supplierPayment->payment_date->format('l, F d, Y') }}

LKR {{ number_format($supplierPayment->amount, 2) }}

{{ $supplierPayment->payment_method->label() }}

{{ $supplierPayment->reference_number ?? 'N/A' }}

{{ $supplierPayment->processedBy->name }}

{{ $supplierPayment->created_at->format('M d, Y H:i') }}

{{ $supplierPayment->updated_at->format('M d, Y H:i') }}

@if($supplierPayment->notes)

{{ $supplierPayment->notes }}

@endif

Credit Status After Payment

LKR {{ number_format($supplierPayment->supplierCredit->original_amount, 2) }}

LKR {{ number_format($supplierPayment->supplierCredit->paid_amount, 2) }}

LKR {{ number_format($supplierPayment->supplierCredit->outstanding_amount, 2) }}

{{ $supplierPayment->supplierCredit->status->description() }}
@if($supplierPayment->supplierCredit->outstanding_amount > 0)

This credit still has an outstanding balance

Record Another Payment
@else
This credit has been fully paid
@endif

Quick Links

View Credit Details All Payments @if($supplierPayment->supplierCredit->goodReceiveNote) View GRN @endif
@endsection