'checkSysbox']; public function mount(Server $server): void { $this->authorize('view', $server); $this->server = $server; $this->checkSysbox(); } public function checkSysbox(): void { $this->authorize('view', $this->server); $this->isInstalled = InstallSysbox::isInstalled($this->server); } public function installSysbox() { $this->authorize('update', $this->server); try { $activity = InstallSysbox::run($this->server); $this->dispatch('sysbox-install-started'); $this->dispatch('activityMonitor', $activity->id, 'sysboxInstalled'); } catch (\Throwable $e) { return handleError($e, $this); } } public function placeholder(): View { return view('livewire.server.sysbox-status-placeholder'); } public function render(): View { return view('livewire.server.sysbox-status'); } }