softwareVersionService = $softwareVersionService; } public function getViewData(): array { return [ 'inDevelopment' => config('app.version') === 'canary', 'version' => $this->softwareVersionService->versionData()['version'], 'latestVersion' => $this->softwareVersionService->getPanel(), 'isLatest' => $this->softwareVersionService->isLatestPanel(), 'eggsCount' => Egg::query()->count(), 'nodesList' => ListNodes::getUrl(), 'nodesCount' => Node::query()->count(), 'serversCount' => Server::query()->count(), 'usersCount' => User::query()->count(), 'devActions' => [ CreateAction::make() ->label('Bugs & Features') ->icon('tabler-brand-github') ->url('https://github.com/pelican-dev/panel/discussions', true), ], 'updateActions' => [ CreateAction::make() ->label('Read Documentation') ->icon('tabler-clipboard-text') ->url('https://pelican.dev/docs/panel/update', true) ->color('warning'), ], 'nodeActions' => [ CreateAction::make() ->label(trans('dashboard/index.sections.intro-first-node.button_label')) ->icon('tabler-server-2') ->url(route('filament.admin.resources.nodes.create')), ], 'supportActions' => [ CreateAction::make() ->label(trans('dashboard/index.sections.intro-support.button_donate')) ->icon('tabler-cash') ->url($this->softwareVersionService->getDonations(), true) ->color('success'), ], 'helpActions' => [ CreateAction::make() ->label(trans('dashboard/index.sections.intro-help.button_docs')) ->icon('tabler-speedboat') ->url('https://pelican.dev/docs', true), ], ]; } }