@php $billingInvoiceCssPath = public_path('css/billing_invoice_pdf.css'); @endphp @if (is_file($billingInvoiceCssPath) && is_readable($billingInvoiceCssPath)) @endif
{{-- Header --}}

INVOICE

Subscription Payment

Invoice Number

{{ $payment->invoice_number }}

{{-- Info Section --}}

{{ $tenant->company_name ?? $tenant->id ?? $payment->tenant_id }}

@if(($tenant->admin_email ?? null))

{{ $tenant->admin_email }}

@endif

Gateway: {{ ucfirst($payment->gateway) }}

Status: Paid

@if($payment->transaction_id)

Ref: {{ $payment->transaction_id }}

@endif
{{-- Line Items --}}
Description Billing Cycle Amount
{{ $plan->name ?? 'Subscription' }} Plan @if($subscription && $subscription->starts_at && $subscription->ends_at)
{{ $subscription->starts_at->format('M d, Y') }} — {{ $subscription->ends_at->format('M d, Y') }} @endif
{{ ucfirst($payment->billing_cycle) }} {{ \App\Models\Central\GeneralSetting::currencySymbol() }}{{ number_format($payment->amount, 2) }} {{ $payment->currency }}
{{-- Totals --}} @if((float) $payment->tax > 0) @endif
Subtotal {{ \App\Models\Central\GeneralSetting::currencySymbol() }}{{ number_format($payment->amount, 2) }}
Tax {{ \App\Models\Central\GeneralSetting::currencySymbol() }}{{ number_format($payment->tax, 2) }}
Total {{ \App\Models\Central\GeneralSetting::currencySymbol() }}{{ number_format($payment->amount + ($payment->tax ?? 0), 2) }} {{ $payment->currency }}
@if($payment->conversion_applied && $payment->gateway_currency)
Currency Note: Payment was charged as {{ number_format($payment->gateway_amount, 2) }} {{ $payment->gateway_currency }} (exchange rate: 1 {{ $payment->currency }} = {{ number_format($payment->exchange_rate, 4) }} {{ $payment->gateway_currency }}).
@endif {{-- Footer --}}