{{ t('razorpay_payment') }}

{{ t('razorpay_payment') }}

{{ t('complete_payment_razorpay') }}

{{ t('invoice_details') }}

{{ $invoice->formattedTotal() }}
{{ t('invoice_number') }}
{{ $invoice->invoice_number ?? format_draft_invoice_number() }}
{{ t('description') }}
{{ $invoice->title }}
{{ t('subtotal') }}
{{ $invoice->formatAmount($invoice->subTotal()) }}
@php // Make sure taxes are calculated and applied if ($invoice->taxes()->count() === 0) { $invoice->applyTaxes(); } // Recalculate tax details after ensuring they're applied $taxDetails = $invoice->getTaxDetails(); $baseAmount = $invoice->formatAmount($invoice->subTotal()); $totalTaxAmount = 0; $taxBreakdown = []; // Calculate total tax amount from tax details foreach ($taxDetails as $tax) { $taxBreakdown[] = $tax['formatted_rate'] . ' ' . $tax['name']; $totalTaxAmount += $tax['amount']; } // Force recalculation of total with taxes $invoice->calculateTotalTaxAmount(); // Log values for debugging $subtotal = $invoice->subTotal(); $tax = $invoice->getTax(); $fee = $invoice->fee ?: 0; $calculatedTotal = $subtotal + $tax + $fee; @endphp @if (count($taxDetails) > 0) @foreach ($taxDetails as $tax)
{{ $tax['name'] }} ({{ $tax['formatted_rate'] }})
@php // Calculate tax amount based on rate and subtotal if it's showing as 0 $taxAmount = $tax['amount']; if ($taxAmount <= 0 && $tax['rate'] > 0) { $taxAmount = $invoice->subTotal() * ($tax['rate'] / 100); } echo $invoice->formatAmount($taxAmount); @endphp
@endforeach @endif @if ($invoice->fee > 0)
{{ t('fee') }}
{{ $invoice->formatAmount($invoice->fee) }}
@endif
{{ t('total_amount') }}
@php // Use the properly calculated total from the invoice model echo $invoice->formattedTotal(); @endphp
@if ($remainingCredit > 0)
{{ t('total_credit_remaining') }}
@php echo '-' . $invoice->formatAmount($remainingCredit); @endphp
{{ t('final_payable_amount') }}
@php $finalamount = $total - $remainingCredit; echo $invoice->formatAmount($finalamount); @endphp
@endif

{{ t('payment_details') }}

@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

{{ t('need_assistance_with_payment') }}

{{ t('contact_support') }}

@push('scripts') @endpush