@extends('layouts.app') @section('title', 'Record Supplier Payment') @section('content')

Record Supplier Payment

Back to Payments
@if($credit)

Payment for Credit: {{ $credit->credit_number }}

Supplier:

{{ $credit->supplier->company_name }}

Invoice:

{{ $credit->invoice_number ?? '-' }}

Original Amount:

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

Outstanding:

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

@endif
@csrf

Credit Information

@if($credit) @endif @error('supplier_credit_id')

{{ $message }}

@enderror

Outstanding Amount: LKR {{ $credit ? number_format($credit->outstanding_amount, 2) : '0.00' }}

Payment Details

@error('payment_date')

{{ $message }}

@enderror
LKR
@error('amount')

{{ $message }}

@enderror

Enter the payment amount (cannot exceed outstanding balance)

@error('payment_method')

{{ $message }}

@enderror
@error('reference_number')

{{ $message }}

@enderror
@error('notes')

{{ $message }}

@enderror
Cancel
@push('scripts') @endpush @endsection