@php // Batch load invoice settings to avoid multiple database queries $invoiceSettings = get_batch_settings([ 'invoice.bank_name', 'invoice.account_name', 'invoice.account_number', 'invoice.ifsc_code', 'payment.offline_description', 'payment.offline_instructions' ]); @endphp {{ t('offline_payment') }}

{{ t('offline_payment') }}

{{ t('complete_your_purchase') }}

{{ 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(); @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') }}
{{ $invoice->formattedTotal() }}
@if ($invoice->hasCoupon() && $remainingCredit == 0)
{{ t('coupon_discount') }} ({{ $invoice->coupon_code }})
-{{ $invoice->formatAmount($invoice->coupon_discount) }}
{{ t('final_payable_amount') }}
{{ $invoice->formatAmount($invoice->finalPayableAmount(0)) }}
@endif @if ($remainingCredit > 0) @php // Calculate total for credit comparison $total = $invoice->total(); @endphp
{{ t('total_credit_remaining') }}
@php if ($remainingCredit > $total) { $remainingCredit = $total; } echo '-' . $invoice->formatAmount($remainingCredit); @endphp
@if ($invoice->hasCoupon())
{{ t('coupon_discount') }} ({{ $invoice->coupon_code }})
@php // Show the actual coupon discount applied after credit deduction $creditAmount = $remainingCredit > 0 ? min($remainingCredit, $invoice->total()) : 0; $displayCouponAmount = $invoice->getCouponDiscountAfterCredit($creditAmount); @endphp -{{ $invoice->formatAmount($displayCouponAmount) }}
@endif
{{ t('final_payable_amount') }}
@php $finalamount = $invoice->finalPayableAmount($remainingCredit); echo $invoice->formatAmount($finalamount); @endphp
@endif
@include('partials.coupon-form', ['invoice' => $invoice])

{{ t('bank_details') }}

{{ t('account_name') }}
{{ $invoiceSettings['invoice.bank_name'] ?? 'N/A' }}
{{ t('account_name') }}
{{ $invoiceSettings['invoice.account_name'] ?? 'N/A' }}
{{ t('account_number') }}
{{ $invoiceSettings['invoice.account_number'] ?? 'N/A' }}
{{ t('ifsc_code') }}
{{ $invoiceSettings['invoice.ifsc_code'] ?? 'N/A' }}
@if ($invoiceSettings['payment.offline_description'] && $invoiceSettings['payment.offline_instructions'])

{{ t('payment_instructions') }}

{{ $invoiceSettings['payment.offline_description'] }}

{{ t('follow_these_steps') }}:

{!! $invoiceSettings['payment.offline_instructions'] !!}

{{ t('please_include_reference') }}

@endif

{{ t('confirm_your_payment') }}

{{ t('provide_payment_details') }}

{{ t('verification_period') }}

{{ t('subscription_active_after_verify') }}

@csrf
@error('payment_reference')

{{ $message }}

@enderror
@error('payment_date')

{{ $message }}

@enderror
{{ t('bank_transfer') }}
{{ t('cash_deposit') }}
{{ t('check') }}
{{ t('other') }}
@error('payment_method')

{{ $message }}

@enderror
@error('payment_details')

{{ $message }}

@enderror

{{ t('need_assistance_with_payment') }}

{{ t('contact_support') }}