@if (session('status'))
{{ session('status') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif @php $currency = strtoupper((string) $snapshot['currency']); $money = function ($amount, $code = null) use ($currency) { $code = strtoupper((string) ($code ?: $currency)); $value = number_format((float) $amount, 2); return $code === 'USD' ? '$'.$value.' USD' : 'PKR '.$value; }; @endphp
Account Credit

Add Funds

Your account credit uses your billing currency: {{ $currency }}.

Available Credit {{ $money($snapshot['balance']) }}
Secure Deposit

Choose the credit amount

PayFast charges in PKR. USD amounts are converted using the current billing rate at checkout.

@if ($payfastEnabled)
@csrf
@else
Online account-credit payments are temporarily unavailable. Please contact support.
@endif
History

Recent Credit Deposits

@forelse ($deposits as $deposit) @php $status = strtolower((string) $deposit->status); $statusLabel = [ 'whmcs_sync_failed' => 'Payment Processing', 'manual_review' => 'Under Review', 'verified' => 'Payment Received', ][$status] ?? ucwords(str_replace('_', ' ', $status)); @endphp @empty @endforelse
Date Credit Amount PayFast Charge Status
{{ $deposit->created_at?->format('M j, Y g:i A') }} {{ $money($deposit->amount, $deposit->currency) }} {{ $money($deposit->payable_amount, $deposit->payable_currency) }} {{ $statusLabel }} @if (in_array($status, ['failed', 'rejected', 'manual_review', 'whmcs_sync_failed'], true))
This payment needs attention. Please retry or contact support. @endif
No credit deposits yet.