@php
// Default to the invoice's formatted total
$payAmount = $invoice->formattedTotal();
// Calculate final payable amount after credit deduction
$finalPayableAmount = $total;
if ($remainingCredit > 0) {
$finalPayableAmount = max($total - $remainingCredit, 0);
$payAmount = $invoice->formatAmount($finalPayableAmount);
}
@endphp
{{ t('razorpay_supported_methods') }}
UPI
Cards
Net Banking
Wallets