2023-08-17 13:19:37 +00:00
|
|
|
<?php
|
|
|
|
|
2023-12-07 18:06:32 +00:00
|
|
|
namespace App\Livewire\Subscription;
|
2023-08-17 13:19:37 +00:00
|
|
|
|
2024-02-23 14:45:53 +00:00
|
|
|
use App\Models\Team;
|
2023-08-17 13:19:37 +00:00
|
|
|
use Livewire\Component;
|
|
|
|
|
|
|
|
class Actions extends Component
|
|
|
|
{
|
2024-02-23 10:21:14 +00:00
|
|
|
public $server_limits = 0;
|
2024-06-10 20:43:34 +00:00
|
|
|
|
2024-02-23 10:21:14 +00:00
|
|
|
public function mount()
|
|
|
|
{
|
2024-02-23 14:45:53 +00:00
|
|
|
$this->server_limits = Team::serverLimit();
|
2024-02-23 10:21:14 +00:00
|
|
|
}
|
2024-06-10 20:43:34 +00:00
|
|
|
|
2024-02-23 10:21:14 +00:00
|
|
|
public function stripeCustomerPortal()
|
|
|
|
{
|
2023-08-24 14:14:09 +00:00
|
|
|
$session = getStripeCustomerPortalSession(currentTeam());
|
|
|
|
redirect($session->url);
|
|
|
|
}
|
2023-08-17 13:19:37 +00:00
|
|
|
}
|