{{-- resources/views/payments/show.blade.php --}} @extends('layouts.app') @section('content')

Payment Details

{{-- Payment Info --}}

Payment #{{ $payment->id }}

Recorded: {{ $payment->created_at->format('d M Y, h:i A') }}

{{ ucfirst(str_replace('_', ' ', $payment->method)) }}

Payment Information

Amount

৳{{ number_format($payment->amount, 2) }}

Payment Date

{{ $payment->payment_date->format('d M Y, h:i A') }}

@if($payment->reference_no)

Reference Number

{{ $payment->reference_no }}

@endif

Invoice Information

Subscriber

{{ $payment->invoice->subscriber->name }}

Invoice Total

৳{{ number_format($payment->invoice->total_payable, 2) }}

@if($payment->notes)

Notes

{{ $payment->notes }}

@endif

Recorded by: {{ $payment->receiver->name ?? 'System' }}

{{-- Invoice Summary --}}

Invoice Summary

Total Payable

৳{{ number_format($payment->invoice->total_payable, 2) }}

Total Paid

৳{{ number_format($payment->invoice->total_paid, 2) }}

Due Amount

৳{{ number_format($payment->invoice->due_amount, 2) }}

Status

{{ str_replace('_', ' ', ucfirst($payment->invoice->payment_status)) }}
@if($payment->invoice->due_amount > 0) @endif
@endsection