var/cache/dev/twig/8b/8b579d86caad0a0d40499db07df7eb47bb9f6ddae9a7a46b92b49719a5e76c18.php line 103

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* includes/layout/_header.html.twig */
  14. class __TwigTemplate_feec71cdd7d658646ad3ce3d85ff5d22ec49368bcdb2778984c9d334c3b7a11e extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/layout/_header.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/layout/_header.html.twig"));
  33.         // line 1
  34.         echo "
  35. <!--begin::Header-->
  36. <div id=\"kt_header\" class=\"header header-fixed\">
  37. \t<!--begin::Container-->
  38. \t<div class=\"container-fluid d-flex align-items-stretch justify-content-between\">
  39. \t\t<!--begin::Header Menu Wrapper-->
  40. \t\t<div class=\"header-menu-wrapper header-menu-wrapper-left align-self-center\" id=\"kt_header_menu_wrapper\">
  41. \t\t";
  42.         // line 10
  43.         if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'10$this->source); })()), "request", [], "any"falsefalsefalse10), "attributes", [], "any"falsefalsefalse10), "get", [=> "_route"], "method"falsefalsefalse10) == "index1") || (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'10$this->source); })()), "request", [], "any"falsefalsefalse10), "attributes", [], "any"falsefalsefalse10), "get", [=> "_route"], "method"falsefalsefalse10) == "index2"))) {
  44.             // line 11
  45.             echo "\t\t\t<div class=\"topbar-item\" data-offset=\"0px,0px\">
  46. \t\t\t\t<a href=\"";
  47.             // line 12
  48.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index1");
  49.             echo "\">
  50. \t\t\t\t\t<div class=\"btn btn-icon w-auto btn-clean d-flex align-items-center btn-lg px-2\">
  51. \t\t\t\t\t\t<span class=\"text-dark-50 font-weight-bolder font-size-base d-md-inline mr-3\">Proceso simple</span>
  52. \t\t\t\t\t\t<span class=\"symbol symbol-35 symbol-light-primary\">
  53. \t\t\t\t\t\t\t<span class=\"symbol-label font-size-h5 font-weight-bold\">PS</span>
  54. \t\t\t\t\t\t</span>
  55. \t\t\t\t\t</div>
  56. \t\t\t\t</a>
  57. \t\t\t</div>
  58. \t\t\t<div class=\"topbar-item\" data-offset=\"0px,0px\">
  59. \t\t\t\t<a href=\"";
  60.             // line 23
  61.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index2");
  62.             echo "\">
  63. \t\t\t\t\t<div class=\"btn btn-icon w-auto btn-clean d-flex align-items-center btn-lg px-2\">
  64. \t\t\t\t\t\t<span class=\"text-dark-50 font-weight-bolder font-size-base d-md-inline mr-3\">Proceso compuesto</span>
  65. \t\t\t\t\t\t<span class=\"symbol symbol-35 symbol-light-primary\">
  66. \t\t\t\t\t\t\t<span class=\"symbol-label font-size-h5 font-weight-bold\">PC</span>
  67. \t\t\t\t\t\t</span>
  68. \t\t\t\t\t</div>
  69. \t\t\t\t</a>
  70. \t\t\t</div>
  71. \t\t";
  72.         }
  73.         // line 33
  74.         echo "\t\t\t<!--end::Toggle-->
  75. \t\t\t<!--begin::Header Logo-->
  76. \t\t\t<!--end::Header Logo-->
  77. \t\t\t";
  78.         // line 38
  79.         $context["cur_route_name"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse38), "attributes", [], "any"falsetruefalse38), "get", [=> "_route"], "method"truetruefalse38)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse38), "attributes", [], "any"falsetruefalse38), "get", [=> "_route"], "method"falsefalsefalse38), ((array_key_exists("_route"$context)) ? (_twig_default_filter((isset($context["_route"]) || array_key_exists("_route"$context) ? $context["_route"] : (function () { throw new RuntimeError('Variable "_route" does not exist.'38$this->source); })()), "")) : ("")))) : (((array_key_exists("_route"$context)) ? (_twig_default_filter((isset($context["_route"]) || array_key_exists("_route"$context) ? $context["_route"] : (function () { throw new RuntimeError('Variable "_route" does not exist.'38$this->source); })()), "")) : (""))));
  80.         // line 39
  81.         echo "
  82. \t\t\t<!--begin::Header Menu-->
  83. \t\t\t<div class=\"menu-resp\">
  84. \t\t\t\t<div id=\"kt_header_menu\" class=\"header-menu header-menu-mobile header-menu-layout-default header-menu-root-arrow\">
  85. \t\t\t\t\t<!--begin::Header Nav-->
  86. \t\t\t\t\t<ul class=\"menu-nav\">
  87. \t\t\t\t\t\t";
  88.         // line 45
  89.         $context["perm_regpro_new"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_REG_PROCESO_CREATE");
  90.         // line 46
  91.         echo "
  92. \t\t\t\t\t\t";
  93.         // line 47
  94.         if ((isset($context["perm_regpro_new"]) || array_key_exists("perm_regpro_new"$context) ? $context["perm_regpro_new"] : (function () { throw new RuntimeError('Variable "perm_regpro_new" does not exist.'47$this->source); })())) {
  95.             // line 48
  96.             echo "\t\t\t\t\t\t\t<li class=\"menu-item menu-item-submenu\" aria-haspopup=\"true\">
  97. \t\t\t\t\t\t\t\t<a href=\"\" class=\"menu-link menu-toggle\">
  98. \t\t\t\t\t\t\t\t\t<i class=\"menu-icon flaticon2-add-square\"></i>
  99. \t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Crear nuevo proceso</span>
  100. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  101. \t\t\t\t\t\t\t\t</a>
  102. \t\t\t\t\t\t\t\t<div class=\"menu-submenu\">
  103. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  104. \t\t\t\t\t\t\t\t\t<ul class=\"menu-subnav\">
  105. \t\t\t\t\t\t\t\t\t\t<li class=\"menu-item\" aria-haspopup=\"true\">
  106. \t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  107.             // line 58
  108.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index1");
  109.             echo "\" class=\"menu-link\">
  110. \t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  111. \t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  112. \t\t\t\t\t\t\t\t\t\t\t\t</i>
  113. \t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Proceso simple</span>
  114. \t\t\t\t\t\t\t\t\t\t\t</a>
  115. \t\t\t\t\t\t\t\t\t\t</li>
  116. \t\t\t\t\t\t\t\t\t\t<li class=\"menu-item\" aria-haspopup=\"true\">
  117. \t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  118.             // line 67
  119.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index2");
  120.             echo "\" class=\"menu-link\">
  121. \t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  122. \t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  123. \t\t\t\t\t\t\t\t\t\t\t\t</i>
  124. \t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Proceso compuesto</span>
  125. \t\t\t\t\t\t\t\t\t\t\t</a>
  126. \t\t\t\t\t\t\t\t\t\t</li>
  127. \t\t\t\t\t\t\t\t\t</ul>
  128. \t\t\t\t\t\t\t\t</div>
  129. \t\t\t\t\t\t\t</li>
  130. \t\t\t\t\t\t";
  131.         }
  132.         // line 78
  133.         echo "
  134. \t\t\t\t\t\t";
  135.         // line 79
  136.         $context["perm_regpro"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_REG_PROCESO");
  137.         // line 80
  138.         echo "\t\t\t\t\t\t";
  139.         $context["current_regpro"] = twig_in_filter((isset($context["cur_route_name"]) || array_key_exists("cur_route_name"$context) ? $context["cur_route_name"] : (function () { throw new RuntimeError('Variable "cur_route_name" does not exist.'80$this->source); })()), [=> "regpro_index"=> "regpro_view"]);
  140.         // line 81
  141.         echo "\t\t\t\t\t\t";
  142.         $context["perm_regfase"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_REG_FASE");
  143.         // line 82
  144.         echo "\t\t\t\t\t\t";
  145.         $context["current_regfase"] = twig_in_filter((isset($context["cur_route_name"]) || array_key_exists("cur_route_name"$context) ? $context["cur_route_name"] : (function () { throw new RuntimeError('Variable "cur_route_name" does not exist.'82$this->source); })()), [=> "regfase_index"=> "regfase_view"]);
  146.         // line 83
  147.         echo "\t\t\t\t\t\t";
  148.         $context["current_reg_menu"] = twig_in_filter((isset($context["cur_route_name"]) || array_key_exists("cur_route_name"$context) ? $context["cur_route_name"] : (function () { throw new RuntimeError('Variable "cur_route_name" does not exist.'83$this->source); })()), [=> "regpro_index"=> "regpro_view"=> "regfase_index"=> "regfase_view"]);
  149.         // line 84
  150.         echo "
  151. \t\t\t\t\t\t";
  152.         // line 85
  153.         if (((isset($context["perm_regpro"]) || array_key_exists("perm_regpro"$context) ? $context["perm_regpro"] : (function () { throw new RuntimeError('Variable "perm_regpro" does not exist.'85$this->source); })()) || (isset($context["perm_regfase"]) || array_key_exists("perm_regfase"$context) ? $context["perm_regfase"] : (function () { throw new RuntimeError('Variable "perm_regfase" does not exist.'85$this->source); })()))) {
  154.             // line 86
  155.             echo "\t\t\t\t\t\t\t<li class=\"menu-item menu-item-submenu ";
  156.             echo (((isset($context["current_reg_menu"]) || array_key_exists("current_reg_menu"$context) ? $context["current_reg_menu"] : (function () { throw new RuntimeError('Variable "current_reg_menu" does not exist.'86$this->source); })())) ? ("menu-item-active") : (""));
  157.             echo "\" aria-haspopup=\"true\">
  158. \t\t\t\t\t\t\t\t<a href=\"\" class=\"menu-link menu-toggle\">
  159. \t\t\t\t\t\t\t\t\t<i class=\"menu-icon flaticon-list-2\"></i>
  160. \t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Registros</span>
  161. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  162. \t\t\t\t\t\t\t\t</a>
  163. \t\t\t\t\t\t\t\t<div class=\"menu-submenu\">
  164. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  165. \t\t\t\t\t\t\t\t\t<ul class=\"menu-subnav\">
  166. \t\t\t\t\t\t\t\t\t";
  167.             // line 96
  168.             if ((isset($context["perm_regpro"]) || array_key_exists("perm_regpro"$context) ? $context["perm_regpro"] : (function () { throw new RuntimeError('Variable "perm_regpro" does not exist.'96$this->source); })())) {
  169.                 // line 97
  170.                 echo "\t\t\t\t\t\t\t\t\t\t<li class=\"menu-item ";
  171.                 echo (((isset($context["current_regpro"]) || array_key_exists("current_regpro"$context) ? $context["current_regpro"] : (function () { throw new RuntimeError('Variable "current_regpro" does not exist.'97$this->source); })())) ? ("menu-item-active") : (""));
  172.                 echo "\" aria-haspopup=\"true\">
  173. \t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  174.                 // line 98
  175.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("regpro_index");
  176.                 echo "\" class=\"menu-link\">
  177. \t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  178. \t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  179. \t\t\t\t\t\t\t\t\t\t\t\t</i>
  180. \t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Procesos</span>
  181. \t\t\t\t\t\t\t\t\t\t\t</a>
  182. \t\t\t\t\t\t\t\t\t\t</li>
  183. \t\t\t\t\t\t\t\t\t";
  184.             }
  185.             // line 106
  186.             echo "
  187. \t\t\t\t\t\t\t\t\t";
  188.             // line 107
  189.             if ((isset($context["perm_regfase"]) || array_key_exists("perm_regfase"$context) ? $context["perm_regfase"] : (function () { throw new RuntimeError('Variable "perm_regfase" does not exist.'107$this->source); })())) {
  190.                 // line 108
  191.                 echo "\t\t\t\t\t\t\t\t\t\t<li class=\"menu-item ";
  192.                 echo (((isset($context["current_regfase"]) || array_key_exists("current_regfase"$context) ? $context["current_regfase"] : (function () { throw new RuntimeError('Variable "current_regfase" does not exist.'108$this->source); })())) ? ("menu-item-active") : (""));
  193.                 echo "\" aria-haspopup=\"true\">
  194. \t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  195.                 // line 109
  196.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("regfase_index");
  197.                 echo "\" class=\"menu-link\">
  198. \t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  199. \t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  200. \t\t\t\t\t\t\t\t\t\t\t\t</i>
  201. \t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Fases</span>
  202. \t\t\t\t\t\t\t\t\t\t\t</a>
  203. \t\t\t\t\t\t\t\t\t\t</li>
  204. \t\t\t\t\t\t\t\t\t";
  205.             }
  206.             // line 117
  207.             echo "\t\t\t\t\t\t\t\t\t\t
  208. \t\t\t\t\t\t\t\t\t</ul>
  209. \t\t\t\t\t\t\t\t</div>
  210. \t\t\t\t\t\t\t</li>
  211. \t\t\t\t\t\t";
  212.         }
  213.         // line 122
  214.         echo "
  215. \t\t\t\t\t\t";
  216.         // line 123
  217.         $context["perm_proc"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PROCESO");
  218.         // line 124
  219.         echo "\t\t\t\t\t\t";
  220.         $context["current_proc"] = twig_in_filter((isset($context["cur_route_name"]) || array_key_exists("cur_route_name"$context) ? $context["cur_route_name"] : (function () { throw new RuntimeError('Variable "cur_route_name" does not exist.'124$this->source); })()), [=> "proceso_index"=> "proceso_view"=> "proceso_new"=> "proceso_edit"=> "proceso_delete"]);
  221.         // line 125
  222.         echo "\t\t\t\t\t\t";
  223.         $context["current_prod_menu"] = twig_in_filter((isset($context["cur_route_name"]) || array_key_exists("cur_route_name"$context) ? $context["cur_route_name"] : (function () { throw new RuntimeError('Variable "cur_route_name" does not exist.'125$this->source); })()), [=> "proceso_index"=> "proceso_view"=> "proceso_new"=> "proceso_edit"=> "proceso_delete"]);
  224.         // line 126
  225.         echo "
  226. \t\t\t\t\t\t";
  227.         // line 127
  228.         if ((isset($context["perm_proc"]) || array_key_exists("perm_proc"$context) ? $context["perm_proc"] : (function () { throw new RuntimeError('Variable "perm_proc" does not exist.'127$this->source); })())) {
  229.             // line 128
  230.             echo "\t\t\t\t\t\t\t<li class=\"menu-item menu-item-submenu ";
  231.             echo (((isset($context["current_prod_menu"]) || array_key_exists("current_prod_menu"$context) ? $context["current_prod_menu"] : (function () { throw new RuntimeError('Variable "current_prod_menu" does not exist.'128$this->source); })())) ? ("menu-item-active") : (""));
  232.             echo "\" aria-haspopup=\"true\">
  233. \t\t\t\t\t\t\t\t<a href=\"\" class=\"menu-link menu-toggle\">
  234. \t\t\t\t\t\t\t\t\t<i class=\"menu-icon flaticon-web\"></i>
  235. \t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Producción</span>
  236. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  237. \t\t\t\t\t\t\t\t</a>
  238. \t\t\t\t\t\t\t\t<div class=\"menu-submenu\">
  239. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  240. \t\t\t\t\t\t\t\t\t<ul class=\"menu-subnav\">
  241. \t\t\t\t\t\t\t\t\t\t";
  242.             // line 138
  243.             if ((isset($context["perm_proc"]) || array_key_exists("perm_proc"$context) ? $context["perm_proc"] : (function () { throw new RuntimeError('Variable "perm_proc" does not exist.'138$this->source); })())) {
  244.                 // line 139
  245.                 echo "\t\t\t\t\t\t\t\t\t\t\t<li class=\"menu-item ";
  246.                 echo (((isset($context["current_proc"]) || array_key_exists("current_proc"$context) ? $context["current_proc"] : (function () { throw new RuntimeError('Variable "current_proc" does not exist.'139$this->source); })())) ? ("menu-item-active") : (""));
  247.                 echo "\" aria-haspopup=\"true\">
  248. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  249.                 // line 140
  250.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("proceso_index");
  251.                 echo "\" class=\"menu-link\">
  252. \t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  253. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  254. \t\t\t\t\t\t\t\t\t\t\t\t\t</i>
  255. \t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Procesos</span>
  256. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  257. \t\t\t\t\t\t\t\t\t\t\t</li>
  258. \t\t\t\t\t\t\t\t\t\t";
  259.             }
  260.             // line 148
  261.             echo "
  262. \t\t\t\t\t\t\t\t\t</ul>
  263. \t\t\t\t\t\t\t\t</div>
  264. \t\t\t\t\t\t\t</li>
  265. \t\t\t\t\t\t";
  266.         }
  267.         // line 153
  268.         echo "
  269. \t\t\t\t\t\t";
  270.         // line 154
  271.         $context["perm_user"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USR");
  272.         // line 155
  273.         echo "\t\t\t\t\t\t";
  274.         $context["curent_user"] = twig_in_filter((isset($context["cur_route_name"]) || array_key_exists("cur_route_name"$context) ? $context["cur_route_name"] : (function () { throw new RuntimeError('Variable "cur_route_name" does not exist.'155$this->source); })()), [=> "usuario_index"=> "usuario_view"=> "usuario_new"=> "usuario_edit"=> "usuario_delete"]);
  275.         // line 156
  276.         echo "\t\t\t\t\t\t";
  277.         $context["perm_emp"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_EMPRESA");
  278.         // line 157
  279.         echo "\t\t\t\t\t\t";
  280.         $context["curent_emp"] = twig_in_filter((isset($context["cur_route_name"]) || array_key_exists("cur_route_name"$context) ? $context["cur_route_name"] : (function () { throw new RuntimeError('Variable "cur_route_name" does not exist.'157$this->source); })()), [=> "empresa_index"=> "empresa_view"=> "empresa_new"=> "empresa_edit"=> "empresa_delete"]);
  281.         // line 158
  282.         echo "\t\t\t\t\t\t";
  283.         $context["current_adm_menu"] = twig_in_filter((isset($context["cur_route_name"]) || array_key_exists("cur_route_name"$context) ? $context["cur_route_name"] : (function () { throw new RuntimeError('Variable "cur_route_name" does not exist.'158$this->source); })()), [=> "usuario_index"=> "usuario_view"=> "usuario_new"=> "usuario_edit"=> "usuario_delete"=> "empresa_index"=> "empresa_view"=> "empresa_new"=> "empresa_edit"=> "empresa_delete"]);
  284.         // line 159
  285.         echo "
  286. \t\t\t\t\t\t";
  287.         // line 160
  288.         if (((isset($context["perm_user"]) || array_key_exists("perm_user"$context) ? $context["perm_user"] : (function () { throw new RuntimeError('Variable "perm_user" does not exist.'160$this->source); })()) || (isset($context["perm_emp"]) || array_key_exists("perm_emp"$context) ? $context["perm_emp"] : (function () { throw new RuntimeError('Variable "perm_emp" does not exist.'160$this->source); })()))) {
  289.             // line 161
  290.             echo "\t\t\t\t\t\t\t<li class=\"menu-item menu-item-submenu ";
  291.             echo (((isset($context["current_adm_menu"]) || array_key_exists("current_adm_menu"$context) ? $context["current_adm_menu"] : (function () { throw new RuntimeError('Variable "current_adm_menu" does not exist.'161$this->source); })())) ? ("menu-item-active") : (""));
  292.             echo "\" aria-haspopup=\"true\">
  293. \t\t\t\t\t\t\t\t<a href=\"\" class=\"menu-link menu-toggle\">
  294. \t\t\t\t\t\t\t\t\t<i class=\"menu-icon far fa-clipboard\"></i>
  295. \t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Administración</span>
  296. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  297. \t\t\t\t\t\t\t\t</a>
  298. \t\t\t\t\t\t\t\t<div class=\"menu-submenu\">
  299. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  300. \t\t\t\t\t\t\t\t\t<ul class=\"menu-subnav\">
  301. \t\t\t\t\t\t\t\t\t\t";
  302.             // line 171
  303.             if ((isset($context["perm_user"]) || array_key_exists("perm_user"$context) ? $context["perm_user"] : (function () { throw new RuntimeError('Variable "perm_user" does not exist.'171$this->source); })())) {
  304.                 // line 172
  305.                 echo "\t\t\t\t\t\t\t\t\t\t\t<li class=\"menu-item ";
  306.                 echo (((isset($context["curent_user"]) || array_key_exists("curent_user"$context) ? $context["curent_user"] : (function () { throw new RuntimeError('Variable "curent_user" does not exist.'172$this->source); })())) ? ("menu-item-active") : (""));
  307.                 echo "\" aria-haspopup=\"true\">
  308. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  309.                 // line 173
  310.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("usuario_index");
  311.                 echo "\" class=\"menu-link\">
  312. \t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  313. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  314. \t\t\t\t\t\t\t\t\t\t\t\t\t</i>
  315. \t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Usuarios</span>
  316. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  317. \t\t\t\t\t\t\t\t\t\t\t</li>
  318. \t\t\t\t\t\t\t\t\t\t";
  319.             }
  320.             // line 181
  321.             echo "
  322. \t\t\t\t\t\t\t\t\t\t";
  323.             // line 182
  324.             if ((isset($context["perm_user"]) || array_key_exists("perm_user"$context) ? $context["perm_user"] : (function () { throw new RuntimeError('Variable "perm_user" does not exist.'182$this->source); })())) {
  325.                 // line 183
  326.                 echo "\t\t\t\t\t\t\t\t\t\t\t<li class=\"menu-item ";
  327.                 echo (((isset($context["curent_emp"]) || array_key_exists("curent_emp"$context) ? $context["curent_emp"] : (function () { throw new RuntimeError('Variable "curent_emp" does not exist.'183$this->source); })())) ? ("menu-item-active") : (""));
  328.                 echo "\" aria-haspopup=\"true\">
  329. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  330.                 // line 184
  331.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("empresa_index");
  332.                 echo "\" class=\"menu-link\">
  333. \t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  334. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  335. \t\t\t\t\t\t\t\t\t\t\t\t\t</i>
  336. \t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Empresas</span>
  337. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  338. \t\t\t\t\t\t\t\t\t\t\t</li>
  339. \t\t\t\t\t\t\t\t\t\t";
  340.             }
  341.             // line 192
  342.             echo "
  343. \t\t\t\t\t\t\t\t\t</ul>
  344. \t\t\t\t\t\t\t\t</div>
  345. \t\t\t\t\t\t\t</li>
  346. \t\t\t\t\t\t";
  347.         }
  348.         // line 197
  349.         echo "
  350. \t\t\t\t\t\t";
  351.         // line 198
  352.         $context["perm_config"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_CONFIG");
  353.         // line 199
  354.         echo "\t\t\t\t\t\t";
  355.         $context["curent_config"] = twig_in_filter((isset($context["cur_route_name"]) || array_key_exists("cur_route_name"$context) ? $context["cur_route_name"] : (function () { throw new RuntimeError('Variable "cur_route_name" does not exist.'199$this->source); })()), [=> "config_index"=> "config_view"=> "config_new"=> "config_edit"=> "config_delete"]);
  356.         // line 200
  357.         echo "\t\t\t\t\t\t";
  358.         $context["curent_config_menu"] = twig_in_filter((isset($context["cur_route_name"]) || array_key_exists("cur_route_name"$context) ? $context["cur_route_name"] : (function () { throw new RuntimeError('Variable "cur_route_name" does not exist.'200$this->source); })()), [=> "config_index"=> "config_view"=> "config_new"=> "config_edit"=> "config_delete"]);
  359.         // line 201
  360.         echo "
  361. \t\t\t\t\t\t";
  362.         // line 202
  363.         if ((isset($context["perm_config"]) || array_key_exists("perm_config"$context) ? $context["perm_config"] : (function () { throw new RuntimeError('Variable "perm_config" does not exist.'202$this->source); })())) {
  364.             // line 203
  365.             echo "\t\t\t\t\t\t\t<li class=\"menu-item menu-item-submenu ";
  366.             echo (((isset($context["curent_config_menu"]) || array_key_exists("curent_config_menu"$context) ? $context["curent_config_menu"] : (function () { throw new RuntimeError('Variable "curent_config_menu" does not exist.'203$this->source); })())) ? ("menu-item-active") : (""));
  367.             echo "\" aria-haspopup=\"true\">
  368. \t\t\t\t\t\t\t\t<a href=\"\" class=\"menu-link menu-toggle\">
  369. \t\t\t\t\t\t\t\t\t<i class=\"menu-icon flaticon-cogwheel-2\"></i>
  370. \t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Ajustes</span>
  371. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  372. \t\t\t\t\t\t\t\t</a>
  373. \t\t\t\t\t\t\t\t<div class=\"menu-submenu\">
  374. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  375. \t\t\t\t\t\t\t\t\t<ul class=\"menu-subnav\">
  376. \t\t\t\t\t\t\t\t\t\t";
  377.             // line 213
  378.             if ((isset($context["perm_config"]) || array_key_exists("perm_config"$context) ? $context["perm_config"] : (function () { throw new RuntimeError('Variable "perm_config" does not exist.'213$this->source); })())) {
  379.                 // line 214
  380.                 echo "\t\t\t\t\t\t\t\t\t\t\t<li class=\"menu-item ";
  381.                 echo (((isset($context["curent_config"]) || array_key_exists("curent_config"$context) ? $context["curent_config"] : (function () { throw new RuntimeError('Variable "curent_config" does not exist.'214$this->source); })())) ? ("menu-item-active") : (""));
  382.                 echo "\" aria-haspopup=\"true\">
  383. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  384.                 // line 215
  385.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("config_index");
  386.                 echo "\" class=\"menu-link\">
  387. \t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  388. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  389. \t\t\t\t\t\t\t\t\t\t\t\t\t</i>
  390. \t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Configuración</span>
  391. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  392. \t\t\t\t\t\t\t\t\t\t\t</li>
  393. \t\t\t\t\t\t\t\t\t\t";
  394.             }
  395.             // line 223
  396.             echo "
  397. \t\t\t\t\t\t\t\t\t</ul>
  398. \t\t\t\t\t\t\t\t</div>
  399. \t\t\t\t\t\t\t</li>
  400. \t\t\t\t\t\t";
  401.         }
  402.         // line 228
  403.         echo "\t\t\t\t\t</ul>
  404. \t\t\t\t\t<!--end::Header Nav-->
  405. \t\t\t\t</div>
  406. \t\t\t</div>
  407. \t\t\t<!--end::Header Menu-->
  408. \t\t</div>
  409. \t\t<!--end::Header Menu Wrapper-->
  410. \t\t<!--begin::Topbar-->
  411. \t\t<div class=\"topbar\">
  412. \t\t\t<!--end::Languages-->
  413. \t\t\t
  414. \t\t\t<!--begin::User-->
  415. \t\t\t<div class=\"dropdown\">
  416. \t\t\t";
  417.         // line 247
  418.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'247$this->source); })()), "user", [], "any"falsefalsefalse247)) {
  419.             // line 248
  420.             echo "\t\t\t\t<!--begin::Toggle-->
  421. \t\t\t\t<div class=\"topbar-item\" data-toggle=\"dropdown\" data-offset=\"0px,0px\">
  422. \t\t\t\t\t<div class=\"btn btn-icon w-auto btn-clean d-flex align-items-center btn-lg px-2\">
  423. \t\t\t\t\t\t<span class=\"text-muted font-weight-bold font-size-base d-none d-md-inline mr-1\">Bienvenido,</span>
  424. \t\t\t\t\t\t<span class=\"text-dark-50 font-weight-bolder font-size-base d-md-inline mr-3\">";
  425.             // line 252
  426.             ((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'252$this->source); })()), "user", [], "any"falsefalsefalse252)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'252$this->source); })()), "user", [], "any"falsefalsefalse252), "username", [], "any"falsefalsefalse252), "html"nulltrue))) : (print ("Administrador")));
  427.             echo "</span>
  428. \t\t\t\t\t\t<span class=\"symbol symbol-35 symbol-light-primary\">
  429. \t\t\t\t\t\t\t<span class=\"symbol-label font-size-h5 font-weight-bold\">";
  430.             // line 254
  431.             ((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'254$this->source); })()), "user", [], "any"falsefalsefalse254)) ? (print (twig_escape_filter($this->envtwig_upper_filter($this->envtwig_first($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'254$this->source); })()), "user", [], "any"falsefalsefalse254), "username", [], "any"falsefalsefalse254))), "html"nulltrue))) : (print ("A")));
  432.             echo "</span>
  433. \t\t\t\t\t\t</span>
  434. \t\t\t\t\t</div>
  435. \t\t\t\t</div>
  436. \t\t\t\t<!--end::Toggle-->
  437. \t\t\t\t<!--begin::Dropdown-->
  438. \t\t\t\t<div class=\"dropdown-menu p-0 m-0 dropdown-menu-right dropdown-menu-anim-up dropdown-menu-lg p-0\">
  439. \t\t\t\t\t";
  440.             // line 263
  441.             echo twig_include($this->env$context"includes/layout/_extras/dropdown/user.html.twig");
  442.             echo "
  443. \t\t\t\t\t<!--[html-partial:include:{\"file\":\"partials/_extras/dropdown/user.html\"}]/-->
  444. \t\t\t\t</div>
  445. \t\t\t";
  446.         } else {
  447.             // line 267
  448.             echo "\t\t\t\t<div class=\"topbar-item\" data-offset=\"0px,0px\">
  449. \t\t\t\t\t<a href=\"";
  450.             // line 268
  451.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  452.             echo "\">
  453. \t\t\t\t\t\t<div class=\"btn btn-icon w-auto btn-clean d-flex align-items-center btn-lg px-2\">
  454. \t\t\t\t\t\t\t<span class=\"text-dark-50 font-weight-bolder font-size-base d-md-inline mr-3\">Iniciar sesión</span>
  455. \t\t\t\t\t\t\t<span class=\"symbol symbol-35 symbol-light-success\">
  456. \t\t\t\t\t\t\t\t<span class=\"symbol-label font-size-h5 font-weight-bold\">";
  457.             // line 272
  458.             ((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'272$this->source); })()), "user", [], "any"falsefalsefalse272)) ? (print (twig_escape_filter($this->envtwig_upper_filter($this->envtwig_first($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'272$this->source); })()), "user", [], "any"falsefalsefalse272), "username", [], "any"falsefalsefalse272))), "html"nulltrue))) : (print ("A")));
  459.             echo "</span>
  460. \t\t\t\t\t\t\t</span>
  461. \t\t\t\t\t\t</div>
  462. \t\t\t\t\t</a>
  463. \t\t\t\t</div>
  464. \t\t\t";
  465.         }
  466.         // line 278
  467.         echo "
  468. \t\t\t\t<!--end::Dropdown-->
  469. \t\t\t</div>
  470. \t\t\t<!--end::User-->
  471. \t\t</div>
  472. \t\t<!--end::Topbar-->
  473. \t</div>
  474. \t<!--end::Container-->
  475. </div>
  476. <!--end::Header-->";
  477.         
  478.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  479.         
  480.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  481.     }
  482.     public function getTemplateName()
  483.     {
  484.         return "includes/layout/_header.html.twig";
  485.     }
  486.     public function isTraitable()
  487.     {
  488.         return false;
  489.     }
  490.     public function getDebugInfo()
  491.     {
  492.         return array (  494 => 278,  485 => 272,  478 => 268,  475 => 267,  468 => 263,  456 => 254,  451 => 252,  445 => 248,  443 => 247,  422 => 228,  415 => 223,  404 => 215,  399 => 214,  397 => 213,  383 => 203,  381 => 202,  378 => 201,  375 => 200,  372 => 199,  370 => 198,  367 => 197,  360 => 192,  349 => 184,  344 => 183,  342 => 182,  339 => 181,  328 => 173,  323 => 172,  321 => 171,  307 => 161,  305 => 160,  302 => 159,  299 => 158,  296 => 157,  293 => 156,  290 => 155,  288 => 154,  285 => 153,  278 => 148,  267 => 140,  262 => 139,  260 => 138,  246 => 128,  244 => 127,  241 => 126,  238 => 125,  235 => 124,  233 => 123,  230 => 122,  223 => 117,  212 => 109,  207 => 108,  205 => 107,  202 => 106,  191 => 98,  186 => 97,  184 => 96,  170 => 86,  168 => 85,  165 => 84,  162 => 83,  159 => 82,  156 => 81,  153 => 80,  151 => 79,  148 => 78,  134 => 67,  122 => 58,  110 => 48,  108 => 47,  105 => 46,  103 => 45,  95 => 39,  93 => 38,  86 => 33,  73 => 23,  59 => 12,  56 => 11,  54 => 10,  43 => 1,);
  493.     }
  494.     public function getSourceContext()
  495.     {
  496.         return new Source("
  497. <!--begin::Header-->
  498. <div id=\"kt_header\" class=\"header header-fixed\">
  499. \t<!--begin::Container-->
  500. \t<div class=\"container-fluid d-flex align-items-stretch justify-content-between\">
  501. \t\t<!--begin::Header Menu Wrapper-->
  502. \t\t<div class=\"header-menu-wrapper header-menu-wrapper-left align-self-center\" id=\"kt_header_menu_wrapper\">
  503. \t\t{% if app.request.attributes.get('_route') == 'index1' or app.request.attributes.get('_route') == 'index2' %}
  504. \t\t\t<div class=\"topbar-item\" data-offset=\"0px,0px\">
  505. \t\t\t\t<a href=\"{{ path('index1') }}\">
  506. \t\t\t\t\t<div class=\"btn btn-icon w-auto btn-clean d-flex align-items-center btn-lg px-2\">
  507. \t\t\t\t\t\t<span class=\"text-dark-50 font-weight-bolder font-size-base d-md-inline mr-3\">Proceso simple</span>
  508. \t\t\t\t\t\t<span class=\"symbol symbol-35 symbol-light-primary\">
  509. \t\t\t\t\t\t\t<span class=\"symbol-label font-size-h5 font-weight-bold\">PS</span>
  510. \t\t\t\t\t\t</span>
  511. \t\t\t\t\t</div>
  512. \t\t\t\t</a>
  513. \t\t\t</div>
  514. \t\t\t<div class=\"topbar-item\" data-offset=\"0px,0px\">
  515. \t\t\t\t<a href=\"{{ path('index2') }}\">
  516. \t\t\t\t\t<div class=\"btn btn-icon w-auto btn-clean d-flex align-items-center btn-lg px-2\">
  517. \t\t\t\t\t\t<span class=\"text-dark-50 font-weight-bolder font-size-base d-md-inline mr-3\">Proceso compuesto</span>
  518. \t\t\t\t\t\t<span class=\"symbol symbol-35 symbol-light-primary\">
  519. \t\t\t\t\t\t\t<span class=\"symbol-label font-size-h5 font-weight-bold\">PC</span>
  520. \t\t\t\t\t\t</span>
  521. \t\t\t\t\t</div>
  522. \t\t\t\t</a>
  523. \t\t\t</div>
  524. \t\t{% endif %}
  525. \t\t\t<!--end::Toggle-->
  526. \t\t\t<!--begin::Header Logo-->
  527. \t\t\t<!--end::Header Logo-->
  528. \t\t\t{% set cur_route_name = app.request.attributes.get('_route') | default(_route | default('')) %}
  529. \t\t\t<!--begin::Header Menu-->
  530. \t\t\t<div class=\"menu-resp\">
  531. \t\t\t\t<div id=\"kt_header_menu\" class=\"header-menu header-menu-mobile header-menu-layout-default header-menu-root-arrow\">
  532. \t\t\t\t\t<!--begin::Header Nav-->
  533. \t\t\t\t\t<ul class=\"menu-nav\">
  534. \t\t\t\t\t\t{% set perm_regpro_new\t\t= is_granted('ROLE_REG_PROCESO_CREATE') %}
  535. \t\t\t\t\t\t{% if perm_regpro_new %}
  536. \t\t\t\t\t\t\t<li class=\"menu-item menu-item-submenu\" aria-haspopup=\"true\">
  537. \t\t\t\t\t\t\t\t<a href=\"\" class=\"menu-link menu-toggle\">
  538. \t\t\t\t\t\t\t\t\t<i class=\"menu-icon flaticon2-add-square\"></i>
  539. \t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Crear nuevo proceso</span>
  540. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  541. \t\t\t\t\t\t\t\t</a>
  542. \t\t\t\t\t\t\t\t<div class=\"menu-submenu\">
  543. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  544. \t\t\t\t\t\t\t\t\t<ul class=\"menu-subnav\">
  545. \t\t\t\t\t\t\t\t\t\t<li class=\"menu-item\" aria-haspopup=\"true\">
  546. \t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('index1') }}\" class=\"menu-link\">
  547. \t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  548. \t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  549. \t\t\t\t\t\t\t\t\t\t\t\t</i>
  550. \t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Proceso simple</span>
  551. \t\t\t\t\t\t\t\t\t\t\t</a>
  552. \t\t\t\t\t\t\t\t\t\t</li>
  553. \t\t\t\t\t\t\t\t\t\t<li class=\"menu-item\" aria-haspopup=\"true\">
  554. \t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('index2') }}\" class=\"menu-link\">
  555. \t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  556. \t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  557. \t\t\t\t\t\t\t\t\t\t\t\t</i>
  558. \t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Proceso compuesto</span>
  559. \t\t\t\t\t\t\t\t\t\t\t</a>
  560. \t\t\t\t\t\t\t\t\t\t</li>
  561. \t\t\t\t\t\t\t\t\t</ul>
  562. \t\t\t\t\t\t\t\t</div>
  563. \t\t\t\t\t\t\t</li>
  564. \t\t\t\t\t\t{% endif %}
  565. \t\t\t\t\t\t{% set perm_regpro\t\t\t= is_granted('ROLE_REG_PROCESO') %}
  566. \t\t\t\t\t\t{% set current_regpro \t\t= cur_route_name in ['regpro_index', 'regpro_view'] %}
  567. \t\t\t\t\t\t{% set perm_regfase\t\t\t= is_granted('ROLE_REG_FASE') %}
  568. \t\t\t\t\t\t{% set current_regfase \t\t= cur_route_name in ['regfase_index', 'regfase_view'] %}
  569. \t\t\t\t\t\t{% set current_reg_menu \t= cur_route_name in ['regpro_index', 'regpro_view', 'regfase_index', 'regfase_view'] %}
  570. \t\t\t\t\t\t{% if perm_regpro or perm_regfase %}
  571. \t\t\t\t\t\t\t<li class=\"menu-item menu-item-submenu {{ current_reg_menu ? 'menu-item-active' : \"\"}}\" aria-haspopup=\"true\">
  572. \t\t\t\t\t\t\t\t<a href=\"\" class=\"menu-link menu-toggle\">
  573. \t\t\t\t\t\t\t\t\t<i class=\"menu-icon flaticon-list-2\"></i>
  574. \t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Registros</span>
  575. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  576. \t\t\t\t\t\t\t\t</a>
  577. \t\t\t\t\t\t\t\t<div class=\"menu-submenu\">
  578. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  579. \t\t\t\t\t\t\t\t\t<ul class=\"menu-subnav\">
  580. \t\t\t\t\t\t\t\t\t{% if perm_regpro %}
  581. \t\t\t\t\t\t\t\t\t\t<li class=\"menu-item {{ current_regpro ? 'menu-item-active' : \"\"}}\" aria-haspopup=\"true\">
  582. \t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('regpro_index') }}\" class=\"menu-link\">
  583. \t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  584. \t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  585. \t\t\t\t\t\t\t\t\t\t\t\t</i>
  586. \t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Procesos</span>
  587. \t\t\t\t\t\t\t\t\t\t\t</a>
  588. \t\t\t\t\t\t\t\t\t\t</li>
  589. \t\t\t\t\t\t\t\t\t{% endif %}
  590. \t\t\t\t\t\t\t\t\t{% if perm_regfase %}
  591. \t\t\t\t\t\t\t\t\t\t<li class=\"menu-item {{ current_regfase ? 'menu-item-active' : \"\"}}\" aria-haspopup=\"true\">
  592. \t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('regfase_index') }}\" class=\"menu-link\">
  593. \t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  594. \t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  595. \t\t\t\t\t\t\t\t\t\t\t\t</i>
  596. \t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Fases</span>
  597. \t\t\t\t\t\t\t\t\t\t\t</a>
  598. \t\t\t\t\t\t\t\t\t\t</li>
  599. \t\t\t\t\t\t\t\t\t{% endif %}
  600. \t\t\t\t\t\t\t\t\t\t
  601. \t\t\t\t\t\t\t\t\t</ul>
  602. \t\t\t\t\t\t\t\t</div>
  603. \t\t\t\t\t\t\t</li>
  604. \t\t\t\t\t\t{% endif %}
  605. \t\t\t\t\t\t{% set perm_proc\t\t= is_granted('ROLE_PROCESO') %}
  606. \t\t\t\t\t\t{% set current_proc \t= cur_route_name in ['proceso_index', 'proceso_view', 'proceso_new', 'proceso_edit', 'proceso_delete'] %}
  607. \t\t\t\t\t\t{% set current_prod_menu \t= cur_route_name in ['proceso_index', 'proceso_view', 'proceso_new', 'proceso_edit', 'proceso_delete'] %}
  608. \t\t\t\t\t\t{% if perm_proc %}
  609. \t\t\t\t\t\t\t<li class=\"menu-item menu-item-submenu {{ current_prod_menu ? 'menu-item-active' : \"\"}}\" aria-haspopup=\"true\">
  610. \t\t\t\t\t\t\t\t<a href=\"\" class=\"menu-link menu-toggle\">
  611. \t\t\t\t\t\t\t\t\t<i class=\"menu-icon flaticon-web\"></i>
  612. \t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Producción</span>
  613. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  614. \t\t\t\t\t\t\t\t</a>
  615. \t\t\t\t\t\t\t\t<div class=\"menu-submenu\">
  616. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  617. \t\t\t\t\t\t\t\t\t<ul class=\"menu-subnav\">
  618. \t\t\t\t\t\t\t\t\t\t{% if perm_proc %}
  619. \t\t\t\t\t\t\t\t\t\t\t<li class=\"menu-item {{ current_proc ? 'menu-item-active' : \"\"}}\" aria-haspopup=\"true\">
  620. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('proceso_index') }}\" class=\"menu-link\">
  621. \t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  622. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  623. \t\t\t\t\t\t\t\t\t\t\t\t\t</i>
  624. \t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Procesos</span>
  625. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  626. \t\t\t\t\t\t\t\t\t\t\t</li>
  627. \t\t\t\t\t\t\t\t\t\t{% endif %}
  628. \t\t\t\t\t\t\t\t\t</ul>
  629. \t\t\t\t\t\t\t\t</div>
  630. \t\t\t\t\t\t\t</li>
  631. \t\t\t\t\t\t{% endif %}
  632. \t\t\t\t\t\t{% set perm_user\t\t= is_granted('ROLE_USR') %}
  633. \t\t\t\t\t\t{% set curent_user \t\t= cur_route_name in ['usuario_index', 'usuario_view', 'usuario_new', 'usuario_edit', 'usuario_delete'] %}
  634. \t\t\t\t\t\t{% set perm_emp\t\t\t= is_granted('ROLE_EMPRESA') %}
  635. \t\t\t\t\t\t{% set curent_emp\t\t= cur_route_name in ['empresa_index', 'empresa_view', 'empresa_new', 'empresa_edit', 'empresa_delete'] %}
  636. \t\t\t\t\t\t{% set current_adm_menu = cur_route_name in ['usuario_index', 'usuario_view', 'usuario_new', 'usuario_edit', 'usuario_delete', 'empresa_index', 'empresa_view', 'empresa_new', 'empresa_edit', 'empresa_delete'] %}
  637. \t\t\t\t\t\t{% if perm_user or perm_emp %}
  638. \t\t\t\t\t\t\t<li class=\"menu-item menu-item-submenu {{ current_adm_menu ? 'menu-item-active' : \"\"}}\" aria-haspopup=\"true\">
  639. \t\t\t\t\t\t\t\t<a href=\"\" class=\"menu-link menu-toggle\">
  640. \t\t\t\t\t\t\t\t\t<i class=\"menu-icon far fa-clipboard\"></i>
  641. \t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Administración</span>
  642. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  643. \t\t\t\t\t\t\t\t</a>
  644. \t\t\t\t\t\t\t\t<div class=\"menu-submenu\">
  645. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  646. \t\t\t\t\t\t\t\t\t<ul class=\"menu-subnav\">
  647. \t\t\t\t\t\t\t\t\t\t{% if perm_user %}
  648. \t\t\t\t\t\t\t\t\t\t\t<li class=\"menu-item {{ curent_user ? 'menu-item-active' : \"\"}}\" aria-haspopup=\"true\">
  649. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('usuario_index') }}\" class=\"menu-link\">
  650. \t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  651. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  652. \t\t\t\t\t\t\t\t\t\t\t\t\t</i>
  653. \t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Usuarios</span>
  654. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  655. \t\t\t\t\t\t\t\t\t\t\t</li>
  656. \t\t\t\t\t\t\t\t\t\t{% endif %}
  657. \t\t\t\t\t\t\t\t\t\t{% if perm_user %}
  658. \t\t\t\t\t\t\t\t\t\t\t<li class=\"menu-item {{ curent_emp ? 'menu-item-active' : \"\"}}\" aria-haspopup=\"true\">
  659. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('empresa_index') }}\" class=\"menu-link\">
  660. \t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  661. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  662. \t\t\t\t\t\t\t\t\t\t\t\t\t</i>
  663. \t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Empresas</span>
  664. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  665. \t\t\t\t\t\t\t\t\t\t\t</li>
  666. \t\t\t\t\t\t\t\t\t\t{% endif %}
  667. \t\t\t\t\t\t\t\t\t</ul>
  668. \t\t\t\t\t\t\t\t</div>
  669. \t\t\t\t\t\t\t</li>
  670. \t\t\t\t\t\t{% endif %}
  671. \t\t\t\t\t\t{% set perm_config\t\t= is_granted('ROLE_CONFIG') %}
  672. \t\t\t\t\t\t{% set curent_config \t= cur_route_name in ['config_index', 'config_view', 'config_new', 'config_edit', 'config_delete'] %}
  673. \t\t\t\t\t\t{% set curent_config_menu \t= cur_route_name in ['config_index', 'config_view', 'config_new', 'config_edit', 'config_delete'] %}
  674. \t\t\t\t\t\t{% if perm_config %}
  675. \t\t\t\t\t\t\t<li class=\"menu-item menu-item-submenu {{ curent_config_menu ? 'menu-item-active' : \"\"}}\" aria-haspopup=\"true\">
  676. \t\t\t\t\t\t\t\t<a href=\"\" class=\"menu-link menu-toggle\">
  677. \t\t\t\t\t\t\t\t\t<i class=\"menu-icon flaticon-cogwheel-2\"></i>
  678. \t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Ajustes</span>
  679. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  680. \t\t\t\t\t\t\t\t</a>
  681. \t\t\t\t\t\t\t\t<div class=\"menu-submenu\">
  682. \t\t\t\t\t\t\t\t\t<i class=\"menu-arrow\"></i>
  683. \t\t\t\t\t\t\t\t\t<ul class=\"menu-subnav\">
  684. \t\t\t\t\t\t\t\t\t\t{% if perm_config %}
  685. \t\t\t\t\t\t\t\t\t\t\t<li class=\"menu-item {{ curent_config ? 'menu-item-active' : \"\"}}\" aria-haspopup=\"true\">
  686. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('config_index') }}\" class=\"menu-link\">
  687. \t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"menu-bullet menu-bullet-line\">
  688. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span></span>
  689. \t\t\t\t\t\t\t\t\t\t\t\t\t</i>
  690. \t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"menu-text\">Configuración</span>
  691. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  692. \t\t\t\t\t\t\t\t\t\t\t</li>
  693. \t\t\t\t\t\t\t\t\t\t{% endif %}
  694. \t\t\t\t\t\t\t\t\t</ul>
  695. \t\t\t\t\t\t\t\t</div>
  696. \t\t\t\t\t\t\t</li>
  697. \t\t\t\t\t\t{% endif %}
  698. \t\t\t\t\t</ul>
  699. \t\t\t\t\t<!--end::Header Nav-->
  700. \t\t\t\t</div>
  701. \t\t\t</div>
  702. \t\t\t<!--end::Header Menu-->
  703. \t\t</div>
  704. \t\t<!--end::Header Menu Wrapper-->
  705. \t\t<!--begin::Topbar-->
  706. \t\t<div class=\"topbar\">
  707. \t\t\t<!--end::Languages-->
  708. \t\t\t
  709. \t\t\t<!--begin::User-->
  710. \t\t\t<div class=\"dropdown\">
  711. \t\t\t{% if app.user %}
  712. \t\t\t\t<!--begin::Toggle-->
  713. \t\t\t\t<div class=\"topbar-item\" data-toggle=\"dropdown\" data-offset=\"0px,0px\">
  714. \t\t\t\t\t<div class=\"btn btn-icon w-auto btn-clean d-flex align-items-center btn-lg px-2\">
  715. \t\t\t\t\t\t<span class=\"text-muted font-weight-bold font-size-base d-none d-md-inline mr-1\">Bienvenido,</span>
  716. \t\t\t\t\t\t<span class=\"text-dark-50 font-weight-bolder font-size-base d-md-inline mr-3\">{{ app.user ? app.user.username : 'Administrador' }}</span>
  717. \t\t\t\t\t\t<span class=\"symbol symbol-35 symbol-light-primary\">
  718. \t\t\t\t\t\t\t<span class=\"symbol-label font-size-h5 font-weight-bold\">{{ app.user ? app.user.username|first|upper : 'A' }}</span>
  719. \t\t\t\t\t\t</span>
  720. \t\t\t\t\t</div>
  721. \t\t\t\t</div>
  722. \t\t\t\t<!--end::Toggle-->
  723. \t\t\t\t<!--begin::Dropdown-->
  724. \t\t\t\t<div class=\"dropdown-menu p-0 m-0 dropdown-menu-right dropdown-menu-anim-up dropdown-menu-lg p-0\">
  725. \t\t\t\t\t{{ include('includes/layout/_extras/dropdown/user.html.twig') }}
  726. \t\t\t\t\t<!--[html-partial:include:{\"file\":\"partials/_extras/dropdown/user.html\"}]/-->
  727. \t\t\t\t</div>
  728. \t\t\t{% else %}
  729. \t\t\t\t<div class=\"topbar-item\" data-offset=\"0px,0px\">
  730. \t\t\t\t\t<a href=\"{{ path('app_login') }}\">
  731. \t\t\t\t\t\t<div class=\"btn btn-icon w-auto btn-clean d-flex align-items-center btn-lg px-2\">
  732. \t\t\t\t\t\t\t<span class=\"text-dark-50 font-weight-bolder font-size-base d-md-inline mr-3\">Iniciar sesión</span>
  733. \t\t\t\t\t\t\t<span class=\"symbol symbol-35 symbol-light-success\">
  734. \t\t\t\t\t\t\t\t<span class=\"symbol-label font-size-h5 font-weight-bold\">{{ app.user ? app.user.username|first|upper : 'A' }}</span>
  735. \t\t\t\t\t\t\t</span>
  736. \t\t\t\t\t\t</div>
  737. \t\t\t\t\t</a>
  738. \t\t\t\t</div>
  739. \t\t\t{% endif %}
  740. \t\t\t\t<!--end::Dropdown-->
  741. \t\t\t</div>
  742. \t\t\t<!--end::User-->
  743. \t\t</div>
  744. \t\t<!--end::Topbar-->
  745. \t</div>
  746. \t<!--end::Container-->
  747. </div>
  748. <!--end::Header-->""includes/layout/_header.html.twig""/var/www/vhosts/apunts.es/jramos.apunts.es/templates/includes/layout/_header.html.twig");
  749.     }
  750. }