public function decorate($content = null)
    {
        $current = realpath(__DIR__ . '/../') . '/';
        $dotted  = 'templates.default';
        $params  = array_merge($this->shared, ['content' => $content]);
        if (!is_null($this->template)) {
            $viewPath = str_replace([$current, '/resources/views/', '..'], '', $this->template['path']);
            $dotted   = str_replace(DIRECTORY_SEPARATOR, '.', $viewPath);
            return view("antares/ui-components::{$dotted}.index", array_merge($params, ['template' => $this->template['package']]))->render();
        }
        return view($this->path, $params)->render();
    }