public function block_body($context, array $blocks = array())
 {
     $__internal_facf89bf103b265016bb964b1dcc2d890575cc43890641196d04e29af959f6d2 = $this->env->getExtension("native_profiler");
     $__internal_facf89bf103b265016bb964b1dcc2d890575cc43890641196d04e29af959f6d2->enter($__internal_facf89bf103b265016bb964b1dcc2d890575cc43890641196d04e29af959f6d2_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     // line 5
     echo "    <h1>Lucky Numbers: ";
     echo twig_escape_filter($this->env, isset($context["luckyNumberList"]) ? $context["luckyNumberList"] : $this->getContext($context, "luckyNumberList"), "html", null, true);
     echo "</h1>\n    ";
     // line 6
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(range(0, 10));
     foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
         // line 7
         echo "\t    <div class=\"";
         echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $context["i"]), "html", null, true);
         echo "\">\n\t      ";
         // line 8
         echo twig_escape_filter($this->env, $context["i"], "html", null, true);
         echo "\n\t    </div>\n\t";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     $__internal_facf89bf103b265016bb964b1dcc2d890575cc43890641196d04e29af959f6d2->leave($__internal_facf89bf103b265016bb964b1dcc2d890575cc43890641196d04e29af959f6d2_prof);
 }
 public function block_panel($context, array $blocks = array())
 {
     // line 28
     echo "    <h2>Logs</h2>\n\n    ";
     // line 30
     if ($this->getAttribute($this->getContext($context, "collector"), "logs")) {
         // line 31
         echo "        <ul class=\"alt\">\n            ";
         // line 32
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "logs"));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
             // line 33
             echo "                <li class=\"";
             echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($this->getContext($context, "loop"), "index")), "html", null, true);
             if ("ERR" == $this->getAttribute($this->getContext($context, "log"), "priorityName") || "ERROR" == $this->getAttribute($this->getContext($context, "log"), "priorityName")) {
                 echo " error";
             }
             echo "\">\n                    ";
             // line 34
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "log"), "message"), "html", null, true);
             echo "\n                    ";
             // line 35
             if ($this->getAttribute($this->getContext($context, "log", true), "context", array(), "any", true, true) && !twig_test_empty($this->getAttribute($this->getContext($context, "log"), "context"))) {
                 // line 36
                 echo "                        <br />\n                        <small>\n                            <strong>Context</strong>: ";
                 // line 38
                 echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute($this->getContext($context, "log"), "context")), "html", null, true);
                 echo "\n                        </small>\n                    ";
             }
             // line 41
             echo "                </li>\n            ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
         $context = array_merge($_parent, array_intersect_key($context, $_parent));
         // line 43
         echo "        </ul>\n    ";
     } else {
         // line 45
         echo "        <p>\n            <em>No logs available.</em>\n        </p>\n    ";
     }
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 3
     echo "\n<div>\n    ";
     // line 5
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["comments"]) ? $context["comments"] : $this->getContext($context, "comments"));
     $context['_iterated'] = false;
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context["_key"] => $context["comment"]) {
         // line 6
         echo "        <article class=\"comment ";
         echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "index0")), "html", null, true);
         echo "\" id=\"comment-";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["comment"]) ? $context["comment"] : $this->getContext($context, "comment"), "id"), "html", null, true);
         echo "\">\n            <header class=\"ici02\">\n                <p><span class=\"highlight\">";
         // line 8
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["comment"]) ? $context["comment"] : $this->getContext($context, "comment"), "usuario"), "html", null, true);
         echo "</span> ha comentado hace <time datetime=\"";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["comment"]) ? $context["comment"] : $this->getContext($context, "comment"), "creado"), "c"), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, strtr($this->env->getExtension('JMPC_PetFriends_Protectors_extension')->createdAgo($this->getAttribute(isset($context["comment"]) ? $context["comment"] : $this->getContext($context, "comment"), "creado")), array("minutes ago" => "minutos")), "html", null, true);
         echo "</time></p>\n            </header>\n            <p>";
         // line 10
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["comment"]) ? $context["comment"] : $this->getContext($context, "comment"), "comentarios"), "html", null, true);
         echo "</p>\n        </article>\n    ";
         $context['_iterated'] = true;
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     if (!$context['_iterated']) {
         // line 13
         echo "        <p>No hay comentarios en esta entrada, Escribe tu comentario...</p>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 15
     echo "    <div class=\"paginacion\">\n        ";
     // line 16
     echo $this->env->getExtension('knp_pagination')->render(isset($context["comments"]) ? $context["comments"] : $this->getContext($context, "comments"));
     echo "\n    </div>\n</div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 2
     echo "\n";
     // line 3
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getContext($context, "comments"));
     $context['_iterated'] = false;
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context["_key"] => $context["comment"]) {
         // line 4
         echo "    <article class=\"comment ";
         echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($this->getContext($context, "loop"), "index0")), "html", null, true);
         echo "\" id=\"comment-";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "comment"), "id"), "html", null, true);
         echo "\">\n        <header>\n            <p><span class=\"highlight\">";
         // line 6
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "comment"), "user"), "html", null, true);
         echo "</span> commented <time datetime=\"";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getContext($context, "comment"), "created"), "c"), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getContext($context, "comment"), "created"), "l, F j, Y"), "html", null, true);
         echo "</time></p>\n        </header>\n        <p>";
         // line 8
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "comment"), "comment"), "html", null, true);
         echo "</p>\n    </article>\n";
         $context['_iterated'] = true;
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     if (!$context['_iterated']) {
         // line 11
         echo "    <p>There are no comments for this post. Be the first to comment...</p>\n";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comment'], $context['_parent'], $context['loop']);
     $context = array_merge($_parent, array_intersect_key($context, $_parent));
     // line 13
     echo "    \n    ";
 }
 public function block_panel($context, array $blocks = array())
 {
     // line 24
     echo "    <h2>Queries</h2>\n\n    ";
     // line 26
     if (!$this->getAttribute($this->getContext($context, "collector"), "queries")) {
         // line 27
         echo "        <p>\n            <em>Query logging is disabled.</em>\n        <p>\n    ";
     } elseif (!$this->getAttribute($this->getContext($context, "collector"), "querycount")) {
         // line 31
         echo "        <p>\n            <em>No queries.</em>\n        </p>\n    ";
     } else {
         // line 35
         echo "        <ul class=\"alt\">\n            ";
         // line 36
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "queries"));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["query"]) {
             // line 37
             echo "                <li class=\"";
             echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($this->getContext($context, "loop"), "index")), "html", null, true);
             echo "\">\n                    <div>\n                        <code>";
             // line 39
             echo twig_escape_filter($this->env, $this->getContext($context, "query"), "html", null, true);
             echo "</code>\n                    </div>\n                </li>\n            ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['query'], $context['_parent'], $context['loop']);
         $context = array_merge($_parent, array_intersect_key($context, $_parent));
         // line 43
         echo "        </ul>\n    ";
     }
 }
 public function block_content($context, array $blocks = array())
 {
     // line 9
     echo "    <div id=\"jobs\">\n      <table class=\"jobs\">\n        ";
     // line 11
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getContext($context, "entities"));
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context["_key"] => $context["entity"]) {
         // line 12
         echo "          <tr class=\"";
         echo twig_escape_filter($this->env, twig_cycle(array(0 => "even", 1 => "odd"), $this->getAttribute($this->getContext($context, "loop"), "index")), "html", null, true);
         echo "\">\n            <td class=\"location\">";
         // line 13
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "entity"), "location"), "html", null, true);
         echo "</td>\n            <td class=\"position\">\n              <a href=\"";
         // line 15
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("ens_job_show", array("id" => $this->getAttribute($this->getContext($context, "entity"), "id"))), "html", null, true);
         echo "\">\n                ";
         // line 16
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "entity"), "position"), "html", null, true);
         echo "\n              </a>\n            </td>\n            <td class=\"company\">";
         // line 19
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "entity"), "company"), "html", null, true);
         echo "</td>\n          </tr>\n        ";
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
     $context = array_merge($_parent, array_intersect_key($context, $_parent));
     // line 22
     echo "      </table>\n    </div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<table class=\"jobs\">\n    ";
     // line 2
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["jobs"]) ? $context["jobs"] : $this->getContext($context, "jobs"));
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context["_key"] => $context["entity"]) {
         // line 3
         echo "        <tr class=";
         echo twig_escape_filter($this->env, twig_cycle(array(0 => "even", 1 => "odd"), $this->getAttribute($context["loop"], "index", array())), "html", null, true);
         echo ">\n            <td class=\"location\">";
         // line 4
         echo twig_escape_filter($this->env, $this->getAttribute($context["entity"], "location", array()), "html", null, true);
         echo "</td>\n            <td class=\"position\">\n                <a href=";
         // line 6
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("erlem_job_show", array("id" => $this->getAttribute($context["entity"], "id", array()), "company" => $this->getAttribute($context["entity"], "companyslug", array()), "location" => $this->getAttribute($context["entity"], "locationslug", array()), "position" => $this->getAttribute($context["entity"], "positionslug", array()))), "html", null, true);
         echo ">\n                    ";
         // line 7
         echo twig_escape_filter($this->env, $this->getAttribute($context["entity"], "position", array()), "html", null, true);
         echo "\n                </a>\n            </td>\n            <td class=\"company\">";
         // line 10
         echo twig_escape_filter($this->env, $this->getAttribute($context["entity"], "company", array()), "html", null, true);
         echo "</td>\n        </tr>\n    ";
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 13
     echo "</table>";
 }
 public function block_body($context, array $blocks = array())
 {
     // line 5
     echo "    \n<h1>Calculadora básica:</h1>\n\n<label for=\"ab\">Valores pasados como par&aacutemetros</label><br>\n<label for=\"a\">VALOR A</label>\n<input type=\"text\" name=\"a\" id=\"a\" value=";
     // line 10
     echo twig_escape_filter($this->env, isset($context["varA"]) ? $context["varA"] : $this->getContext($context, "varA"), "html", null, true);
     echo "><br>\n<label for=\"b\">VALOR B</label>\n<input type=\"text\" name=\"b\" id=\"b\" value=";
     // line 12
     echo twig_escape_filter($this->env, isset($context["varB"]) ? $context["varB"] : $this->getContext($context, "varB"), "html", null, true);
     echo "><br>\n\n<div>\n</div>\nEl resultado de la operaci&oacute;n ";
     // line 16
     echo twig_escape_filter($this->env, isset($context["operacion"]) ? $context["operacion"] : $this->getContext($context, "operacion"), "html", null, true);
     echo "<br> \n";
     // line 17
     echo twig_escape_filter($this->env, isset($context["varA"]) ? $context["varA"] : $this->getContext($context, "varA"), "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, isset($context["operando"]) ? $context["operando"] : $this->getContext($context, "operando"), "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, isset($context["varB"]) ? $context["varB"] : $this->getContext($context, "varB"), "html", null, true);
     echo " es:  ";
     echo twig_escape_filter($this->env, isset($context["resultado"]) ? $context["resultado"] : $this->getContext($context, "resultado"), "html", null, true);
     echo "<br>\n\n<br>\n<br>\n ";
     // line 21
     $context["frutas"] = array(0 => "manzana", 1 => "naranaja", 2 => "citricos");
     // line 22
     echo " ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(range(0, 10));
     foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
         // line 23
         echo "     ";
         echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")) . " " . twig_cycle(isset($context["frutas"]) ? $context["frutas"] : $this->getContext($context, "frutas"), isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), "html", null, true);
         echo "\n     <br>\n ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 26
     echo " \n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $tags = array("if" => 43, "for" => 47, "set" => 64);
     $filters = array();
     $functions = array("cycle" => 81);
     try {
         $this->env->getExtension('sandbox')->checkSecurity(array('if', 'for', 'set'), array(), array('cycle'));
     } catch (Twig_Sandbox_SecurityError $e) {
         $e->setTemplateFile($this->getTemplateName());
         if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
             $e->setTemplateLine($tags[$e->getTagName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
             $e->setTemplateLine($filters[$e->getFilterName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
             $e->setTemplateLine($functions[$e->getFunctionName()]);
         }
         throw $e;
     }
     // line 42
     echo "<table";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["attributes"]) ? $context["attributes"] : null, "html", null, true));
     echo ">\n  ";
     // line 43
     if (isset($context["caption"]) ? $context["caption"] : null) {
         // line 44
         echo "    <caption>";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["caption"]) ? $context["caption"] : null, "html", null, true));
         echo "</caption>\n  ";
     }
     // line 46
     echo "\n  ";
     // line 47
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["colgroups"]) ? $context["colgroups"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["colgroup"]) {
         // line 48
         echo "    ";
         if ($this->getAttribute($context["colgroup"], "cols", array())) {
             // line 49
             echo "      <colgroup";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["colgroup"], "attributes", array()), "html", null, true));
             echo ">\n        ";
             // line 50
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["colgroup"], "cols", array()));
             foreach ($context['_seq'] as $context["_key"] => $context["col"]) {
                 // line 51
                 echo "          <col";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["col"], "attributes", array()), "html", null, true));
                 echo " />\n        ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['col'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 53
             echo "      </colgroup>\n    ";
         } else {
             // line 55
             echo "      <colgroup";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["colgroup"], "attributes", array()), "html", null, true));
             echo " />\n    ";
         }
         // line 57
         echo "  ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['colgroup'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 58
     echo "\n  ";
     // line 59
     if (isset($context["header"]) ? $context["header"] : null) {
         // line 60
         echo "    <thead>\n      <tr>\n        ";
         // line 62
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["header"]) ? $context["header"] : null);
         foreach ($context['_seq'] as $context["_key"] => $context["cell"]) {
             // line 63
             echo "          ";
             // line 64
             $context["cell_classes"] = array(0 => $this->getAttribute($context["cell"], "active_table_sort", array()) ? "is-active" : "");
             // line 68
             echo "          <";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($context["cell"], "attributes", array()), "addClass", array(0 => isset($context["cell_classes"]) ? $context["cell_classes"] : null), "method"), "html", null, true));
             echo ">";
             // line 69
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "content", array()), "html", null, true));
             // line 70
             echo "</";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
             echo ">\n        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cell'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 72
         echo "      </tr>\n    </thead>\n  ";
     }
     // line 75
     echo "\n  ";
     // line 76
     if (isset($context["rows"]) ? $context["rows"] : null) {
         // line 77
         echo "    <tbody>\n      ";
         // line 78
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["rows"]) ? $context["rows"] : null);
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
             // line 79
             echo "        ";
             // line 80
             $context["row_classes"] = array(0 => !(isset($context["no_striping"]) ? $context["no_striping"] : null) ? twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($context["loop"], "index0", array())) : "");
             // line 84
             echo "        <tr";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($context["row"], "attributes", array()), "addClass", array(0 => isset($context["row_classes"]) ? $context["row_classes"] : null), "method"), "html", null, true));
             echo ">\n          ";
             // line 85
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["row"], "cells", array()));
             foreach ($context['_seq'] as $context["_key"] => $context["cell"]) {
                 // line 86
                 echo "            <";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "attributes", array()), "html", null, true));
                 echo ">";
                 // line 87
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "content", array()), "html", null, true));
                 // line 88
                 echo "</";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
                 echo ">\n          ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cell'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 90
             echo "        </tr>\n      ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 92
         echo "    </tbody>\n  ";
     } elseif (isset($context["empty"]) ? $context["empty"] : null) {
         // line 94
         echo "    <tbody>\n      <tr class=\"odd\">\n        <td colspan=\"";
         // line 96
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["header_columns"]) ? $context["header_columns"] : null, "html", null, true));
         echo "\" class=\"empty message\">";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["empty"]) ? $context["empty"] : null, "html", null, true));
         echo "</td>\n      </tr>\n    </tbody>\n  ";
     }
     // line 100
     echo "  ";
     if (isset($context["footer"]) ? $context["footer"] : null) {
         // line 101
         echo "    <tfoot>\n      ";
         // line 102
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["footer"]) ? $context["footer"] : null);
         foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
             // line 103
             echo "        <tr";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["row"], "attributes", array()), "html", null, true));
             echo ">\n          ";
             // line 104
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["row"], "cells", array()));
             foreach ($context['_seq'] as $context["_key"] => $context["cell"]) {
                 // line 105
                 echo "            <";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "attributes", array()), "html", null, true));
                 echo ">";
                 // line 106
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "content", array()), "html", null, true));
                 // line 107
                 echo "</";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
                 echo ">\n          ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cell'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 109
             echo "        </tr>\n      ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 111
         echo "    </tfoot>\n  ";
     }
     // line 113
     echo "</table>\n";
 }
 public function block_panel($context, array $blocks = array())
 {
     // line 55
     echo "    <h2>Logs</h2>\n\n    ";
     // line 57
     $context["priority"] = $this->getAttribute($this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "query"), "get", array(0 => "priority", 1 => 0), "method");
     // line 58
     echo "\n    <table>\n        <tr>\n            <th>Filter</th>\n            <td>\n                <form id=\"priority-form\" action=\"\" method=\"get\" style=\"display: inline\">\n                    <input type=\"hidden\" name=\"panel\" value=\"logger\">\n                    <label for=\"priority\">Min. Priority</label>\n                    <select id=\"priority\" name=\"priority\" onchange=\"document.getElementById('priority-form').submit(); \">\n                        ";
     // line 68
     echo "                        ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "priorities"));
     foreach ($context['_seq'] as $context["value"] => $context["level"]) {
         // line 69
         echo "                            ";
         if (!(isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) && (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")) > 100) {
             // line 70
             echo "                                ";
             $context["priority"] = isset($context["value"]) ? $context["value"] : $this->getContext($context, "value");
             // line 71
             echo "                            ";
         }
         // line 72
         echo "                            <option value=\"";
         echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), "html", null, true);
         echo "\"";
         echo (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")) == (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) ? " selected" : "";
         echo ">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["level"]) ? $context["level"] : $this->getContext($context, "level"), "name"), "html", null, true);
         echo " (";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["level"]) ? $context["level"] : $this->getContext($context, "level"), "count"), "html", null, true);
         echo ")</option>\n                        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['value'], $context['level'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 74
     echo "                        ";
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "countdeprecations")) {
         // line 75
         echo "                            ";
         if (!(isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority"))) {
             // line 76
             echo "                                ";
             $context["priority"] = "-100";
             // line 77
             echo "                            ";
         }
         // line 78
         echo "                            <option value=\"-100\"";
         echo "-100" == (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) ? " selected" : "";
         echo ">DEPRECATION only (";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "countdeprecations"), "html", null, true);
         echo ")</option>\n                        ";
     }
     // line 80
     echo "                    </select>\n                    <noscript>\n                        <input type=\"submit\" value=\"refresh\">\n                    </noscript>\n                </form>\n            </td>\n        </tr>\n    </table>\n\n    ";
     // line 89
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs")) {
         // line 90
         echo "        <ul class=\"alt\">\n            ";
         // line 91
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs"));
         $context['_iterated'] = false;
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
             if ((isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) >= 0 && $this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "priority") >= (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) || (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) < 0 && ($this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "type", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "type"), 0) : 0) == (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority"))) {
                 // line 92
                 echo "                <li class=\"";
                 echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "index")), "html", null, true);
                 if ($this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "priority") >= 400) {
                     echo " error";
                 } elseif ($this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "priority") >= 300) {
                     echo " warning";
                 }
                 if ($this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "scream", array(), "any", true, true)) {
                     echo " scream";
                 }
                 echo "\">\n                    ";
                 // line 93
                 echo $context["logger"]->getdisplay_message($this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "index"), isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"));
                 echo "\n                </li>\n            ";
                 $context['_iterated'] = true;
                 ++$context['loop']['index0'];
                 ++$context['loop']['index'];
                 $context['loop']['first'] = false;
             }
         }
         if (!$context['_iterated']) {
             // line 96
             echo "                <li><em>No logs available for this priority.</em></li>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 98
         echo "        </ul>\n    ";
     } else {
         // line 100
         echo "        <p>\n            <em>No logs available.</em>\n        </p>\n    ";
     }
 }
 public function block_grid_search($context, array $blocks = array())
 {
     // line 74
     echo "    ";
     if ($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "isFilterSectionVisible", array())) {
         // line 75
         echo "        <div class=\"grid-search\">\n            <form id=\"";
         // line 76
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "hash", array()), "html", null, true);
         echo "_search\" action=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "routeUrl", array()), "html", null, true);
         echo "\" method=\"post\">\n                ";
         // line 77
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "columns", array()));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["column"]) {
             // line 78
             echo "                    ";
             if ($this->getAttribute($context["column"], "isFilterable", array()) && !twig_in_filter($this->getAttribute($context["column"], "type", array()), array(0 => "actions", 1 => "massaction"))) {
                 // line 79
                 echo "                        ";
                 if ($this->getAttribute($context["column"], "usePrefixTitle", array()) == true) {
                     // line 80
                     echo "                            ";
                     $context["columnTitle"] = $this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "prefixTitle", array()) . $this->getAttribute($context["column"], "title", array());
                     // line 81
                     echo "                        ";
                 } else {
                     // line 82
                     echo "                            ";
                     $context["columnTitle"] = $this->getAttribute($context["column"], "title", array());
                     // line 83
                     echo "                        ";
                 }
                 // line 84
                 echo "                        <div class=\"";
                 echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($context["loop"], "index", array())), "html", null, true);
                 echo "\"><label>";
                 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans(isset($context["columnTitle"]) ? $context["columnTitle"] : $this->getContext($context, "columnTitle")), "html", null, true);
                 echo "</label>";
                 echo $this->env->getExtension('datagrid_twig_extension')->getGridFilter($context["column"], isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), false);
                 echo "</div>\n                            ";
             }
             // line 86
             echo "                        ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['column'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 87
         echo "                <div class=\"grid-search-action\"><input type=\"submit\" class=\"grid-search-submit\" value=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Search"), "html", null, true);
         echo "\"/><input type=\"button\" class=\"grid-search-reset\" value=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("Reset"), "html", null, true);
         echo "\" onclick=\"return ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["grid"]) ? $context["grid"] : $this->getContext($context, "grid"), "hash", array()), "html", null, true);
         echo "_reset();\"/></div>\n            </form>\n        </div>\n    ";
     }
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 4
     echo "\n<div class=\"grid_5 prefix_0\">\n    <h2 class=\"ic3\">Comentarios recientes</h2>\n    <ul class=\"list\">\n    ";
     // line 8
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["latestComments"]) ? $context["latestComments"] : $this->getContext($context, "latestComments"));
     $context['_iterated'] = false;
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context["_key"] => $context["comentario"]) {
         // line 9
         echo "        <li>\n            <span class=\"";
         // line 10
         echo twig_escape_filter($this->env, twig_cycle(array(0 => "", 1 => "cnt"), $this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "index0")), "html", null, true);
         echo "\"><time datetime=\"\">";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "creado"), "d"), "html", null, true);
         echo "<span>";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "creado"), "F"), "html", null, true);
         echo "</span></time></span>\n            <div class=\"extra_wrapper\">\n                <div class=\"col1\">\n                    <span class=\"highlight\">";
         // line 13
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "usuario")), "html", null, true);
         echo "</span> ha comentado en\n                    <a href=\"";
         // line 14
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("jmpc_pet_friends_protectors_list", array("id" => $this->getAttribute($this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "contenido"), "id"), "slug" => $this->getAttribute($this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "contenido"), "slug"))), "html", null, true);
         echo "#comentario-";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "id"), "html", null, true);
         echo "\">\n                      ";
         // line 15
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "contenido"), "titulo"), "html", null, true);
         echo "\n                    </a>";
         // line 16
         echo twig_escape_filter($this->env, $this->env->getExtension('JMPC_PetFriends_Protectors_extension')->createdAgo($this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "creado")), "html", null, true);
         echo "\n                </div>\n                <p>";
         // line 18
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["comentario"]) ? $context["comentario"] : $this->getContext($context, "comentario"), "comentarios", array(0 => 50), "method"), "html", null, true);
         echo "</p>\n            </div>\n            \n        </li>\n    ";
         $context['_iterated'] = true;
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     if (!$context['_iterated']) {
         // line 23
         echo "        <p>No hay comentarios recientes</p>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['comentario'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 25
     echo "    </ul>\n    <section class=\"sidebar\">\n        <h3>Etiquetas mas usadas</h3>\n        <p class=\"tags\">\n            ";
     // line 29
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["tags"]) ? $context["tags"] : $this->getContext($context, "tags"));
     $context['_iterated'] = false;
     foreach ($context['_seq'] as $context["tag"] => $context["weight"]) {
         // line 30
         echo "                <span class=\"weight-";
         echo twig_escape_filter($this->env, isset($context["weight"]) ? $context["weight"] : $this->getContext($context, "weight"), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, isset($context["tag"]) ? $context["tag"] : $this->getContext($context, "tag"), "html", null, true);
         echo "</span>\n            ";
         $context['_iterated'] = true;
     }
     if (!$context['_iterated']) {
         // line 32
         echo "                <p>No hay etiquetas</p>\n            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['tag'], $context['weight'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 34
     echo "        </p>\n    </section>\n</div>\n\n";
 }
 public function block_panel($context, array $blocks = array())
 {
     $__internal_3b353c8f950ed4842777130050c8c48e1ceb2194e85c83ca05bd229282a6b48e = $this->env->getExtension("native_profiler");
     $__internal_3b353c8f950ed4842777130050c8c48e1ceb2194e85c83ca05bd229282a6b48e->enter($__internal_3b353c8f950ed4842777130050c8c48e1ceb2194e85c83ca05bd229282a6b48e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
     // line 35
     echo "    <h2>Commands</h2>\n\n    ";
     // line 37
     if (!$this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "commandcount", array())) {
         // line 38
         echo "        <p><em>No commands.</em></p>\n    ";
     } else {
         // line 40
         echo "        <ul class=\"alt\">\n            ";
         // line 41
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "commands", array()));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["command"]) {
             // line 42
             echo "                <li class=\"";
             echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($context["loop"], "index", array())), "html", null, true);
             if ($this->getAttribute($context["command"], "error", array())) {
                 echo " error";
             }
             echo "\">\n                    <div>\n                        <code>";
             // line 44
             echo twig_escape_filter($this->env, $this->getAttribute($context["command"], "cmd", array()), "html", null, true);
             echo "</code>\n                    </div>\n                    <small>\n                        <strong>Time</strong>: ";
             // line 47
             echo twig_escape_filter($this->env, sprintf("%0.2f", $this->getAttribute($context["command"], "executionMS", array())), "html", null, true);
             echo " ms\n                        <strong>Connection</strong>: ";
             // line 48
             echo twig_escape_filter($this->env, $this->getAttribute($context["command"], "conn", array()), "html", null, true);
             echo "\n                        ";
             // line 49
             if ($this->getAttribute($context["command"], "error", array())) {
                 echo "<strong>Error</strong>: ";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["command"], "error", array()), "html", null, true);
             }
             // line 50
             echo "                    </small>\n                </li>\n            ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['command'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 53
         echo "        </ul>\n    ";
     }
     $__internal_3b353c8f950ed4842777130050c8c48e1ceb2194e85c83ca05bd229282a6b48e->leave($__internal_3b353c8f950ed4842777130050c8c48e1ceb2194e85c83ca05bd229282a6b48e_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $tags = array("for" => 34, "set" => 35, "if" => 50);
     $filters = array("t" => 28);
     $functions = array("cycle" => 35);
     try {
         $this->env->getExtension('sandbox')->checkSecurity(array('for', 'set', 'if'), array('t'), array('cycle'));
     } catch (Twig_Sandbox_SecurityError $e) {
         $e->setTemplateFile($this->getTemplateName());
         if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
             $e->setTemplateLine($tags[$e->getTagName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
             $e->setTemplateLine($filters[$e->getFilterName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
             $e->setTemplateLine($functions[$e->getFunctionName()]);
         }
         throw $e;
     }
     // line 25
     echo "<table class=\"responsive-enabled\" data-striping=\"1\">\n  <thead>\n    <tr>\n      <th class=\"checkbox visually-hidden\">";
     // line 28
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Installed")));
     echo "</th>\n      <th class=\"name visually-hidden\">";
     // line 29
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Name")));
     echo "</th>\n      <th class=\"description visually-hidden priority-low\">";
     // line 30
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Description")));
     echo "</th>\n    </tr>\n  </thead>\n  <tbody>\n    ";
     // line 34
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["modules"]) ? $context["modules"] : null);
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
         // line 35
         echo "      ";
         $context["zebra"] = twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($context["loop"], "index0", array()));
         // line 36
         echo "      <tr";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", array()), "addClass", array(0 => isset($context["zebra"]) ? $context["zebra"] : null), "method"), "html", null, true));
         echo ">\n        <td class=\"checkbox\">\n          ";
         // line 38
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "checkbox", array()), "html", null, true));
         echo "\n        </td>\n        <td class=\"module\">\n          <label id=\"";
         // line 41
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "id", array()), "html", null, true));
         echo "\" for=\"";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "enable_id", array()), "html", null, true));
         echo "\" class=\"module-name table-filter-text-source\">";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "name", array()), "html", null, true));
         echo "</label>\n        </td>\n        <td class=\"description expand priority-low\">\n          <details class=\"js-form-wrapper form-wrapper\" id=\"";
         // line 44
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "enable_id", array()), "html", null, true));
         echo "-description\">\n            <summary aria-controls=\"";
         // line 45
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "enable_id", array()), "html", null, true));
         echo "-description\" role=\"button\" aria-expanded=\"false\"><span class=\"text module-description\">";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "description", array()), "html", null, true));
         echo "</span></summary>\n            <div class=\"details-wrapper\">\n              <div class=\"details-description\">\n                <div class=\"requirements\">\n                  <div class=\"admin-requirements\">";
         // line 49
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Machine name: <span dir=\"ltr\" class=\"table-filter-text-source\">@machine-name</span>", array("@machine-name" => $this->getAttribute($context["module"], "machine_name", array())))));
         echo "</div>\n                  ";
         // line 50
         if ($this->getAttribute($context["module"], "version", array())) {
             // line 51
             echo "                    <div class=\"admin-requirements\">";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Version: @module-version", array("@module-version" => $this->getAttribute($context["module"], "version", array())))));
             echo "</div>\n                  ";
         }
         // line 53
         echo "                  ";
         if ($this->getAttribute($context["module"], "requires", array())) {
             // line 54
             echo "                    <div class=\"admin-requirements\">";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Requires: @module-list", array("@module-list" => $this->getAttribute($context["module"], "requires", array())))));
             echo "</div>\n                  ";
         }
         // line 56
         echo "                  ";
         if ($this->getAttribute($context["module"], "required_by", array())) {
             // line 57
             echo "                    <div class=\"admin-requirements\">";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Required by: @module-list", array("@module-list" => $this->getAttribute($context["module"], "required_by", array())))));
             echo "</div>\n                  ";
         }
         // line 59
         echo "                </div>\n                ";
         // line 60
         if ($this->getAttribute($context["module"], "links", array())) {
             // line 61
             echo "                  <div class=\"links\">\n                    ";
             // line 62
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable(array(0 => "help", 1 => "permissions", 2 => "configure"));
             foreach ($context['_seq'] as $context["_key"] => $context["link_type"]) {
                 // line 63
                 echo "                      ";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($context["module"], "links", array()), $context["link_type"], array(), "array"), "html", null, true));
                 echo "\n                    ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['link_type'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 65
             echo "                  </div>\n                ";
         }
         // line 67
         echo "              </div>\n            </div>\n          </details>\n        </td>\n      </tr>\n    ";
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 73
     echo "  </tbody>\n</table>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $tags = array("if" => 44, "set" => 47, "for" => 59);
     $filters = array();
     $functions = array("cycle" => 93);
     try {
         $this->env->getExtension('sandbox')->checkSecurity(array('if', 'set', 'for'), array(), array('cycle'));
     } catch (Twig_Sandbox_SecurityError $e) {
         $e->setTemplateFile($this->getTemplateName());
         if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
             $e->setTemplateLine($tags[$e->getTagName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
             $e->setTemplateLine($filters[$e->getFilterName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
             $e->setTemplateLine($functions[$e->getFunctionName()]);
         }
         throw $e;
     }
     // line 44
     if ($this->getAttribute($this->getAttribute(isset($context["theme"]) ? $context["theme"] : null, "settings", array()), "table_responsive", array())) {
         // line 45
         echo "  <div class=\"table-responsive\">\n";
     }
     // line 47
     $context["classes"] = array(0 => "table", 1 => !twig_test_empty($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "bordered", array())) || $this->getAttribute($this->getAttribute(isset($context["theme"]) ? $context["theme"] : null, "settings", array()), "table_bordered", array()) ? "table-bordered" : "", 2 => !twig_test_empty($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "condensed", array())) || $this->getAttribute($this->getAttribute(isset($context["theme"]) ? $context["theme"] : null, "settings", array()), "table_condensed", array()) ? "table-condensed" : "", 3 => !twig_test_empty($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "hover", array())) || $this->getAttribute($this->getAttribute(isset($context["theme"]) ? $context["theme"] : null, "settings", array()), "table_hover", array()) ? "table-hover" : "", 4 => !twig_test_empty($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "striped", array())) || $this->getAttribute($this->getAttribute(isset($context["theme"]) ? $context["theme"] : null, "settings", array()), "table_striped", array()) ? "table-striped" : "");
     // line 54
     echo "<table";
     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "addClass", array(0 => isset($context["classes"]) ? $context["classes"] : null), "method"), "html", null, true));
     echo ">\n  ";
     // line 55
     if (isset($context["caption"]) ? $context["caption"] : null) {
         // line 56
         echo "    <caption>";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["caption"]) ? $context["caption"] : null, "html", null, true));
         echo "</caption>\n  ";
     }
     // line 58
     echo "\n  ";
     // line 59
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["colgroups"]) ? $context["colgroups"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["colgroup"]) {
         // line 60
         echo "    ";
         if ($this->getAttribute($context["colgroup"], "cols", array())) {
             // line 61
             echo "      <colgroup";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["colgroup"], "attributes", array()), "html", null, true));
             echo ">\n        ";
             // line 62
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["colgroup"], "cols", array()));
             foreach ($context['_seq'] as $context["_key"] => $context["col"]) {
                 // line 63
                 echo "          <col";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["col"], "attributes", array()), "html", null, true));
                 echo " />\n        ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['col'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 65
             echo "      </colgroup>\n    ";
         } else {
             // line 67
             echo "      <colgroup";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["colgroup"], "attributes", array()), "html", null, true));
             echo " />\n    ";
         }
         // line 69
         echo "  ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['colgroup'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 70
     echo "\n  ";
     // line 71
     if (isset($context["header"]) ? $context["header"] : null) {
         // line 72
         echo "    <thead>\n      <tr>\n        ";
         // line 74
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["header"]) ? $context["header"] : null);
         foreach ($context['_seq'] as $context["_key"] => $context["cell"]) {
             // line 75
             echo "        ";
             // line 76
             $context["cell_classes"] = array(0 => $this->getAttribute($context["cell"], "active_table_sort", array()) ? "active" : "");
             // line 80
             echo "        <";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($context["cell"], "attributes", array()), "addClass", array(0 => isset($context["cell_classes"]) ? $context["cell_classes"] : null), "method"), "html", null, true));
             echo ">";
             // line 81
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "content", array()), "html", null, true));
             // line 82
             echo "</";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
             echo ">\n      ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cell'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 84
         echo "      </tr>\n    </thead>\n  ";
     }
     // line 87
     echo "\n  ";
     // line 88
     if (isset($context["rows"]) ? $context["rows"] : null) {
         // line 89
         echo "    <tbody>\n      ";
         // line 90
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["rows"]) ? $context["rows"] : null);
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
             // line 91
             echo "        ";
             // line 92
             $context["row_classes"] = array(0 => !(isset($context["no_striping"]) ? $context["no_striping"] : null) ? twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($context["loop"], "index0", array())) : "");
             // line 96
             echo "        <tr";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($context["row"], "attributes", array()), "addClass", array(0 => isset($context["row_classes"]) ? $context["row_classes"] : null), "method"), "html", null, true));
             echo ">\n          ";
             // line 97
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["row"], "cells", array()));
             foreach ($context['_seq'] as $context["_key"] => $context["cell"]) {
                 // line 98
                 echo "            <";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "attributes", array()), "html", null, true));
                 echo ">";
                 // line 99
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "content", array()), "html", null, true));
                 // line 100
                 echo "</";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
                 echo ">\n          ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cell'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 102
             echo "        </tr>\n      ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 104
         echo "    </tbody>\n  ";
     } elseif (isset($context["empty"]) ? $context["empty"] : null) {
         // line 106
         echo "    <tbody>\n      <tr class=\"odd\">\n        <td colspan=\"";
         // line 108
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["header_columns"]) ? $context["header_columns"] : null, "html", null, true));
         echo "\" class=\"empty message\">";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["empty"]) ? $context["empty"] : null, "html", null, true));
         echo "</td>\n      </tr>\n    </tbody>\n  ";
     }
     // line 112
     echo "  ";
     if (isset($context["footer"]) ? $context["footer"] : null) {
         // line 113
         echo "    <tfoot>\n      ";
         // line 114
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["footer"]) ? $context["footer"] : null);
         foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
             // line 115
             echo "        <tr";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["row"], "attributes", array()), "html", null, true));
             echo ">\n          ";
             // line 116
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["row"], "cells", array()));
             foreach ($context['_seq'] as $context["_key"] => $context["cell"]) {
                 // line 117
                 echo "            <";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "attributes", array()), "html", null, true));
                 echo ">";
                 // line 118
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "content", array()), "html", null, true));
                 // line 119
                 echo "</";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true));
                 echo ">\n          ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cell'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 121
             echo "        </tr>\n      ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 123
         echo "    </tfoot>\n  ";
     }
     // line 125
     echo "</table>\n";
     // line 126
     if ($this->getAttribute($this->getAttribute(isset($context["theme"]) ? $context["theme"] : null, "settings", array()), "table_responsive", array())) {
         // line 127
         echo "  </div>\n";
     }
 }
 public function block_queries($context, array $blocks = array())
 {
     // line 41
     echo "    <h2>Queries</h2>\n\n    ";
     // line 43
     if (twig_test_empty($this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "queries", array()))) {
         // line 44
         echo "        <p>\n            <em>No queries.</em>\n        </p>\n    ";
     } else {
         // line 48
         echo "        <ul class=\"alt\">\n            ";
         // line 49
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "queries", array()));
         foreach ($context['_seq'] as $context["i"] => $context["query"]) {
             // line 50
             echo "                <li class=\"";
             echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $context["i"]), "html", null, true);
             echo "\">\n                    <code >\n                        ";
             // line 52
             echo $this->getAttribute($context["query"], "sql", array());
             echo "\n                    </code>\n                    <br /><br />\n                    <small>\n                        <strong>Parameters</strong>: ";
             // line 56
             echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute($context["query"], "params", array())), "html", null, true);
             echo " <br />\n                        <strong>Time</strong>: ";
             // line 57
             echo twig_escape_filter($this->env, sprintf("%0.2f", $this->getAttribute($context["query"], "executionMS", array()) * 1000), "html", null, true);
             echo " ms\n                    </small>\n                </li>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['i'], $context['query'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 61
         echo "        </ul>\n    ";
     }
     // line 63
     echo "\n";
 }
 public function block_panel($context, array $blocks = array())
 {
     $__internal_d0ee1eaca3fb07e51380bd6007ad505391446585d97653b360f90c79932a4e91 = $this->env->getExtension("native_profiler");
     $__internal_d0ee1eaca3fb07e51380bd6007ad505391446585d97653b360f90c79932a4e91->enter($__internal_d0ee1eaca3fb07e51380bd6007ad505391446585d97653b360f90c79932a4e91_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
     // line 55
     echo "    <h2>Logs</h2>\n\n    ";
     // line 57
     $context["priority"] = $this->getAttribute($this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "query", array()), "get", array(0 => "priority", 1 => 0), "method");
     // line 58
     echo "\n    <table>\n        <tr>\n            <th>Filter</th>\n            <td>\n                <form id=\"priority-form\" action=\"\" method=\"get\" style=\"display: inline\">\n                    <input type=\"hidden\" name=\"panel\" value=\"logger\">\n                    <label for=\"priority\">Min. Priority</label>\n                    <select id=\"priority\" name=\"priority\" onchange=\"document.getElementById('priority-form').submit(); \">\n                        ";
     // line 68
     echo "                        ";
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "priorities", array()));
     foreach ($context['_seq'] as $context["value"] => $context["level"]) {
         // line 69
         echo "                            ";
         if (!(isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) && $context["value"] > 100) {
             // line 70
             echo "                                ";
             $context["priority"] = $context["value"];
             // line 71
             echo "                            ";
         }
         // line 72
         echo "                            <option value=\"";
         echo twig_escape_filter($this->env, $context["value"], "html", null, true);
         echo "\"";
         echo $context["value"] == (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) ? " selected" : "";
         echo ">";
         echo twig_escape_filter($this->env, $this->getAttribute($context["level"], "name", array()), "html", null, true);
         echo " (";
         echo twig_escape_filter($this->env, $this->getAttribute($context["level"], "count", array()), "html", null, true);
         echo ")</option>\n                        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['value'], $context['level'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 74
     echo "                        ";
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "countdeprecations", array())) {
         // line 75
         echo "                            ";
         if (!(isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority"))) {
             // line 76
             echo "                                ";
             $context["priority"] = "-100";
             // line 77
             echo "                            ";
         }
         // line 78
         echo "                            <option value=\"-100\"";
         echo "-100" == (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) ? " selected" : "";
         echo ">DEPRECATION only (";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "countdeprecations", array()), "html", null, true);
         echo ")</option>\n                        ";
     }
     // line 80
     echo "                    </select>\n                    <noscript>\n                        <input type=\"submit\" value=\"refresh\">\n                    </noscript>\n                </form>\n            </td>\n        </tr>\n    </table>\n\n    ";
     // line 89
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs", array())) {
         // line 90
         echo "        <ul class=\"alt\">\n            ";
         // line 91
         $context["log_loop_index"] = 0;
         // line 92
         echo "            ";
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs", array()));
         $context['_iterated'] = false;
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
             // line 93
             echo "                ";
             $context["is_deprecation"] = $this->getAttribute($this->getAttribute($context["log"], "context", array(), "any", false, true), "level", array(), "any", true, true) && $this->getAttribute($this->getAttribute($context["log"], "context", array(), "any", false, true), "type", array(), "any", true, true) && (twig_constant("E_DEPRECATED") == $this->getAttribute($this->getAttribute($context["log"], "context", array()), "type", array()) || twig_constant("E_USER_DEPRECATED") == $this->getAttribute($this->getAttribute($context["log"], "context", array()), "type", array()));
             // line 94
             echo "                ";
             if ((isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) == "-100" ? isset($context["is_deprecation"]) ? $context["is_deprecation"] : $this->getContext($context, "is_deprecation") : $this->getAttribute($context["log"], "priority", array()) >= (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority"))) {
                 // line 95
                 echo "                    ";
                 $context["log_loop_index"] = (isset($context["log_loop_index"]) ? $context["log_loop_index"] : $this->getContext($context, "log_loop_index")) + 1;
                 // line 96
                 echo "                    <li class=\"";
                 echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), isset($context["log_loop_index"]) ? $context["log_loop_index"] : $this->getContext($context, "log_loop_index")), "html", null, true);
                 if ($this->getAttribute($this->getAttribute($context["log"], "context", array(), "any", false, true), "scream", array(), "any", true, true)) {
                     echo " scream";
                 } elseif ($this->getAttribute($context["log"], "priority", array()) >= 400) {
                     echo " error";
                 } elseif ($this->getAttribute($context["log"], "priority", array()) >= 300 || (isset($context["is_deprecation"]) ? $context["is_deprecation"] : $this->getContext($context, "is_deprecation"))) {
                     echo " warning";
                 }
                 echo "\">\n                        ";
                 // line 97
                 echo $context["logger"]->getdisplay_message($this->getAttribute($context["loop"], "index", array()), $context["log"], isset($context["is_deprecation"]) ? $context["is_deprecation"] : $this->getContext($context, "is_deprecation"));
                 echo "\n                    </li>\n                ";
             }
             // line 100
             echo "            ";
             $context['_iterated'] = true;
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         if (!$context['_iterated']) {
             // line 101
             echo "                <li><em>No logs available for this priority.</em></li>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 103
         echo "        </ul>\n    ";
     } else {
         // line 105
         echo "        <p>\n            <em>No logs available.</em>\n        </p>\n    ";
     }
     $__internal_d0ee1eaca3fb07e51380bd6007ad505391446585d97653b360f90c79932a4e91->leave($__internal_d0ee1eaca3fb07e51380bd6007ad505391446585d97653b360f90c79932a4e91_prof);
 }
 public function getmenu_links($__items__ = null, $__attributes__ = null, $__menu_level__ = null)
 {
     $context = $this->env->mergeGlobals(array("items" => $__items__, "attributes" => $__attributes__, "menu_level" => $__menu_level__, "varargs" => func_num_args() > 3 ? array_slice(func_get_args(), 3) : array()));
     $blocks = array();
     ob_start();
     try {
         // line 30
         echo "  ";
         $context["menus"] = $this;
         // line 31
         echo "  ";
         if (isset($context["items"]) ? $context["items"] : null) {
             // line 32
             echo "    ";
             if ((isset($context["menu_level"]) ? $context["menu_level"] : null) == 0) {
                 // line 33
                 echo "      ";
                 // line 34
                 $context["menu_classes"] = array(0 => "menu", 1 => "odd", 2 => "menu-level-1", 3 => isset($context["menu_name"]) ? $context["menu_name"] : null ? "menu-name--" . \Drupal\Component\Utility\Html::getClass(isset($context["menu_name"]) ? $context["menu_name"] : null) : "");
                 // line 41
                 echo "      <ul";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "addClass", array(0 => isset($context["menu_classes"]) ? $context["menu_classes"] : null), "method"), "html", null, true));
                 echo ">\n    ";
             } else {
                 // line 43
                 echo "      <ul class=\"menu ";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), isset($context["menu_level"]) ? $context["menu_level"] : null), "html", null, true));
                 echo " ";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, "menu-level-" . ((isset($context["menu_level"]) ? $context["menu_level"] : null) + 1), "html", null, true));
                 echo "\">\n    ";
             }
             // line 45
             echo "      ";
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["items"]) ? $context["items"] : null);
             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
                 // line 46
                 echo "        ";
                 // line 47
                 $context["item_classes"] = array(0 => "menu__item", 1 => $this->getAttribute($context["item"], "is_expanded", array()) ? "menu__item--expanded" : "", 2 => $this->getAttribute($context["item"], "is_collapsed", array()) ? "menu__item--collapsed" : "", 3 => $this->getAttribute($context["item"], "in_active_trail", array()) ? "menu__item--active-trail" : "");
                 // line 54
                 echo "        ";
                 ob_start();
                 // line 55
                 echo "          <li";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($context["item"], "attributes", array()), "addClass", array(0 => isset($context["item_classes"]) ? $context["item_classes"] : null), "method"), "html", null, true));
                 echo ">\n            ";
                 // line 56
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->env->getExtension('drupal_core')->getLink($this->getAttribute($context["item"], "title", array()), $this->getAttribute($context["item"], "url", array()), array("class" => array(0 => "menu__link"))), "html", null, true));
                 echo "\n            ";
                 // line 57
                 if ($this->getAttribute($context["item"], "below", array())) {
                     // line 58
                     echo "              ";
                     echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar($context["menus"]->getmenu_links($this->getAttribute($context["item"], "below", array()), isset($context["attributes"]) ? $context["attributes"] : null, (isset($context["menu_level"]) ? $context["menu_level"] : null) + 1)));
                     echo "\n            ";
                 }
                 // line 60
                 echo "          </li>\n        ";
                 echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
                 // line 62
                 echo "      ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 63
             echo "    </ul>\n  ";
         }
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 42
        echo "<table";
        echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["attributes"]) ? $context["attributes"] : null), "html", null, true);
        echo ">
  ";
        // line 43
        if ((isset($context["caption"]) ? $context["caption"] : null)) {
            // line 44
            echo "    <caption>";
            echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["caption"]) ? $context["caption"] : null), "html", null, true);
            echo "</caption>
  ";
        }
        // line 46
        echo "
  ";
        // line 47
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["colgroups"]) ? $context["colgroups"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["colgroup"]) {
            // line 48
            echo "    ";
            if ($this->getAttribute($context["colgroup"], "cols", array())) {
                // line 49
                echo "      <colgroup";
                echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["colgroup"], "attributes", array()), "html", null, true);
                echo ">
        ";
                // line 50
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["colgroup"], "cols", array()));
                foreach ($context['_seq'] as $context["_key"] => $context["col"]) {
                    // line 51
                    echo "          <col";
                    echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["col"], "attributes", array()), "html", null, true);
                    echo " />
        ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['col'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 53
                echo "      </colgroup>
    ";
            } else {
                // line 55
                echo "      <colgroup";
                echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["colgroup"], "attributes", array()), "html", null, true);
                echo " />
    ";
            }
            // line 57
            echo "  ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['colgroup'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 58
        echo "
  ";
        // line 59
        if ((isset($context["header"]) ? $context["header"] : null)) {
            // line 60
            echo "    <thead>
      <tr>
        ";
            // line 62
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["header"]) ? $context["header"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["cell"]) {
                // line 63
                echo "          ";
                // line 64
                $context["cell_classes"] = array(0 => (($this->getAttribute(                // line 65
$context["cell"], "active_table_sort", array())) ? ("is-active") : ("")));
                // line 68
                echo "          <";
                echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true);
                echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($context["cell"], "attributes", array()), "addClass", array(0 => (isset($context["cell_classes"]) ? $context["cell_classes"] : null)), "method"), "html", null, true);
                echo ">";
                // line 69
                echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "content", array()), "html", null, true);
                // line 70
                echo "</";
                echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true);
                echo ">
        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cell'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 72
            echo "      </tr>
    </thead>
  ";
        }
        // line 75
        echo "
  ";
        // line 76
        if ((isset($context["rows"]) ? $context["rows"] : null)) {
            // line 77
            echo "    <tbody>
      ";
            // line 78
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["rows"]) ? $context["rows"] : null));
            $context['loop'] = array(
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            );
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
                // line 79
                echo "        ";
                // line 80
                $context["row_classes"] = array(0 => (( !                // line 81
(isset($context["no_striping"]) ? $context["no_striping"] : null)) ? (twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($context["loop"], "index0", array()))) : ("")));
                // line 84
                echo "        <tr";
                echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($context["row"], "attributes", array()), "addClass", array(0 => (isset($context["row_classes"]) ? $context["row_classes"] : null)), "method"), "html", null, true);
                echo ">
          ";
                // line 85
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["row"], "cells", array()));
                foreach ($context['_seq'] as $context["_key"] => $context["cell"]) {
                    // line 86
                    echo "            <";
                    echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true);
                    echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "attributes", array()), "html", null, true);
                    echo ">";
                    // line 87
                    echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "content", array()), "html", null, true);
                    // line 88
                    echo "</";
                    echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true);
                    echo ">
          ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cell'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 90
                echo "        </tr>
      ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['length'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 92
            echo "    </tbody>
  ";
        } elseif (        // line 93
(isset($context["empty"]) ? $context["empty"] : null)) {
            // line 94
            echo "    <tbody>
      <tr class=\"odd\">
        <td colspan=\"";
            // line 96
            echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["header_columns"]) ? $context["header_columns"] : null), "html", null, true);
            echo "\" class=\"empty message\">";
            echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["empty"]) ? $context["empty"] : null), "html", null, true);
            echo "</td>
      </tr>
    </tbody>
  ";
        }
        // line 100
        echo "  ";
        if ((isset($context["footer"]) ? $context["footer"] : null)) {
            // line 101
            echo "    <tfoot>
      ";
            // line 102
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["footer"]) ? $context["footer"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
                // line 103
                echo "        <tr";
                echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["row"], "attributes", array()), "html", null, true);
                echo ">
          ";
                // line 104
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["row"], "cells", array()));
                foreach ($context['_seq'] as $context["_key"] => $context["cell"]) {
                    // line 105
                    echo "            <";
                    echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true);
                    echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "attributes", array()), "html", null, true);
                    echo ">";
                    // line 106
                    echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "content", array()), "html", null, true);
                    // line 107
                    echo "</";
                    echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["cell"], "tag", array()), "html", null, true);
                    echo ">
          ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cell'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 109
                echo "        </tr>
      ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 111
            echo "    </tfoot>
  ";
        }
        // line 113
        echo "</table>
