public function info()
{
$info = [];
$info["app"] = json_decode($this->app->helper("fs")->read("#root:package.json"), true);
$info['system'] = php_uname();
$info['phpversion'] = phpversion();
$info['sapi_name'] = php_sapi_name();
$info['extensions'] = get_loaded_extensions();
$info["mailer"] = $this->app->retrieve("app.config/mailer", false);
$info["sizeCache"] = $this->app->helper("utils")->formatSize($this->app->helper("fs")->getDirSize("cache:"));
$info["sizeData"] = $this->app->helper("utils")->formatSize($this->app->helper("fs")->getDirSize("data:"));
$info['folders'] = [];
foreach (['cache:', 'cache:assets', 'cache:thumbs', 'data:'] as $dir) {
$info['folders'][$dir] = is_writable($this->app->path($dir));
}
return $this->render('cockpit:views/settings/info.php', compact('info'));
}