| Payment Number: |
{{ $payment->payment_number }} |
| Payment Date: |
{{ \Carbon\Carbon::parse($payment->payment_date)->format('M d, Y') }} |
| Reference Number: |
{{ $payment->reference_number ?? '-' }} |
| Customer: |
{{ $payment->customer_name ?? '-' }} |
| Invoice: |
@if($payment->invoice_number)
{{ $payment->invoice_number }}
@else
-
@endif
|
| Payment Method: |
{{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }}
|
| Amount: |
PKR {{ number_format($payment->amount, 2) }} |
| Status: |
@php
$statusColors = [
'draft' => 'secondary',
'posted' => 'success',
'cancelled' => 'danger'
];
$statusColor = $statusColors[$payment->status] ?? 'secondary';
@endphp
{{ ucfirst($payment->status) }}
|
@if($payment->invoice_number)
| Invoice Total: |
PKR {{ number_format($payment->invoice_total, 2) }} |
| Invoice Paid: |
PKR {{ number_format($payment->invoice_paid, 2) }} |
| Invoice Balance: |
PKR {{ number_format($payment->invoice_balance, 2) }}
|
@endif
@if($payment->payment_method === 'cheque')
Cheque Details
| Cheque Number: |
{{ $payment->cheque_number ?? '-' }} |
| Cheque Date: |
{{ $payment->cheque_date ? \Carbon\Carbon::parse($payment->cheque_date)->format('M d, Y') : '-' }} |
| Bank Name: |
{{ $payment->bank_name ?? '-' }} |
@endif
@if(in_array($payment->payment_method, ['bank_transfer', 'card', 'online']))
Transaction Details
| Bank Name: |
{{ $payment->bank_name ?? '-' }} |
| Transaction Reference: |
{{ $payment->transaction_reference ?? '-' }} |
@endif
@if($payment->notes)
Notes
{{ nl2br(e($payment->notes)) }}
@endif
Back to List
@if($payment->status === 'draft')
Edit Payment
@endif