public function render()
{
if (Request::capture()->has('_tree')) {
return response()->json(['status' => $this->saveTree(Request::capture()->get('_tree'))]);
}
$this->buildupScript();
AdminManager::script($this->script);
view()->share(['path' => $this->path]);
return view('admin::tree', $this->variables())->render();
}