Payment Information
Payment ID: #{{ $payment->id }}
Status:
{{ ucfirst($payment->status) }}
Client:
{{ $payment->client->name }}
{{ $payment->client->name }}
Account #:
{{ $payment->client->account_number }}
{{ $payment->client->account_number }}
Billing #:
{{ $payment->billing->billing_number ?? 'N/A' }}
{{ $payment->billing->billing_number ?? 'N/A' }}
Payment Date:
{{ $payment->payment_date->format('M d, Y H:i A') }}
{{ $payment->payment_date->format('M d, Y H:i A') }}
Payment Method:
{{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }}
{{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }}
Amount:
₱ {{ number_format($payment->amount, 2) }}
₱ {{ number_format($payment->amount, 2) }}
Payment Type:
@php $typeLabels = [ 'billing' => 'Billing Payment', 'installation' => 'Installation Fee', 'reconnection' => 'Reconnection Fee', 'late_fee' => 'Late Payment Fee', 'deposit' => 'Security Deposit', 'other' => 'Other' ]; $paymentType = $payment->payment_type ?? 'billing'; $label = $typeLabels[$paymentType] ?? ucfirst(str_replace('_', ' ', $paymentType)); @endphp {{ $label }}
@php $typeLabels = [ 'billing' => 'Billing Payment', 'installation' => 'Installation Fee', 'reconnection' => 'Reconnection Fee', 'late_fee' => 'Late Payment Fee', 'deposit' => 'Security Deposit', 'other' => 'Other' ]; $paymentType = $payment->payment_type ?? 'billing'; $label = $typeLabels[$paymentType] ?? ucfirst(str_replace('_', ' ', $paymentType)); @endphp {{ $label }}
Reference #:
{{ $payment->reference_number }}
{{ $payment->reference_number }}
Sales Invoice:
{{ $payment->sales_invoice_number }} @if($payment->sales_invoice_date) — dated {{ $payment->sales_invoice_date->format('M d, Y') }} @endif
{{ $payment->sales_invoice_number }} @if($payment->sales_invoice_date) — dated {{ $payment->sales_invoice_date->format('M d, Y') }} @endif
Notes:
{{ $payment->notes }}
{{ $payment->notes }}
Created: {{ $payment->created_at->format('M d, Y H:i A') }}
Updated: {{ $payment->updated_at->format('M d, Y H:i A') }}
Updated: {{ $payment->updated_at->format('M d, Y H:i A') }}
Actions
Billing Information
@if($payment->billing)
Billing Number: {{ $payment->billing->billing_number }}
Billing Date: {{ $payment->billing->billing_date->format('M d, Y') }}
Due Date: {{ $payment->billing->due_date->format('M d, Y') }}
Total Amount Due: ₱ {{ number_format($payment->billing->total_amount_due, 2) }}
Status: {{ ucfirst($payment->billing->status) }} @else
Billing Date: {{ $payment->billing->billing_date->format('M d, Y') }}
Due Date: {{ $payment->billing->due_date->format('M d, Y') }}
Total Amount Due: ₱ {{ number_format($payment->billing->total_amount_due, 2) }}
Status: {{ ucfirst($payment->billing->status) }} @else
No billing associated with this payment. @if($payment->payment_type === 'installation') This is an installation/setup fee payment. @endif
@endif