{{ t('manage_your_active_plans') }}
{{ t('active_plans') }}
{{ $subscriptions->whereIn('status', ['active', 'trial'])->count() }}
{{ t('monthly_spend') }}
@php $taxes = get_default_taxes(); $totalWithTax = $subscriptions->where('status', 'active')->sum(function ($subscription) use ($taxes) { // Get the latest paid invoice for this subscription to include coupon discounts $latestInvoice = $subscription->invoices()->where('status', 'paid')->latest()->first(); if ($latestInvoice) { // Use the actual invoice total which includes coupon discounts return $latestInvoice->total(); } // Fallback to plan price + tax if no paid invoice exists $basePrice = $subscription->plan->price; $totalTaxAmount = 0; foreach ($taxes as $tax) { $totalTaxAmount += $basePrice * ($tax->rate / 100); } return $basePrice + $totalTaxAmount; }); @endphp{{ get_base_currency()->format($totalWithTax) }}
{{ t('next_renewal_after') }}
@if ($allLifetime) {{ t('lifetime') }} @else {{ $daysDiff !== null ? intval($daysDiff) . ' days' : 'N/A' }} @endif
{{ t('total') }}: {{ get_base_currency()->format($finalAmount) }}/{{ $subscription->plan->billing_period }} {{ t('including_tax') }}
{{ t('started') }}
{{ $subscription->created_at->format('M d, Y') }}
{{ t('trial') }} {{ t('ends') }}
{{ $subscription->trial_ends_at->format('M d, Y') }}
{{ t('access') }}
{{ t('lifetime') }}{{ $subscription->is_recurring ? t('renews') : t('expires') }}
{{ $subscription->current_period_ends_at->format('M d, Y') }}
{{ t('auto_renew') }}
{{ $subscription->is_recurring ? t('enabled') : t('disabled') }}
{{ t('payment_activate_description') }}
{{ t('no_active_subscriptions_get_preminum') }}
{{ $invoice->invoice_number ?? format_draft_invoice_number() }}
{{ $invoice->title }}
{{ $invoice->formattedTotal() }}
{{ $invoice->created_at->format('M d, Y') }}