@php $superInvoicePdfCssPath = public_path('assets_super/css/super_invoice_pdf.css'); @endphp @if (is_file($superInvoicePdfCssPath) && is_readable($superInvoicePdfCssPath)) @endif @php $appName = \App\Models\Central\GeneralSetting::instance()->app_name ?: 'Stocky'; $supinvStatus = strtolower((string) $payment->status); $supinvStatusClass = match ($supinvStatus) { 'paid' => 'supinv-status--paid', 'pending' => 'supinv-status--pending', 'failed' => 'supinv-status--failed', 'refunded' => 'supinv-status--refunded', default => 'supinv-status--default', }; @endphp
{{ $appName }}

{{ __('super.invoice_pdf.subscription') }}

{{ __('super.invoice_pdf.title') }}
{{ $payment->invoice_number }}

{{ ucfirst($payment->status) }}

{{ __('super.invoice_pdf.bill_to') }}

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

@if($payment->tenant && $payment->tenant->domains && $payment->tenant->domains->isNotEmpty())

{{ $payment->tenant->domains->first()->domain }}

@endif
{{ __('super.invoice_pdf.payment_details') }}
@if($payment->transaction_id) @endif
{{ __('super.invoice_pdf.date') }} {{ ($payment->paid_at ?? $payment->created_at)->format('M d, Y') }}
{{ __('super.invoice_pdf.gateway') }} {{ $payment->gateway_label }}
{{ __('super.invoice_pdf.txn_id') }} {{ $payment->transaction_id }}
{{ __('super.invoice_pdf.cycle') }} {{ ucfirst($payment->billing_cycle) }}
{{ __('super.invoice_pdf.description') }} {{ __('super.invoice_pdf.billing_cycle') }} {{ __('super.common.amount') }}
{{ $payment->plan->name ?? __('super.invoice_pdf.subscription') }} {{ __('super.invoice_pdf.plan') }}
{{ __('super.invoice_pdf.sub_payment') }}
{{ ucfirst($payment->billing_cycle) }} {{ $currencySymbol }}{{ number_format($payment->amount, 2) }}
@if($payment->tax > 0) @endif
{{ __('super.invoice_pdf.subtotal') }} {{ $currencySymbol }}{{ number_format($payment->amount, 2) }}
{{ __('super.invoice_pdf.tax') }} {{ $currencySymbol }}{{ number_format($payment->tax, 2) }}
{{ __('super.invoice_pdf.total') }} ({{ $payment->currency }}) {{ $currencySymbol }}{{ number_format($payment->total, 2) }}
@if($payment->notes)

{{ __('super.common.notes') }}

{{ $payment->notes }}

@endif