diff --git a/app/Http/Livewire/Dashboard.php b/app/Http/Livewire/Dashboard.php index d411312d5..723b00f7f 100644 --- a/app/Http/Livewire/Dashboard.php +++ b/app/Http/Livewire/Dashboard.php @@ -11,19 +11,11 @@ class Dashboard extends Component { public $projects = []; public $servers = []; - public int $s3s = 0; - public int $resources = 0; public function mount() { $this->servers = Server::ownedByCurrentTeam()->get(); - $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; + $this->projects = Project::ownedByCurrentTeam()->get(); } // public function getIptables() // { diff --git a/resources/views/livewire/dashboard.blade.php b/resources/views/livewire/dashboard.blade.php index c0d4a3575..934923ce9 100644 --- a/resources/views/livewire/dashboard.blade.php +++ b/resources/views/livewire/dashboard.blade.php @@ -14,27 +14,7 @@ Your subscription has been activated! Welcome onboard! @endif -