servers = Server::ownedByCurrentTeam()->get()->count(); $this->s3s = S3Storage::ownedByCurrentTeam()->get()->count(); $projects = Project::ownedByCurrentTeam()->get(); foreach ($projects as $project) { $this->resources += $project->applications->count(); $this->resources += $project->postgresqls->count(); } $this->projects = $projects->count(); } public function render() { return view('livewire.dashboard'); } }