hasSubscription) { $this->redirect(route('dashboard'), navigate: true); return; } $this->waitedSeconds += 1; if ($this->waitedSeconds >= self::TIMEOUT_SECONDS) { $this->timedOut = true; } } #[Computed] public function hasSubscription(): bool { return Auth::user()?->hasActiveSubscription() ?? false; } }; ?>
@if ($this->hasSubscription) {{ __('Your subscription is active') }} {{ __('Welcome aboard. Taking you to your todos now.') }} {{ __('Go to my todos') }} @elseif ($timedOut) {{ __('Still confirming your payment') }} {{ __('Your payment went through, but we have not heard from Stripe yet. Your access will turn on automatically as soon as it does.') }} {{ __('Back to plans') }} @else
{{ __('Confirming your subscription') }} {{ __('This usually takes a few seconds. Please do not close this page.') }} @endif