Fix styling
This commit is contained in:
committed by
github-actions[bot]
parent
41fb6a1fc9
commit
d86274cc37
@@ -9,10 +9,12 @@ use Livewire\Component;
|
||||
class Index extends Component
|
||||
{
|
||||
public InstanceSettings $settings;
|
||||
|
||||
public bool $alreadySubscribed = false;
|
||||
|
||||
public function mount()
|
||||
{
|
||||
if (!isCloud()) {
|
||||
if (! isCloud()) {
|
||||
return redirect(RouteServiceProvider::HOME);
|
||||
}
|
||||
if (auth()->user()?->isMember()) {
|
||||
@@ -24,14 +26,17 @@ class Index extends Component
|
||||
$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');
|
||||
|
||||
Reference in New Issue
Block a user