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

Process Refund

Back to Invoice
{{-- Invoice Summary --}}

Invoice Summary

Invoice Number

{{ $invoice->invoice_number }}

Subscriber

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

Total Payable

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

Total Paid

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

Already Refunded

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

Available for Refund

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

Status

{{ str_replace('_', ' ', ucfirst($invoice->payment_status)) }}
{{-- Refund Form --}}

Refund Details

@csrf
৳
@error('amount')

{{ $message }}

@enderror

Maximum refundable amount: ৳{{ number_format($invoice->total_paid - $invoice->total_refunded, 2) }}

@error('refund_type')

{{ $message }}

@enderror
@error('note')

{{ $message }}

@enderror

Warning: Processing a refund will update the invoice status and may add credit to the subscriber's wallet. This action cannot be undone.

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