lasthourcloud/app/Livewire/Server/Create.php
2024-06-10 20:43:34 +00:00

31 lines
579 B
PHP

<?php
namespace App\Livewire\Server;
use App\Models\PrivateKey;
use App\Models\Team;
use Livewire\Component;
class Create extends Component
{
public $private_keys = [];
public bool $limit_reached = false;
public function mount()
{
$this->private_keys = PrivateKey::ownedByCurrentTeam()->get();
if (! isCloud()) {
$this->limit_reached = false;
return;
}
$this->limit_reached = Team::serverLimitReached();
}
public function render()
{
return view('livewire.server.create');
}
}