{{ __('pages/subscription.dashboard.billing') }}
{{ __('pages/subscription.dashboard.subtitle') }}
@if($activeSubscription) {{ __('pages/subscription.dashboard.current.subtitle_active') }} @else {{ __('pages/subscription.dashboard.current.subtitle_empty') }} @endif
{{ __('pages/subscription.dashboard.current.empty.description') }}
{{ __('pages/subscription.buttons.choose_plan') }}@if($onTrial ?? false) {{ __('pages/subscription.dashboard.change_plan.subtitle_trial') }} @elseif($hasScheduledPlanChange ?? false) {{ __('pages/subscription.dashboard.change_plan.subtitle_scheduled') }} @elseif($activeSubscription->onGracePeriod()) {{ __('pages/subscription.dashboard.change_plan.subtitle_grace') }} @elseif($canChangePlan ?? false) {{ __('pages/subscription.dashboard.change_plan.subtitle_available') }} @else {{ __('pages/subscription.dashboard.change_plan.subtitle_unavailable') }} @endif
{{ __('pages/subscription.dashboard.change_plan.scheduled_notice', [ 'plan' => $pendingPlan?->name, 'date' => $activeSubscription->pending_plan_effective_at?->format('M d, Y') ?? __('pages/subscription.dashboard.current.next_billing_fallback'), ]) }}
{{ __('pages/subscription.buttons.view_all_plans') }}{!! __('pages/subscription.dashboard.change_plan.grace_notice', [ 'resume' => ''.e(__('pages/subscription.buttons.resume_subscription')).'', ]) !!}
{{ __('pages/subscription.buttons.view_plans') }}{{ __('pages/subscription.dashboard.change_plan.unavailable_notice') }}
{{ __('pages/subscription.buttons.view_plans') }}{{ __('pages/subscription.dashboard.change_plan.no_other_plans') }}
@else{{ __('pages/subscription.dashboard.history.subtitle') }}
| {{ __('pages/admin/subscription.table.plan') }} | {{ __('form.label.status') }} | {{ __('pages/admin/subscription.table.started') }} | {{ __('pages/admin/subscription.table.ends') }} |
|---|---|---|---|
| {{ $planName ?? __('pages/common.empty') }} | {{ \App\Support\SubscriptionStatusLabel::for($sub->stripe_status) }} | {{ $sub->created_at?->format('M d, Y') ?? __('pages/common.empty') }} | {{ $sub->ends_at?->format('M d, Y') ?? __('pages/common.empty') }} |
| {{ __('pages/subscription.dashboard.history.empty') }} | |||
{{ __('pages/subscription.dashboard.invoices.subtitle') }}
| {{ __('pages/subscription.dashboard.invoices.table.invoice') }} | {{ __('pages/subscription.dashboard.invoices.table.date') }} | {{ __('pages/subscription.dashboard.invoices.table.amount') }} | {{ __('form.label.status') }} | {{ __('pages/subscription.dashboard.invoices.table.pdf') }} |
|---|---|---|---|---|
| {{ $invoice['number'] }} | {{ $invoice['billing_date']->format('M d, Y') }} | {{ $invoice['amount'] }} | @php $invoiceStatusClass = match ($invoice['status']) { 'paid' => 'border-emerald-500/40 bg-emerald-500/10 text-emerald-800 dark:text-emerald-200', 'open' => 'border-amber-500/40 bg-amber-500/10 text-amber-900 dark:text-amber-200', 'uncollectible', 'void' => 'border-red-500/40 bg-red-500/10 text-red-800 dark:text-red-200', default => 'border-border bg-muted/40 text-muted-foreground', }; @endphp {{ $invoice['status_label'] }} |
@if($invoice['can_download'])
|
| {{ __('pages/subscription.dashboard.invoices.empty') }} | ||||