public function edit(Request $request, $template)
    {
        $data = $this->getData();

        /**
         * Set workspace identifier
         */
        \PDFGeneratorAPI::setWorkspace($this->userRepository->getWorkspaceIdentifier(Auth::user()));

        return redirect()->away(\PDFGeneratorAPI::editor($template, $data));
    }