route('subscription.show'); } $this->settings = InstanceSettings::get(); $this->alreadySubscribed = currentTeam()->subscription()->exists(); } public function stripeCustomerPortal() { $session = getStripeCustomerPortalSession(currentTeam()); if (is_null($session)) { return; } return redirect($session->url); } public function render() { return view('livewire.subscription.index')->layout('layouts.subscription'); } }