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

Refund Details

{{-- Refund Info --}}

Refund #{{ $refund->id }}

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

{{ str_replace('_', ' ', ucfirst($refund->refund_type)) }}

Refund Information

Amount

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

Refund Type

{{ str_replace('_', ' ', ucfirst($refund->refund_type)) }}

Processed By

{{ $refund->refundedBy->name ?? 'System' }}

Invoice Information

Subscriber

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

Invoice Total

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

@if($refund->note)

Note / Reason

{{ $refund->note }}

@endif
{{-- Invoice Summary --}}

Invoice Summary

Total Payable

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

Total Paid

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

Total Refunded

৳{{ number_format($refund->invoice->total_refunded, 2) }}

Net Paid

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

Current Status

{{ str_replace('_', ' ', ucfirst($refund->invoice->payment_status)) }}
@endsection