rector: arrrrr

This commit is contained in:
Andras Bacsai
2025-01-07 14:52:08 +01:00
parent c702ebff6d
commit 16c0cd10d8
349 changed files with 4204 additions and 3712 deletions

View File

@@ -25,13 +25,15 @@ class Index extends Component
}
$this->settings = instanceSettings();
$this->alreadySubscribed = currentTeam()->subscription()->exists();
return null;
}
public function stripeCustomerPortal()
{
$session = getStripeCustomerPortalSession(currentTeam());
if (is_null($session)) {
return;
return null;
}
return redirect($session->url);

View File

@@ -22,7 +22,7 @@ class PricingPlans extends Component
if (! $priceId) {
$this->dispatch('error', 'Price ID not found! Please contact the administrator.');
return;
return null;
}
$payload = [
'allow_promotion_codes' => true,

View File

@@ -17,6 +17,8 @@ class Show extends Component
if (! data_get(currentTeam(), 'subscription')) {
return redirect()->route('subscription.index');
}
return null;
}
public function render()