";
    }
 public function block_panel($context, array $blocks = array())
 {
     // line 32
     echo "    <h2>Logs</h2>\n\n    ";
     // line 34
     $context["priority"] = $this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "request"), "query"), "get", array(0 => "priority", 1 => 0), "method");
     // line 35
     echo "\n    <table>\n        <tr>\n            <th>Filter</th>\n            <td>\n                <form id=\"priority-form\" action=\"\" method=\"get\" style=\"display: inline\">\n                    <input type=\"hidden\" name=\"panel\" value=\"logger\" />\n                    <label for=\"priority\">Priority</label>\n                    <select id=\"priority\" name=\"priority\" onchange=\"document.getElementById('priority-form').submit(); \">\n                        ";
     // line 44
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(array(100 => "DEBUG", 200 => "INFO", 250 => "NOTICE", 300 => "WARNING", 400 => "ERROR", 500 => "CRITICAL", 550 => "ALERT", 600 => "EMERGENCY"));
     foreach ($context['_seq'] as $context["value"] => $context["text"]) {
         // line 45
         echo "                        <option value=\"";
         echo twig_escape_filter($this->env, $this->getContext($context, "value"), "html", null, true);
         echo "\"";
         echo $this->getContext($context, "value") == $this->getContext($context, "priority") ? " selected" : "";
         echo ">";
         echo twig_escape_filter($this->env, $this->getContext($context, "text"), "html", null, true);
         echo "</option>\n                        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['value'], $context['text'], $context['_parent'], $context['loop']);
     $context = array_merge($_parent, array_intersect_key($context, $_parent));
     // line 47
     echo "                    </select>\n                    <noscript>\n                        <input type=\"submit\" value=\"refresh\" />\n                    </noscript>\n                </form>\n            </td>\n        </tr>\n    </table>\n\n    ";
     // line 56
     if ($this->getAttribute($this->getContext($context, "collector"), "logs")) {
         // line 57
         echo "        <ul class=\"alt\">\n            ";
         // line 58
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "logs"));
         $context['_iterated'] = false;
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
             if ($this->getAttribute($this->getContext($context, "log"), "priority") >= $this->getContext($context, "priority")) {
                 // line 59
                 echo "                <li class=\"";
                 echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($this->getContext($context, "loop"), "index")), "html", null, true);
                 if ($this->getAttribute($this->getContext($context, "log"), "priority") >= 400) {
                     echo " error";
                 } elseif ($this->getAttribute($this->getContext($context, "log"), "priority") >= 300) {
                     echo " warning";
                 }
                 echo "\">\n                    ";
                 // line 60
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "log"), "priorityName"), "html", null, true);
                 echo " - ";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "log"), "message"), "html", null, true);
                 echo "\n                    ";
                 // line 61
                 if ($this->getAttribute($this->getContext($context, "log", true), "context", array(), "any", true, true) && !twig_test_empty($this->getAttribute($this->getContext($context, "log"), "context"))) {
                     // line 62
                     echo "                        <br />\n                        <small>\n                            <strong>Context</strong>: ";
                     // line 64
                     echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute($this->getContext($context, "log"), "context")), "html", null, true);
                     echo "\n                        </small>\n                    ";
                 }
                 // line 67
                 echo "                </li>\n            ";
                 $context['_iterated'] = true;
                 ++$context['loop']['index0'];
                 ++$context['loop']['index'];
                 $context['loop']['first'] = false;
             }
         }
         if (!$context['_iterated']) {
             // line 69
             echo "                <li><em>No logs available for this priority.</em></li>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
         $context = array_merge($_parent, array_intersect_key($context, $_parent));
         // line 71
         echo "        </ul>\n    ";
     } else {
         // line 73
         echo "        <p>\n            <em>No logs available.</em>\n        </p>\n    ";
     }
 }
 public function block_panel($context, array $blocks = array())
 {
     // line 49
     echo "    <h2>Logs</h2>\n\n    ";
     // line 51
     $context["priority"] = $this->getAttribute($this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "query"), "get", array(0 => "priority", 1 => 0), "method");
     // line 52
     echo "\n    <table>\n        <tr>\n            <th>Filter</th>\n            <td>\n                <form id=\"priority-form\" action=\"\" method=\"get\" style=\"display: inline\">\n                    <input type=\"hidden\" name=\"panel\" value=\"logger\">\n                    <label for=\"priority\">Priority</label>\n                    <select id=\"priority\" name=\"priority\" onchange=\"document.getElementById('priority-form').submit(); \">\n                        ";
     // line 62
     echo "                        ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(array(100 => "DEBUG", 200 => "INFO", 250 => "NOTICE", 300 => "WARNING", 400 => "ERROR", 500 => "CRITICAL", 550 => "ALERT", 600 => "EMERGENCY", "-100" => "DEPRECATION only"));
     foreach ($context['_seq'] as $context["value"] => $context["text"]) {
         // line 63
         echo "                            <option value=\"";
         echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : $this->getContext($context, "value"), "html", null, true);
         echo "\"";
         echo (isset($context["value"]) ? $context["value"] : $this->getContext($context, "value")) == (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) ? " selected" : "";
         echo ">";
         echo twig_escape_filter($this->env, isset($context["text"]) ? $context["text"] : $this->getContext($context, "text"), "html", null, true);
         echo "</option>\n                        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['value'], $context['text'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 65
     echo "                    </select>\n                    <noscript>\n                        <input type=\"submit\" value=\"refresh\">\n                    </noscript>\n                </form>\n            </td>\n        </tr>\n    </table>\n\n    ";
     // line 74
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs")) {
         // line 75
         echo "        <ul class=\"alt\">\n            ";
         // line 76
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "logs"));
         $context['_iterated'] = false;
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
             if ((isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) >= 0 && $this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "priority") >= (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) || (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority")) < 0 && ($this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "type", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "type"), 0) : 0) == (isset($context["priority"]) ? $context["priority"] : $this->getContext($context, "priority"))) {
                 // line 77
                 echo "                <li class=\"";
                 echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "index")), "html", null, true);
                 if ($this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "priority") >= 400) {
                     echo " error";
                 } elseif ($this->getAttribute(isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "priority") >= 300) {
                     echo " warning";
                 }
                 echo "\">\n                    ";
                 // line 78
                 echo $context["logger"]->getdisplay_message($this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "index"), isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"));
                 echo "\n                </li>\n            ";
                 $context['_iterated'] = true;
                 ++$context['loop']['index0'];
                 ++$context['loop']['index'];
                 $context['loop']['first'] = false;
             }
         }
         if (!$context['_iterated']) {
             // line 81
             echo "                <li><em>No logs available for this priority.</em></li>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 83
         echo "        </ul>\n    ";
     } else {
         // line 85
         echo "        <p>\n            <em>No logs available.</em>\n        </p>\n    ";
     }
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 24
     echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["form"]) ? $context["form"] : null, "filters", array()), "html", null, true);
     echo "\n\n<table class=\"responsive-enabled\" data-striping=\"1\">\n  <thead>\n    <tr>\n      <th>";
     // line 29
     echo $this->env->getExtension('drupal_core')->renderVar(t("Uninstall"));
     echo "</th>\n      <th>";
     // line 30
     echo $this->env->getExtension('drupal_core')->renderVar(t("Name"));
     echo "</th>\n      <th>";
     // line 31
     echo $this->env->getExtension('drupal_core')->renderVar(t("Description"));
     echo "</th>\n    </tr>\n  </thead>\n  <tbody>\n    ";
     // line 35
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["modules"]) ? $context["modules"] : null);
     $context['_iterated'] = false;
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
         // line 36
         echo "      ";
         $context["zebra"] = twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($context["loop"], "index0", array()));
         // line 37
         echo "<tr";
         echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($context["module"], "attributes", array()), "addClass", array(0 => isset($context["zebra"]) ? $context["zebra"] : null), "method"), "html", null, true);
         echo ">\n        <td align=\"center\">";
         // line 39
         echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "checkbox", array()), "html", null, true);
         // line 40
         echo "</td>\n        <td>\n          <label for=\"";
         // line 42
         echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "checkbox_id", array()), "html", null, true);
         echo "\" class=\"module-name table-filter-text-source\">";
         echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "name", array()), "html", null, true);
         echo "</label>\n        </td>\n        <td class=\"description\">\n          <span class=\"text module-description\">";
         // line 45
         echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["module"], "description", array()), "html", null, true);
         echo "</span>\n          ";
         // line 46
         if ($this->getAttribute($context["module"], "reasons_count", array()) > 0) {
             // line 47
             echo "            <div class=\"admin-requirements\">";
             // line 48
             echo \Drupal::translation()->formatPlural(abs($this->getAttribute($context["module"], "reasons_count", array())), "The following reason prevents @module.module_name from being uninstalled:", "The following reasons prevent @module.module_name from being uninstalled:", array("@module.module_name" => $this->getAttribute($context["module"], "module_name", array()), "@module.module_name" => $this->getAttribute($context["module"], "module_name", array())));
             // line 53
             echo "              <div class=\"item-list\">\n                <ul>";
             // line 55
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["module"], "validation_reasons", array()));
             foreach ($context['_seq'] as $context["_key"] => $context["reason"]) {
                 // line 56
                 echo "<li>";
                 echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $context["reason"], "html", null, true);
                 echo "</li>";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reason'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 58
             if ($this->getAttribute($context["module"], "required_by", array())) {
                 // line 59
                 echo "<li>";
                 echo $this->env->getExtension('drupal_core')->renderVar(t("Required by: @module-list", array("@module-list" => $this->env->getExtension('drupal_core')->safeJoin($this->env, $this->getAttribute($context["module"], "required_by", array()), ", "))));
                 echo "</li>";
             }
             // line 61
             echo "</ul>\n              </div>\n            </div>\n          ";
         }
         // line 65
         echo "        </td>\n      </tr>\n    ";
         $context['_iterated'] = true;
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     if (!$context['_iterated']) {
         // line 68
         echo "      <tr class=\"odd\">\n        <td colspan=\"3\" class=\"empty message\">";
         // line 69
         echo $this->env->getExtension('drupal_core')->renderVar(t("No modules are available to uninstall."));
         echo "</td>\n      </tr>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 72
     echo "  </tbody>\n</table>\n\n";
     // line 75
     echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without(isset($context["form"]) ? $context["form"] : null, "filters", "modules", "uninstall"), "html", null, true);
     echo "\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 18
     echo "\n";
     // line 19
     if (isset($context["settings"])) {
         $_settings_ = $context["settings"];
     } else {
         $_settings_ = null;
     }
     if ($this->getAttribute($_settings_, "showcase_enabled")) {
         // line 20
         echo "<div class=\"hero-unit\">\n    <h1>";
         // line 21
         if (isset($context["settings"])) {
             $_settings_ = $context["settings"];
         } else {
             $_settings_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_settings_, "showcase_heading"), "html", null, true);
         echo "</h1>\n    <p>";
         // line 22
         if (isset($context["settings"])) {
             $_settings_ = $context["settings"];
         } else {
             $_settings_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_settings_, "showcase_text"), "html", null, true);
         echo "</p>\n    <p><a class=\"btn btn-alt btn-primary btn-large\" href=\"";
         // line 23
         if (isset($context["settings"])) {
             $_settings_ = $context["settings"];
         } else {
             $_settings_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_settings_, "showcase_button_url"), "html", null, true);
         echo "\">";
         if (isset($context["settings"])) {
             $_settings_ = $context["settings"];
         } else {
             $_settings_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_settings_, "showcase_button_title"), "html", null, true);
         echo "</a></p>\n</div>\n";
     }
     // line 26
     echo "\n";
     // line 27
     if (isset($context["client"])) {
         $_client_ = $context["client"];
     } else {
         $_client_ = null;
     }
     if ($_client_) {
         // line 28
         echo "\n";
         // line 29
         if (isset($context["client"])) {
             $_client_ = $context["client"];
         } else {
             $_client_ = null;
         }
         $context["tickets"] = $this->getAttribute($_client_, "support_ticket_get_list", array(0 => array("status" => "on_hold")), "method");
         // line 30
         if (isset($context["tickets"])) {
             $_tickets_ = $context["tickets"];
         } else {
             $_tickets_ = null;
         }
         if ($this->getAttribute($_tickets_, "total") > 0) {
             // line 31
             echo "<div class=\"row\">\n<article class=\"span12 data-block\">\n<div class=\"data-container\">\n<header>\n    <h2>";
             // line 35
             echo gettext("Tickets waiting your reply");
             echo "</h2>\n</header>\n<section id=\"slimScroll1\">\n    <table class=\"table table-striped table-bordered table-condensed table-hover\">\n        <thead>\n        <tr>\n            <th>";
             // line 41
             echo gettext("Id");
             echo "</th>\n            <th>";
             // line 42
             echo gettext("Subject");
             echo "</th>\n            <th>";
             // line 43
             echo gettext("Help desk");
             echo "</th>\n            <th>";
             // line 44
             echo gettext("Status");
             echo "</th>\n            <th>";
             // line 45
             echo gettext("Submitted");
             echo "</th>\n            <th>";
             // line 46
             echo gettext("Actions");
             echo "</th>\n        </tr>\n        </thead>\n        <tbody>\n        ";
             // line 50
             if (isset($context["tickets"])) {
                 $_tickets_ = $context["tickets"];
             } else {
                 $_tickets_ = null;
             }
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($_tickets_, "list"));
             $context['_iterated'] = false;
             foreach ($context['_seq'] as $context["i"] => $context["ticket"]) {
                 // line 51
                 echo "\n        <tr class=\"";
                 // line 52
                 if (isset($context["i"])) {
                     $_i_ = $context["i"];
                 } else {
                     $_i_ = null;
                 }
                 echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $_i_), "html", null, true);
                 echo "\">\n            <td>";
                 // line 53
                 if (isset($context["ticket"])) {
                     $_ticket_ = $context["ticket"];
                 } else {
                     $_ticket_ = null;
                 }
                 echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "id"), "html", null, true);
                 echo "</td>\n            <td><a href=\"";
                 // line 54
                 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("support/ticket");
                 echo "/";
                 if (isset($context["ticket"])) {
                     $_ticket_ = $context["ticket"];
                 } else {
                     $_ticket_ = null;
                 }
                 echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "id"), "html", null, true);
                 echo "\">";
                 if (isset($context["ticket"])) {
                     $_ticket_ = $context["ticket"];
                 } else {
                     $_ticket_ = null;
                 }
                 echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "subject"), "html", null, true);
                 echo "</a></td>\n            <td>";
                 // line 55
                 if (isset($context["ticket"])) {
                     $_ticket_ = $context["ticket"];
                 } else {
                     $_ticket_ = null;
                 }
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_ticket_, "helpdesk"), "name"), "html", null, true);
                 echo "</td>\n            <td><span class=\"label\">";
                 // line 56
                 if (isset($context["mf"])) {
                     $_mf_ = $context["mf"];
                 } else {
                     $_mf_ = null;
                 }
                 if (isset($context["ticket"])) {
                     $_ticket_ = $context["ticket"];
                 } else {
                     $_ticket_ = null;
                 }
                 echo $_mf_->getstatus_name($this->getAttribute($_ticket_, "status"));
                 echo "</span></td>\n            <td>";
                 // line 57
                 if (isset($context["ticket"])) {
                     $_ticket_ = $context["ticket"];
                 } else {
                     $_ticket_ = null;
                 }
                 echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute($_ticket_, "created_at")), "html", null, true);
                 echo "</td>\n            <td><a href=\"";
                 // line 58
                 echo $this->env->getExtension('bb')->twig_bb_client_link_filter("support/ticket");
                 echo "/";
                 if (isset($context["ticket"])) {
                     $_ticket_ = $context["ticket"];
                 } else {
                     $_ticket_ = null;
                 }
                 echo twig_escape_filter($this->env, $this->getAttribute($_ticket_, "id"), "html", null, true);
                 echo "\" class=\"btn btn-small btn-inverse\">";
                 echo gettext("Reply");
                 echo "</a></td>\n        </tr>\n\n        ";
                 $context['_iterated'] = true;
             }
             if (!$context['_iterated']) {
                 // line 62
                 echo "\n        <tr>\n            <td colspan=\"5\">";
                 // line 64
                 echo gettext("The list is empty");
                 echo "</td>\n        </tr>\n\n        ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['i'], $context['ticket'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 68
             echo "\n        </tbody>\n    </table>\n</section>\n</div>\n</article>\n</div>\n";
         }
         // line 76
         echo "\n<div class=\"row\">\n";
         // line 78
         if (isset($context["client"])) {
             $_client_ = $context["client"];
         } else {
             $_client_ = null;
         }
         $context["profile"] = $this->getAttribute($_client_, "client_get");
         // line 79
         echo "<article class=\"span6 data-block decent\">\n    <div class=\"data-container\">\n        <header>\n            <h2>";
         // line 82
         echo gettext("Profile");
         echo "</h2>\n            <ul class=\"data-header-actions\">\n                <li>\n                    <a class=\"btn btn-alt btn-inverse\" href=\"";
         // line 85
         echo $this->env->getExtension('bb')->twig_bb_client_link_filter("client/me");
         echo "\">";
         echo gettext("Update");
         echo "</a>\n                </li>\n            </ul>\n        </header>\n        <section>\n            <dl class=\"dl-horizontal\">\n                <dt>";
         // line 91
         echo gettext("ID");
         echo "</dt>\n                <dd>#";
         // line 92
         if (isset($context["profile"])) {
             $_profile_ = $context["profile"];
         } else {
             $_profile_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_profile_, "id"), "html", null, true);
         echo "</dd>\n                <dt>";
         // line 93
         echo gettext("Email");
         echo "</dt>\n                <dd>";
         // line 94
         if (isset($context["profile"])) {
             $_profile_ = $context["profile"];
         } else {
             $_profile_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_profile_, "email"), "html", null, true);
         echo "</dd>\n                <dt>";
         // line 95
         echo gettext("Balance");
         echo "</dt>\n                <dd>";
         // line 96
         if (isset($context["profile"])) {
             $_profile_ = $context["profile"];
         } else {
             $_profile_ = null;
         }
         echo twig_money($this->env, $this->getAttribute($_profile_, "balance"), $this->getAttribute($_profile_, "currency"));
         echo "</dd>\n            </dl>\n        </section>\n    </div>\n</article>\n\n<article class=\"span6 data-block decent\">\n    <div class=\"data-container\">\n        <header>\n            <h2>";
         // line 105
         echo gettext("Invoices");
         echo "</h2>\n            <ul class=\"data-header-actions\">\n                <li>\n                    <a class=\"btn btn-alt btn-inverse\" href=\"";
         // line 108
         echo $this->env->getExtension('bb')->twig_bb_client_link_filter("invoice");
         echo "\">";
         echo gettext("All Invoices");
         echo "</a>\n                </li>\n            </ul>\n        </header>\n        <section>\n            <dl class=\"dl-horizontal\">\n                <dt>";
         // line 114
         echo gettext("Total");
         echo "</dt>\n                    <dd>";
         // line 115
         if (isset($context["client"])) {
             $_client_ = $context["client"];
         } else {
             $_client_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "invoice_get_list", array(), "method"), "total"), "html", null, true);
         echo "</dd>\n                <dt>";
         // line 116
         echo gettext("Paid");
         echo "</dt>\n                    <dd>";
         // line 117
         if (isset($context["client"])) {
             $_client_ = $context["client"];
         } else {
             $_client_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "invoice_get_list", array(0 => array("status" => "paid")), "method"), "total"), "html", null, true);
         echo "</dd>\n                <dt>";
         // line 118
         echo gettext("Unpaid");
         echo "</dt>\n                    <dd>";
         // line 119
         if (isset($context["client"])) {
             $_client_ = $context["client"];
         } else {
             $_client_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "invoice_get_list", array(0 => array("status" => "unpaid")), "method"), "total"), "html", null, true);
         echo "</dd>\n            </dl>\n        </section>\n    </div>\n</article>\n</div>\n\n<div class=\"row\">\n\n<article class=\"span6 data-block decent\">\n    <div class=\"data-container\">\n        <header>\n            <h2>";
         // line 131
         echo gettext("Orders");
         echo "</h2>\n            <ul class=\"data-header-actions\">\n                <li>\n                    <a class=\"btn btn-alt btn-info order-button\" href=\"";
         // line 134
         echo $this->env->getExtension('bb')->twig_bb_client_link_filter("order");
         echo "\">";
         echo gettext("New order");
         echo "</a>\n                    <a class=\"btn btn-alt btn-inverse\" href=\"";
         // line 135
         echo $this->env->getExtension('bb')->twig_bb_client_link_filter("order/service");
         echo "\">";
         echo gettext("All orders");
         echo "</a>\n                </li>\n            </ul>\n        </header>\n        <section>\n            <dl class=\"dl-horizontal\">\n                <dt>";
         // line 141
         echo gettext("Total");
         echo "</dt>\n                <dd>";
         // line 142
         if (isset($context["client"])) {
             $_client_ = $context["client"];
         } else {
             $_client_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "order_get_list", array(0 => array("hide_addons" => 1)), "method"), "total"), "html", null, true);
         echo "</dd>\n                <dt>";
         // line 143
         echo gettext("Active");
         echo "</dt>\n                <dd>";
         // line 144
         if (isset($context["client"])) {
             $_client_ = $context["client"];
         } else {
             $_client_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "order_get_list", array(0 => array("hide_addons" => 1, "status" => "active")), "method"), "total"), "html", null, true);
         echo "</dd>\n                <dt>";
         // line 145
         echo gettext("Expiring");
         echo "</dt>\n                <dd>";
         // line 146
         if (isset($context["client"])) {
             $_client_ = $context["client"];
         } else {
             $_client_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "order_get_list", array(0 => array("expiring" => 1)), "method"), "total"), "html", null, true);
         echo "</dd>\n            </dl>\n        </section>\n    </div>\n</article>\n\n<article class=\"span6 data-block decent\">\n    <div class=\"data-container\">\n        <header>\n            <h2>";
         // line 155
         echo gettext("Tickets");
         echo "</h2>\n            <ul class=\"data-header-actions\">\n                <li>\n                    <a class=\"btn btn-alt btn-info\" href=\"";
         // line 158
         echo $this->env->getExtension('bb')->twig_bb_client_link_filter("support", array("ticket" => 1));
         echo "\">";
         echo gettext("New ticket");
         echo "</a>\n                    <a class=\"btn btn-alt btn-inverse\" href=\"";
         // line 159
         echo $this->env->getExtension('bb')->twig_bb_client_link_filter("support");
         echo "\">";
         echo gettext("All tickets");
         echo "</a>\n                </li>\n            </ul>\n        </header>\n        <section>\n            <dl class=\"dl-horizontal\">\n                <dt>";
         // line 165
         echo gettext("Total");
         echo "</dt>\n                <dd>";
         // line 166
         if (isset($context["client"])) {
             $_client_ = $context["client"];
         } else {
             $_client_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "support_ticket_get_list", array(), "method"), "total"), "html", null, true);
         echo "</dd>\n                <dt>";
         // line 167
         echo gettext("Open");
         echo "</dt>\n                <dd>";
         // line 168
         if (isset($context["client"])) {
             $_client_ = $context["client"];
         } else {
             $_client_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "support_ticket_get_list", array(0 => array("status" => "open")), "method"), "total"), "html", null, true);
         echo "</dd>\n                <dt>";
         // line 169
         echo gettext("On Hold");
         echo "</dt>\n                <dd>";
         // line 170
         if (isset($context["client"])) {
             $_client_ = $context["client"];
         } else {
             $_client_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_client_, "support_ticket_get_list", array(0 => array("status" => "on_hold")), "method"), "total"), "html", null, true);
         echo "</dd>\n            </dl>\n        </section>\n    </div>\n</article>\n</div>\n\n<div class=\"row\">\n\n<article class=\"span6 data-block decent\">\n    <div class=\"data-container\">\n        <header>\n            <h2>";
         // line 182
         echo gettext("Recent orders");
         echo "</h2>\n        </header>\n        <section>\n            <table class=\"table table-striped table-bordered table-condensed table-hover\">\n                <tbody>\n                ";
         // line 187
         if (isset($context["client"])) {
             $_client_ = $context["client"];
         } else {
             $_client_ = null;
         }
         if (isset($context["request"])) {
             $_request_ = $context["request"];
         } else {
             $_request_ = null;
         }
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($_client_, "order_get_list", array(0 => array("per_page" => 5, "page" => $this->getAttribute($_request_, "page"), "hide_addons" => 1)), "method"), "list"));
         $context['_iterated'] = false;
         foreach ($context['_seq'] as $context["i"] => $context["order"]) {
             // line 188
             echo "                <tr class=\"";
             if (isset($context["i"])) {
                 $_i_ = $context["i"];
             } else {
                 $_i_ = null;
             }
             echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $_i_), "html", null, true);
             echo "\">\n                    <td><a href=\"";
             // line 189
             echo $this->env->getExtension('bb')->twig_bb_client_link_filter("order/service/manage");
             echo "/";
             if (isset($context["order"])) {
                 $_order_ = $context["order"];
             } else {
                 $_order_ = null;
             }
             echo twig_escape_filter($this->env, $this->getAttribute($_order_, "id"), "html", null, true);
             echo "\">";
             if (isset($context["order"])) {
                 $_order_ = $context["order"];
             } else {
                 $_order_ = null;
             }
             echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_order_, "title"), 30), "html", null, true);
             echo "</a></td>\n                    <td><span class=\"label ";
             // line 190
             if (isset($context["order"])) {
                 $_order_ = $context["order"];
             } else {
                 $_order_ = null;
             }
             if ($this->getAttribute($_order_, "status") == "active") {
                 echo "label-success";
             } elseif ($this->getAttribute($_order_, "status") == "pending_setup") {
                 echo "label-warning";
             }
             echo "\">";
             if (isset($context["mf"])) {
                 $_mf_ = $context["mf"];
             } else {
                 $_mf_ = null;
             }
             if (isset($context["order"])) {
                 $_order_ = $context["order"];
             } else {
                 $_order_ = null;
             }
             echo $_mf_->getstatus_name($this->getAttribute($_order_, "status"));
             echo "</span></td>\n                </tr>\n                ";
             $context['_iterated'] = true;
         }
         if (!$context['_iterated']) {
             // line 193
             echo "                <tr>\n                    <td colspan=\"3\">";
             // line 194
             echo gettext("The list is empty");
             echo "</td>\n                </tr>\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['i'], $context['order'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 197
         echo "                </tbody>\n            </table>\n        </section>\n    </div>\n</article>\n\n<article class=\"span6 data-block decent\">\n    <div class=\"data-container\">\n        <header>\n            <h2>";
         // line 206
         echo gettext("Recent emails");
         echo "</h2>\n        </header>\n        <section>\n            <table class=\"table table-striped table-bordered table-condensed table-hover\">\n                <tbody>\n                ";
         // line 211
         if (isset($context["client"])) {
             $_client_ = $context["client"];
         } else {
             $_client_ = null;
         }
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($_client_, "email_get_list", array(0 => array("per_page" => 5)), "method"), "list"));
         $context['_iterated'] = false;
         foreach ($context['_seq'] as $context["i"] => $context["email"]) {
             // line 212
             echo "                <tr class=\"";
             if (isset($context["i"])) {
                 $_i_ = $context["i"];
             } else {
                 $_i_ = null;
             }
             echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $_i_), "html", null, true);
             echo "\">\n                    <td><a href=\"";
             // line 213
             echo $this->env->getExtension('bb')->twig_bb_client_link_filter("email");
             echo "/";
             if (isset($context["email"])) {
                 $_email_ = $context["email"];
             } else {
                 $_email_ = null;
             }
             echo twig_escape_filter($this->env, $this->getAttribute($_email_, "id"), "html", null, true);
             echo "\">";
             if (isset($context["email"])) {
                 $_email_ = $context["email"];
             } else {
                 $_email_ = null;
             }
             echo twig_escape_filter($this->env, twig_truncate_filter($this->env, $this->getAttribute($_email_, "subject"), 30), "html", null, true);
             echo "</a></td>\n                    <td title=\"";
             // line 214
             if (isset($context["email"])) {
                 $_email_ = $context["email"];
             } else {
                 $_email_ = null;
             }
             echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute($_email_, "created_at")), "html", null, true);
             echo "\">";
             if (isset($context["email"])) {
                 $_email_ = $context["email"];
             } else {
                 $_email_ = null;
             }
             echo twig_escape_filter($this->env, twig_timeago_filter($this->getAttribute($_email_, "created_at")), "html", null, true);
             echo " ";
             echo gettext("ago");
             echo "</td>\n                </tr>\n                ";
             $context['_iterated'] = true;
         }
         if (!$context['_iterated']) {
             // line 217
             echo "                <tr>\n                    <td colspan=\"2\">";
             // line 218
             echo gettext("The list is empty");
             echo "</td>\n                </tr>\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['i'], $context['email'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 221
         echo "                </tbody>\n            </table>\n        </section>\n    </div>\n</article>\n\n</div>\n\n";
     }
 }
 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"row\">\n<article class=\"span12 data-block\">\n    <div class=\"data-container\">\n\n        <header>\n           <h1>";
     // line 13
     echo gettext("Payments history");
     echo "</h1>\n           <p>";
     // line 14
     echo gettext("Here you can track what you have been charged for and add more funds to your account");
     echo "</p>\n        </header>\n\n        <section>\n            <table class=\"table table-striped table-bordered table-condensed table-hover\">\n                <thead>\n                <tr>\n                    <th>";
     // line 21
     echo gettext("Description");
     echo "</th>\n                    <th>";
     // line 22
     echo gettext("Date");
     echo "</th>\n                    <th>";
     // line 23
     echo gettext("Amount");
     echo "</th>\n                </tr>\n                </thead>\n                <tbody>\n                ";
     // line 27
     if (isset($context["client"])) {
         $_client_ = $context["client"];
     } else {
         $_client_ = null;
     }
     if (isset($context["request"])) {
         $_request_ = $context["request"];
     } else {
         $_request_ = null;
     }
     $context["transactions"] = $this->getAttribute($_client_, "client_balance_get_list", array(0 => array("per_page" => 10, "page" => $this->getAttribute($_request_, "page"))), "method");
     // line 28
     echo "                ";
     if (isset($context["transactions"])) {
         $_transactions_ = $context["transactions"];
     } else {
         $_transactions_ = null;
     }
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($_transactions_, "list"));
     $context['_iterated'] = false;
     foreach ($context['_seq'] as $context["i"] => $context["tx"]) {
         // line 29
         echo "                <tr class=\"";
         if (isset($context["i"])) {
             $_i_ = $context["i"];
         } else {
             $_i_ = null;
         }
         echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $_i_), "html", null, true);
         echo "\">\n                    <td>";
         // line 30
         if (isset($context["tx"])) {
             $_tx_ = $context["tx"];
         } else {
             $_tx_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_tx_, "description"), "html", null, true);
         echo "</td>\n                    <td>";
         // line 31
         if (isset($context["tx"])) {
             $_tx_ = $context["tx"];
         } else {
             $_tx_ = null;
         }
         echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute($_tx_, "created_at")), "html", null, true);
         echo "</td>\n                    <td>";
         // line 32
         if (isset($context["tx"])) {
             $_tx_ = $context["tx"];
         } else {
             $_tx_ = null;
         }
         echo twig_money($this->env, $this->getAttribute($_tx_, "amount"), $this->getAttribute($_tx_, "currency"));
         echo "</td>\n                </tr>\n                ";
         $context['_iterated'] = true;
     }
     if (!$context['_iterated']) {
         // line 35
         echo "                <tr>\n                    <td colspan=\"3\">";
         // line 36
         echo gettext("The list is empty");
         echo "</td>\n                </tr>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['i'], $context['tx'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 39
     echo "                </tbody>\n                <tfoot>\n                    <tr>\n                        <td colspan=\"2\">";
     // line 42
     echo gettext("Total:");
     echo "</td>\n                        <td><strong>";
     // line 43
     if (isset($context["profile"])) {
         $_profile_ = $context["profile"];
     } else {
         $_profile_ = null;
     }
     echo twig_money($this->env, $this->getAttribute($_profile_, "balance"), $this->getAttribute($_profile_, "currency"));
     echo "</strong></td>\n                    </tr>\n                </tfoot>\n            </table>\n            ";
     // line 47
     if (isset($context["transactions"])) {
         $_transactions_ = $context["transactions"];
     } else {
         $_transactions_ = null;
     }
     $this->env->loadTemplate("partial_pagination.phtml")->display(array_merge($context, array("list" => $_transactions_)));
     // line 48
     echo "\n            <div class=\"row-fluid\">\n\n                <div class=\"span3\">\n                    <form action=\"\" method=\"post\" class=\"form-inline api-form\" data-api-url=\"";
     // line 52
     echo $this->env->getExtension('bb')->twig_bb_client_link_filter("api/client/invoice/funds_invoice");
     echo "\" data-api-jsonp=\"onAfterInvoiceCreated\">\n                        <fieldset>\n                            <div class=\"control-group\">\n                                <div class=\"form-controls\">\n                                    <div class=\"input-append\">\n                                        <input id=\"appendedPrependedInput\" class=\"span4\" type=\"text\" name=\"amount\" placeholder=\"0\" required=\"required\"><button class=\"btn\" type=\"submit\">";
     // line 57
     echo gettext("Add funds!");
     echo "</button>\n                                    </div>\n                                </div>\n                            </div>\n                        </fieldset>\n                    </form>\n                </div>\n\n            </div>\n\n        </section>\n\n</article>\n</div>\n\n";
 }
 public function block_queries($context, array $blocks = array())
 {
     // line 56
     echo "    <h2>Queries</h2>\n\n    ";
     // line 58
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "queries"));
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context["connection"] => $context["queries"]) {
         // line 59
         echo "        <h3>Connection <em>";
         echo twig_escape_filter($this->env, isset($context["connection"]) ? $context["connection"] : $this->getContext($context, "connection"), "html", null, true);
         echo "</em></h3>\n        ";
         // line 60
         if (twig_test_empty(isset($context["queries"]) ? $context["queries"] : $this->getContext($context, "queries"))) {
             // line 61
             echo "            <p>\n                <em>No queries.</em>\n            </p>\n        ";
         } else {
             // line 65
             echo "            <ul class=\"alt\" id=\"queriesPlaceholder-";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "index"), "html", null, true);
             echo "\">\n                ";
             // line 66
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["queries"]) ? $context["queries"] : $this->getContext($context, "queries"));
             $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
             if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
                 $length = count($context['_seq']);
                 $context['loop']['revindex0'] = $length - 1;
                 $context['loop']['revindex'] = $length;
                 $context['loop']['length'] = $length;
                 $context['loop']['last'] = 1 === $length;
             }
             foreach ($context['_seq'] as $context["i"] => $context["query"]) {
                 // line 67
                 echo "                    <li class=\"";
                 echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), "html", null, true);
                 echo "\" data-extra-info=\"";
                 echo twig_escape_filter($this->env, sprintf("%0.2f", $this->getAttribute(isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "executionMS") * 1000), "html", null, true);
                 echo "\" data-target-id=\"";
                 echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : $this->getContext($context, "i"), "html", null, true);
                 echo "\">\n                        <div style=\"margin-top: 4px\" id=\"queryNo-";
                 // line 68
                 echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : $this->getContext($context, "i"), "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "parent"), "loop"), "index"), "html", null, true);
                 echo "\">\n                            <div onclick=\"return expandQuery(this);\" title=\"Expand query\" data-target-id=\"code-";
                 // line 69
                 echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : $this->getContext($context, "i"), "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "parent"), "loop"), "index"), "html", null, true);
                 echo "\" style=\"cursor: pointer;\">\n                                <img alt=\"+\" src=\"";
                 // line 70
                 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html", null, true);
                 echo "\" style=\"display: inline;\" />\n                                <img alt=\"-\" src=\"";
                 // line 71
                 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html", null, true);
                 echo "\" style=\"display: none;\" />\n                                <span style=\"display: none\">Shrink query</span>\n                                <span id=\"smallcode-";
                 // line 73
                 echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : $this->getContext($context, "i"), "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "parent"), "loop"), "index"), "html", null, true);
                 echo "\">\n                                    ";
                 // line 74
                 echo $this->env->getExtension('doctrine_extension')->minifyQuery($this->getAttribute(isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "sql"));
                 echo "\n                                </span>\n                            </div>\n                            <code id=\"code-";
                 // line 77
                 echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : $this->getContext($context, "i"), "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "parent"), "loop"), "index"), "html", null, true);
                 echo "\">\n                                ";
                 // line 78
                 echo SqlFormatter::format($this->getAttribute(isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "sql"), isset($context["i"]) ? $context["i"] : $this->getContext($context, "i"), $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "parent"), "loop"), "index"));
                 echo "\n                            </code>\n                            <span id=\"original-query-";
                 // line 80
                 echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : $this->getContext($context, "i"), "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "parent"), "loop"), "index"), "html", null, true);
                 echo "\" style=\"display: none;\">\n                                ";
                 // line 81
                 echo $this->env->getExtension('doctrine_extension')->replaceQueryParameters($this->getAttribute(isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "sql"), $this->getAttribute(isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "params"));
                 echo "\n                            </span>\n                            <small>\n                                <strong>Parameters</strong>: ";
                 // line 84
                 echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute(isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "params")), "html", null, true);
                 echo " <br />\n                                [<span id=\"expandParams-";
                 // line 85
                 echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : $this->getContext($context, "i"), "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "parent"), "loop"), "index"), "html", null, true);
                 echo "\" onclick=\"javascript:toggleRunnableQuery(this);\" target-data-id=\"original-query-";
                 echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : $this->getContext($context, "i"), "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "parent"), "loop"), "index"), "html", null, true);
                 echo "\" style=\"cursor: pointer;\">Display runnable query</span>]<br/>\n                                <strong>Time</strong>: ";
                 // line 86
                 echo twig_escape_filter($this->env, sprintf("%0.2f", $this->getAttribute(isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "executionMS") * 1000), "html", null, true);
                 echo " ms\n                            </small>\n                            ";
                 // line 88
                 if ($this->getAttribute(isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "explainable")) {
                     // line 89
                     echo "                                [<a href=\"";
                     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("panel" => "db", "token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "page" => "explain", "connection" => isset($context["connection"]) ? $context["connection"] : $this->getContext($context, "connection"), "query" => isset($context["i"]) ? $context["i"] : $this->getContext($context, "i"))), "html", null, true);
                     echo "\" onclick=\"return explain(this);\" style=\"text-decoration: none;\" title=\"Explains the query\" data-target-id=\"explain-";
                     echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : $this->getContext($context, "i"), "html", null, true);
                     echo "-";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "parent"), "loop"), "index"), "html", null, true);
                     echo "\" >\n                                    <img alt=\"+\" src=\"";
                     // line 90
                     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html", null, true);
                     echo "\" style=\"display: inline; width: 12px; height: 12px;\" />\n                                    <img alt=\"-\" src=\"";
                     // line 91
                     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html", null, true);
                     echo "\" style=\"display: none; width: 12px; height: 12px;\" />\n                                    <span style=\"vertical-align:top\">Explain query</span>\n                                </a>]\n                            ";
                 } else {
                     // line 95
                     echo "                                This query cannot be explained\n                            ";
                 }
                 // line 97
                 echo "                        </div>\n                        ";
                 // line 98
                 if ($this->getAttribute(isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "explainable")) {
                     // line 99
                     echo "                        <div id=\"explain-";
                     echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : $this->getContext($context, "i"), "html", null, true);
                     echo "-";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "parent"), "loop"), "index"), "html", null, true);
                     echo "\" class=\"loading\"></div>\n                        ";
                 }
                 // line 101
                 echo "                    </li>\n                ";
                 ++$context['loop']['index0'];
                 ++$context['loop']['index'];
                 $context['loop']['first'] = false;
                 if (isset($context['loop']['length'])) {
                     --$context['loop']['revindex0'];
                     --$context['loop']['revindex'];
                     $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                 }
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['i'], $context['query'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 103
             echo "            </ul>\n        ";
         }
         // line 105
         echo "    ";
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['connection'], $context['queries'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 106
     echo "\n    <h2>Database Connections</h2>\n\n    ";
     // line 109
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "connections")) {
         // line 110
         echo "        ";
         $this->env->loadTemplate("WebProfilerBundle:Profiler:table.html.twig")->display(array("data" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "connections")));
         // line 111
         echo "    ";
     } else {
         // line 112
         echo "        <p>\n            <em>No connections.</em>\n        </p>\n    ";
     }
     // line 116
     echo "\n    <h2>Entity Managers</h2>\n\n    ";
     // line 119
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "managers")) {
         // line 120
         echo "        ";
         $this->env->loadTemplate("WebProfilerBundle:Profiler:table.html.twig")->display(array("data" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "managers")));
         // line 121
         echo "    ";
     } else {
         // line 122
         echo "        <p>\n            <em>No entity managers.</em>\n        </p>\n    ";
     }
     // line 126
     echo "\n    <h2>Mapping</h2>\n\n    ";
     // line 129
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "entities"));
     foreach ($context['_seq'] as $context["manager"] => $context["classes"]) {
         // line 130
         echo "        <h3>Manager <em>";
         echo twig_escape_filter($this->env, isset($context["manager"]) ? $context["manager"] : $this->getContext($context, "manager"), "html", null, true);
         echo "</em></h3>\n        ";
         // line 131
         if (twig_test_empty(isset($context["classes"]) ? $context["classes"] : $this->getContext($context, "classes"))) {
             // line 132
             echo "            <p><em>No loaded entities.</em></p>\n        ";
         } else {
             // line 134
             echo "            <table>\n                <thead>\n                <tr>\n                    <th scope=\"col\">Class</th>\n                    <th scope=\"col\">Mapping errors</th>\n                </tr>\n                </thead>\n                <tbody>\n                ";
             // line 142
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["classes"]) ? $context["classes"] : $this->getContext($context, "classes"));
             foreach ($context['_seq'] as $context["_key"] => $context["class"]) {
                 // line 143
                 echo "                    <tr>\n                        <td>";
                 // line 144
                 echo twig_escape_filter($this->env, isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), "html", null, true);
                 echo "</td>\n                        <td>\n                            ";
                 // line 146
                 if ($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "mappingErrors", array(), "any", false, true), isset($context["manager"]) ? $context["manager"] : $this->getContext($context, "manager"), array(), "array", false, true), isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), array(), "array", true, true)) {
                     // line 147
                     echo "                                <ul>\n                                    ";
                     // line 148
                     $context['_parent'] = (array) $context;
                     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "mappingErrors"), isset($context["manager"]) ? $context["manager"] : $this->getContext($context, "manager"), array(), "array"), isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"), array(), "array"));
                     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
                         // line 149
                         echo "                                        <li>";
                         echo twig_escape_filter($this->env, isset($context["error"]) ? $context["error"] : $this->getContext($context, "error"), "html", null, true);
                         echo "</li>\n                                    ";
                     }
                     $_parent = $context['_parent'];
                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
                     $context = array_intersect_key($context, $_parent) + $_parent;
                     // line 151
                     echo "                                </ul>\n                            ";
                 } else {
                     // line 153
                     echo "                                Valid\n                            ";
                 }
                 // line 155
                 echo "                        </td>\n                    </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['class'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 158
             echo "                </tbody>\n            </table>\n        ";
         }
         // line 161
         echo "    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['manager'], $context['classes'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 162
     echo "\n    <script type=\"text/javascript\">//<![CDATA[\n        function explain(link) {\n            \"use strict\";\n\n            var imgs = link.children,\n                target = link.getAttribute('data-target-id');\n\n            Sfjs.toggle(target, imgs[0], imgs[1])\n                .load(\n                    target,\n                    link.href,\n                    null,\n                    function(xhr, el) {\n                        el.innerHTML = 'An error occurred while loading the details';\n                        Sfjs.removeClass(el, 'loading');\n                    }\n                );\n\n            return false;\n        }\n\n        function expandQuery(link) {\n            var sections = link.children,\n                target = link.getAttribute('data-target-id'),\n                targetId = target.replace('code', ''),\n                queriesParameters = document.getElementById('original-query' + targetId);\n\n            if (queriesParameters.style.display != 'none') {\n                queriesParameters.style.display = 'none';\n                document.getElementById('small' + target).style.display = 'inline';\n                document.getElementById('expandParams' + targetId).innerHTML = 'Display runnable query';\n            }\n\n            if (document.getElementById('small' + target).style.display != 'none') {\n                document.getElementById('small' + target).style.display = 'none';\n                document.getElementById(target).style.display = 'inline';\n\n                sections[0].style.display = 'none';\n                sections[1].style.display = 'inline';\n                sections[2].style.display = 'inline';\n            } else {\n                document.getElementById('small' + target).style.display = 'inline';\n                document.getElementById(target).style.display = 'none';\n\n                sections[0].style.display = 'inline';\n                sections[1].style.display = 'none';\n                sections[2].style.display = 'none';\n            }\n\n            return false;\n        }\n\n        function toggleRunnableQuery(target) {\n            var targetId = target.getAttribute('target-data-id').replace('original-query', ''),\n                targetElement = document.getElementById(target.getAttribute('target-data-id')),\n                elem;\n\n            if (targetElement.style.display != 'block') {\n                targetElement.style.display = 'block';\n                target.innerHTML = 'Hide runnable query';\n\n                document.getElementById('smallcode' + targetId).style.display = 'none';\n                document.getElementById('code' + targetId).style.display = 'none';\n\n                elem = document.getElementById('code' + targetId).parentElement.children[0];\n\n                elem.children[0].style.display = 'inline';\n                elem.children[1].style.display = 'none';\n                elem.children[2].style.display = 'none';\n\n            } else {\n                targetElement.style.display = 'none';\n                target.innerHTML = 'Display runnable query';\n\n                document.getElementById('smallcode' + targetId).style.display = 'inline';\n            }\n        }\n\n    //]]></script>\n\n    <style>\n        h3 {\n            margin-bottom: 0px;\n        }\n\n        code {\n            display: none;\n        }\n\n        code pre {\n            padding: 5px;\n        }\n    </style>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 10
     echo "\n";
     // line 11
     $context["unpaid_invoices"] = $this->getAttribute(isset($context["client"]) ? $context["client"] : null, "invoice_get_list", array(0 => array("status" => "unpaid", "per_page" => 100)), "method");
     // line 12
     $context["paid_invoices"] = $this->getAttribute(isset($context["client"]) ? $context["client"] : null, "invoice_get_list", array(0 => array("per_page" => 10, "page" => $this->getAttribute(isset($context["request"]) ? $context["request"] : null, "page"), "status" => "paid")), "method");
     // line 13
     echo "\n<div class=\"row\">\n        <article class=\"span12 data-block\">\n            <div class=\"data-container\">\n                <header>\n                    <h1>";
     // line 18
     echo gettext("List of invoices");
     echo "</h1><br/>\n                    ";
     // line 19
     echo gettext("All of your invoices can be found here. You can choose to see either paid or unpaid invoices by clicking corresponding button.");
     // line 20
     echo "                    <ul class=\"data-header-actions\">\n                        <li class=\"demoTabs active\"><a href=\"#unpaid\" class=\"btn btn-alt btn-inverse\" data-toggle=\"tab\">";
     // line 21
     echo gettext("Unpaid");
     echo "</a></li>\n                        <li class=\"demoTabs\" ><a href=\"#paid\" class=\"btn btn-alt btn-inverse\" data-toggle=\"tab\">";
     // line 22
     echo gettext("Paid");
     echo "</a></li>\n                    </ul>\n                </header>\n                <section class=\"tab-content\">\n                    <div class=\"tab-pane active\" id=\"unpaid\">\n                    <h3>";
     // line 27
     echo gettext("Unpaid");
     echo "</h3>\n\n                        <table class=\"table table-hover table-striped\">\n                            <thead>\n                            <tr>\n                                <th>";
     // line 32
     echo gettext("Title");
     echo "</th>\n                                <th>";
     // line 33
     echo gettext("Issue Date");
     echo "</th>\n                                <th>";
     // line 34
     echo gettext("Due Date");
     echo "</th>\n                                <th>";
     // line 35
     echo gettext("Total");
     echo "</th>\n                                <th>&nbsp</th>\n                            </tr>\n                            </thead>\n                            <tbody>\n                            ";
     // line 40
     if ($this->getAttribute(isset($context["unpaid_invoices"]) ? $context["unpaid_invoices"] : null, "total") > 0) {
         // line 41
         echo "                            ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["unpaid_invoices"]) ? $context["unpaid_invoices"] : null, "list"));
         foreach ($context['_seq'] as $context["i"] => $context["invoice"]) {
             // line 42
             echo "                            <tr class=\"";
             echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), isset($context["i"]) ? $context["i"] : null), "html", null, true);
             echo "\">\n                                <td>";
             // line 43
             echo twig_escape_filter($this->env, sprintf("Proforma invoice #%05s", $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "id")), "html", null, true);
             echo "</td>\n                                <td>";
             // line 44
             echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "created_at")), "html", null, true);
             echo "</td>\n                                <td>";
             // line 45
             echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "due_at")), "html", null, true);
             echo "</td>\n                                <td>";
             // line 46
             echo twig_money($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "total"), $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "currency"));
             echo "</td>\n                                <td><a class=\"btn btn-small btn-primary\" href=\"";
             // line 47
             echo $this->env->getExtension('bb')->twig_bb_client_link_filter("invoice");
             echo "/";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "hash"), "html", null, true);
             echo "\">";
             echo gettext("Pay");
             echo "</a></td>\n                            </tr>\n                            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['i'], $context['invoice'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 50
         echo "                            ";
     } else {
         // line 51
         echo "                            <tr>\n                                <td colspan=\"5\" >";
         // line 52
         echo gettext("The list is empty");
         echo "</td>\n                            </tr>\n                            ";
     }
     // line 55
     echo "\n                            </tbody>\n                        </table>\n\n                    </div>\n\n                    <div class=\"tab-pane\" id=\"paid\">\n                    <h3>";
     // line 62
     echo gettext("Paid");
     echo "</h3>\n\n                        <table class=\"table table-hover table-striped\">\n                            <thead>\n                            <tr>\n                                <th>";
     // line 67
     echo gettext("Title");
     echo "</th>\n                                <th>";
     // line 68
     echo gettext("Issue Date");
     echo "</th>\n                                <th>";
     // line 69
     echo gettext("Paid at");
     echo "</th>\n                                <th>";
     // line 70
     echo gettext("Total");
     echo "</th>\n                                <th>&nbsp</th>\n                            </tr>\n                            </thead>\n\n                            <tbody>\n                            ";
     // line 76
     if ($this->getAttribute(isset($context["paid_invoices"]) ? $context["paid_invoices"] : null, "total") > 0) {
         // line 77
         echo "                            ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["paid_invoices"]) ? $context["paid_invoices"] : null, "list"));
         foreach ($context['_seq'] as $context["i"] => $context["invoice"]) {
             // line 78
             echo "\n                            <tr class=\"";
             // line 79
             echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), isset($context["i"]) ? $context["i"] : null), "html", null, true);
             echo "\">\n                                <td>";
             // line 80
             echo twig_escape_filter($this->env, sprintf("Proforma invoice #%05s", $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "id")), "html", null, true);
             echo "</td>\n                                <td>";
             // line 81
             echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "created_at")), "html", null, true);
             echo "</td>\n                                <td>";
             // line 82
             echo twig_escape_filter($this->env, $this->env->getExtension('bb')->twig_bb_date($this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "paid_at")), "html", null, true);
             echo "</td>\n                                <td>";
             // line 83
             echo twig_money($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "total"), $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "currency"));
             echo "</td>\n                                <td><a href=\"";
             // line 84
             echo $this->env->getExtension('bb')->twig_bb_client_link_filter("invoice");
             echo "/";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["invoice"]) ? $context["invoice"] : null, "hash"), "html", null, true);
             echo "\" class=\"btn btn-primary btn-small\">";
             echo gettext("View");
             echo "</a></td>\n                            </tr>\n                            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['i'], $context['invoice'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 87
         echo "                            ";
     } else {
         // line 88
         echo "                            <tr>\n                                <td colspan=\"7\">";
         // line 89
         echo gettext("The list is empty");
         echo "</td>\n                            </tr>\n                            ";
     }
     // line 92
     echo "                            </tbody>\n                        </table>\n\n                    </div>\n                </section>\n                <footer>\n                    <p>";
     // line 98
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["unpaid_invoices"]) ? $context["unpaid_invoices"] : null, "total"), "html", null, true);
     echo " unpaid invoices and ";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paid_invoices"]) ? $context["paid_invoices"] : null, "total"), "html", null, true);
     echo " paid invoices</p>\n                </footer>\n            </div>\n        </article>\n        </div>\n";
 }
 public function block_panel($context, array $blocks = array())
 {
     $__internal_729d2ff73542dbc0735d8864c619747ddf664be50a50dfe070f7284bb2db36fa = $this->env->getExtension("native_profiler");
     $__internal_729d2ff73542dbc0735d8864c619747ddf664be50a50dfe070f7284bb2db36fa->enter($__internal_729d2ff73542dbc0735d8864c619747ddf664be50a50dfe070f7284bb2db36fa_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
     // line 42
     echo "    <h2>Messages</h2>\n\n    <table>\n        <thead>\n            <tr>\n                <th scope=\"col\">Mailer</th>\n                <th scope=\"col\">Messages</th>\n            </tr>\n        </thead>\n        <tbody>\n            ";
     // line 52
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "mailers", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["name"]) {
         // line 53
         echo "                <tr>\n                    <th>";
         // line 54
         echo twig_escape_filter($this->env, $context["name"], "html", null, true);
         echo $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "isDefaultMailer", array(0 => $context["name"]), "method") ? " (default mailer)" : "";
         echo "</th>\n                    <td>";
         // line 55
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "messageCount", array(0 => $context["name"]), "method"), "html", null, true);
         echo " ";
         echo $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "isSpool", array(0 => $context["name"]), "method") ? "spooled" : "sent";
         echo "</td>\n                </tr>\n            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['name'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 58
     echo "        </tbody>\n    </table>\n\n    ";
     // line 61
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "mailers", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["name"]) {
         // line 62
         echo "        <h3>Mailer <em>";
         echo twig_escape_filter($this->env, $context["name"], "html", null, true);
         echo "</em>";
         echo $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "isDefaultMailer", array(0 => $context["name"]), "method") ? " (default mailer)" : "";
         echo "</h3>\n\n        ";
         // line 64
         if (!$this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "messages", array(0 => $context["name"]), "method")) {
             // line 65
             echo "            <p>\n                <em>No message sent.</em>\n            </p>\n        ";
         } else {
             // line 69
             echo "            <ul class=\"alt\">\n                ";
             // line 70
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "messages", array(0 => $context["name"]), "method"));
             $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
             if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
                 $length = count($context['_seq']);
                 $context['loop']['revindex0'] = $length - 1;
                 $context['loop']['revindex'] = $length;
                 $context['loop']['length'] = $length;
                 $context['loop']['last'] = 1 === $length;
             }
             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
                 // line 71
                 echo "                    <li class=\"";
                 echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($context["loop"], "index", array())), "html", null, true);
                 echo "\">\n                        ";
                 // line 72
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($context["message"], "headers", array()), "all", array()));
                 foreach ($context['_seq'] as $context["_key"] => $context["header"]) {
                     // line 73
                     echo "                            <pre>";
                     echo twig_escape_filter($this->env, $context["header"], "html", null, true);
                     echo "</pre>\n                        ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['header'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 75
                 echo "                        <pre>";
                 // line 76
                 if ($this->getAttribute(isset($context["messagePart"]) ? $context["messagePart"] : null, "charset", array(), "any", true, true) && $this->getAttribute($context["message"], "charset", array())) {
                     // line 77
                     echo twig_escape_filter($this->env, twig_convert_encoding(twig_escape_filter($this->env, $this->getAttribute($context["message"], "body", array()), "html", $this->getAttribute($context["message"], "charset", array())), "UTF-8", $this->getAttribute($context["message"], "charset", array())), "html", null, true);
                 } else {
                     // line 79
                     echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "body", array()), "html");
                 }
                 // line 81
                 echo "</pre>\n                        ";
                 // line 82
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["message"], "children", array()));
                 foreach ($context['_seq'] as $context["_key"] => $context["messagePart"]) {
                     if ($this->getAttribute($context["messagePart"], "contentType", array()) == "text/plain" || $this->getAttribute($context["messagePart"], "contentType", array()) == "text/html") {
                         // line 83
                         echo "                            <h4>Alternative part</h4>\n                            <pre>";
                         // line 85
                         if ($this->getAttribute($context["messagePart"], "charset", array())) {
                             // line 86
                             echo twig_escape_filter($this->env, twig_convert_encoding(twig_escape_filter($this->env, $this->getAttribute($context["messagePart"], "body", array()), "html", $this->getAttribute($context["messagePart"], "charset", array())), "UTF-8", $this->getAttribute($context["messagePart"], "charset", array())), "html", null, true);
                         } else {
                             // line 88
                             echo twig_escape_filter($this->env, $this->getAttribute($context["messagePart"], "body", array()), "html");
                         }
                         // line 90
                         echo "</pre>\n                        ";
                     }
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['messagePart'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 92
                 echo "                    </li>\n                ";
                 ++$context['loop']['index0'];
                 ++$context['loop']['index'];
                 $context['loop']['first'] = false;
                 if (isset($context['loop']['length'])) {
                     --$context['loop']['revindex0'];
                     --$context['loop']['revindex'];
                     $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                 }
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 94
             echo "            </ul>\n        ";
         }
         // line 96
         echo "    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['name'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     $__internal_729d2ff73542dbc0735d8864c619747ddf664be50a50dfe070f7284bb2db36fa->leave($__internal_729d2ff73542dbc0735d8864c619747ddf664be50a50dfe070f7284bb2db36fa_prof);
 }
 public function block_panel($context, array $blocks = array())
 {
     $__internal_87e1064ff28f5cb438bbca5720814efd608fc4cd598cba42c44e28409454e44e = $this->env->getExtension("native_profiler");
     $__internal_87e1064ff28f5cb438bbca5720814efd608fc4cd598cba42c44e28409454e44e->enter($__internal_87e1064ff28f5cb438bbca5720814efd608fc4cd598cba42c44e28409454e44e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
     // line 28
     echo "    <h2>Queries</h2>\n\n    ";
     // line 30
     if (twig_test_empty($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "queries", array()))) {
         // line 31
         echo "        <p>\n            <em>No queries.</em>\n        </p>\n    ";
     } else {
         // line 35
         echo "        <ul class=\"alt\">\n            ";
         // line 36
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "queries", array()));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["query"]) {
             // line 37
             echo "                <li class=\"";
             echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($context["loop"], "index", array())), "html", null, true);
             echo "\">\n                    <div>\n                        <code>";
             // line 39
             echo twig_escape_filter($this->env, $context["query"], "html", null, true);
             echo "</code>\n                    </div>\n                </li>\n            ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['query'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 43
         echo "        </ul>\n    ";
     }
     $__internal_87e1064ff28f5cb438bbca5720814efd608fc4cd598cba42c44e28409454e44e->leave($__internal_87e1064ff28f5cb438bbca5720814efd608fc4cd598cba42c44e28409454e44e_prof);
 }
 public function block_queries($context, array $blocks = array())
 {
     // line 73
     echo "    <h2>Queries</h2>\n\n    ";
     // line 75
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "queries", array()));
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context["connection"] => $context["queries"]) {
         // line 76
         echo "        <h3>Connection <em>";
         echo twig_escape_filter($this->env, $context["connection"], "html", null, true);
         echo "</em></h3>\n        ";
         // line 77
         if (twig_test_empty($context["queries"])) {
             // line 78
             echo "            <p>\n                <em>No queries.</em>\n            </p>\n        ";
         } else {
             // line 82
             echo "            <p>\n                <button type=\"button\" class=\"sf-button\" onclick=\"expandAllQueries(this);\" data-action=\"expand\">\n                    <span class=\"border-l\">\n                        <span class=\"border-r\">\n                            <span class=\"btn-bg\">Expand all queries</span>\n                        </span>\n                    </span>\n                </button>\n            </p>\n            <table class=\"alt\" id=\"queriesPlaceholder-";
             // line 91
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo "\">\n                <thead>\n                    <tr>\n                        <th onclick=\"javascript:sortTable(this, 0, 'queries-";
             // line 94
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo "')\" data-sort-direction=\"-1\" style=\"cursor: pointer;\">#<span>&#9650;</span></th>\n                        <th onclick=\"javascript:sortTable(this, 1, 'queries-";
             // line 95
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo "')\" style=\"cursor: pointer;\">Time<span></span></th>\n                        <th style=\"width: 100%;\">Info</th>\n                    </tr>\n                </thead>\n                <tbody id=\"queries-";
             // line 99
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo "\">\n                ";
             // line 100
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($context["queries"]);
             $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
             if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
                 $length = count($context['_seq']);
                 $context['loop']['revindex0'] = $length - 1;
                 $context['loop']['revindex'] = $length;
                 $context['loop']['length'] = $length;
                 $context['loop']['last'] = 1 === $length;
             }
             foreach ($context['_seq'] as $context["i"] => $context["query"]) {
                 // line 101
                 echo "                    <tr id=\"queryNo-";
                 echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["loop"], "parent", array()), "loop", array()), "index", array()), "html", null, true);
                 echo "\" class=\"";
                 echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $context["i"]), "html", null, true);
                 echo "\">\n                        <td>";
                 // line 102
                 echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
                 echo "</td>\n                        <td>";
                 // line 103
                 echo twig_escape_filter($this->env, sprintf("%0.2f", $this->getAttribute($context["query"], "executionMS", array()) * 1000), "html", null, true);
                 echo "&nbsp;ms</td>\n                        <td>\n                            <div class=\"query-section\" data-state=\"collapsed\" onclick=\"return expandQuery(this);\" title=\"Expand query\" data-target-id=\"code-";
                 // line 105
                 echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["loop"], "parent", array()), "loop", array()), "index", array()), "html", null, true);
                 echo "\" style=\"cursor: pointer;\">\n                                <img alt=\"+\" src=\"data:image/gif;base64,R0lGODlhEgASAMQTANft99/v+Ga44bHb8ITG52S44dXs9+z1+uPx+YvK6WC24G+944/M6W28443L6dnu+Ge54v/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABMALAAAAAASABIAQAVS4DQBTiOd6LkwgJgeUSzHSDoNaZ4PU6FLgYBA5/vFID/DbylRGiNIZu74I0h1hNsVxbNuUV4d9SsZM2EzWe1qThVzwWFOAFCQFa1RQq6DJB4iIQA7\" style=\"display: inline;\" />\n                                <img alt=\"-\" src=\"data:image/gif;base64,R0lGODlhEgASAMQSANft94TG57Hb8GS44ez1+mC24IvK6ePx+Wa44dXs92+942e54o3L6W2844/M6dnu+P/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABIALAAAAAASABIAQAVCoCQBTBOd6Kk4gJhGBCTPxysJb44K0qD/ER/wlxjmisZkMqBEBW5NHrMZmVKvv9hMVsO+hE0EoNAstEYGxG9heIhCADs=\" style=\"display: none;\" />\n                                <span style=\"display: none\">Shrink query</span>\n                                <span id=\"smallcode-";
                 // line 109
                 echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["loop"], "parent", array()), "loop", array()), "index", array()), "html", null, true);
                 echo "\">\n                                    ";
                 // line 110
                 echo $this->env->getExtension('doctrine_extension')->minifyQuery($this->getAttribute($context["query"], "sql", array()));
                 echo "\n                                </span>\n                            </div>\n                            <code id=\"code-";
                 // line 113
                 echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["loop"], "parent", array()), "loop", array()), "index", array()), "html", null, true);
                 echo "\">\n                                ";
                 // line 114
                 echo SqlFormatter::format($this->getAttribute($context["query"], "sql", array()), $context["i"], $this->getAttribute($this->getAttribute($this->getAttribute($context["loop"], "parent", array()), "loop", array()), "index", array()));
                 echo "\n                            </code>\n                            <span id=\"original-query-";
                 // line 116
                 echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["loop"], "parent", array()), "loop", array()), "index", array()), "html", null, true);
                 echo "\" style=\"display: none;\">\n                                ";
                 // line 117
                 echo $this->env->getExtension('doctrine_extension')->replaceQueryParameters($this->getAttribute($context["query"], "sql", array()), $this->getAttribute($context["query"], "params", array()));
                 echo "\n                            </span>\n                            <small>\n                                <strong>Parameters</strong>: ";
                 // line 120
                 echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute($context["query"], "params", array())), "html", null, true);
                 echo " <br />\n                                [<span id=\"expandParams-";
                 // line 121
                 echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["loop"], "parent", array()), "loop", array()), "index", array()), "html", null, true);
                 echo "\" onclick=\"javascript:toggleRunnableQuery(this);\" target-data-id=\"original-query-";
                 echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["loop"], "parent", array()), "loop", array()), "index", array()), "html", null, true);
                 echo "\" style=\"cursor: pointer;\">Display runnable query</span>]<br/>\n                            </small>\n\n                            ";
                 // line 124
                 if ($this->getAttribute($context["query"], "explainable", array())) {
                     // line 125
                     echo "                                [<a href=\"";
                     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("panel" => "db", "token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token"), "page" => "explain", "connection" => $context["connection"], "query" => $context["i"])), "html", null, true);
                     echo "\" onclick=\"return explain(this);\" style=\"text-decoration: none;\" title=\"Explains the query\" data-target-id=\"explain-";
                     echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                     echo "-";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["loop"], "parent", array()), "loop", array()), "index", array()), "html", null, true);
                     echo "\" >\n                                    <img alt=\"+\" src=\"data:image/gif;base64,R0lGODlhEgASAMQTANft99/v+Ga44bHb8ITG52S44dXs9+z1+uPx+YvK6WC24G+944/M6W28443L6dnu+Ge54v/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABMALAAAAAASABIAQAVS4DQBTiOd6LkwgJgeUSzHSDoNaZ4PU6FLgYBA5/vFID/DbylRGiNIZu74I0h1hNsVxbNuUV4d9SsZM2EzWe1qThVzwWFOAFCQFa1RQq6DJB4iIQA7\" style=\"display: inline; width: 12px; height: 12px;\" />\n                                    <img alt=\"-\" src=\"data:image/gif;base64,R0lGODlhEgASAMQSANft94TG57Hb8GS44ez1+mC24IvK6ePx+Wa44dXs92+942e54o3L6W2844/M6dnu+P/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABIALAAAAAASABIAQAVCoCQBTBOd6Kk4gJhGBCTPxysJb44K0qD/ER/wlxjmisZkMqBEBW5NHrMZmVKvv9hMVsO+hE0EoNAstEYGxG9heIhCADs=\" style=\"display: none; width: 12px; height: 12px;\" />\n                                    <span style=\"vertical-align:top\">Explain query</span>\n                                </a>]\n                            ";
                 } else {
                     // line 131
                     echo "                                This query cannot be explained\n                            ";
                 }
                 // line 133
                 echo "\n                            ";
                 // line 134
                 if ($this->getAttribute($context["query"], "explainable", array())) {
                     // line 135
                     echo "                                <div id=\"explain-";
                     echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                     echo "-";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["loop"], "parent", array()), "loop", array()), "index", array()), "html", null, true);
                     echo "\" class=\"loading\"></div>\n                            ";
                 }
                 // line 137
                 echo "                        </td>\n                    </tr>\n                ";
                 ++$context['loop']['index0'];
                 ++$context['loop']['index'];
                 $context['loop']['first'] = false;
                 if (isset($context['loop']['length'])) {
                     --$context['loop']['revindex0'];
                     --$context['loop']['revindex'];
                     $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                 }
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['i'], $context['query'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 140
             echo "                </tbody>\n            </table>\n        ";
         }
         // line 143
         echo "    ";
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['connection'], $context['queries'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 144
     echo "\n    <h2>Database Connections</h2>\n\n    ";
     // line 147
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "connections", array())) {
         // line 148
         echo "        ";
         $this->loadTemplate("WebProfilerBundle:Profiler:table.html.twig", "@Doctrine/Collector/db.html.twig", 148)->display(array("data" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "connections", array())));
         // line 149
         echo "    ";
     } else {
         // line 150
         echo "        <p>\n            <em>No connections.</em>\n        </p>\n    ";
     }
     // line 154
     echo "\n    <h2>Entity Managers</h2>\n\n    ";
     // line 157
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "managers", array())) {
         // line 158
         echo "        ";
         $this->loadTemplate("WebProfilerBundle:Profiler:table.html.twig", "@Doctrine/Collector/db.html.twig", 158)->display(array("data" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "managers", array())));
         // line 159
         echo "    ";
     } else {
         // line 160
         echo "        <p>\n            <em>No entity managers.</em>\n        </p>\n    ";
     }
     // line 164
     echo "\n    <h2>Second Level Cache</h2>\n\n    ";
     // line 167
     if ($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "cacheCounts", array())) {
         // line 168
         echo "        ";
         $this->loadTemplate("WebProfilerBundle:Profiler:table.html.twig", "@Doctrine/Collector/db.html.twig", 168)->display(array("data" => $this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "cacheCounts", array())));
         // line 169
         echo "\n        ";
         // line 170
         if ($this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "cacheRegions", array()), "hits", array())) {
             // line 171
             echo "            <h3>Number of cache hits</h3>\n            ";
             // line 172
             $this->loadTemplate("WebProfilerBundle:Profiler:table.html.twig", "@Doctrine/Collector/db.html.twig", 172)->display(array("data" => $this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "cacheRegions", array()), "hits", array())));
             // line 173
             echo "        ";
         }
         // line 174
         echo "\n        ";
         // line 175
         if ($this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "cacheRegions", array()), "misses", array())) {
             // line 176
             echo "            <h3>Number of cache misses</h3>\n            ";
             // line 177
             $this->loadTemplate("WebProfilerBundle:Profiler:table.html.twig", "@Doctrine/Collector/db.html.twig", 177)->display(array("data" => $this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "cacheRegions", array()), "misses", array())));
             // line 178
             echo "        ";
         }
         // line 179
         echo "\n        ";
         // line 180
         if ($this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "cacheRegions", array()), "puts", array())) {
             // line 181
             echo "            <h3>Number of cache puts</h3>\n            ";
             // line 182
             $this->loadTemplate("WebProfilerBundle:Profiler:table.html.twig", "@Doctrine/Collector/db.html.twig", 182)->display(array("data" => $this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "cacheRegions", array()), "puts", array())));
             // line 183
             echo "        ";
         }
         // line 184
         echo "    ";
     } else {
         // line 185
         echo "        <p>\n            <em>No cache.</em>\n        </p>\n    ";
     }
     // line 189
     echo "\n    <h2>Mapping</h2>\n\n    ";
     // line 192
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "entities", array()));
     foreach ($context['_seq'] as $context["manager"] => $context["classes"]) {
         // line 193
         echo "        <h3>Manager <em>";
         echo twig_escape_filter($this->env, $context["manager"], "html", null, true);
         echo "</em></h3>\n        ";
         // line 194
         if (twig_test_empty($context["classes"])) {
             // line 195
             echo "            <p><em>No loaded entities.</em></p>\n        ";
         } else {
             // line 197
             echo "            <table>\n                <thead>\n                <tr>\n                    <th scope=\"col\">Class</th>\n                    <th scope=\"col\">Mapping errors</th>\n                </tr>\n                </thead>\n                <tbody>\n                ";
             // line 205
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($context["classes"]);
             foreach ($context['_seq'] as $context["_key"] => $context["class"]) {
                 // line 206
                 echo "                    <tr>\n                        <td>";
                 // line 207
                 echo twig_escape_filter($this->env, $context["class"], "html", null, true);
                 echo "</td>\n                        <td>\n                            ";
                 // line 209
                 if ($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "mappingErrors", array(), "any", false, true), $context["manager"], array(), "array", false, true), $context["class"], array(), "array", true, true)) {
                     // line 210
                     echo "                                <ul>\n                                    ";
                     // line 211
                     $context['_parent'] = (array) $context;
                     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "mappingErrors", array()), $context["manager"], array(), "array"), $context["class"], array(), "array"));
                     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
                         // line 212
                         echo "                                        <li>";
                         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
                         echo "</li>\n                                    ";
                     }
                     $_parent = $context['_parent'];
                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
                     $context = array_intersect_key($context, $_parent) + $_parent;
                     // line 214
                     echo "                                </ul>\n                            ";
                 } else {
                     // line 216
                     echo "                                Valid\n                            ";
                 }
                 // line 218
                 echo "                        </td>\n                    </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['class'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 221
             echo "                </tbody>\n            </table>\n        ";
         }
         // line 224
         echo "    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['manager'], $context['classes'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 225
     echo "\n    <script type=\"text/javascript\">//<![CDATA[\n        function explain(link) {\n            \"use strict\";\n\n            var imgs = link.children,\n                target = link.getAttribute('data-target-id');\n\n            Sfjs.toggle(target, imgs[0], imgs[1])\n                .load(\n                    target,\n                    link.href,\n                    null,\n                    function(xhr, el) {\n                        el.innerHTML = 'An error occurred while loading the details';\n                        Sfjs.removeClass(el, 'loading');\n                    }\n                );\n\n            return false;\n        }\n\n        function expandAllQueries(button) {\n            var queries = document.getElementsByClassName('query-section'),\n                i = queries.length,\n                action = button.getAttribute('data-action');\n\n            if (action == 'expand') {\n                button.getElementsByClassName('btn-bg')[0].innerHTML = 'Collapse all queries';\n\n                while (i--) {\n                    if (queries[i].getAttribute('data-state') == 'collapsed') {\n                        expandQuery(queries[i]);\n                    }\n                }\n            } else {\n                button.getElementsByClassName('btn-bg')[0].innerHTML = 'Expand all queries';\n\n                while (i--) {\n                    if (queries[i].getAttribute('data-state') == 'expanded') {\n                        expandQuery(queries[i]);\n                    }\n                }\n            }\n\n            button.setAttribute('data-action', action == 'expand' ? 'collapse' : 'expand');\n        }\n\n        function expandQuery(link) {\n            var sections = link.children,\n                target = link.getAttribute('data-target-id'),\n                targetId = target.replace('code', ''),\n                queriesParameters = document.getElementById('original-query' + targetId);\n\n            if (queriesParameters.style.display != 'none') {\n                queriesParameters.style.display = 'none';\n                document.getElementById('small' + target).style.display = 'inline';\n                document.getElementById('expandParams' + targetId).innerHTML = 'Display runnable query';\n            }\n\n            if (document.getElementById('small' + target).style.display != 'none') {\n                document.getElementById('small' + target).style.display = 'none';\n                document.getElementById(target).style.display = 'inline';\n\n                sections[0].style.display = 'none';\n                sections[1].style.display = 'inline';\n                sections[2].style.display = 'inline';\n\n                link.setAttribute('data-state', 'expanded');\n            } else {\n                document.getElementById('small' + target).style.display = 'inline';\n                document.getElementById(target).style.display = 'none';\n\n                sections[0].style.display = 'inline';\n                sections[1].style.display = 'none';\n                sections[2].style.display = 'none';\n\n                link.setAttribute('data-state', 'collapsed');\n            }\n\n            return false;\n        }\n\n        function toggleRunnableQuery(target) {\n            var targetId = target.getAttribute('target-data-id').replace('original-query', ''),\n                targetElement = document.getElementById(target.getAttribute('target-data-id')),\n                elem;\n\n            if (targetElement.style.display != 'block') {\n                targetElement.style.display = 'block';\n                target.innerHTML = 'Hide runnable query';\n\n                document.getElementById('smallcode' + targetId).style.display = 'none';\n                document.getElementById('code' + targetId).style.display = 'none';\n\n                elem = document.getElementById('code' + targetId).parentElement.children[0];\n\n                elem.children[0].style.display = 'inline';\n                elem.children[1].style.display = 'none';\n                elem.children[2].style.display = 'none';\n\n            } else {\n                targetElement.style.display = 'none';\n                target.innerHTML = 'Display runnable query';\n\n                document.getElementById('smallcode' + targetId).style.display = 'inline';\n            }\n        }\n\n        function sortTable(header, column, targetId) {\n            \"use strict\";\n\n            var direction = parseInt(header.getAttribute('data-sort-direction')) || 1,\n                items = [],\n                target = document.getElementById(targetId),\n                rows = target.children,\n                headers = header.parentElement.children,\n                i;\n\n            for (i = 0; i < rows.length; ++i) {\n                items.push(rows[i]);\n            }\n\n            for (i = 0; i < headers.length; ++i) {\n                headers[i].removeAttribute('data-sort-direction');\n                if (headers[i].children.length > 0) {\n                    headers[i].children[0].innerHTML = '';\n                }\n            }\n\n            header.setAttribute('data-sort-direction', (-1*direction).toString());\n            header.children[0].innerHTML = direction > 0 ? '&#9650;' : '&#9660;';\n\n            items.sort(function(a, b) {\n                return direction*(parseFloat(a.children[column].innerHTML) - parseFloat(b.children[column].innerHTML));\n            });\n\n            for (i = 0; i < items.length; ++i) {\n                Sfjs.removeClass(items[i], i % 2 ? 'even' : 'odd');\n                Sfjs.addClass(items[i], i % 2 ? 'odd' : 'even');\n                target.appendChild(items[i]);\n            }\n        }\n\n    //]]></script>\n\n    <style>\n        h3 {\n            margin-bottom: 0px;\n        }\n\n        code {\n            display: none;\n        }\n\n        code pre {\n            padding: 5px;\n        }\n    </style>\n";
 }
 public function block_queries($context, array $blocks = array())
 {
     // line 56
     echo "    <h2>Queries</h2>\n\n    ";
     // line 58
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "queries"));
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context["connection"] => $context["queries"]) {
         // line 59
         echo "        <h3>Connection <em>";
         echo twig_escape_filter($this->env, $this->getContext($context, "connection"), "html", null, true);
         echo "</em></h3>\n        ";
         // line 60
         if (twig_test_empty($this->getContext($context, "queries"))) {
             // line 61
             echo "            <p>\n                <em>No queries.</em>\n            </p>\n        ";
         } else {
             // line 65
             echo "            <ul class=\"alt\">\n                ";
             // line 66
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getContext($context, "queries"));
             $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
             if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
                 $length = count($context['_seq']);
                 $context['loop']['revindex0'] = $length - 1;
                 $context['loop']['revindex'] = $length;
                 $context['loop']['length'] = $length;
                 $context['loop']['last'] = 1 === $length;
             }
             foreach ($context['_seq'] as $context["i"] => $context["query"]) {
                 // line 67
                 echo "                    <li class=\"";
                 echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getContext($context, "i")), "html", null, true);
                 echo "\">\n                        <div>\n                            ";
                 // line 69
                 if ($this->getAttribute($this->getContext($context, "query"), "explainable")) {
                     // line 70
                     echo "                            <a href=\"";
                     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("panel" => "db", "token" => $this->getContext($context, "token"), "page" => "explain", "connection" => $this->getContext($context, "connection"), "query" => $this->getContext($context, "i"))), "html", null, true);
                     echo "\" onclick=\"return explain(this);\" style=\"text-decoration: none;\" title=\"Explains\" data-target-id=\"explain-";
                     echo twig_escape_filter($this->env, $this->getContext($context, "i"), "html", null, true);
                     echo "-";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "loop"), "parent"), "loop"), "index"), "html", null, true);
                     echo "\" >\n                                <img alt=\"+\" src=\"";
                     // line 71
                     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html", null, true);
                     echo "\" style=\"display: inline;\" />\n                                <img alt=\"-\" src=\"";
                     // line 72
                     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html", null, true);
                     echo "\" style=\"display: none;\" />\n                            </a>\n                            ";
                 }
                 // line 75
                 echo "                            <code>";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "query"), "sql"), "html", null, true);
                 echo "</code>\n                        </div>\n                        <small>\n                            <strong>Parameters</strong>: ";
                 // line 78
                 echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute($this->getContext($context, "query"), "params")), "html", null, true);
                 echo "<br />\n                            <strong>Time</strong>: ";
                 // line 79
                 echo twig_escape_filter($this->env, sprintf("%0.2f", $this->getAttribute($this->getContext($context, "query"), "executionMS") * 1000), "html", null, true);
                 echo " ms\n                        </small>\n                        ";
                 // line 81
                 if ($this->getAttribute($this->getContext($context, "query"), "explainable")) {
                     // line 82
                     echo "                        <div id=\"explain-";
                     echo twig_escape_filter($this->env, $this->getContext($context, "i"), "html", null, true);
                     echo "-";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "loop"), "parent"), "loop"), "index"), "html", null, true);
                     echo "\" class=\"loading\"></div>\n                        ";
                 }
                 // line 84
                 echo "                    </li>\n                ";
                 ++$context['loop']['index0'];
                 ++$context['loop']['index'];
                 $context['loop']['first'] = false;
                 if (isset($context['loop']['length'])) {
                     --$context['loop']['revindex0'];
                     --$context['loop']['revindex'];
                     $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                 }
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['i'], $context['query'], $context['_parent'], $context['loop']);
             $context = array_merge($_parent, array_intersect_key($context, $_parent));
             // line 86
             echo "            </ul>\n        ";
         }
         // line 88
         echo "    ";
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['connection'], $context['queries'], $context['_parent'], $context['loop']);
     $context = array_merge($_parent, array_intersect_key($context, $_parent));
     // line 89
     echo "\n    <h2>Database Connections</h2>\n\n    ";
     // line 92
     if ($this->getAttribute($this->getContext($context, "collector"), "connections")) {
         // line 93
         echo "        ";
         $this->env->loadTemplate("WebProfilerBundle:Profiler:table.html.twig")->display(array("data" => $this->getAttribute($this->getContext($context, "collector"), "connections")));
         // line 94
         echo "    ";
     } else {
         // line 95
         echo "        <p>\n            <em>No connections.</em>\n        </p>\n    ";
     }
     // line 99
     echo "\n    <h2>Entity Managers</h2>\n\n    ";
     // line 102
     if ($this->getAttribute($this->getContext($context, "collector"), "managers")) {
         // line 103
         echo "        ";
         $this->env->loadTemplate("WebProfilerBundle:Profiler:table.html.twig")->display(array("data" => $this->getAttribute($this->getContext($context, "collector"), "managers")));
         // line 104
         echo "    ";
     } else {
         // line 105
         echo "        <p>\n            <em>No entity managers.</em>\n        </p>\n    ";
     }
     // line 109
     echo "\n    <h2>Mapping</h2>\n\n    ";
     // line 112
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "entities"));
     foreach ($context['_seq'] as $context["manager"] => $context["classes"]) {
         // line 113
         echo "        <h3>Manager <em>";
         echo twig_escape_filter($this->env, $this->getContext($context, "manager"), "html", null, true);
         echo "</em></h3>\n        ";
         // line 114
         if (twig_test_empty($this->getContext($context, "classes"))) {
             // line 115
             echo "            <p><em>No loaded entities.</em></p>\n        ";
         } else {
             // line 117
             echo "            <table>\n                <thead>\n                <tr>\n                    <th scope=\"col\">Class</th>\n                    <th scope=\"col\">Mapping errors</th>\n                </tr>\n                </thead>\n                <tbody>\n                ";
             // line 125
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getContext($context, "classes"));
             foreach ($context['_seq'] as $context["_key"] => $context["class"]) {
                 // line 126
                 echo "                    <tr>\n                        <td>";
                 // line 127
                 echo twig_escape_filter($this->env, $this->getContext($context, "class"), "html", null, true);
                 echo "</td>\n                        <td>\n                            ";
                 // line 129
                 if ($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["collector"]) ? $context["collector"] : null, "mappingErrors", array(), "any", false, true), $this->getContext($context, "manager"), array(), "array", false, true), $this->getContext($context, "class"), array(), "array", true, true)) {
                     // line 130
                     echo "                                <ul>\n                                    ";
                     // line 131
                     $context['_parent'] = (array) $context;
                     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "collector"), "mappingErrors"), $this->getContext($context, "manager"), array(), "array"), $this->getContext($context, "class"), array(), "array"));
                     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
                         // line 132
                         echo "                                        <li>";
                         echo twig_escape_filter($this->env, $this->getContext($context, "error"), "html", null, true);
                         echo "</li>\n                                    ";
                     }
                     $_parent = $context['_parent'];
                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
                     $context = array_merge($_parent, array_intersect_key($context, $_parent));
                     // line 134
                     echo "                                </ul>\n                            ";
                 } else {
                     // line 136
                     echo "                                Valid\n                            ";
                 }
                 // line 138
                 echo "                        </td>\n                    </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['class'], $context['_parent'], $context['loop']);
             $context = array_merge($_parent, array_intersect_key($context, $_parent));
             // line 141
             echo "                </tbody>\n            </table>\n        ";
         }
         // line 144
         echo "    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['manager'], $context['classes'], $context['_parent'], $context['loop']);
     $context = array_merge($_parent, array_intersect_key($context, $_parent));
     // line 145
     echo "\n    <script type=\"text/javascript\">//<![CDATA[\n        function explain(link) {\n            \"use strict\";\n\n            var imgs = link.children,\n                target = link.getAttribute('data-target-id');\n\n            Sfjs.toggle(target, imgs[0], imgs[1])\n                .load(\n                    target,\n                    link.href,\n                    null,\n                    function(xhr, el) {\n                        el.innerHTML = 'An error occurred while loading the details';\n                        Sfjs.removeClass(el, 'loading');\n                    }\n                );\n\n            return false;\n        }\n    //]]></script>\n";
 }