whereIn('status', ['in_progress', 'queued']) ->whereIn('server_id', $servers->pluck('id')) ->orderBy('id') ->get([ 'id', 'application_id', 'application_name', 'deployment_url', 'pull_request_id', 'server_name', 'server_id', 'status', ]); } #[Computed] public function deploymentCount() { return $this->deployments->count(); } #[Computed] public function shouldReduceOpacity(): bool { return request()->routeIs('project.application.deployment.*'); } public function toggleExpanded() { $this->expanded = ! $this->expanded; } public function render() { return view('livewire.deployments-indicator'); } }