diff --git a/app/Livewire/Subscription/Actions.php b/app/Livewire/Subscription/Actions.php
index bd4dbd69a..3050e38ab 100644
--- a/app/Livewire/Subscription/Actions.php
+++ b/app/Livewire/Subscription/Actions.php
@@ -7,6 +7,13 @@
class Actions extends Component
{
+ public $server_limits = 0;
+ public function mount()
+ {
+ $limits = currentTeam()->limits;
+ $this->server_limits = data_get($limits, 'serverLimit', 0);
+
+ }
public function cancel()
{
try {
@@ -69,7 +76,8 @@ public function resume()
return handleError($e, $this);
}
}
- public function stripeCustomerPortal() {
+ public function stripeCustomerPortal()
+ {
$session = getStripeCustomerPortalSession(currentTeam());
redirect($session->url);
}
diff --git a/app/Livewire/Subscription/Show.php b/app/Livewire/Subscription/Show.php
new file mode 100644
index 000000000..8069b98a6
--- /dev/null
+++ b/app/Livewire/Subscription/Show.php
@@ -0,0 +1,19 @@
+route('dashboard');
+ }
+ }
+ public function render()
+ {
+ return view('livewire.subscription.show');
+ }
+}
diff --git a/bootstrap/helpers/subscriptions.php b/bootstrap/helpers/subscriptions.php
index 47ea21e46..a26bed75b 100644
--- a/bootstrap/helpers/subscriptions.php
+++ b/bootstrap/helpers/subscriptions.php
@@ -109,7 +109,7 @@ function isPaddle()
function getStripeCustomerPortalSession(Team $team)
{
Stripe::setApiKey(config('subscription.stripe_api_key'));
- $return_url = route('team.index');
+ $return_url = route('subscription.show');
$stripe_customer_id = data_get($team,'subscription.stripe_customer_id');
if (!$stripe_customer_id) {
return null;
@@ -123,7 +123,7 @@ function getStripeCustomerPortalSession(Team $team)
function allowedPathsForUnsubscribedAccounts()
{
return [
- 'subscription',
+ 'subscription/new',
'login',
'logout',
'waitlist',
diff --git a/resources/views/components/navbar.blade.php b/resources/views/components/navbar.blade.php
index 598ccb2fd..93adb9126 100644
--- a/resources/views/components/navbar.blade.php
+++ b/resources/views/components/navbar.blade.php
@@ -130,11 +130,20 @@ class="{{ request()->is('team*') ? 'text-warning icon' : 'icon' }}"
Start self-hosting without limits with our OSS version. Same features as the paid version, but you have to manage by yourself.
-Start self-hosting in - the cloud - with a - single - server. +
Begin hosting your own services in the + cloud.
Expand your business or set up your own hosting + environment.
Easily manage complex infrastructures in a + single location.