protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<section class=\"g-grid submenu-selector\">\n    ";
     // line 2
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "groups", 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["group"] => $context["children"]) {
         // line 3
         echo "        ";
         $context["width"] = twig_number_format_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "columnWidth", array(0 => $context["group"]), "method"), 1);
         // line 4
         echo "        ";
         $context["special"] = array_key_exists("column", $context) && $context["group"] == (isset($context["column"]) ? $context["column"] : null);
         // line 5
         echo "        ";
         $context["target"] = "list-" . $context["group"];
         // line 6
         echo "        <div class=\"g-block\" data-mm-id=\"";
         echo twig_escape_filter($this->env, isset($context["target"]) ? $context["target"] : null);
         echo "\" style=\"flex: 0 1 ";
         echo twig_escape_filter($this->env, twig_round(isset($context["width"]) ? $context["width"] : null, 1), "html", null, true);
         echo "%\">\n            <div class=\"submenu-column\">\n                ";
         // line 8
         $this->loadTemplate("menu/list.html.twig", "@gantry-admin/menu/columns.html.twig", 8)->display(array_merge($context, array("item" => isset($context["special"]) ? $context["special"] : null ? isset($context["override"]) ? $context["override"] : null : (isset($context["item"]) ? $context["item"] : null), "group" => $context["group"])));
         // line 9
         echo "                ";
         $context["size"] = twig_length_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "groups", array()));
         // line 10
         echo "            </div>\n            <div class=\"submenu-ratio\">\n                <span class=\"percentage\"><input type=\"text\" class=\"column-pc\" value=\"";
         // line 12
         echo twig_escape_filter($this->env, twig_round(isset($context["width"]) ? $context["width"] : null, 1), "html", null, true);
         echo "\" tabindex=\"";
         echo twig_escape_filter($this->env, $context["group"] + 1, "html", null, true);
         echo "\" min=\"5\" max=\"95\" />%</span>\n            </div>\n        </div>\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['group'], $context['children'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 16
     echo "</section>\n<span class=\"fa fa-plus add-column\"></span>\n";
 }
 public function block_body($context, array $blocks = array())
 {
     // line 3
     echo "    <section id=\"blog\" class=\"container\">\n        <div class=\"center\">\n            <h2>Blogs</h2>\n            <p class=\"lead\">Pellentesque habitant morbi tristique senectus et netus et malesuada</p>\n        </div>\n\n        <div class=\"blog\">\n            <div class=\"row\">\n                <div class=\"col-md-8\">\n                    <div class=\"wrapper tabs\">\n                    ";
     // line 13
     $context["i"] = 0;
     // line 14
     echo "                    ";
     $context["divNo"] = 1;
     // line 15
     echo "                    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["blog"]) ? $context["blog"] : $this->getContext($context, "blog"));
     foreach ($context['_seq'] as $context["_key"] => $context["blogs"]) {
         // line 16
         echo "\n                        ";
         // line 17
         if ((isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")) % 3 == 0 && (isset($context["divNo"]) ? $context["divNo"] : $this->getContext($context, "divNo")) != 1) {
             // line 18
             echo "                        </div>\n                    ";
         }
         // line 20
         echo "\n                    ";
         // line 21
         if ((isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")) % 3 == 0) {
             // line 22
             echo "                        <div class=\"tab-content\" id=\"tab";
             echo twig_escape_filter($this->env, isset($context["divNo"]) ? $context["divNo"] : $this->getContext($context, "divNo"), "html", null, true);
             echo "\">\n                            ";
             // line 23
             $context["divNo"] = (isset($context["divNo"]) ? $context["divNo"] : $this->getContext($context, "divNo")) + 1;
             // line 24
             echo "                        ";
         }
         // line 25
         echo "\n                        <h5><span class=\"dropcap\"><strong>";
         // line 26
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["blogs"]) ? $context["blogs"] : $this->getContext($context, "blogs"), "id"), "html", null, true);
         echo "</strong><span>06</span></span>Lorem ipsum dolor sit amet consectetur adipisicing elit</h5>\n                        <div class=\"wrapper pad_bot2\">\n                            <p class=\"pad_bot1\" id=\"desc_";
         // line 28
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["blogs"]) ? $context["blogs"] : $this->getContext($context, "blogs"), "id"), "html", null, true);
         echo "\" style=\"display:block;\">";
         echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute(isset($context["blogs"]) ? $context["blogs"] : $this->getContext($context, "blogs"), "description"), 0, 200), "html", null, true);
         echo "</p>\n                            <p class=\"pad_bot1\" id=\"pname_";
         // line 29
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["blogs"]) ? $context["blogs"] : $this->getContext($context, "blogs"), "id"), "html", null, true);
         echo "\" style=\"display:none;\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["blogs"]) ? $context["blogs"] : $this->getContext($context, "blogs"), "description"), "html", null, true);
         echo "</p>\n                            <a href=\"Javascript:toggle('pname_";
         // line 30
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["blogs"]) ? $context["blogs"] : $this->getContext($context, "blogs"), "id"), "html", null, true);
         echo "','desc_";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["blogs"]) ? $context["blogs"] : $this->getContext($context, "blogs"), "id"), "html", null, true);
         echo "');\" class=\"link1\">Read More</a>\n                        </div>\n\n                        ";
         // line 33
         $context["i"] = (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")) + 1;
         // line 34
         echo "\n                    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blogs'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 36
     echo "                </div>\n\n                <ul class=\"pagination pagination-lg\">\n                    ";
     // line 39
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(range(1, twig_round((isset($context["count"]) ? $context["count"] : $this->getContext($context, "count")) / 3, 0, "ceil")));
     $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["j"]) {
         // line 40
         echo "                        <li class=\"active\"><a href=\"#tab";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "index"), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop"), "index"), "html", null, true);
         echo "</a></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['j'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 42
     echo "                </ul>\n                    ";
     // line 43
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["blog"]) ? $context["blog"] : $this->getContext($context, "blog"));
     foreach ($context['_seq'] as $context["_key"] => $context["blogs"]) {
         // line 44
         echo "                    <div class=\"blog-item\">\n                        <div class=\"row\">\n                            <div class=\"col-xs-12 col-sm-2 text-center\">\n                                <div class=\"entry-meta\">\n                                    <span id=\"publish_date\">";
         // line 48
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["blogs"]) ? $context["blogs"] : $this->getContext($context, "blogs"), "id"), "html", null, true);
         echo "</span>\n                                    <span><i class=\"fa fa-user\"></i> <a href=\"#\">John Doe</a></span>\n                                    <span><i class=\"fa fa-comment\"></i> <a href=\"blog-item.html#comments\">2 Comments</a></span>\n                                    <span><i class=\"fa fa-heart\"></i><a href=\"#\">56 Likes</a></span>\n                                </div>\n                            </div>\n                            <div class=\"col-xs-12 col-sm-10 blog-content\">\n                                <a href=\"#\"><img class=\"img-responsive img-blog\" src=\"";
         // line 55
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "uploads/news/", 1 => $this->getAttribute(isset($context["blogs"]) ? $context["blogs"] : $this->getContext($context, "blogs"), "id"), 2 => "/", 3 => $this->getAttribute(isset($context["blogs"]) ? $context["blogs"] : $this->getContext($context, "blogs"), "image")))), "html", null, true);
         echo "\" width=\"100%\" alt=\"\" /></a>\n                                <h2><a href=\"blog-item.html\">";
         // line 56
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["blogs"]) ? $context["blogs"] : $this->getContext($context, "blogs"), "title"), "html", null, true);
         echo "</a></h2>\n                                <h3>";
         // line 57
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["blogs"]) ? $context["blogs"] : $this->getContext($context, "blogs"), "description"), "html", null, true);
         echo "</h3>\n                                <a class=\"btn btn-primary readmore\" href=\"blog-item.html\">Read More <i class=\"fa fa-angle-right\"></i></a>\n                            </div>\n                        </div>\n                    </div>\n                    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['blogs'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 62
     echo "    \n                    <ul class=\"pagination pagination-lg\">\n                        <li><a href=\"#\"><i class=\"fa fa-long-arrow-left\"></i>Previous Page</a></li>\n                        <li class=\"active\"><a href=\"#\">1</a></li>\n                        <li><a href=\"#\">2</a></li>\n                        <li><a href=\"#\">3</a></li>\n                        <li><a href=\"#\">4</a></li>\n                        <li><a href=\"#\">5</a></li>\n                        <li><a href=\"#\">Next Page<i class=\"fa fa-long-arrow-right\"></i></a></li>\n                    </ul><!--/.pagination-->\n                </div><!--/.col-md-8-->\n\n                <aside class=\"col-md-4\">\n                    <div class=\"widget search\">\n                        <form role=\"form\">\n                            <input type=\"text\" class=\"form-control search_box\" autocomplete=\"off\" placeholder=\"Search Here\">\n                        </form>\n                    </div><!--/.search-->\n\n                    <div class=\"widget categories\">\n                        <h3>Recent Comments</h3>\n                        <div class=\"row\">\n                            <div class=\"col-sm-12\">\n                                <div class=\"single_comments\">\n                                    <img src=\"images/blog/avatar3.png\" alt=\"\"  />\n                                    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do </p>\n                                    <div class=\"entry-meta small muted\">\n                                        <span>By <a href=\"#\">Alex</a></span <span>On <a href=\"#\">Creative</a></span>\n                                    </div>\n                                </div>\n                                <div class=\"single_comments\">\n                                    <img src=\"images/blog/avatar3.png\" alt=\"\"  />\n                                    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do </p>\n                                    <div class=\"entry-meta small muted\">\n                                        <span>By <a href=\"#\">Alex</a></span <span>On <a href=\"#\">Creative</a></span>\n                                    </div>\n                                </div>\n                                <div class=\"single_comments\">\n                                    <img src=\"images/blog/avatar3.png\" alt=\"\"  />\n                                    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do </p>\n                                    <div class=\"entry-meta small muted\">\n                                        <span>By <a href=\"#\">Alex</a></span <span>On <a href=\"#\">Creative</a></span>\n                                    </div>\n                                </div>\n\n                            </div>\n                        </div>                     \n                    </div><!--/.recent comments-->\n\n\n                    <div class=\"widget categories\">\n                        <h3>Categories</h3>\n                        <div class=\"row\">\n                            <div class=\"col-sm-6\">\n                                <ul class=\"blog_category\">\n                                    <li><a href=\"#\">Computers <span class=\"badge\">04</span></a></li>\n                                    <li><a href=\"#\">Smartphone <span class=\"badge\">10</span></a></li>\n                                    <li><a href=\"#\">Gedgets <span class=\"badge\">06</span></a></li>\n                                    <li><a href=\"#\">Technology <span class=\"badge\">25</span></a></li>\n                                </ul>\n                            </div>\n                        </div>                     \n                    </div><!--/.categories-->\n\n                    <div class=\"widget archieve\">\n                        <h3>Archieve</h3>\n                        <div class=\"row\">\n                            <div class=\"col-sm-12\">\n                                <ul class=\"blog_archieve\">\n                                    <li><a href=\"#\"><i class=\"fa fa-angle-double-right\"></i> December 2013 <span class=\"pull-right\">(97)</span></a></li>\n                                    <li><a href=\"#\"><i class=\"fa fa-angle-double-right\"></i> November 2013 <span class=\"pull-right\">(32)</a></li>\n                                    <li><a href=\"#\"><i class=\"fa fa-angle-double-right\"></i> October 2013 <span class=\"pull-right\">(19)</a></li>\n                                    <li><a href=\"#\"><i class=\"fa fa-angle-double-right\"></i> September 2013 <span class=\"pull-right\">(08)</a></li>\n                                </ul>\n                            </div>\n                        </div>                     \n                    </div><!--/.archieve-->\n\n                    <div class=\"widget tags\">\n                        <h3>Tag Cloud</h3>\n                        <ul class=\"tag-cloud\">\n                            <li><a class=\"btn btn-xs btn-primary\" href=\"#\">Apple</a></li>\n                            <li><a class=\"btn btn-xs btn-primary\" href=\"#\">Barcelona</a></li>\n                            <li><a class=\"btn btn-xs btn-primary\" href=\"#\">Office</a></li>\n                            <li><a class=\"btn btn-xs btn-primary\" href=\"#\">Ipod</a></li>\n                            <li><a class=\"btn btn-xs btn-primary\" href=\"#\">Stock</a></li>\n                            <li><a class=\"btn btn-xs btn-primary\" href=\"#\">Race</a></li>\n                            <li><a class=\"btn btn-xs btn-primary\" href=\"#\">London</a></li>\n                            <li><a class=\"btn btn-xs btn-primary\" href=\"#\">Football</a></li>\n                            <li><a class=\"btn btn-xs btn-primary\" href=\"#\">Porche</a></li>\n                            <li><a class=\"btn btn-xs btn-primary\" href=\"#\">Gadgets</a></li>\n                        </ul>\n                    </div><!--/.tags-->\n\n                    <div class=\"widget blog_gallery\">\n                        <h3>Our Gallery</h3>\n                        <ul class=\"sidebar-gallery\">\n                            <li><a href=\"#\"><img src=\"";
     // line 159
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("/bundles/acmehome/images/blog/gallery1.png"), "html", null, true);
     echo "\" alt=\"\" /></a></li>\n                            <li><a href=\"#\"><img src=\"";
     // line 160
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("/bundles/acmehome/images/blog/gallery2.png"), "html", null, true);
     echo "\" alt=\"\" /></a></li>\n                            <li><a href=\"#\"><img src=\"";
     // line 161
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("/bundles/acmehome/images/blog/gallery3.png"), "html", null, true);
     echo "\" alt=\"\" /></a></li>\n                            <li><a href=\"#\"><img src=\"";
     // line 162
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("/bundles/acmehome/images/blog/gallery4.png"), "html", null, true);
     echo "\" alt=\"\" /></a></li>\n                            <li><a href=\"#\"><img src=\"";
     // line 163
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("/bundles/acmehome/images/blog/gallery5.png"), "html", null, true);
     echo "\" alt=\"\" /></a></li>\n                            <li><a href=\"#\"><img src=\"";
     // line 164
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("/bundles/acmehome/images/blog/gallery6.png"), "html", null, true);
     echo "\" alt=\"\" /></a></li>\n                        </ul>\n                    </div><!--/.blog_gallery-->\n                </aside>  \n            </div><!--/.row-->\n        </div>\n    </section><!--/#blog-->\n    <script type=\"text/javascript\"> Cufon.now(); </script>\n<script>\n\t\$(document).ready(function() {\n\t\ttabs.init();\n\t})\n</script>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"UTF-8\">\n    <title>AGeCo | Fiche ";
     // line 5
     echo twig_escape_filter($this->env, twig_title_string_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "prenom", array())), "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "nom", array())), "html", null, true);
     echo "</title>\n    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>\n    <style>\n        span.badge {\n            font-size: 13px;\n        }\n        .table-header-rotated td{\n\n          border-top: 1px solid #dddddd;\n          border-left: 1px solid #dddddd;\n          border-right: 1px solid #dddddd;\n          vertical-align: middle;\n          text-align: center;\n        }\n\n        .table-header-rotated th.rotate-45{\n          height: 80px;\n          position: relative;\n          vertical-align: bottom;\n          padding: 0;\n          font-size: 12px;\n          line-height: 0.8;\n        }\n\n        .table-header-rotated th.rotate-45 > div{\n          position: relative;\n          top: 0px;\n          left: 40px; /* 80 * tan(45) / 2 = 40 where 80 is the height on the cell and 45 is the transform angle*/\n          height: 100%;\n          -ms-transform:skew(-45deg,0deg);\n          -moz-transform:skew(-45deg,0deg);\n          -webkit-transform:skew(-45deg,0deg);\n          -o-transform:skew(-45deg,0deg);\n          transform:skew(-45deg,0deg);\n          overflow: hidden;\n          border-left: 1px solid #dddddd;\n        }\n\n        .table-header-rotated th.rotate-45 span {\n          -ms-transform:skew(45deg,0deg) rotate(315deg);\n          -moz-transform:skew(45deg,0deg) rotate(315deg);\n          -webkit-transform:skew(45deg,0deg) rotate(315deg);\n          -o-transform:skew(45deg,0deg) rotate(315deg);\n          transform:skew(45deg,0deg) rotate(315deg);\n          position: absolute;\n          bottom: 30px; /* 40 cos(45) = 28 with an additional 2px margin*/\n          left: -25px; /*Because it looked good, but there is probably a mathematical link here as well*/\n          // width: 100%;\n          width: 85px; /* 80 / cos(45) - 40 cos (45) = 85 where 80 is the height of the cell, 40 the width of the cell and 45 the transform angle*/\n          text-align: left;\n          // white-space: nowrap; /*whether to display in one line or not*/\n        }\n        .tp{\n            width: 80px;\n        }\n    </style>\n  </head>\n  <body class=\"skin-blue\">\n    <div class=\"wrapper\">\n      \n      ";
     // line 65
     echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('http_kernel')->controller("OCAgentBundle:Default:menu"));
     echo "\n      <!-- Right side column. Contains the navbar and content of the page -->\n      <div class=\"content-wrapper\">\n        <!-- Content Header (Page header) -->\n        <section class=\"content-header \">\n          <h1>\n            Fiche Agent -  ";
     // line 71
     echo twig_escape_filter($this->env, twig_title_string_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "prenom", array())), "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "nom", array())), "html", null, true);
     echo "\n            <small>\n                ";
     // line 73
     if (twig_date_format_filter($this->env, "now", "Ymd") < twig_date_format_filter($this->env, twig_date_converter($this->env, twig_date_format_filter($this->env, "now", "Y") . "0831"), "Ymd")) {
         // line 74
         echo "                   01/09/";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y") - 1, "html", null, true);
         echo " - 31/08/";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);
         echo "\n                ";
     } else {
         // line 76
         echo "                    01/09/";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);
         echo " - 31/08/";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y") + 1, "html", null, true);
         echo "\n                ";
     }
     // line 78
     echo "            </small>\n            <div class=\"badge hidden-print\" ><a href=\"javascript:window.print()\"><i style=\"color:white\"class=\"fa fa-print\"></i></a></div>\n          </h1>\n          <ol class=\"breadcrumb hidden-print\">\n            <li><a href=\"#\"><i class=\"fa fa-dashboard\"></i> Home</a></li>\n            <li class=\"active\">Fiche agent</li>\n            <li class=\"active\">";
     // line 84
     echo twig_escape_filter($this->env, twig_title_string_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "prenom", array())), "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "nom", array())), "html", null, true);
     echo "</li>\n          </ol>\n        </section>\n        ";
     // line 87
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "session", array()), "flashbag", array()), "get", array(0 => "notice"), "method"));
     foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
         if ($this->getAttribute($context["flashMessage"], "alert", array(), "any", true, true)) {
             // line 88
             echo "                <br>\n                <div class=\"alert alert-";
             // line 89
             echo twig_escape_filter($this->env, $this->getAttribute($context["flashMessage"], "alert", array()), "html", null, true);
             echo " alert-dismissible col-md-8\" role=\"alert\">\n                    <button type=\"button\" class=\"close\" data-dismiss=\"alert\">\n                        <span aria-hidden=\"true\">&times;</span><span class=\"sr-only\">Close</span>\n                    </button>\n                    <strong>";
             // line 93
             echo twig_escape_filter($this->env, $this->getAttribute($context["flashMessage"], "title", array()), "html", null, true);
             echo "</strong> ";
             echo twig_escape_filter($this->env, $this->getAttribute($context["flashMessage"], "message", array()), "html", null, true);
             echo "\n                </div>\n        ";
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 96
     echo "        <!-- Main content -->\n        <section class=\"content\">\n          <div class=\"row\">\n            <div class=\"col-md-8\" style=\"min-width: 850px\">\n               \n                <div class=\"row\">\n                 <div class=\"col-xs-6\">\n               <div class=\"box\">\n                <div class=\"box-body no-padding\">\n                  <table class=\"table table-condensed table-hover \" >\n                    <tr>\n                      <th style=\"width: 10px\">#</th>\n                      <th>D&eacute;signation</th>\n                      <th style=\"width: 35%\" class=\"text-right\">Quantit&eacute;</th>\n                    </tr>\n                    <tr>\n                      <td>1.</td>\n                      <td>Horaire Hebdomadaire</td>\n                      <td><span class=\"badge bg-red pull-right\">";
     // line 114
     echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "VolHoraireHebdo", array()), "html", null, true);
     echo "</span></td>\n                    </tr>\n                    <tr>\n                      <td>2.</td>\n                      <td>Quotit&eacute; de travail</td>\n                      <td><span class=\"badge bg-yellow pull-right\">";
     // line 119
     echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "QuotiteTravail", array()), "html", null, true);
     echo " %</span></td>\n                    </tr>\n                    <tr>\n                      <td>3.</td>\n                      <td>Nombre de cong&eacute; annuel restant </td>\n                      <td><span class=\"badge bg-light-blue pull-right\">";
     // line 124
     echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "JoursRestant", array()), "html", null, true);
     echo " j</span></td>\n                    </tr>\n                    <tr>\n                      <td>4.</td>\n                      <td>Reliquat <small>(A prendre avant le 31 d&eacute;cembre \n                              ";
     // line 129
     if (twig_date_format_filter($this->env, "now", "d/m/Y") < twig_date_format_filter($this->env, "31-08-" . twig_date_format_filter($this->env, "now", "Y"), "d/m/Y")) {
         // line 130
         echo "                                    ";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);
         echo "\n                              ";
     } else {
         // line 132
         echo "                                    ";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y") + 1, "html", null, true);
         echo "\n                              ";
     }
     // line 133
     echo ")</small></td>\n                      <td><span class=\"badge bg-green pull-right\">";
     // line 134
     echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "ReliquatRestant", array()), "html", null, true);
     echo " j</span></td>\n                    </tr>\n                    <tr>\n                      <td>5.</td>\n                      <td>Heures suppl&eacute;mentaires <small>(A r&eacute;cup&eacute;rer en &frac12 journ&eacute;es )</small></td>\n                      <td><span class=\"badge bg-orange pull-right\">";
     // line 139
     echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "heuresSup", array()), "html", null, true);
     echo "</span></td>\n                    </tr>\n                    <tr>\n                      <td>6.</td>\n                      <td>Heures de fractionnement </td>\n                      ";
     // line 144
     $context["hfrac"] = twig_split_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "heureFractionnement", array()), ".");
     // line 145
     echo "                      <td><span class=\"badge bg-aqua-gradient pull-right\">";
     if ($this->getAttribute($this->getContext($context, "hfrac", true), 0, array(), "any", true, true)) {
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "hfrac"), 0, array()), "html", null, true);
         echo "h";
     }
     if ($this->getAttribute($this->getContext($context, "hfrac", true), 1, array(), "any", true, true)) {
         echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getContext($context, "hfrac"), 1, array()) * 0.6), "html", null, true);
         echo "0";
     }
     echo "</span></td>\n                    </tr>\n                    <tr>\n                      <td>7.</td>\n                      <td>Chef de service</td>\n                      <td><span class=\"pull-right\">";
     // line 150
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "agent"), "Service", array()), "ChefdeService", array()), "NomCanonique", array()), "html", null, true);
     echo "</span></td>\n                    </tr>\n                    \n                    ";
     // line 153
     if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
         // line 154
         echo "                        <tr class=\"hidden-print\">\n                            <td colspan=\"3\"><a href=\"";
         // line 155
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("oc_agent_update_fiche_agent", array("id" => $this->getAttribute($this->getContext($context, "agent"), "id", array()))), "html", null, true);
         echo "\">Mettre &agrave; jour la fiche agent</a></td>\n                        </tr>\n                    ";
     }
     // line 158
     echo "                  </table>\n                </div><!-- /.box-body -->\n              </div><!-- /.box -->\n               </div><!-- column 1 of the box -->\n              \n              <div class=\"col-xs-6\">\n               <div class=\"box\">\n                <div class=\"box-body\">\n                    <table class=\"table table-striped table-header-rotated TP\" style=\"max-width: 500px\">\n                        <thead>\n                          <tr>\n                            <!-- First column header is not rotated -->\n                            <th></th>\n                            <!-- Following headers are rotated -->\n                            <th class=\"rotate-45\"><div><span>Lundi</span></div></th>\n                            <th class=\"rotate-45\"><div><span>Mardi</span></div></th>\n                            <th class=\"rotate-45\"><div><span>Mercredi</span></div></th>\n                            <th class=\"rotate-45\"><div><span>Jeudi</span></div></th>\n                            <th class=\"rotate-45\"><div><span>Vendredi</span></div></th>\n                          </tr>\n                        </thead>\n                        <tbody>\n                          <tr>\n                            <th>AM</th>\n                            <td class=\"tp\" id=\"matin-Monday\"></td>\n                            <td class=\"tp\" id=\"matin-Tuesday\"></td>\n                            <td class=\"tp\" id=\"matin-Wednesday\"></td>\n                            <td class=\"tp\" id=\"matin-Thursday\"></td>\n                            <td class=\"tp\" id=\"matin-Friday\"></td>\n\n                          </tr> \n                          <tr> \n                            <th>PM</th> \n                            <td class=\"tp\" id=\"aprem-Monday\"></td>\n                            <td class=\"tp\" id=\"aprem-Tuesday\"></td>\n                            <td class=\"tp\" id=\"aprem-Wednesday\"></td>\n                            <td class=\"tp\" id=\"aprem-Thursday\"></td>\n                            <td class=\"tp\" id=\"aprem-Friday\"></td>\n                          </tr>\n                        </tbody>\n                      </table>\n                    ";
     // line 199
     if ($this->getAttribute($this->getContext($context, "agent"), "QuotiteTravail", array()) == 100) {
         // line 200
         echo "                        <br><small class=\"pull-right\"> T : travaill&eacute; &nbsp;&nbsp;&nbsp;&nbsp; ARTT :  Am&eacute;nagement R&eacute;duction du Temps de Travail</small><br>\n                    ";
     } else {
         // line 202
         echo "                        <br><small class=\"pull-right\"> T : travaill&eacute; &nbsp;&nbsp;&nbsp;&nbsp; TP : temps partiels</small><br>\n                    ";
     }
     // line 204
     echo "                    \n                    \n                </div><!-- /.box-body -->\n               </div><!-- /.box -->\n              </div>\n              </div>\n               <div class=\"box\">\n                    <div class=\"box-body no-padding\">\n                        <table class=\"table table-condensed  table-hover sortable\" id=\"data\">\n                            <thead>\n                            <tr>\n                                <td class=\"text-center text-bold\" colspan=\"9\">ABSENCES ANNUELLES</td>\n                            </tr>\n                            <tr>\n                              <th><span class=\"text-bold\">#</span></th>\n                              <th>Date de d&eacute;but</th>\n                              <th>Date de fin</th>\n                              <th data-tsorter=\"numeric\">Nombre de jours</th>\n                              <th>Type d'absence</th>\n                              <th>Demand&eacute;e le</th>\n                              <th>Accept&eacute;e le</th>\n                              <th>Solde <abbr class=\"hidden-print\" title=\"Solde des congés validés\">*</abbr></th>\n                              ";
     // line 226
     if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
         // line 227
         echo "                                <th class='hidden-print'>Action</th>\n                              ";
     }
     // line 229
     echo "                            </tr>\n                            </thead>\n                            <tr >\n                                <td class=\"active\"></td>\n                                <td class=\"active\"></td>\n                                <td class=\"active\"></td>\n                                <td class=\"active\"></td>\n                                <td class=\"active\"></td>\n                                <td class=\"active\"></td>\n                                <td class=\"active\"></td>\n                                <td id=\"ABS_ANN_SoldeSansCongeValide_0\">";
     // line 239
     echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "NbJourCongeAnnuel", array()), "html", null, true);
     echo "</td>\n                                ";
     // line 240
     if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
         // line 241
         echo "                                    <td class=\"active\"></td>\n                                ";
     }
     // line 243
     echo "                            <tr>\n                          ";
     // line 245
     echo "                          ";
     $context["nbjourtotalAN"] = 0;
     // line 246
     echo "                          ";
     $context["soldeTemp"] = $this->getAttribute($this->getContext($context, "agent"), "NbJourCongeAnnuel", array());
     // line 247
     echo "                          \n                          ";
     // line 248
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getContext($context, "absences"));
     $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["absence"]) {
         // line 249
         echo "                            <tr id =\"";
         echo twig_escape_filter($this->env, $this->getAttribute($context["absence"], "id", array()), "html", null, true);
         echo "\">\n                              <td><span class=\"text-bold\">";
         // line 250
         echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
         echo ".</span></td>\n                              <td>";
         // line 251
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "debut", array()), "d-m-Y"), "html", null, true);
         echo "</td>\n                              <td>";
         // line 252
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "fin", array()), "d-m-Y"), "html", null, true);
         echo "</td>\n                              <td>";
         // line 253
         if (twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") != twig_date_format_filter($this->env, "2000-01-01", "d-m-Y") && twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") != twig_date_format_filter($this->env, "0000-00-00", "d-m-Y") && ($this->getAttribute($this->getAttribute($context["absence"], "Category", array()), "id", array()) == 2 || $this->getAttribute($this->getAttribute($context["absence"], "Category", array()), "id", array()) == 5) && $this->getAttribute($this->getAttribute($context["absence"], "Category", array()), "id", array()) != 9 && twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") != twig_date_format_filter($this->env, "0000-00-00", "d-m-Y")) {
             // line 258
             echo "                                     ";
             $context["nbjourtotalAN"] = $this->getContext($context, "nbjourtotalAN") + $this->getAttribute($context["absence"], "nbjournee", array());
             echo "        ";
             echo "            \n                                  ";
         }
         // line 260
         echo "                                                                     ";
         echo twig_escape_filter($this->env, $this->getAttribute($context["absence"], "nbjournee", array()), "html", null, true);
         echo "\n   \n                              </td>\n                              <td>";
         // line 263
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["absence"], "Category", array()), "name", array()), "html", null, true);
         echo "</td>\n                              <td>";
         // line 264
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "DemandeLe", array()), "d-m-Y"), "html", null, true);
         echo "</td>\n                              <td>  ";
         // line 265
         if (twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "0000-00-00", "d-m-Y")) {
             // line 266
             echo "                                           En cours de traitement\n                                    ";
         } elseif (twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "2000-01-01", "d-m-Y")) {
             // line 268
             echo "                                           Refus&eacute;\n                                    ";
         } elseif (null === $this->getAttribute($context["absence"], "Accepted", array())) {
             // line 270
             echo "                                           Envoy&eacute;\n                                    ";
         } else {
             // line 272
             echo "                                       ";
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y"), "html", null, true);
             echo "\n                                    ";
         }
         // line 274
         echo "                              </td>\n                              <td >\n                                  ";
         // line 276
         if (twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") != twig_date_format_filter($this->env, "2000-01-01", "d-m-Y") && twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") != twig_date_format_filter($this->env, "0000-00-00", "d-m-Y") && ($this->getAttribute($this->getAttribute($context["absence"], "Category", array()), "id", array()) == 2 || $this->getAttribute($this->getAttribute($context["absence"], "Category", array()), "id", array()) == 5 || $this->getAttribute($this->getAttribute($context["absence"], "Category", array()), "id", array()) == 9) && twig_date_format_filter($this->env, $this->getAttribute($context["absence"], "Accepted", array()), "d-m-Y") != twig_date_format_filter($this->env, "0000-00-00", "d-m-Y")) {
             // line 280
             echo "                                    ";
             $context["soldeTemp"] = $this->getContext($context, "soldeTemp") - $this->getAttribute($context["absence"], "nbjournee", array());
             echo " ";
             echo twig_escape_filter($this->env, $this->getContext($context, "soldeTemp"), "html", null, true);
             echo "\n                                  ";
         }
         // line 282
         echo "                              </td>\n                              ";
         // line 283
         if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
             // line 284
             echo "                              <td class='hidden-print' >\n                                  <a type=\"button\" class=\"btn btn-danger btn-xs\" data-id='";
             // line 285
             echo twig_escape_filter($this->env, $this->getAttribute($context["absence"], "id", array()), "html", null, true);
             echo "' data-toggle=\"modal\" data-target=\"#exampleModal\" >\n                                    <i class=\"fa fa-times\"></i>\n                                  </a>\n                              </td>\n                              ";
         }
         // line 290
         echo "                            ";
         if ($this->getAttribute($context["loop"], "last", array())) {
             // line 291
             echo "                                <tfoot>\n                                    <tr >\n                                        <th >Total</th>\n                                        <th ></th>\n                                        <th ></th>\n                                        <th >";
             // line 296
             echo twig_escape_filter($this->env, $this->getContext($context, "nbjourtotalAN"), "html", null, true);
             echo "</th>\n                                        <th ></th>\n                                        <th ></th>\n                                        <th ></th>\n                                        <th >";
             // line 300
             echo twig_escape_filter($this->env, $this->getContext($context, "soldeTemp"), "html", null, true);
             echo "</th>\n                                    </tr>        \n                                </tfoot>        \n                            ";
         }
         // line 304
         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['absence'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 305
     echo "                      </table>\n                    </div>\n                </div>\n          ";
     // line 308
     if (twig_length_filter($this->env, $this->getContext($context, "reliquats")) != 0) {
         // line 309
         echo "               <div class=\"box\">\n                    <div class=\"box-body no-padding\">\n                        <table class=\"table table-condensed table-hover\">\n                        <tr>\n                            <td class=\"text-center \" colspan=\"9\"><span class=\"text-bold\">RELIQUATS</span><br>\n                                <small>\n                                   ( A prendre avant le 31 d&eacute;cembre ";
         // line 315
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);
         echo " )\n                                </small>\n                        </tr>\n                        <tr>\n                          <th>#</th>\n                          <th>Date de d&eacute;but</th>\n                          <th>Date de Fin</th>\n                          <th>Demand&eacute;e le</th>\n                          <th>Accept&eacute;e le</th>\n                          <th>Nombre de jours</th>\n                          <th>Solde</th>\n                          ";
         // line 326
         if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
             // line 327
             echo "                            <th class='hidden-print'>Action</th>\n                          ";
         }
         // line 329
         echo "                        </tr>\n                        <tr>\n                            <td class=\"active\"></td>\n                            <td class=\"active\"></td>\n                            <td class=\"active\"></td>\n                            <td class=\"active\"></td>\n                            <td class=\"active\"></td>\n                            <td class=\"active\"></td>\n                            <td>";
         // line 337
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "agent"), "Reliquat", array()), "html", null, true);
         echo "\n                            </td>\n                        <tr>\n                          ";
         // line 341
         echo "                          ";
         $context["nbjourTotalReli"] = 0;
         // line 342
         echo "                          ";
         $context["SoldeTempReli"] = $this->getAttribute($this->getContext($context, "agent"), "Reliquat", array());
         // line 343
         echo "                          \n                          ";
         // line 344
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getContext($context, "reliquats"));
         $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["reliquat"]) {
             // line 345
             echo "                              \n                          ";
             // line 346
             $context["nbjourTotalReli"] = $this->getContext($context, "nbjourTotalReli") + $this->getAttribute($context["reliquat"], "nbjournee", array());
             // line 347
             echo "                          ";
             $context["SoldeTempReli"] = $this->getContext($context, "SoldeTempReli") - $this->getAttribute($context["reliquat"], "nbjournee", array());
             // line 348
             echo "                        <tr id =\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["reliquat"], "id", array()), "html", null, true);
             echo "\">\n                          <td><span class=\"text-bold\">";
             // line 349
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo ".</span></td>\n                          <td>";
             // line 350
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["reliquat"], "debut", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 351
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["reliquat"], "fin", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 352
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["reliquat"], "DemandeLe", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>  ";
             // line 353
             if (twig_date_format_filter($this->env, $this->getAttribute($context["reliquat"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "0000-00-00", "d-m-Y")) {
                 // line 354
                 echo "                                        En cours de traitement\n                                ";
             } elseif (twig_date_format_filter($this->env, $this->getAttribute($context["reliquat"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "2000-01-01", "d-m-Y")) {
                 // line 356
                 echo "                                       Refus&eacute;\n                                ";
             } elseif (null === $this->getAttribute($context["reliquat"], "Accepted", array())) {
                 // line 358
                 echo "                                       Envoy&eacute;\n                                ";
             } else {
                 // line 360
                 echo "                                   ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["reliquat"], "Accepted", array()), "d-m-Y"), "html", null, true);
                 echo "\n                                ";
             }
             // line 362
             echo "                          </td>\n                          <td class=\"demiJ2\">";
             // line 363
             echo twig_escape_filter($this->env, $this->getAttribute($context["reliquat"], "nbjournee", array()), "html", null, true);
             echo "</td>\n                          <td>";
             // line 364
             echo twig_escape_filter($this->env, $this->getContext($context, "SoldeTempReli"), "html", null, true);
             echo "</td>\n                          ";
             // line 365
             if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
                 // line 366
                 echo "                              <td class='hidden-print'>\n                                  <a type=\"button\" class=\"btn btn-danger btn-xs\" data-id='";
                 // line 367
                 echo twig_escape_filter($this->env, $this->getAttribute($context["reliquat"], "id", array()), "html", null, true);
                 echo "' data-toggle=\"modal\" data-target=\"#exampleModal\" >\n                                    <i class=\"fa fa-times\"></i>\n                                  </a>\n                              </td>\n                          ";
             }
             // line 372
             echo "                        </tr>\n                        ";
             // line 373
             if ($this->getAttribute($context["loop"], "last", array())) {
                 // line 374
                 echo "                    <tfoot>\n                        <tr class=\"\">\n                            <th colspan=\"5\">Total</th>\n                            <th >";
                 // line 377
                 echo twig_escape_filter($this->env, $this->getContext($context, "nbjourTotalReli"), "html", null, true);
                 echo "</th>\n                            <th >";
                 // line 378
                 echo twig_escape_filter($this->env, $this->getContext($context, "SoldeTempReli"), "html", null, true);
                 echo "</th>\n                        </tr>        \n                    </tfoot>        \n                        ";
             }
             // line 382
             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['reliquat'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 383
         echo "                      </table>\n                    </div>\n                </div>\n          ";
     }
     // line 387
     echo "          ";
     if (twig_length_filter($this->env, $this->getContext($context, "MissForm")) != 0) {
         // line 388
         echo "               <div class=\"box\">\n                    <div class=\"box-body no-padding\">\n                        <table class=\"table table-condensed table-hover\">\n                        <tr>\n                            <td class=\"text-center text-bold\" colspan=\"9\">FORMATION - MISSION</td>\n                        </tr>\n                        <tr >\n                          <th>#</th>\n                          <th>Date de d&eacute;but</th>\n                          <th>Date de Fin</th>\n                          <th>Type d'absence</th>\n                          <th>Demand&eacute;e le</th>\n                          <th>Nombre de jours</th>\n                          ";
         // line 401
         if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
             // line 402
             echo "                            <th class='hidden-print'>Action</th>\n                          ";
         }
         // line 404
         echo "                        </tr>\n                          ";
         // line 406
         echo "                          ";
         $context["nbjourTotalMissForm"] = 0;
         echo " \n                          \n                          ";
         // line 408
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($context["MissForm"]);
         $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["MissForm"]) {
             // line 409
             echo "                          ";
             $context["nbjourTotalMissForm"] = $this->getContext($context, "nbjourTotalMissForm") + $this->getAttribute($context["MissForm"], "nbjournee", array());
             // line 410
             echo "                        <tr id =\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["MissForm"], "id", array()), "html", null, true);
             echo "\">\n                          <td><span class=\"text-bold\">";
             // line 411
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo ".</span></td>\n                          <td>";
             // line 412
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["MissForm"], "debut", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 413
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["MissForm"], "fin", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 414
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["MissForm"], "Category", array()), "name", array()), "html", null, true);
             echo "</td>\n                          <td>";
             // line 415
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["MissForm"], "DemandeLe", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td class=\"demiJ2\">";
             // line 416
             echo twig_escape_filter($this->env, $this->getAttribute($context["MissForm"], "nbjournee", array()), "html", null, true);
             echo "</td>\n                          ";
             // line 417
             if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
                 // line 418
                 echo "                              <td >\n                                  <a type=\"button\" class=\"btn btn-danger btn-xs\" data-id='";
                 // line 419
                 echo twig_escape_filter($this->env, $this->getAttribute($context["MissForm"], "id", array()), "html", null, true);
                 echo "' data-toggle=\"modal\" data-target=\"#exampleModal\" >\n                                    <i class=\"fa fa-times\"></i>\n                                  </a>\n                              </td>\n                          ";
             }
             // line 424
             echo "                        </tr>\n                        ";
             // line 425
             if ($this->getAttribute($context["loop"], "last", array())) {
                 // line 426
                 echo "                    <tfoot>\n                        <tr class=\"\">\n                            <th colspan=\"5\">Total</th>\n                            <th>";
                 // line 429
                 echo twig_escape_filter($this->env, $this->getContext($context, "nbjourTotalMissForm"), "html", null, true);
                 echo "</th>\n                        </tr>        \n                    </tfoot>        \n                        ";
             }
             // line 433
             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['MissForm'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 434
         echo "                      </table>\n                    </div>\n                </div>\n          ";
     }
     // line 438
     echo "          ";
     if (twig_length_filter($this->env, $this->getContext($context, "tabASA")) != 0) {
         // line 439
         echo "                <div class=\"box\">\n                    <div class=\"box-body no-padding\">\n                      <table class=\"table table-condensed table-hover\" id=\"table_asa\">\n                        <tr>\n                            <td class=\"text-center text-bold\" colspan=\"9\">Autorisation Sp&eacute;ciale d'Absence<br>\n                                <small id=\"annee_asa\">Ann&eacute;e universitaire</small>\n                            </td>\n                        </tr>\n                        <tr>\n                          <th>#</th>\n                          <th>Date de d&eacute;but</th>\n                          <th>Date de Fin</th>\n                          <th>Nombre de jours</th>\n                          <th>Demand&eacute;e le</th>\n                          <th>Accept&eacute;e le</th>\n                          <th>Commentaire</th>\n                          ";
         // line 455
         if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
             // line 456
             echo "                            <th class='hidden-print' >Action</th>\n                          ";
         }
         // line 458
         echo "                        </tr>\n                          ";
         // line 460
         echo "                          ";
         $context["nbjourTotalASA"] = 0;
         echo " \n                          \n                          ";
         // line 462
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getContext($context, "tabASA"));
         $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["ASA"]) {
             // line 463
             echo "                          ";
             $context["nbjourTotalASA"] = $this->getContext($context, "nbjourTotalASA") + $this->getAttribute($context["ASA"], "nbjournee", array());
             // line 464
             echo "                        <tr id =\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["ASA"], "id", array()), "html", null, true);
             echo "\"  class=\"tr_asa\">\n                          <td><span class=\"text-bold\">";
             // line 465
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo ".</span></td>\n                          <td>";
             // line 466
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["ASA"], "debut", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 467
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["ASA"], "fin", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                           <td class=\"demiJ2\">";
             // line 468
             echo twig_escape_filter($this->env, $this->getAttribute($context["ASA"], "nbjournee", array()), "html", null, true);
             echo "</td>\n                          <td>";
             // line 469
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["ASA"], "DemandeLe", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 470
             if (twig_date_format_filter($this->env, $this->getAttribute($context["ASA"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "0000-00-00", "d-m-Y")) {
                 // line 471
                 echo "                                        En cours de traitement\n                                ";
             } elseif (twig_date_format_filter($this->env, $this->getAttribute($context["ASA"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "2000-01-01", "d-m-Y")) {
                 // line 473
                 echo "                                       Refus&eacute;\n                                ";
             } elseif (null === $this->getAttribute($context["ASA"], "Accepted", array())) {
                 // line 475
                 echo "                                       Envoy&eacute;\n                                ";
             } else {
                 // line 477
                 echo "                                   ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["ASA"], "Accepted", array()), "d-m-Y"), "html", null, true);
                 echo "\n                                ";
             }
             // line 479
             echo "                          </td>\n                          <td>";
             // line 480
             echo twig_escape_filter($this->env, $this->getAttribute($context["ASA"], "commentaire", array()), "html", null, true);
             echo "</td>\n                          ";
             // line 481
             if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
                 // line 482
                 echo "                              <td class='hidden-print'>\n                                  <a type=\"button\" class=\"btn btn-danger btn-xs\" data-id='";
                 // line 483
                 echo twig_escape_filter($this->env, $this->getAttribute($context["ASA"], "id", array()), "html", null, true);
                 echo "' data-toggle=\"modal\" data-target=\"#exampleModal\" >\n                                    <i class=\"fa fa-times\"></i>\n                                  </a>\n                              </td>\n                          ";
             }
             // line 488
             echo "                        </tr>\n                        ";
             // line 489
             if ($this->getAttribute($context["loop"], "last", array())) {
                 // line 490
                 echo "                        <tfoot>\n                            <tr class=\"\">\n                                <th colspan=\"3\">Total</th>\n                                <th>";
                 // line 493
                 echo twig_escape_filter($this->env, $this->getContext($context, "nbjourTotalASA"), "html", null, true);
                 echo "</th>\n                                <th colspan=\"3\"></th>\n                                <th>\n                                    <input id=\"toggle-event\"\n                                           checked  type=\"checkbox\" data-toggle=\"toggle\"\n                                           data-width=\"100\" data-height=\"10\"\n                                           data-on=\"universitaire\" data-off=\"civile\"\n                                           data-onstyle=\"warning\" data-offstyle=\"info\"><br>\n                                </th>\n                            </tr>        \n                        </tfoot>        \n                        ";
             }
             // line 505
             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['ASA'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 506
         echo "                      </table>\n                    </div>\n                </div>\n          ";
     }
     // line 510
     echo "          ";
     if (twig_length_filter($this->env, $this->getContext($context, "tabHSF")) != 0) {
         // line 511
         echo "                <div class=\"box\">\n                    <div class=\"box-body no-padding\">\n                      <table class=\"table table-condensed table-hover\" id=\"table_asa\">\n                        <tr>\n                            <td class=\"text-center text-bold\" colspan=\"9\">R&eacute;cup&eacute;ration d'heure suppl&eacute;mentaire et heure de fractionnement</td>\n                        </tr>\n                        <tr>\n                          <th>#</th>\n                          <th>Date</th>\n                          <th>Type de r&eacute;cup&eacute;ration</th>\n                          <th>Nombre d'heures</th>\n                          <th>Demand&eacute;e le</th>\n                          <th>Accept&eacute;e le</th>\n                          ";
         // line 524
         if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
             // line 525
             echo "                            <th class='hidden-print'>Action</th>\n                          ";
         }
         // line 527
         echo "                        </tr>\n                          ";
         // line 528
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getContext($context, "tabHSF"));
         $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["HSF"]) {
             // line 529
             echo "                          \n                        <tr id =\"";
             // line 530
             echo twig_escape_filter($this->env, $this->getAttribute($context["HSF"], "id", array()), "html", null, true);
             echo "\">\n                          <td><span class=\"text-bold\">";
             // line 531
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo ".</span></td>\n                          <td>";
             // line 532
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["HSF"], "date", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 533
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["HSF"], "Category", array()), "categoryName", array()), "html", null, true);
             echo "</td>\n                          ";
             // line 534
             $context["nbh"] = twig_split_filter($this->env, $this->getAttribute($context["HSF"], "nbheure", array()), ".");
             // line 535
             echo "                          <td class=\"demiJ2\">";
             if ($this->getAttribute($this->getContext($context, "nbh", true), 0, array(), "any", true, true)) {
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "nbh"), 0, array()), "html", null, true);
             }
             if ($this->getAttribute($this->getContext($context, "nbh", true), 1, array(), "any", true, true)) {
                 echo "h";
                 echo twig_escape_filter($this->env, twig_round($this->getAttribute(twig_split_filter($this->env, $this->getAttribute($this->getContext($context, "nbh"), 1, array()), "", 1), 0, array()) * 0.6), "html", null, true);
                 echo "0";
             }
             echo "</span></td>\n                          <td>";
             // line 536
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["HSF"], "DemandeLe", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 537
             if (twig_date_format_filter($this->env, $this->getAttribute($context["HSF"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "0000-00-00", "d-m-Y")) {
                 // line 538
                 echo "                                           En cours de traitement\n                                    ";
             } elseif (twig_date_format_filter($this->env, $this->getAttribute($context["HSF"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "2000-01-01", "d-m-Y")) {
                 // line 540
                 echo "                                           Refus&eacute;\n                                    ";
             } elseif (null === $this->getAttribute($context["HSF"], "Accepted", array())) {
                 // line 542
                 echo "                                           Envoy&eacute;\n                                    ";
             } else {
                 // line 544
                 echo "                                       ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["HSF"], "Accepted", array()), "d-m-Y"), "html", null, true);
                 echo "\n                                    ";
             }
             // line 546
             echo "                          </td>\n                          ";
             // line 547
             if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
                 // line 548
                 echo "                              <td class='hidden-print'>\n                                  <a type=\"button\" class=\"btn btn-danger btn-xs\" data-id-hsf='";
                 // line 549
                 echo twig_escape_filter($this->env, $this->getAttribute($context["HSF"], "id", array()), "html", null, true);
                 echo "' data-toggle=\"modal\" data-target=\"#exampleModal\" >\n                                        <i class=\"fa fa-times\"></i>\n                                  </a>\n                              </td>\n                          ";
             }
             // line 554
             echo "                        </tr>\n                        ";
             // line 555
             if ($this->getAttribute($context["loop"], "last", array())) {
                 // line 556
                 echo "                        <tfoot>\n                            <tr class=\"\">\n                                <th colspan=\"3\">Total</th>\n                                <th></th>\n                            </tr>        \n                        </tfoot>        \n                        ";
             }
             // line 563
             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['HSF'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 564
         echo "                      </table>\n                    </div>\n                </div>\n          ";
     }
     // line 568
     echo "          ";
     if (twig_length_filter($this->env, $this->getContext($context, "autres")) != 0) {
         // line 569
         echo "                <div class=\"box\">\n                    <div class=\"box-body no-padding\">\n                      <table class=\"table table-condensed table-hover\">\n                        <tr>\n                            <td class=\"text-center text-bold\" colspan=\"9\">Autre</td>\n                        </tr>\n                        <tr>\n                          <th>#</th>\n                          <th>D&eacute;but</th>\n                          <th>fin</th>\n                          <th>Type d'absence</th>\n                          <th>Nombre de jours</th>\n                          <th>Demand&eacute;e le</th>\n                          <th>Accept&eacute;e le</th>\n                          ";
         // line 583
         if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
             // line 584
             echo "                            <th class='hidden-print'>Action</th>\n                          ";
         }
         // line 586
         echo "                        </tr>\n                          ";
         // line 587
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getContext($context, "autres"));
         $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["autre"]) {
             // line 588
             echo "                          \n                        <tr id =\"";
             // line 589
             echo twig_escape_filter($this->env, $this->getAttribute($context["autre"], "id", array()), "html", null, true);
             echo "\">\n                          <td><span class=\"text-bold\">";
             // line 590
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo ".</span></td>\n                          <td>";
             // line 591
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["autre"], "debut", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 592
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["autre"], "fin", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 593
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["autre"], "Category", array()), "categoryName", array()), "html", null, true);
             echo "</td>\n                          ";
             // line 594
             $context["nbh"] = twig_split_filter($this->env, $this->getAttribute($context["autre"], "nbjournee", array()), ".");
             // line 595
             echo "                          <td class=\"demiJ2\">";
             if ($this->getAttribute($this->getContext($context, "nbh", true), 0, array(), "any", true, true)) {
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "nbh"), 0, array()), "html", null, true);
             }
             if ($this->getAttribute($this->getContext($context, "nbh", true), 1, array(), "any", true, true)) {
                 echo "h";
                 echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getContext($context, "nbh"), 1, array()) * 0.6), "html", null, true);
                 echo "0";
             }
             echo "</span></td>\n                          <td>";
             // line 596
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["autre"], "DemandeLe", array()), "d-m-Y"), "html", null, true);
             echo "</td>\n                          <td>";
             // line 597
             if (twig_date_format_filter($this->env, $this->getAttribute($context["autre"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "0000-00-00", "d-m-Y")) {
                 // line 598
                 echo "                                           En cours de traitement\n                                    ";
             } elseif (twig_date_format_filter($this->env, $this->getAttribute($context["autre"], "Accepted", array()), "d-m-Y") == twig_date_format_filter($this->env, "2000-01-01", "d-m-Y")) {
                 // line 600
                 echo "                                           Refus&eacute;\n                                    ";
             } elseif (null === $this->getAttribute($context["autre"], "Accepted", array())) {
                 // line 602
                 echo "                                           Envoy&eacute;\n                                    ";
             } else {
                 // line 604
                 echo "                                       ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["autre"], "Accepted", array()), "d-m-Y"), "html", null, true);
                 echo "\n                                    ";
             }
             // line 606
             echo "                          </td>\n                          ";
             // line 607
             if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 1 || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "user", array()), "agent", array()), "service", array()), "id", array()) == 3) {
                 // line 608
                 echo "                              <td class='hidden-print'>\n                                  <a type=\"button\" class=\"btn btn-danger btn-xs\" data-id-hsf='";
                 // line 609
                 echo twig_escape_filter($this->env, $this->getAttribute($context["autre"], "id", array()), "html", null, true);
                 echo "' data-toggle=\"modal\" data-target=\"#exampleModal\" >\n                                        <i class=\"fa fa-times\"></i>\n                                  </a>\n                              </td>\n                          ";
             }
             // line 614
             echo "                        </tr>\n                        ";
             // line 615
             if ($this->getAttribute($context["loop"], "last", array())) {
                 // line 616
                 echo "                        <tfoot>\n                            <tr class=\"\">\n                                <th colspan=\"3\">Total</th>\n                                <th></th>\n                            </tr>        \n                        </tfoot>        \n                        ";
             }
             // line 623
             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['autre'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 624
         echo "                      </table>\n                    </div>\n                </div>\n          ";
     }
     // line 628
     echo "            </div><!-- /.col -->\n          </div><!-- /.row -->\n        </section><!-- /.content -->\n      </div><!-- /.content-wrapper -->\n \n      ";
     // line 634
     echo "        <div class=\"modal fade\" id=\"exampleModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\">\n          <div class=\"modal-dialog\" role=\"document\">\n            <div class=\"modal-content\">\n              <div class=\"modal-header\">\n                <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>\n                <h4 class=\"modal-title\" id=\"exampleModalLabel\">New message</h4>\n              </div>\n              <div class=\"modal-body\">\n                  Etes vous sur de vouloir supprimer l'evenement ?\n              </div>\n              <div class=\"modal-footer\">\n                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Non</button>\n                <a type=\"button\" class=\"btn btn-danger\" id=\"annuler_event\" href='' ><i class=\"fa fa-times\"> Oui</i> </a>\n              </div>\n            </div>\n          </div>\n        </div>\n      \n      <footer class=\"main-footer hidden-print\">\n        <div class=\"pull-right hidden-xs\">\n          <b>Version</b> 2.0\n        </div>\n        <strong>Copyright &copy; 2015 <a href=\"\">Cedric GUICHERD</a>.</strong> \n      </footer>\n    </div><!-- ./wrapper -->\n";
     // line 659
     $this->displayBlock('javascript', $context, $blocks);
     // line 748
     echo "\n  </body>\n</html>\n      ";
 }
 public function block_container($context, array $blocks = array())
 {
     // line 3
     echo "\n<div class=\"container\">\n\n    <div class=\"row\"  >\n        <form action=\"";
     // line 7
     echo $this->env->getExtension('routing')->getPath("user_recherche");
     echo "\" method=\"POST\" >\n            <div class=\"box\" align=\"center\">\n                <div class=\"col-lg-12\">\n                    <hr>\n                    <h2 class=\"intro-text text-center\"> Recherche Avancée</h2>\n                    <hr>\n                    <h3 class=\"intro-text\"> Recherche par Nom:</h3> <input type=\"text\" name=\"nom\" > <br>\n                    <h3 class=\"intro-text\">Recherche par Type:</h3><br> Produit <input type=\"radio\"  name=\"type\" value=\"Produit\"> Service <input type=\"radio\"  name=\"type\" value=\"Service\">\n                    <h3 class=\"intro-text\"> Recherche par Catégorie:</h3><br> Technologie <input type=\"radio\"  name=\"cat\" value=\"Technologie\"> Vêtements <input type=\"radio\"  name=\"cat\"> Domestique <input type=\"radio\"  name=\"cat\"> Sanitaire <input type=\"radio\"  name=\"cat\" value=\"Sanitaire\"><br><br> \n                    <h3 align=\"center\"> <center><input type=\"submit\" class=\"col-sm-2\" value=\"Rechercher\"></center></h3>\n\n                </div>\n            </div>\n        </form>   \n\n                 <div class=\"box\">\n                ";
     // line 23
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["deals"]) ? $context["deals"] : $this->getContext($context, "deals"));
     foreach ($context['_seq'] as $context["_key"] => $context["deal"]) {
         // line 24
         echo "\n                <div class=\"col-sm-4 text-center\">\n                    <div class=\"test\">\n                        <div id=\"";
         // line 27
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal"), "html", null, true);
         echo "\">\n                            <div class=\"libelle\">  <span class=\"shorttitle\">";
         // line 28
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "Libelle"), "html", null, true);
         echo "</span></div>\n                            <img src='";
         // line 29
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "Image"), "html", null, true);
         echo "' width=\"100%\" height=\"180px\">\n                            <br><span class=\"discount_text\">A partir de</span> <span class=\"item_price\">";
         // line 30
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixPromotionnel"), "html", null, true);
         echo " dt</span> <span class=\"original_price\"> ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixInitial"), "html", null, true);
         echo " dt</span><br>\n\n                            <div class=\"dealex\"><span class=\"dealexp\">  Ce deal est valable jusqu'au<br> </span> <span class=\"dealdateexp\">";
         // line 32
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "DateFin"), "html", null, true);
         echo "</span></div>\n                            \n                            <div class=\"dealr\"><span class=\"remise\"> - ";
         // line 34
         echo twig_escape_filter($this->env, twig_round(100 / ($this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixInitial") / $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixPromotionnel")), 1, "floor"), "html", null, true);
         echo " %</span></div>\n                            \n                        </div>\n                    </div>   \n\n                    <div id=\"";
         // line 39
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal") + 200, "html", null, true);
         echo "\"  class=\"divkbira\" style=\"display:none;\">                             \n                        <h4 class=\"dealtitr\">";
         // line 40
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "Libelle"), "html", null, true);
         echo "</h4>\n                        <div class=\"imgdet\"><img src='";
         // line 41
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "Image"), "html", null, true);
         echo "' width=\"600px\" height=\"300px\"></div>\n                        <div class=\"dealdet\"><span class=\"discount_text\">A partir de</span> <span class=\"item_price\">";
         // line 42
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixPromotionnel"), "html", null, true);
         echo " dt</span> <span class=\"original_price\"> ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixInitial"), "html", null, true);
         echo " dt</span><br>\n                        La date du dépôt du deal est le ";
         // line 43
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "DateDebut"), "html", null, true);
         echo " <br>\n                        Profitez VITE, ce deal est valable jusqu'au <span class=\"dealdateexp\">";
         // line 44
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "DateFin"), "html", null, true);
         echo "</span><br>\n                        <b>Type :</b> ";
         // line 45
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "TypeDeal"), "html", null, true);
         echo "<br>\n                        <b> Catégorie:</b> ";
         // line 46
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "Categorie"), "html", null, true);
         echo "<br>\n                        Vous économisez ";
         // line 47
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixInitial") - $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixPromotionnel"), "html", null, true);
         echo " dt<br>\n                        <span class=\"remise\"> - ";
         // line 48
         echo twig_escape_filter($this->env, twig_round(100 / ($this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixInitial") / $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixPromotionnel")), 1, "floor"), "html", null, true);
         echo " %</span><br>\n                        </div>\n                            <div class=\"detdeal\"><b> Détail de l'offre:</b><br>";
         // line 50
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "Descriptif"), "html", null, true);
         echo "\n                    \n                                </br> <div class=\"dealre\"><a href=\"";
         // line 52
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("deal_areserver", array("iddeal" => $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal"), "iduser" => $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user"), "id"))), "html", null, true);
         echo "\"><img src=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/reservez.jpg"), "html", null, true);
         echo "\"></a></div> \n                          \n                        <div class=\"evaluation\">\n                            <form action=\"";
         // line 55
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("deal_evaluer", array("iddeal" => $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal"), "iduser" => $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user"), "id"))), "html", null, true);
         echo "\" method=\"POST\" >\n                                 \n                                <fieldset class=\"rating\">\n                                    <legend>Notez le deal:</legend>\n                                    <input type=\"radio\" id=\"star5\" name=\"rating\" value=\"5\" /><label for=\"star5\" title=\"Rocks!\">5 stars</label>\n                                    <input type=\"radio\" id=\"star4\" name=\"rating\" value=\"4\" /><label for=\"star4\" title=\"Pretty good\">4 stars</label>\n                                    <input type=\"radio\" id=\"star3\" name=\"rating\" value=\"3\" /><label for=\"star3\" title=\"Meh\">3 stars</label>\n                                    <input type=\"radio\" id=\"star2\" name=\"rating\" value=\"2\" /><label for=\"star2\" title=\"Kinda bad\">2 stars</label>\n                                    <input type=\"radio\" id=\"star1\" name=\"rating\" value=\"1\" /><label for=\"star1\" title=\"Sucks big time\">1 star</label>\n                                </fieldset>\n\n                                <br>\n                                <textarea name=\"commentaire\" rows=\"4\" cols=\"50\">\n                                    Commentez le deal\n                                </textarea><br>\n                                <center><input id=\"eval\" type=\"submit\" class=\"col-sm-2\" value=\"Evaluer\"></center>\n                                <div id=\"zone\"></div>\n                            </form>\n                        </div>\n                              </div>\n                ";
         // line 88
         echo "                    </div>\n\n                </div>\n\n\n\n                <script>\n                    // Lors du clique sur le boutton le div #d1 sera AFFICHER\n\n\n                    \$('#";
         // line 98
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal"), "html", null, true);
         echo "').click(function() {\n\n                        \$('.test').addClass(\"transparence\");\n                        \$('#";
         // line 101
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal") + 200, "html", null, true);
         echo "').fadeIn(\"slow\");\n                    });\n                    \$('#";
         // line 103
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal") + 200, "html", null, true);
         echo "').dblclick(function() {\n\n                        \$('#";
         // line 105
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal") + 200, "html", null, true);
         echo "').hide();\n                        \$('.test').removeClass(\"transparence\");\n                    });\n\n\n                    \$('#eval').click(function() {\n\n                        \$('.evaluation').hide(\"slow\");\n                    });\n\n\n\n\n\n\n                    </script>         \n                        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['deal'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 122
     echo "\n                </div>\n\n        </div>\n\n    </div>\n    ";
 }
 public function block_user_block($context, array $blocks = array())
 {
     $__internal_ac57054c5ab87a8941b97511250bb8ad7d66be137f238538dc34f85061ce6592 = $this->env->getExtension("native_profiler");
     $__internal_ac57054c5ab87a8941b97511250bb8ad7d66be137f238538dc34f85061ce6592->enter($__internal_ac57054c5ab87a8941b97511250bb8ad7d66be137f238538dc34f85061ce6592_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "user_block"));
     // line 2
     echo "    ";
     $context["items_per_column"] = $this->getAttribute(isset($context["admin_pool"]) ? $context["admin_pool"] : $this->getContext($context, "admin_pool"), "getOption", array(0 => "dropdown_number_groups_per_colums"), "method");
     // line 3
     echo "    ";
     $context["groups"] = array();
     // line 4
     echo "\n    ";
     // line 5
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["admin_pool"]) ? $context["admin_pool"] : $this->getContext($context, "admin_pool"), "dashboardgroups", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["group"]) {
         // line 6
         echo "        ";
         $context["display_group"] = false;
         // line 7
         echo "\n        ";
         // line 8
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["group"], "items", array()));
         foreach ($context['_seq'] as $context["_key"] => $context["admin"]) {
             if ((isset($context["display_group"]) ? $context["display_group"] : $this->getContext($context, "display_group")) == false) {
                 // line 9
                 echo "            ";
                 if ($this->getAttribute($context["admin"], "hasRoute", array(0 => "create"), "method") && $this->getAttribute($context["admin"], "isGranted", array(0 => "CREATE"), "method")) {
                     // line 10
                     echo "                ";
                     $context["display_group"] = true;
                     // line 11
                     echo "                ";
                     $context["groups"] = twig_array_merge(array(0 => $context["group"]), isset($context["groups"]) ? $context["groups"] : $this->getContext($context, "groups"));
                     // line 12
                     echo "            ";
                 }
                 // line 13
                 echo "        ";
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['admin'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 14
         echo "    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['group'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 15
     echo "\n    ";
     // line 16
     $context["column_count"] = twig_round(twig_length_filter($this->env, isset($context["groups"]) ? $context["groups"] : $this->getContext($context, "groups")) / (isset($context["items_per_column"]) ? $context["items_per_column"] : $this->getContext($context, "items_per_column")), 0, "ceil");
     // line 17
     echo "\n    <div class=\"dropdown-menu multi-column dropdown-add\"\n        ";
     // line 19
     if ((isset($context["column_count"]) ? $context["column_count"] : $this->getContext($context, "column_count")) > 1) {
         echo "style=\"width: ";
         echo twig_escape_filter($this->env, (isset($context["column_count"]) ? $context["column_count"] : $this->getContext($context, "column_count")) * 140, "html", null, true);
         echo "px;\"";
     }
     // line 20
     echo "            >\n        ";
     // line 21
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(twig_reverse_filter($this->env, isset($context["groups"]) ? $context["groups"] : $this->getContext($context, "groups")));
     $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["group"]) {
         // line 22
         echo "            ";
         $context["display"] = twig_test_empty($this->getAttribute($context["group"], "roles", array())) || $this->env->getExtension('security')->isGranted("ROLE_SONATA_ADMIN");
         // line 23
         echo "            ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["group"], "roles", array()));
         foreach ($context['_seq'] as $context["_key"] => $context["role"]) {
             if (!(isset($context["display"]) ? $context["display"] : $this->getContext($context, "display"))) {
                 // line 24
                 echo "                ";
                 $context["display"] = $this->env->getExtension('security')->isGranted($context["role"]);
                 // line 25
                 echo "            ";
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['role'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 26
         echo "\n            ";
         // line 27
         if (isset($context["display"]) ? $context["display"] : $this->getContext($context, "display")) {
             // line 28
             echo "\n                ";
             // line 29
             if ($this->getAttribute($context["loop"], "first", array()) || $this->getAttribute($context["loop"], "index0", array()) % (isset($context["items_per_column"]) ? $context["items_per_column"] : $this->getContext($context, "items_per_column")) == 0) {
                 // line 30
                 echo "                    ";
                 if ($this->getAttribute($context["loop"], "first", array())) {
                     // line 31
                     echo "                        <div class=\"container-fluid\">\n                            <div class=\"row\">\n                    ";
                 } else {
                     // line 34
                     echo "                        </ul>\n                    ";
                 }
                 // line 36
                 echo "\n                    <ul class=\"dropdown-menu";
                 // line 37
                 if ((isset($context["column_count"]) ? $context["column_count"] : $this->getContext($context, "column_count")) > 1) {
                     echo " col-md-";
                     echo twig_escape_filter($this->env, twig_round(12 / (isset($context["column_count"]) ? $context["column_count"] : $this->getContext($context, "column_count"))), "html", null, true);
                 }
                 echo "\">\n                ";
             }
             // line 39
             echo "\n                ";
             // line 40
             if ($this->getAttribute($context["loop"], "index0", array()) % (isset($context["items_per_column"]) ? $context["items_per_column"] : $this->getContext($context, "items_per_column")) != 0) {
                 // line 41
                 echo "                    <li role=\"presentation\" class=\"divider\"></li>\n                ";
             }
             // line 43
             echo "                <li role=\"presentation\" class=\"dropdown-header\">";
             echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["group"], "label", array()), array(), $this->getAttribute($context["group"], "label_catalogue", array())), "html", null, true);
             echo "</li>\n\n                ";
             // line 45
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["group"], "items", array()));
             foreach ($context['_seq'] as $context["_key"] => $context["admin"]) {
                 // line 46
                 echo "                    ";
                 if ($this->getAttribute($context["admin"], "hasRoute", array(0 => "create"), "method") && $this->getAttribute($context["admin"], "isGranted", array(0 => "CREATE"), "method")) {
                     // line 47
                     echo "                        <li role=\"presentation\">\n                            <a role=\"menuitem\" tabindex=\"-1\" href=\"";
                     // line 48
                     echo twig_escape_filter($this->env, $this->getAttribute($context["admin"], "generateUrl", array(0 => "create"), "method"), "html", null, true);
                     echo "\">";
                     echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["admin"], "label", array()), array(), $this->getAttribute($context["admin"], "translationdomain", array())), "html", null, true);
                     echo "</a>\n                        </li>\n                    ";
                 }
                 // line 51
                 echo "                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['admin'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 52
             echo "\n                ";
             // line 53
             if ($this->getAttribute($context["loop"], "last", array())) {
                 // line 54
                 echo "                            </ul>\n                        </div>\n                    </div>\n                ";
             }
             // line 58
             echo "\n            ";
         }
         // line 60
         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['group'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 61
     echo "    </div>\n";
     $__internal_ac57054c5ab87a8941b97511250bb8ad7d66be137f238538dc34f85061ce6592->leave($__internal_ac57054c5ab87a8941b97511250bb8ad7d66be137f238538dc34f85061ce6592_prof);
 }
 public function block_content($context, array $blocks = array())
 {
     $__internal_e8ba0ec1d913e62676a3a3ac20a3a213d4d78873ef3f4e981d9c1c1217f08fd9 = $this->env->getExtension("native_profiler");
     $__internal_e8ba0ec1d913e62676a3a3ac20a3a213d4d78873ef3f4e981d9c1c1217f08fd9->enter($__internal_e8ba0ec1d913e62676a3a3ac20a3a213d4d78873ef3f4e981d9c1c1217f08fd9_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "content"));
     // line 3
     echo "    <div class=\"post-wrapp\">\n   <article>\n    <h1>";
     // line 5
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "title", array()), "html", null, true);
     echo "</h1>\n       <div class=\"post_info\">\n           <span class=\"date\">Published on ";
     // line 7
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "createdAt", array()), "d/m/Y"), "html", null, true);
     echo "</span>\n           <span class=\"rate\">\n               ";
     // line 9
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(range(1, 5));
     foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
         // line 10
         echo "                   ";
         if ($context["i"] <= twig_round($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), "avgRate", array()))) {
             // line 11
             echo "                       <i class=\"fa fa-star\"></i>\n                   ";
         } else {
             // line 13
             echo "                       <i class=\"fa fa-star-o\"></i>\n                   ";
         }
         // line 15
         echo "               ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 16
     echo "           </span>\n       </div>\n    <img src=\"";
     // line 18
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "img", array()), "html", null, true);
     echo "\">\n    <div class=\"artic\">";
     // line 19
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "article", array()), "html", null, true);
     echo "</div>\n    </article>\n        <div class=\"tag_list\">\n        Tags:\n            ";
     // line 23
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "tags", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
         // line 24
         echo "                <a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("searchByTag", array("slug" => $this->getAttribute($context["tag"], "slug", array()))), "html", null, true);
         echo "\" class=\"tag_link\">\n                    ";
         // line 25
         echo twig_escape_filter($this->env, $this->getAttribute($context["tag"], "name", array()), "html", null, true);
         echo "\n                </a>\n            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 28
     echo "        </div>\n    <div class=\"comment_block\">\n        <h3>Comment this post:</h3>\n        ";
     // line 31
     $this->env->getExtension('form')->renderer->setTheme(isset($context["commentForm"]) ? $context["commentForm"] : $this->getContext($context, "commentForm"), array(0 => "bootstrap_3_layout.html.twig"));
     // line 32
     echo "        ";
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["commentForm"]) ? $context["commentForm"] : $this->getContext($context, "commentForm"), 'form');
     echo "\n        <h3>Comments:</h3>\n     <ul class=\"comments_list\">\n      ";
     // line 35
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["post"]) ? $context["post"] : $this->getContext($context, "post"), 0, array(), "array"), "comments", 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["comment"]) {
         // line 36
         echo "       <li ";
         if ($this->getAttribute($context["loop"], "index", array()) % 2 == 1) {
             echo "class=\"odd\"";
         }
         echo ">\n           <span class=\"name\"><b>";
         // line 37
         echo twig_escape_filter($this->env, $this->getAttribute($context["comment"], "author", array()), "html", null, true);
         echo ":</b></span>\n\n            <p>\n            ";
         // line 40
         echo twig_escape_filter($this->env, $this->getAttribute($context["comment"], "text", array()), "html", null, true);
         echo "\n            </p>\n           <div class=\"post_info\">\n               <span class=\"date\">Published: ";
         // line 43
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["comment"], "createdAt", array()), "d/m/Y"), "html", null, true);
         echo "</span>\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['comment'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 47
     echo "      </ul>\n\n    </div>\n    </div>\n";
     $__internal_e8ba0ec1d913e62676a3a3ac20a3a213d4d78873ef3f4e981d9c1c1217f08fd9->leave($__internal_e8ba0ec1d913e62676a3a3ac20a3a213d4d78873ef3f4e981d9c1c1217f08fd9_prof);
 }
    public function block_content($context, array $blocks = array())
    {
        // line 19
        $this->displayParentBlock("content", $context, $blocks);
        echo "
<div class=\"container page-content fg-dark\" style=\"padding: 0.5rem;margin-bottom: 2rem;\">
<h2>
\t<ul class=\"t-menu horizontal compact\" style=\"box-shadow: 0px 0px 20px 0px transparent ! important;\">
\t\t\t<li style=\"height: 3rem; width: 3rem;\" class=\"\"><a style=\"width: 2.9rem; height: 2.9rem;\" href=\"#\" class=\"dropdown-toggle\"><span style=\"width: 1rem;\" class=\"icon mif-sort-asc mif-3x\"></span></a>
\t\t    \t<ul style=\"display: none;\" class=\"t-menu compact\" data-role=\"dropdown\">
\t\t        \t<li><a style=\"width: 3rem; height: 3rem;\" onclick=\"getLocation();\"><span class=\"icon mif-meter\"></span></a></li>
\t\t            <li><a style=\"width: 3rem; height: 3rem;\" onclick=\"getRated();\"><span class=\"icon mif-star-full\"></span></a></li>
\t\t        </ul>
\t\t    </li>
\t</ul>
<span style=\"margin-left: 2rem;\"> ";
        // line 30
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["category"]) ? $context["category"] : $this->getContext($context, "category")), "name", array()), "html", null, true);
        echo "</span>
</h2><br>
";
        // line 32
        $context["counter"] = 0;
        // line 33
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["ads"]) ? $context["ads"] : $this->getContext($context, "ads")));
        foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
            // line 34
            echo "\t<div class=\"cell\">
\t\t<div class=\"listview\">
\t    \t<div style=\"border: 1px solid #EAEAEA;width: 100%;height: auto;position: relative;display: block;cursor: pointer;
color: inherit;margin: 0px 0px 10px;\"href=\"#\" class=\"list\">
\t         <a style=\"margin-left: -3rem;padding: 10px 10px 10px 0rem;position: relative;display: block;color: inherit;\" 
\t         class=\"list-content\" href=\"";
            // line 39
            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("show_ad", array("idAd" => $this->getAttribute($this->getAttribute($context["field"], 0, array()), "id", array()), "idCity" => $this->getAttribute((isset($context["location"]) ? $context["location"] : $this->getContext($context, "location")), "id", array()))), "html", null, true);
            echo "\">
\t            ";
            // line 40
            if (($this->getAttribute($this->getAttribute($context["field"], 0, array()), "images", array()) == "noImages.jpg")) {
                // line 41
                echo "\t            \t<img style=\"margin-left: 1rem;display: block;width: 56px;height: 56px;font-size: 40px;float: left;margin-right: 10px;\" src=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("images/noImages.jpg"), "html", null, true);
                echo "\" class=\"icon\">
\t\t\t\t";
            } else {
                // line 43
                echo "\t\t\t\t    <img style=\"margin-left: 1rem;display: block;width: 56px;height: 56px;font-size: 40px;float: left;margin-right: 10px;\" src=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("images/ids/"), "html", null, true);
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["field"], 0, array()), "id", array()), "html", null, true);
                echo "/";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["field"], 0, array()), "images", array()), "html", null, true);
                echo "\" class=\"icon\">
\t\t\t\t";
            }
            // line 45
            echo "\t         <div class=\"data\">
\t         \t<span style=\"font-size: 14px;line-height: 16px;margin: 0px;padding: 0px;display: block;overflow: hidden;text-overflow: ellipsis;\" class=\"list-title\"><b>";
            // line 46
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["field"], 0, array()), "adHeadline", array()));
            echo "</b></b></span>
\t         \t<span style=\"font-size: 11px;line-height: 14px;margin: 0px;padding: 0px;display: block;overflow: hidden;text-overflow: ellipsis;\" class=\"list-remark\">";
            // line 47
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["field"], 0, array()), "adText", array()));
            echo "&nbsp</span>
\t         \t
\t         \t<span class='rating small'data-score-title='Valoracion : ' data-role='rating' data-static='true'
        \t\t\tdata-size='small' data-value='";
            // line 50
            if (twig_test_empty($this->getAttribute($this->getAttribute($this->getAttribute($context["field"], 1, array()), 0, array()), "rate", array()))) {
                // line 51
                echo "\t\t\t\t\t\t\t\t0
\t\t\t\t\t\t\t";
            } else {
                // line 53
                echo "\t\t\t\t\t\t\t\t";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], 1, array()), 0, array()), "rate", array()));
                echo "
\t\t\t\t\t\t\t";
            }
            // line 55
            echo "\t\t        \t\t\t' data-on-rate='doNothing'>
        \t\t</span>
        \t\t<span> <small><span style=\"font-size: 0.6rem;\" class=\"mif-users\"><small>(";
            // line 57
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["field"], 1, array()), 0, array()), "score", array()));
            echo ")</small></span></span>
\t         </div>
\t         \t";
            // line 59
            if ($this->getAttribute($context["field"], "distance", array(), "any", true, true)) {
                // line 60
                echo "        \t\t   <span style=\"font-size: 12px;line-height: 14px;margin: 0px 0px 0px 1rem;padding: 0px;display: block;overflow: hidden;
        \t\t   text-overflow: ellipsis;\" class=\"list-remark\"><b>
        \t\t   ";
                // line 62
                if (($this->getAttribute($context["field"], "distance", array()) >= 1000)) {
                    // line 63
                    echo "        \t\t        ";
                    $context["distance"] = ($this->getAttribute($context["field"], "distance", array()) / 1000);
                    // line 64
                    echo "        \t\t   \t\t";
                    echo twig_escape_filter($this->env, twig_round((isset($context["distance"]) ? $context["distance"] : $this->getContext($context, "distance")), 1, "floor"), "html", null, true);
                    echo "</b> Kilometros</span>
        \t\t   ";
                } else {
                    // line 66
                    echo "        \t\t   \t\t";
                    echo twig_escape_filter($this->env, twig_round($this->getAttribute($context["field"], "distance", array()), 1, "floor"), "html", null, true);
                    echo "</b> Metros</span>   
        \t\t   ";
                }
                // line 68
                echo "\t\t\t\t";
            }
            // line 69
            echo "\t        </a>
\t      </div>
\t\t</div>
\t</div>
";
            // line 73
            $context["counter"] = ((isset($context["counter"]) ? $context["counter"] : $this->getContext($context, "counter")) + 1);
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 75
        echo "<div style=\"margin-bottom: 2rem;\">
\t";
        // line 76
        if (((isset($context["range"]) ? $context["range"] : $this->getContext($context, "range")) >= 10)) {
            // line 77
            echo "\t";
            $context["minrange"] = ((isset($context["range"]) ? $context["range"] : $this->getContext($context, "range")) - 10);
            // line 78
            echo "\t\t";
            if (array_key_exists("latitude", $context)) {
                // line 79
                echo "\t\t<a href=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("show_category_geolocation", array("idCategory" => $this->getAttribute((isset($context["category"]) ? $context["category"] : $this->getContext($context, "category")), "id", array()), "idCity" => $this->getAttribute((isset($context["location"]) ? $context["location"] : $this->getContext($context, "location")), "id", array()), "latitude" => (isset($context["latitude"]) ? $context["latitude"] : $this->getContext($context, "latitude")), "longitude" => (isset($context["longitude"]) ? $context["longitude"] : $this->getContext($context, "longitude")), "range" => (isset($context["minrange"]) ? $context["minrange"] : $this->getContext($context, "minrange")))), "html", null, true);
                echo "\" class=\"button\"><span class=\"mif-chevron-left\"></span> Atras</a>
\t\t";
            } elseif (            // line 80
array_key_exists("rated", $context)) {
                // line 81
                echo "\t\t<a href=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("show_category_rated", array("idCategory" => $this->getAttribute((isset($context["category"]) ? $context["category"] : $this->getContext($context, "category")), "id", array()), "idCity" => $this->getAttribute((isset($context["location"]) ? $context["location"] : $this->getContext($context, "location")), "id", array()), "range" => (isset($context["minrange"]) ? $context["minrange"] : $this->getContext($context, "minrange")))), "html", null, true);
                echo "\" class=\"button\"><span class=\"mif-chevron-left\"></span> Atras</a>
\t\t";
            } else {
                // line 83
                echo "\t\t<a href=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("show_category", array("idCategory" => $this->getAttribute((isset($context["category"]) ? $context["category"] : $this->getContext($context, "category")), "id", array()), "idCity" => $this->getAttribute((isset($context["location"]) ? $context["location"] : $this->getContext($context, "location")), "id", array()), "range" => (isset($context["minrange"]) ? $context["minrange"] : $this->getContext($context, "minrange")))), "html", null, true);
                echo "\" class=\"button\"><span class=\"mif-chevron-left\"></span> Atras</a>
\t\t";
            }
            // line 85
            echo "\t";
        }
        // line 86
        echo "\t";
        if (((isset($context["counter"]) ? $context["counter"] : $this->getContext($context, "counter")) >= 10)) {
            // line 87
            echo "\t";
            $context["maxrange"] = ((isset($context["range"]) ? $context["range"] : $this->getContext($context, "range")) + 10);
            // line 88
            echo "\t\t";
            if (array_key_exists("latitude", $context)) {
                // line 89
                echo "\t\t<a href=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("show_category_geolocation", array("idCategory" => $this->getAttribute((isset($context["category"]) ? $context["category"] : $this->getContext($context, "category")), "id", array()), "idCity" => $this->getAttribute((isset($context["location"]) ? $context["location"] : $this->getContext($context, "location")), "id", array()), "latitude" => (isset($context["latitude"]) ? $context["latitude"] : $this->getContext($context, "latitude")), "longitude" => (isset($context["longitude"]) ? $context["longitude"] : $this->getContext($context, "longitude")), "range" => (isset($context["maxrange"]) ? $context["maxrange"] : $this->getContext($context, "maxrange")))), "html", null, true);
                echo "\" class=\"button success\"></span> Siguiente <span class=\"mif-chevron-right\"></a>
\t\t";
            } elseif (            // line 90
array_key_exists("rated", $context)) {
                // line 91
                echo "\t\t<a href=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("show_category_rated", array("idCategory" => $this->getAttribute((isset($context["category"]) ? $context["category"] : $this->getContext($context, "category")), "id", array()), "idCity" => $this->getAttribute((isset($context["location"]) ? $context["location"] : $this->getContext($context, "location")), "id", array()), "range" => (isset($context["maxrange"]) ? $context["maxrange"] : $this->getContext($context, "maxrange")))), "html", null, true);
                echo "\" class=\"button success\"></span> Siguiente <span class=\"mif-chevron-right\"></a>
\t\t";
            } else {
                // line 93
                echo "\t\t<a href=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("show_category", array("idCategory" => $this->getAttribute((isset($context["category"]) ? $context["category"] : $this->getContext($context, "category")), "id", array()), "idCity" => $this->getAttribute((isset($context["location"]) ? $context["location"] : $this->getContext($context, "location")), "id", array()), "range" => (isset($context["maxrange"]) ? $context["maxrange"] : $this->getContext($context, "maxrange")))), "html", null, true);
                echo "\" class=\"button success\"></span> Siguiente <span class=\"mif-chevron-right\"></a>
\t\t";
            }
            // line 95
            echo "\t";
        }
        // line 96
        echo "</div>
<br>
</div>
</div>
";
    }
 public function block_contenido($context, array $blocks = array())
 {
     // line 3
     echo "<link href=\"";
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("css/modal.css"), "html", null, true);
     echo "\" rel=\"stylesheet\" media=\"screen\">\n<script src=\"";
     // line 4
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/mootools2.js"), "html", null, true);
     echo "\"></script>\n<script src=\"";
     // line 5
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/calendar.js"), "html", null, true);
     echo "\"></script>\n<link href=\"";
     // line 6
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("css/calendar.css"), "html", null, true);
     echo "\" rel=\"stylesheet\" media=\"screen\">\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('.addEtapa').click(function(){\n        var etapa = \$(this).data(\"etapa\");\n        \$(\"#valorProyecto\").val( etapa );\n        \$('#popup').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close').click(function(){\n    \$('#popup').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('.addEtapaE').click(function(){\n        var etapa = \$(this).data(\"etapa\");\n        \$(\"#valorProyecto1\").val( etapa );\n        \$('#popup1').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close1').click(function(){\n    \$('#popup1').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('.addEtapaE').click(function(){\n        var etapa = \$(this).data(\"etapa\");\n        \$(\"#valorProyecto1\").val( etapa );\n        \$('#popup1').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close1').click(function(){\n    \$('#popup1').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('.addExcepcionPlazo').click(function(){\n        var proyecto = \$(this).data(\"proyecto\");\n        \$(\"#valorProyectoEx\").val( proyecto );\n        \$('#popup2').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close2').click(function(){\n    \$('#popup2').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('.addExcepcionEtapa').click(function(){\n        var etapa = \$(this).data(\"etapa\");\n        \$(\"#valorEtapaEx\").val( etapa );\n        \$('#popup3').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close3').click(function(){\n    \$('#popup3').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script language=\"javascript\">\n    \$(document).ready(function(){ \n        \$('#agregaritem').on('click',function(e){\n            e.preventDefault();\n            \$( \"#formAdd\").slideToggle( \"slow\" );\n        });\n    });\n</script>\n    ";
     // line 105
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "session"), "flashbag"), "get", array(0 => "notice"), "method"));
     foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
         // line 106
         echo "        <div class=\"mensajeAlerta\">\n        <img src=\"";
         // line 107
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/bien.png"), "html", null, true);
         echo "\" class=\"handCloser\">\n        <div>Éxito!!</div>\n        El registro ha sido almacenado!!\n        <div class=\"infoAdic\">\n        (Para ocultar esta ventana presionar el ticket verde)</div>\n        </div>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 114
     echo "    <div class=\"agregarItem\">\n    <div>\n    <h4>Agregar Proyecto</h4>\n    <a href=\"#\" id=\"agregaritem\" class=\"toggle linkMostrar\">Mostrar/Ocultar</a>\n    <div id=\"formAdd\" style=\"display:none\">\n        <div class=\"addUbication\">\n        <table>\n            <form action=\"";
     // line 121
     echo $this->env->getExtension('routing')->getPath("proyecto");
     echo "\" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), 'enctype');
     echo " novalidate>\n            ";
     // line 122
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), 'form_start');
     echo "\n            <tr>\n                <td>";
     // line 124
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "nombreProyecto"), 'label', array("label_attr" => array("class" => "etiqueta")));
     echo "</td>\n                <td>";
     // line 125
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "nombreProyecto"), 'widget', array("value" => $this->getAttribute(isset($context["modificar"]) ? $context["modificar"] : $this->getContext($context, "modificar"), "nombreProyecto")));
     echo "</td>\n                <td>";
     // line 126
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "nombreProyecto"), 'errors');
     echo "</td>\n            </tr>\n            <tr>\n                <td>";
     // line 129
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "descripcion"), 'label', array("label_attr" => array("class" => "etiqueta", "cols" => "50", "rows" => "50")));
     echo "</td>\n                <td>";
     // line 130
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "descripcion"), 'widget', array("value" => $this->getAttribute(isset($context["modificar"]) ? $context["modificar"] : $this->getContext($context, "modificar"), "descripcion")));
     echo "</td>\n                <td>";
     // line 131
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "descripcion"), 'errors');
     echo "</td> \n            </tr>\n            <tr>\n                <td>";
     // line 134
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "horasProgramadas"), 'label', array("label_attr" => array("class" => "etiqueta", "cols" => "50", "rows" => "50")));
     echo "</td>\n                <td>";
     // line 135
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "horasProgramadas"), 'widget', array("value" => $this->getAttribute(isset($context["modificar"]) ? $context["modificar"] : $this->getContext($context, "modificar"), "descripcion")));
     echo "</td>\n                <td>";
     // line 136
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "horasProgramadas"), 'errors');
     echo "</td> \n            </tr>\n            <tr>\n                <td class=\"etiqueta\">Fecha de inicio</td>\n                <td><input type=\"text\" class=\"DatePicker\" name=\"fechaInicio\" type=\"text\"></td> \n            </tr>\n            <tr>\n                <td class=\"etiqueta\">Fecha de término</td>\n                <td><input class=\"DatePicker\" name=\"fechaFin\"></td>\n            </tr>\n            <tr class=\"filaFormulario\">\n                <td><input type=\"submit\" name=\"salvarProyecto\" class=\"btnAdd\" value=\"Salvar Proyecto\"></td>\n                <td></td>\n            </tr> \n            ";
     // line 150
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), 'form_end');
     echo "\n            </form>  \n        </table>\n    </div> \n    </div>\n    </div>\n    </div>  \n<div class=\"proyecto\">\n    <table>\n        <tr class=\"trHeader\">\n            <td class=\"headerTable\">Nombre</td>\n            <td class=\"headerTable\">Barra</td>\n            <td class=\"headerTable\">Porcentaje</td>\n            <td class=\"headerTable\">Fecha de Inicio</td>\n            <td class=\"headerTable\">Fecha de término</td>\n            <td class=\"headerTable\">Cliente</td>\n            <td></td>\n        </tr>\n        ";
     // line 168
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["listar"]) ? $context["listar"] : $this->getContext($context, "listar"));
     foreach ($context['_seq'] as $context["_key"] => $context["listar"]) {
         // line 169
         echo "        <tr class=\"trContent\">\n            <td>";
         // line 170
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["listar"]) ? $context["listar"] : $this->getContext($context, "listar"), "nombreProyecto"), "html", null, true);
         echo "</td>\n            ";
         // line 171
         if ($this->getAttribute(isset($context["listar"]) ? $context["listar"] : $this->getContext($context, "listar"), "avance") == 0 || $this->getAttribute(isset($context["listar"]) ? $context["listar"] : $this->getContext($context, "listar"), "horasProgramadas") == 0) {
             // line 172
             echo "                <td class=\"second\"><div class=\"progress\" style=\"width: 100px; height: 20px; margin-top: 5px; margin-bottom: 5px; padding-bottom: 0\">\n                    <div class=\"bar bar-success\" style=\"width: 0%; background-color: #B4F7A9; height: 100%; margin-bottom: 0 !important; padding-bottom: 0 !important;\"></div>\n                </div></td>\n                <td>0%</td>\n                ";
         } else {
             // line 177
             echo "                ";
             $context["avance"] = $this->getAttribute(isset($context["listar"]) ? $context["listar"] : $this->getContext($context, "listar"), "avance") * 100 / $this->getAttribute(isset($context["listar"]) ? $context["listar"] : $this->getContext($context, "listar"), "horasProgramadas");
             // line 178
             echo "                <td class=\"second\"><div class=\"progress\" style=\"width: 100px; height: 20px; margin-top: 5px; margin-bottom: 5px; padding-bottom: 0\">\n                    <div class=\"bar bar-success\" style=\"width: ";
             // line 179
             echo twig_escape_filter($this->env, isset($context["avance"]) ? $context["avance"] : $this->getContext($context, "avance"), "html", null, true);
             echo "%; background-color: #B4F7A9; height: 100%; margin-bottom: 0 !important; padding-bottom: 0 !important;\"></div>\n                </div>\n            </td>\n                <td>\n                    ";
             // line 183
             echo twig_escape_filter($this->env, twig_round(isset($context["avance"]) ? $context["avance"] : $this->getContext($context, "avance"), 2, "floor"), "html", null, true);
             echo "%\n                </td>\n\n                ";
         }
         // line 187
         echo "            <td></td>\n            <td>";
         // line 188
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["listar"]) ? $context["listar"] : $this->getContext($context, "listar"), "fechaInicio"), "d-m-Y"), "html", null, true);
         echo "</td>\n            <td>";
         // line 189
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["listar"]) ? $context["listar"] : $this->getContext($context, "listar"), "fechaFin"), "d-m-Y"), "html", null, true);
         echo "</td>\n            ";
         // line 190
         if ($this->getAttribute(isset($context["listar"]) ? $context["listar"] : $this->getContext($context, "listar"), "clientes") != null) {
             // line 191
             echo "            <td>";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["listar"]) ? $context["listar"] : $this->getContext($context, "listar"), "clientes"), "nombre"), "html", null, true);
             echo "</td>\n            ";
         } else {
             // line 193
             echo "            <td></td>\n            ";
         }
         // line 195
         echo "            <td><a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("gproyecto", array("id" => $this->getAttribute(isset($context["listar"]) ? $context["listar"] : $this->getContext($context, "listar"), "id"))), "html", null, true);
         echo "\">Administrar</a></td>\n            \n        </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listar'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 199
     echo "    </table>\n    \n</div>\n<div id=\"popup\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Agregar Etapa a Proyecto</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close\"><img src=\"";
     // line 205
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 206
     echo $this->env->getExtension('routing')->getPath("proyecto");
     echo "\" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formEtapa"]) ? $context["formEtapa"] : $this->getContext($context, "formEtapa"), 'enctype');
     echo " novalidate>\n            <table>\n                ";
     // line 208
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formEtapa"]) ? $context["formEtapa"] : $this->getContext($context, "formEtapa"), 'form_start');
     echo "\n                <tr>\n                    <td>";
     // line 210
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEtapa"]) ? $context["formEtapa"] : $this->getContext($context, "formEtapa"), "nombre"), 'label');
     echo "</td>\n                    <td>";
     // line 211
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEtapa"]) ? $context["formEtapa"] : $this->getContext($context, "formEtapa"), "nombre"), 'widget');
     echo "</td>\n                    <td>";
     // line 212
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEtapa"]) ? $context["formEtapa"] : $this->getContext($context, "formEtapa"), "nombre"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td class=\"etiqueta\">Fecha de inicio</td>\n                    <td><input class=\"DatePicker\" name=\"fechaInicio\"></td> \n                </tr>\n                <tr>\n                    <td class=\"etiqueta\">Fecha de término</td>\n                    <td><input class=\"DatePicker\" name=\"fechaterminoet\"></td> \n                </tr>\n                <tr>\n                    <td><input type=\"submit\" class=\"btnAdd\" name=\"salvarEtapa\" value=\"Agregar Etapa\"></td>\n                    <td><input type=\"hidden\" id=\"valorProyecto\" name=\"valorProyecto1\" value=\"\"></td>\n                </tr>\n                ";
     // line 226
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formEtapa"]) ? $context["formEtapa"] : $this->getContext($context, "formEtapa"), 'form_end');
     echo "\n            </table>\n        </form>\n    </div>\n</div>\n<div id=\"popup1\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Agregar Etapa existente a Proyecto</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close1\"><img src=\"";
     // line 234
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 235
     echo $this->env->getExtension('routing')->getPath("proyecto");
     echo "\" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formEtapaE"]) ? $context["formEtapaE"] : $this->getContext($context, "formEtapaE"), 'enctype');
     echo " novalidate>\n            <table>\n                ";
     // line 237
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formEtapaE"]) ? $context["formEtapaE"] : $this->getContext($context, "formEtapaE"), 'form_start');
     echo "\n                <tr>\n                    <td>";
     // line 239
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEtapaE"]) ? $context["formEtapaE"] : $this->getContext($context, "formEtapaE"), "nombre"), 'label');
     echo "</td>\n                    <td>";
     // line 240
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEtapaE"]) ? $context["formEtapaE"] : $this->getContext($context, "formEtapaE"), "nombre"), 'widget', array("attr" => array("class" => "chosen-select largo-box")));
     echo "</td>\n                    <td>";
     // line 241
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEtapaE"]) ? $context["formEtapaE"] : $this->getContext($context, "formEtapaE"), "nombre"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td>Fecha de inicio</td>\n                    <td><input class=\"DatePicker\" name=\"fechaInicio\"></td> \n                </tr>\n                <tr>\n                    <td>Fecha de término</td>\n                    <td><input class=\"DatePicker\" name=\"fechaterminoet\"></td> \n                </tr>\n                <tr>\n                    <td><input type=\"submit\" class=\"btnAdd\" name=\"salvarEtapaE\" value=\"Agregar Etapa\"></td>\n                    <td><input type=\"text\" id=\"valorProyecto1\" name=\"valorProyecto\" value=\"\"></td>\n                </tr>\n                ";
     // line 255
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formEtapa"]) ? $context["formEtapa"] : $this->getContext($context, "formEtapa"), 'form_end');
     echo "\n            </table>\n        </form>\n    </div>\n</div>\n<div id=\"popup2\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Agregar Excepción a Proyecto</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close2\"><img src=\"";
     // line 263
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 264
     echo $this->env->getExtension('routing')->getPath("proyecto");
     echo "\" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), 'enctype');
     echo " novalidate>\n            <table>\n                ";
     // line 266
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), 'form_start');
     echo "\n                <tr>\n                    <td>Nueva Fecha de término</td>\n                    <td><input class=\"DatePicker\" name=\"fechaExPro\"></td>\n                </tr>\n                <tr>\n                    <td>";
     // line 272
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "horas"), 'label');
     echo "</td>\n                    <td>";
     // line 273
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "horas"), 'widget', array("attr" => array("class" => "largo-box")));
     echo "</td>\n                    <td>";
     // line 274
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "horas"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td>";
     // line 277
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "accion"), 'label');
     echo "</td>\n                    <td>";
     // line 278
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "accion"), 'widget', array("attr" => array("class" => "chosen-select largo-box")));
     echo "</td>\n                </tr>\n                <tr>\n                    <td>";
     // line 281
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "descripcion"), 'label');
     echo "</td>\n                    <td>";
     // line 282
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "descripcion"), 'widget', array("attr" => array("class" => "largo-box")));
     echo "</td>\n                    <td>";
     // line 283
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "descripcion"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td><input type=\"submit\" class=\"btnAdd\" name=\"salvarExcepcionP\" value=\"Agregar Etapa\"></td>\n                </tr>\n                <tr>\n                    <td><input type=\"hidden\" id=\"valorProyectoEx\" name=\"valorProyectoEx\" value=\"\"></td>\n                </tr>\n                ";
     // line 291
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), 'form_end');
     echo "\n            </table>\n        </form>\n    </div>\n</div>\n<div id=\"popup3\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Agregar Excepción a Etapa</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close3\"><img src=\"";
     // line 299
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 300
     echo $this->env->getExtension('routing')->getPath("proyecto");
     echo "\" method=\"post\"  novalidate>\n            <table>\n                <tr>\n                    <td>Nueva Fecha de Inicio</td>\n                    <td><input class=\"DatePicker\" name=\"fechaInicioEtapa\"></td>\n                </tr>\n                <tr>\n                    <td>Nueva Fecha de término</td>\n                    <td><input class=\"DatePicker\" name=\"fechaTerminoEtapa\"></td>\n                </tr>\n                <tr>\n                    <td>Motivo de modificación</td>\n                    <td><input type=\"text\" name=\"descripcion\"></td>                    \n                </tr>\n                <tr>\n                    <td><input type=\"submit\" class=\"btnAdd\" name=\"salvarExcepcionE\" value=\"Salvar Excepción\"></td>\n                </tr>\n                <tr>\n                    <td><input type=\"text\" id=\"valorEtapaEx\" name=\"valorEtapaEx\" value=\"\"></td>\n                </tr>\n            </table>\n        </form>\n    </div>\n</div>\n<script>\n    \$\$('input.DatePicker').each( function(el){\n    new DatePicker(el);\n});\n</script>\n";
 }
 public function block_listing_content($context, array $blocks = array())
 {
     // line 72
     echo "        <td class=\"excerpt ";
     if (!(isset($context["compact"]) ? $context["compact"] : null)) {
         echo "large";
     }
     echo "\">\n            ";
     // line 73
     $context["title"] = $this->getAttribute(isset($context["content"]) ? $context["content"] : null, "getTitle", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["content"]) ? $context["content"] : null, "getTitle", array()), "<em>(" . $this->env->getExtension('Bolt')->trans("no title …") . ")</em>") : "<em>(" . $this->env->getExtension('Bolt')->trans("no title …") . ")</em>";
     // line 74
     echo "            <span>\n                <strong class=\"visible-xs\">№ ";
     // line 75
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["content"]) ? $context["content"] : null, "id", array()), "html", null, true);
     echo ". </strong>\n                <strong>\n                    ";
     // line 77
     if (isset($context["modifiable"]) ? $context["modifiable"] : null) {
         // line 78
         echo "                        <a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("editcontent", array("contenttypeslug" => $this->getAttribute($this->getAttribute(isset($context["content"]) ? $context["content"] : null, "contenttype", array()), "slug", array()), "id" => $this->getAttribute(isset($context["content"]) ? $context["content"] : null, "id", array()))), "html", null, true);
         echo "\" title=\"Slug: ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["content"]) ? $context["content"] : null, "slug", array()), "html", null, true);
         echo "\">\n                            ";
         // line 79
         echo twig_escape_filter($this->env, isset($context["title"]) ? $context["title"] : null, "html", null, true);
         echo "\n                        </a>\n                    ";
     } else {
         // line 82
         echo "                        <strong>\n                            ";
         // line 83
         echo twig_escape_filter($this->env, isset($context["title"]) ? $context["title"] : null, "html", null, true);
         echo "\n                        </strong>\n                     ";
     }
     // line 86
     echo "                </strong>\n                ";
     // line 87
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["content"]) ? $context["content"] : null, "excerpt", array(0 => (isset($context["excerptlength"]) ? $context["excerptlength"] : null) - twig_length_filter($this->env, isset($context["title"]) ? $context["title"] : null)), "method"), "html", null, true);
     echo "\n            </span>\n        </td>\n        <td class=\"listthumb\">\n            ";
     // line 91
     if (!twig_test_empty($this->getAttribute(isset($context["content"]) ? $context["content"] : null, "getImage", array()))) {
         // line 92
         echo "                ";
         // line 93
         echo "                ";
         // line 94
         echo "                ";
         $context["thumb_height"] = twig_round((isset($context["thumbsize"]) ? $context["thumbsize"] : null) * 0.75);
         // line 95
         echo "                ";
         $context["thumb_small"] = $this->env->getExtension('Bolt')->thumbnail($this->getAttribute(isset($context["content"]) ? $context["content"] : null, "getImage", array()), isset($context["thumbsize"]) ? $context["thumbsize"] : null, isset($context["thumb_height"]) ? $context["thumb_height"] : null, "c");
         // line 96
         echo "                ";
         $context["thumb_large"] = $this->env->getExtension('Bolt')->thumbnail($this->getAttribute(isset($context["content"]) ? $context["content"] : null, "getImage", array()), 1000, 800, "r");
         // line 97
         echo "                ";
         $context["thumb_title"] = $this->env->getExtension('Bolt')->trans("Image") . ": " . $this->getAttribute(isset($context["content"]) ? $context["content"] : null, "getImage", array());
         // line 98
         echo "                <a href=\"";
         echo twig_escape_filter($this->env, isset($context["thumb_large"]) ? $context["thumb_large"] : null, "html", null, true);
         echo "\" class=\"magnific\" title=\"";
         echo twig_escape_filter($this->env, isset($context["thumb_title"]) ? $context["thumb_title"] : null, "html", null, true);
         echo "\">\n                    <img src=\"";
         // line 99
         echo twig_escape_filter($this->env, isset($context["thumb_small"]) ? $context["thumb_small"] : null, "html", null, true);
         echo "\" width=\"";
         echo twig_escape_filter($this->env, isset($context["thumbsize"]) ? $context["thumbsize"] : null, "html", null, true);
         echo "\" height=\"";
         echo twig_escape_filter($this->env, isset($context["thumb_height"]) ? $context["thumb_height"] : null, "html", null, true);
         echo "\" alt=\"";
         echo $this->env->getExtension('Bolt')->trans("Thumbnail");
         echo "\">\n                </a>\n            ";
     }
     // line 102
     echo "        </td>\n    ";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $this->loadTemplate("_header.html", "dashboard/index.html", 1)->display($context);
     // line 2
     echo "\n<div class=\"container\">\n    <div class=\"row\">\n        <div class=\"col-sm-12\">\n            <h3>Volumes</h3>\n            \n            <br />\n        </div>\n    </div>\n    \n    <div class=\"row\">\n        ";
     // line 13
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["volumes"]) ? $context["volumes"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["volume"]) {
         // line 14
         echo "        <div class=\"col-sm-3\">\n            <div class=\"panel panel-default\">\n                <div class=\"panel-heading\">\n                    <h5>\n                        <i class=\"fa fa-hdd-o\"></i>\n                        ";
         // line 19
         echo twig_escape_filter($this->env, $this->getAttribute($context["volume"], "name", array()), "html", null, true);
         echo "\n                    </h5>\n                </div>\n                \n                <div class=\"panel-body\">\n                    Diskspace <strong>";
         // line 24
         echo twig_escape_filter($this->env, $this->getAttribute($context["volume"], "size", array()) / 1000 / 1000, "html", null, true);
         echo " GB</strong>\n                    \n                    <a href=\"/volume.php?action=details&id=";
         // line 26
         echo twig_escape_filter($this->env, $this->getAttribute($context["volume"], "id", array()), "html", null, true);
         echo "\" class=\"btn btn-default btn-fab btn-fab-mini pull-right\">\n                        <i class=\"fa fa-expand material-icons\"></i>\n                    </a>\n                </div>\n            </div>\n        </div>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['volume'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 33
     echo "    </div>\n    \n    <br />\n    \n    <div class=\"row\">\n        <div class=\"col-sm-12\">\n            <h3>Torrents</h3>\n            \n            <br />\n            \n            ";
     // line 43
     if (isset($context["alertEnabled"]) ? $context["alertEnabled"] : null) {
         // line 44
         echo "            <div class=\"alert alert-success\">\n                <button type=\"button\" class=\"close\" onclick=\"document.location.href='/'\">&times;</button>\n                <i class=\"fa fa-check\" style=\"font-size:22px;\"></i>\n\n                &nbsp;\n\n                ";
         // line 50
         echo twig_escape_filter($this->env, isset($context["alertText"]) ? $context["alertText"] : null, "html", null, true);
         echo "\n            </div>\n            ";
     }
     // line 53
     echo "        </div>\n    </div>\n    \n    <div class=\"row\">\n        ";
     // line 57
     if (twig_length_filter($this->env, isset($context["torrents"]) ? $context["torrents"] : null) == 0) {
         // line 58
         echo "        <div class=\"col-sm-12\"><strong>No torrents</strong> <br /></div>\n        ";
     } else {
         // line 60
         echo "        <div class=\"list-group list-sm\">\n        ";
         // line 61
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["torrents"]) ? $context["torrents"] : 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["torrent"]) {
             // line 62
             echo "            <div class=\"list-group-item\">\n                <div class=\"row-action-primary\">\n                    <i class=\"material-icons fa fa-download\"></i>\n                </div>\n                \n                <div class=\"row-content\">\n                    <div class=\"least-content\">\n                        ";
             // line 69
             if ($this->getAttribute($context["torrent"], "total_size", array()) > 500000000) {
                 // line 70
                 echo "                        ";
                 echo twig_escape_filter($this->env, twig_round($this->getAttribute($context["torrent"], "total_size", array()) / 1024 / 1024 / 1024, 1), "html", null, true);
                 echo " <small>GB</small>\n                        ";
             } else {
                 // line 72
                 echo "                        ";
                 echo twig_escape_filter($this->env, twig_round($this->getAttribute($context["torrent"], "total_size", array()) / 1024 / 1024), "html", null, true);
                 echo " <small>MB</small>\n                        ";
             }
             // line 74
             echo "                    </div>\n                    <h4 class=\"list-group-item-heading\"><a href=\"torrent.php?torrent=";
             // line 75
             echo twig_escape_filter($this->env, $this->getAttribute($context["torrent"], "name", array()), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, $this->getAttribute($context["torrent"], "name", array()), "html", null, true);
             echo "</a></h4>\n                    <p class=\"list-group-item-text\"><strong>";
             // line 76
             echo twig_escape_filter($this->env, twig_round($this->getAttribute($context["torrent"], "progress", array())), "html", null, true);
             echo "</strong>% of <strong>";
             echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute($context["torrent"], "files", array())), "html", null, true);
             echo "</strong> file(s)</p>\n                </div>\n            </div>\n            \n            ";
             // line 80
             if (!$this->getAttribute($context["loop"], "last", array())) {
                 // line 81
                 echo "            <div class=\"list-group-separator\"></div>\n            ";
             }
             // line 83
             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['torrent'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 84
         echo "        </div>\n        ";
     }
     // line 86
     echo "        \n        <div class=\"col-sm-12\">\n            <a href=\"torrent.php?action=list\" class=\"btn btn-secondary btn-raised\">\n                View list\n            </a>\n            \n            <a href=\"torrent.php?action=add\" class=\"btn btn-primary btn-raised\">New torrent</a>\n        </div>\n    </div>\n</div>\n\n";
     // line 97
     $this->loadTemplate("_footer.html", "dashboard/index.html", 97)->display($context);
 }
 public function block_contenido($context, array $blocks = array())
 {
     // line 3
     echo "<script src=\"";
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/mootools2.js"), "html", null, true);
     echo "\"></script>\n<link href=\"";
     // line 4
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("css/jquery.mCustomScrollbar.min.css"), "html", null, true);
     echo "\" rel=\"stylesheet\" media=\"screen\">\n<link href=\"";
     // line 5
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("css/modal.css"), "html", null, true);
     echo "\" rel=\"stylesheet\" media=\"screen\">\n<script src=\"";
     // line 6
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/Chart.js-master/Chart.js"), "html", null, true);
     echo "\"></script>\n<script src=\"";
     // line 7
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/jquery.mCustomScrollbar.concat.min.js"), "html", null, true);
     echo "\"></script>\n<script src=\"";
     // line 8
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/calendar.js"), "html", null, true);
     echo "\"></script>\n<link href=\"";
     // line 9
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("css/calendar.css"), "html", null, true);
     echo "\" rel=\"stylesheet\" media=\"screen\">\n<script type=\"text/javascript\">\n    \$(document).ready(function(){\n         var cw = \$('#infoGeneral').height();\n         \$('#infoProf').css('height', cw+'px');\n    });  \n</script>\n<script type=\"text/javascript\">\n    (function(\$){\n        \$(window).load(function(){\n            \$(\"#containerScroll\").mCustomScrollbar();\n        });\n    })(jQuery);\n</script>\n<div id=\"contenedorGraficos\">\n    ";
     // line 24
     $context["largo"] = twig_length_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "factTable")) - 1;
     // line 25
     echo "    <h4 class=\"tituloDash\">Dashboard de Licitación ";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "nombre"), "html", null, true);
     echo "</h4>\n    <div  id=\"infoGeneral\" class=\" dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-4 infoGeneral\">\n        <h3>INFORMACIÓN GENERAL</h3>\n        <canvas class=\"avanceGraficoProyecto\" id=\"myChart\" width=\"180\" height=\"180\"></canvas>\n        <table>\n            <tr>\n                <td class=\"first\">Avance:</td>\n                <td class=\"second\">";
     // line 32
     echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "factTable"), isset($context["largo"]) ? $context["largo"] : $this->getContext($context, "largo"), array(), "array"), "porcentajeAvance"), 2, "floor"), "html", null, true);
     echo "%</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Fecha de Inicio:</td>\n                <td class=\"second\">";
     // line 36
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "fechaInicio"), "d-m-Y"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Fecha de Término</td>\n                <td class=\"second\">";
     // line 40
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "fechaTermino"), "d-m-Y"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Horas Programadas:</td>\n                <td class=\"second\">";
     // line 44
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "horasProgramadas"), "html", null, true);
     echo " horas</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Horas Avanzadas:</td>\n                <td class=\"second\">";
     // line 48
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "factTable"), isset($context["largo"]) ? $context["largo"] : $this->getContext($context, "largo"), array(), "array"), "horasAvanzadas"), "html", null, true);
     echo " horas</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Horas Restantes:</td>\n                <td class=\"second\">";
     // line 52
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "horasProgramadas") - $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "factTable"), isset($context["largo"]) ? $context["largo"] : $this->getContext($context, "largo"), array(), "array"), "horasAvanzadas"), "html", null, true);
     echo " horas</td>\n            </tr>\n        </table>\n    </div>\n    <div class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-4 infoFin\">\n        <h3>FINANZAS</h3>\n        \n    </div>\n    <div id=\"infoProf\" class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-4 infoProf\">\n        <h3>PROFESIONALES ASIGNADOS</h3>\n        <div id=\"containerScroll\">\n        ";
     // line 63
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "asignacion"));
     foreach ($context['_seq'] as $context["_key"] => $context["asignacion"]) {
         // line 64
         echo "        <div class=\"profAsignado\">\n            <div>\n                ";
         // line 66
         if ($this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "imagenPerfil") == null) {
             // line 67
             echo "                <div class=\"dashImgPerfil\"><img src=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/male.png"), "html", null, true);
             echo "\" class=\"img-circle\" /></div>\n                ";
         } else {
             // line 69
             echo "                <div class=\"dashImgPerfil\"><img src=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("documentos/"), "html", null, true);
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "imagenPerfil"), "path"), "html", null, true);
             echo "\"></div>\n                ";
         }
         // line 71
         echo "                <div class=\"dashInfoProf\">\n                    <ul>\n                        ";
         // line 73
         if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "papellido")) >= 5) {
             echo " \n                        <li>";
             // line 74
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "pnombre"), "html", null, true);
             echo " ";
             echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "papellido"), 0, 3), "html", null, true);
             echo "...</li>\n                        ";
         } else {
             // line 76
             echo "                         <li>";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "pnombre"), "html", null, true);
             echo " ";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "papellido"), "html", null, true);
             echo "</li>\n                        ";
         }
         // line 78
         echo "                        <li>";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "horas"), "html", null, true);
         echo " horas</li>\n                    </ul>\n     \n                </div>\n            </div>  \n        </div>\n                \n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['asignacion'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 86
     echo "        </div>\n        <div><input type=\"button\" id=\"addProfesional\" class=\"btnAdd center-block\" name=\"agregarProfesional\" value=\"Añadir Profesional\" data-id=\"";
     // line 87
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "id"), "html", null, true);
     echo "\"/></div>\n    </div>\n    <div class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-4 infoEtapa\">\n        <h3>REQUERIMIENTOS</h3>\n        <table>\n            <tr>\n                <td class=\"first\">Requerimiento</td>\n                <td class=\"first\">Horas</td>\n                <td class=\"first\">Profesional</td>\n            </tr>\n        ";
     // line 97
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "dependencia"));
     foreach ($context['_seq'] as $context["_key"] => $context["requerimiento"]) {
         // line 98
         echo "            <tr>\n                <td class=\"second\"><p>";
         // line 99
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["requerimiento"]) ? $context["requerimiento"] : $this->getContext($context, "requerimiento"), "nombre"), "html", null, true);
         echo "</p></td>\n                <td class=\"second\">";
         // line 100
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["requerimiento"]) ? $context["requerimiento"] : $this->getContext($context, "requerimiento"), "horas"), "html", null, true);
         echo "</td>\n                <td class=\"second\">";
         // line 101
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["requerimiento"]) ? $context["requerimiento"] : $this->getContext($context, "requerimiento"), "profesional"), "pnombre"), "html", null, true);
         echo " ";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["requerimiento"]) ? $context["requerimiento"] : $this->getContext($context, "requerimiento"), "profesional"), "snombre"), "html", null, true);
         echo "</td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['requerimiento'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 104
     echo "        </table> \n    </div>\n    <div class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-4 infoAdic\">\n        <h3>AVANCE PROGRESIVO</h3>\n        <canvas id=\"avances\" width=\"270%\" height=\"200%\"></canvas>\n    </div>\n    <div class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-4 infoExep\">\n        <h3>EXEPCIONES</h3>\n        <canvas id=\"avances\" width=\"270%\" height=\"200%\"></canvas>\n    </div>\n    \n</div>\n<script language=\"javascript\">\n    itemsGraph = [];\n    porcentaje = [];\n    ";
     // line 123
     echo "        ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "factTable"));
     foreach ($context['_seq'] as $context["_key"] => $context["tiempo"]) {
         // line 124
         echo "            itemsGraph.push(\"hello\");      \n            porcentaje.push(\"hola\");\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tiempo'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 127
     echo "    var avance = document.getElementById(\"avances\").getContext(\"2d\");\n    var data = {\n    labels: itemsGraph,\n    datasets: [\n        {\n            label: \"My First dataset\",\n            fillColor: \"rgba(220,220,220,0.2)\",\n            strokeColor: \"rgba(220,220,220,9)\",\n            pointColor: \"rgba(220,220,220,9)\",\n            pointStrokeColor: \"#fff\",\n            pointHighlightFill: \"#fff\",\n            pointHighlightStroke: \"rgba(220,220,220,1)\",\n            data: porcentaje\n        }\n    ]\n};\n\nvar myLineChart = new Chart(avance).Line(data);\n</script>\n<script language=\"javascript\">\n           \n                var ctx = document.getElementById(\"myChart\").getContext(\"2d\");\n                var data = [\n                {\n                    value: ";
     // line 151
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "factTable"), isset($context["largo"]) ? $context["largo"] : $this->getContext($context, "largo"), array(), "array"), "porcentajeAvance"), "html", null, true);
     echo ",\n                    color:\"#363569\",\n                    highlight: \"#363569\",\n                    label: \"Avance\"\n                },\n                {\n                    value: 100 - ";
     // line 157
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "factTable"), isset($context["largo"]) ? $context["largo"] : $this->getContext($context, "largo"), array(), "array"), "porcentajeAvance"), "html", null, true);
     echo ",\n                    color: \"#AFAEFA\",\n                    highlight: \"#AFAEFA\",\n                    label: \"Restante\"\n                }\n                ];\nChart.defaults.global.animation = false;\nvar myPieChart = new Chart(ctx).Pie(data);\n</script>\n\n\n";
 }
 public function block_body($context, array $blocks = array())
 {
     // line 3
     echo "<div class=\"body3\">\n\t\t<div class=\"main zerogrid\">\n<!-- content -->\n\t\t\t<article id=\"content\">\n\t\t\t\t<div class=\"wrapper tabs\">\n\t\t\t\t\t";
     // line 8
     $context["i"] = 0;
     // line 9
     echo "\t\t\t\t\t";
     $context["divNo"] = 1;
     // line 10
     echo "                                        ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["news"]) ? $context["news"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["new"]) {
         // line 11
         echo "\n\t\t\t\t\t\t";
         // line 12
         if ((isset($context["i"]) ? $context["i"] : null) % 3 == 0 && (isset($context["divNo"]) ? $context["divNo"] : null) != 1) {
             // line 13
             echo "\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t";
         }
         // line 15
         echo "\n\t\t\t\t\t\t";
         // line 16
         if ((isset($context["i"]) ? $context["i"] : null) % 3 == 0) {
             // line 17
             echo "                                                        <div class=\"tab-content\" id=\"tab";
             echo twig_escape_filter($this->env, isset($context["divNo"]) ? $context["divNo"] : null, "html", null, true);
             echo "\">\n\t\t\t\t\t\t\t";
             // line 18
             $context["divNo"] = (isset($context["divNo"]) ? $context["divNo"] : null) + 1;
             // line 19
             echo "\t\t\t\t\t\t";
         }
         // line 20
         echo "\n                                                <h5><span class=\"dropcap\"><strong>";
         // line 21
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["new"]) ? $context["new"] : null, "id"), "html", null, true);
         echo "</strong><span>06</span></span>Lorem ipsum dolor sit amet consectetur adipisicing elit</h5>\n\t\t\t\t\t\t<div class=\"wrapper pad_bot2\">\n\t\t\t\t\t\t\t<figure class=\"left marg_right1\"><img src=\"";
         // line 23
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl(twig_join_filter(array(0 => "uploads/news/", 1 => $this->getAttribute(isset($context["new"]) ? $context["new"] : null, "id"), 2 => "/", 3 => $this->getAttribute(isset($context["new"]) ? $context["new"] : null, "image")))), "html", null, true);
         echo "\" alt=\"\"></figure>\n\t\t\t\t\t\t\t<p class=\"pad_bot1\">";
         // line 24
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["new"]) ? $context["new"] : null, "description"), "html", null, true);
         echo "</p>\n\t\t\t\t\t\t\t<a href=\"#\" class=\"link1\">Read More</a>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t";
         // line 28
         $context["i"] = (isset($context["i"]) ? $context["i"] : null) + 1;
         // line 29
         echo "\n                                                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['new'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 31
     echo "\t\t\t\t\t</div>\n\n                \t\t\t<ul class=\"nav\">\n\t\t\t\t\t    \t";
     // line 34
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(range(1, twig_round((isset($context["count"]) ? $context["count"] : null) / 3, 0, "ceil")));
     $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["j"]) {
         // line 35
         echo "\t\t\t\t            \t\t<li class=\"selected\"><a href=\"#tab";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["loop"]) ? $context["loop"] : null, "index"), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["loop"]) ? $context["loop"] : null, "index"), "html", null, true);
         echo "</a></li>\n\t\t    \t\t\t\t";
         ++$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['j'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 37
     echo "\t\t\t\t    </ul>\n\t\t\t\t\t\n\t\t\t\t</div>\n\n\t\t\t</article>\n\t\t</div>\n\t</div>\n\t<div class=\"body4\">\n\t\t<div class=\"main zerogrid\">\n\t\t\t<article id=\"content2\">\n\t\t\t\t<div class=\"wrapper row\">\n\t\t\t\t\t<section class=\"col-1-4\">\n\t\t\t\t\t<div class=\"wrap-col\">\n\t\t\t\t\t\t<h4>Why Us?</h4>\n\t\t\t\t\t\t<ul class=\"list1\">\n\t\t\t\t\t\t\t<li><a href=\"#\">Lorem ipsum dolor sit</a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\">Dmet, consectetur</a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\">Adipisicing elit eiusmod </a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\">Tempor incididunt ut</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t</section>\n\t\t\t\t\t<section class=\"col-1-4\">\n\t\t\t\t\t<div class=\"wrap-col\">\n\t\t\t\t\t\t<h4>Address</h4>\n\t\t\t\t\t\t<ul class=\"address\">\n\t\t\t\t\t\t\t<li><span>Country:</span>USA</li>\n\t\t\t\t\t\t\t<li><span>City:</span>San Diego</li>\n\t\t\t\t\t\t\t<li><span>Phone:</span>8 800 154-45-67</li>\n\t\t\t\t\t\t\t<li><span>Email:</span><a href=\"mailto:\">progress@mail.com</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t</section>\n\t\t\t\t\t<section class=\"col-1-4\">\n\t\t\t\t\t<div class=\"wrap-col\">\n\t\t\t\t\t\t<h4>Follow Us</h4>\n\t\t\t\t\t\t<ul id=\"icons\">\n\t\t\t\t\t\t\t<li><a href=\"#\"><img src=\"";
     // line 74
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("/bundles/acmehome/images/icon1.jpg"), "html", null, true);
     echo "\" alt=\"\">Facebook</a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\"><img src=\"";
     // line 75
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("/bundles/acmehome/images/icon2.jpg"), "html", null, true);
     echo "\" alt=\"\">Twitter</a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\"><img src=\"";
     // line 76
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("/bundles/acmehome/images/icon3.jpg"), "html", null, true);
     echo "\" alt=\"\">LinkedIn</a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\"><img src=\"";
     // line 77
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("/bundles/acmehome/images/icon4.jpg"), "html", null, true);
     echo "\" alt=\"\">Delicious</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t</section>\n\t\t\t\t\t<section class=\"col-1-4\">\n\t\t\t\t\t<div class=\"wrap-col\">\n\t\t\t\t\t\t<h4>Newsletter</h4>\n\t\t\t\t\t\t<form id=\"newsletter\" method=\"post\">\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"wrapper\">\n\t\t\t\t\t\t\t\t\t<input class=\"input\" type=\"text\" value=\"Type Your Email Here\"  onblur=\"if(this.value=='') this.value='Type Your Email Here'\" onfocus=\"if(this.value =='Type Your Email Here' ) this.value=''\" >\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<a href=\"#\" class=\"button\" onclick=\"document.getElementById('newsletter').submit()\">Subscribe</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t</section>\n\t\t\t\t</div>\n\t\t\t</article>\n<!-- content end -->\n\t\t</div>\n\t</div>\n\t\t<div class=\"main zerogrid\">\n<!-- footer -->\n\t\t\t<footer>\n\t\t\t\t<a href=\"http://www.zerotheme.com/432/free-responsive-html5-css3-website-templates.html\" target=\"_blank\">Html5 Templates</a> by <a href=\"http://www.templatemonster.com/\" target=\"_blank\">Templatesmonster.com</a><br>\n\t\t\t\t<a href=\"http://www.zerotheme.com/432/free-responsive-html5-css3-website-templates.html\" target=\"_blank\">Responsive Themes</a> by <a href=\"http://www.zerotheme.com/\" target=\"_blank\">Zerotheme.com</a><br>\n\t\t\t</footer>\n<!-- footer end -->\n\t\t</div>\n<script type=\"text/javascript\"> Cufon.now(); </script>\n<script>\n\t\$(document).ready(function() {\n\t\ttabs.init();\n\t})\n</script>\n";
 }
 public function block_contenido($context, array $blocks = array())
 {
     // line 3
     echo "<script src=\"";
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/mootools2.js"), "html", null, true);
     echo "\"></script>\n<link href=\"";
     // line 4
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("css/jquery.mCustomScrollbar.min.css"), "html", null, true);
     echo "\" rel=\"stylesheet\" media=\"screen\">\n<link href=\"";
     // line 5
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("css/modal.css"), "html", null, true);
     echo "\" rel=\"stylesheet\" media=\"screen\">\n<script src=\"";
     // line 6
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/Chart.js-master/Chart.js"), "html", null, true);
     echo "\"></script>\n<script src=\"";
     // line 7
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/jquery.mCustomScrollbar.concat.min.js"), "html", null, true);
     echo "\"></script>\n<script src=\"";
     // line 8
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/calendar.js"), "html", null, true);
     echo "\"></script>\n<link href=\"";
     // line 9
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("css/calendar.css"), "html", null, true);
     echo "\" rel=\"stylesheet\" media=\"screen\">\n<script lang=\"text/javascript\">\n    \$(document).ready(function(){\n         var cw = \$('#infoGeneral').height();\n         \$('#infoProf').css('height', cw+'px');\n    });  \n</script>\n<script type=\"text/javascript\">\n    (function(\$){\n        \$(window).load(function(){\n            var cw = \$('#infoGeneral').height();\n            var ce = cw - 38 - cw * 0.30;\n            \$('#containerScroll').css('height', ce+'px');\n            \$('#containerScroll1').css('height', ce+'px');\n            \$('#containerScroll2').css('height', ce+'px');\n            \$('#containerScroll3').css('height', ce+'px');\n            \$(\"#containerScroll\").mCustomScrollbar();\n            \$(\"#containerScroll1\").mCustomScrollbar();\n            \$(\"#containerScroll2\").mCustomScrollbar();\n            \$(\"#containerScroll3\").mCustomScrollbar();\n            \$(\"#containerScroll4\").mCustomScrollbar();\n        });\n    })(jQuery);\n</script>\n<script type=\"text/javascript\">\n    \$(document).ready(function(){\n         var cw = \$('#infoGeneral').height();\n         \$('#infoGeneral').css('height', cw+'px');\n         \$('#infoProf').css('height', cw+'px');\n         \$('#infoFin').css('height', cw+'px');\n         \$('#infoEtapa').css('height', cw+'px');\n         \$('#infoAdic').css('height', cw+'px');\n         \$('#infoExep').css('height', cw+'px');\n         \$('#infoHitos').css('height', cw+'px');\n    });\n   \n    \n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('#addProfesional').click(function(){\n        var id = \$(this).data(\"id\");\n        \$(\"#valorLicitacionProf\").val( id );\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close').click(function(){\n    \$('#popup').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script type=\"text/javascript\">\n    \$(document).ready(function(){\n         var cw = \$('#infoGeneral').height();\n         \$('#infoGeneral').css('height', cw+'px');\n         \$('#infoProf').css('height', cw+'px');\n         \$('#infoFin').css('height', cw+'px');\n         \$('#infoEtapa').css('height', cw+'px');\n         \$('#infoAdic').css('height', cw+'px');\n         \$('#infoExep').css('height', cw+'px');\n         \$('#infoHitos').css('height', cw+'px');\n    });\n   \n    \n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('#addExLic').click(function(){\n        var id = \$(this).data(\"id\");\n        \$(\"#valorLicitacionEx\").val( id );\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup1').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close1').click(function(){\n    \$('#popup1').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('#addExReq').click(function(){\n        var id = \$(this).data(\"id\");\n        \$(\"#valorRequerimientoEx\").val( id );\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup2').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close2').click(function(){\n    \$('#popup2').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('#changeStatus').click(function(){\n        var licitacion = \$(this).data(\"proyecto\");\n        \$(\"#valorLicFin\").val( licitacion );\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup3').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close3').click(function(){\n    \$('#popup3').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n    \$(\".eRequerimiento\").click(function(e){\n        e.preventDefault();\n        var asEtapa = \$(this).data(\"etapa\");\n        \$(\"#aaa\").val(1);\n        \$(\"#valorEtapaAsignada\").val(asEtapa);\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup6').fadeIn('slow');\n    });\n\n    \$('#close6').click(function(){\n    \$('#popup6').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n}\n);    \n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n    \$(\".hitoEstado\").click(function(e){\n        e.preventDefault();\n        var asHito = \$(this).data(\"hito\");\n        \$(\"#aaa\").val(2);\n        \$(\"#valorEtapaAsignada\").val(asHito);\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup6').fadeIn('slow');\n    });\n\n    \$('#close6').click(function(){\n    \$('#popup6').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n}\n);    \n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('#addHito').click(function(){\n        var hito = \$(this).data(\"proyecto\");\n        \$(\"#valorHito\").val( hito );\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup5').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close5').click(function(){\n    \$('#popup5').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script lang=\"text/javascript\">\n\$(document).ready(function(){\n    \$(\".chosen-select\").chosen();\n});\n</script>\n<div id=\"contenedorGraficos\">\n    ";
     // line 207
     $context["largo"] = twig_length_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "factTable")) - 1;
     // line 208
     echo "    <h4 class=\"tituloDash\">Dashboard de Licitación ";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "nombre"), "html", null, true);
     echo " <input type=\"button\" id=\"changeStatus\" class=\"changeStatus pull-right\" data-proyecto=\"";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "id"), "html", null, true);
     echo "\" value=\"Modificar Estado\"/></h4>\n    <div id=\"infoLicitacion\">Esta licitación se encuentra ";
     // line 209
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "estado"), "estado"), "html", null, true);
     echo "</div>\n    <div  id=\"infoGeneral\" class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-4 infoGeneral\">\n        <h3>INFORMACIÓN GENERAL</h3>\n        <canvas class=\"avanceGraficoProyecto\" id=\"myChart\" width=\"180\" height=\"180\"></canvas>\n        <table>\n            ";
     // line 214
     if ($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "avance") == 0) {
         // line 215
         echo "                ";
         $context["avance"] = 0;
         // line 216
         echo "                    ";
     } else {
         // line 217
         echo "            ";
         $context["avance"] = $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "avance") * 100 / $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "horasProgramadas");
         // line 218
         echo "            ";
     }
     // line 219
     echo "            <tr>\n                <td class=\"first\">Avance:</td>\n                ";
     // line 221
     if ($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "avance") == 0 || $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "horasProgramadas") == 0) {
         // line 222
         echo "                    <td class=\"second\">";
         echo twig_escape_filter($this->env, twig_round(isset($context["avance"]) ? $context["avance"] : $this->getContext($context, "avance"), 2, "floor"), "html", null, true);
         echo "%</td>\n                    ";
     } else {
         // line 224
         echo "                    <td class=\"second\">";
         echo twig_escape_filter($this->env, twig_round(isset($context["avance"]) ? $context["avance"] : $this->getContext($context, "avance"), 2, "floor"), "html", null, true);
         echo "%</td>\n            ";
     }
     // line 226
     echo "            </tr>\n            <tr>\n                <td class=\"first\">Fecha de Inicio:</td>\n                <td class=\"second\">";
     // line 229
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "fechaInicio"), "d-m-Y"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Fecha de Término</td>\n                <td class=\"second\">";
     // line 233
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "fechaTermino"), "d-m-Y"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Horas Programadas:</td>\n                <td class=\"second\">";
     // line 237
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "horasProgramadas"), "html", null, true);
     echo " horas</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Horas Avanzadas:</td>\n                <td class=\"second\">";
     // line 241
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "avance"), "html", null, true);
     echo " horas</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Horas Restantes:</td>\n                <td class=\"second\">";
     // line 245
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "horasProgramadas") - $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "avance"), "html", null, true);
     echo " horas</td>\n            </tr>\n        </table>\n    </div>\n    <div class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-4 infoFin\">\n        <h3>FINANZAS</h3>\n        <canvas class=\"avanceGraficoProyecto\" id=\"myChartFin\" width=\"180\" height=\"180\"></canvas>\n        <table>\n            ";
     // line 253
     if ($this->getAttribute($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "finanzas"), "valorFecha", array(), "array") == 0 || $this->getAttribute($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "finanzas"), "valorPresupuestado", array(), "array") == 0) {
         // line 254
         echo "                ";
         $context["avanceFinanza"] = 0;
         // line 255
         echo "                ";
     } else {
         // line 256
         echo "                ";
         $context["avanceFinanza"] = $this->getAttribute($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "finanzas"), "valorFecha", array(), "array") * 100 / $this->getAttribute($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "finanzas"), "valorPresupuestado", array(), "array");
         // line 257
         echo "            ";
     }
     // line 258
     echo "            <tr>\n                <td class=\"first\">Avance:</td>\n                <td class=\"second\">";
     // line 260
     echo twig_escape_filter($this->env, twig_round(isset($context["avanceFinanza"]) ? $context["avanceFinanza"] : $this->getContext($context, "avanceFinanza"), 2, "floor"), "html", null, true);
     echo "%</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Valor actual:</td>\n                ";
     // line 264
     if ($this->getAttribute($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "finanzas"), "valorFecha", array(), "array") == 0) {
         // line 265
         echo "                <td class=\"second\">0 U.F</td>\n                ";
     } else {
         // line 267
         echo "                <td class=\"second\">";
         echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "finanzas"), "valorFecha", array(), "array"), 2, "floor"), "html", null, true);
         echo " U.F</td>\n                ";
     }
     // line 269
     echo "            </tr>\n            <tr>\n                <td class=\"first\">Valor Presupuestado:</td>\n                <td class=\"second\">";
     // line 272
     echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "finanzas"), "valorPresupuestado", array(), "array"), 2, "floor"), "html", null, true);
     echo " U.F</td>\n            </tr>\n        </table>\n        \n    </div>\n    <div id=\"infoProf\" class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-4 infoProf\">\n        <h3>PROFESIONALES ASIGNADOS</h3>\n        <div id=\"containerScroll\">\n        ";
     // line 280
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "asignacion"));
     foreach ($context['_seq'] as $context["_key"] => $context["asignacion"]) {
         // line 281
         echo "        <div class=\"profAsignado\">\n            <div>\n                ";
         // line 283
         if ($this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "imagenPerfil") == null) {
             // line 284
             echo "                <div class=\"dashImgPerfil\"><img src=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/male.png"), "html", null, true);
             echo "\" class=\"img-circle\" /></div>\n                ";
         } else {
             // line 286
             echo "                <div class=\"dashImgPerfil\"><img src=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("documentos/"), "html", null, true);
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "imagenPerfil"), "path"), "html", null, true);
             echo "\"></div>\n                ";
         }
         // line 288
         echo "                <div class=\"dashInfoProf\">\n                    <ul>\n                        ";
         // line 290
         if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "papellido")) >= 5) {
             echo " \n                        <li>";
             // line 291
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "pnombre"), "html", null, true);
             echo " ";
             echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "papellido"), 0, 3), "html", null, true);
             echo "...</li>\n                        ";
         } else {
             // line 293
             echo "                         <li>";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "pnombre"), "html", null, true);
             echo " ";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "papellido"), "html", null, true);
             echo "</li>\n                        ";
         }
         // line 295
         echo "                        <li>";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "horas"), "html", null, true);
         echo " horas</li>\n                        <li>";
         // line 296
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "fechaInicio"), "d-m-Y"), "html", null, true);
         echo "</li>\n                        <li>";
         // line 297
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "fechaTermino"), "d-m-Y"), "html", null, true);
         echo "</li>\n                    </ul>\n     \n                </div>\n            </div>  \n        </div>\n                \n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['asignacion'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 305
     echo "        </div>\n        <div><input type=\"button\" id=\"addProfesional\" class=\"btnAdd center-block\" name=\"agregarProfesional\" value=\"Añadir Profesional\" data-id=\"";
     // line 306
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "id"), "html", null, true);
     echo "\"/></div>\n    </div>\n    <div class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-6 infoEtapa\">\n        <h3>REQUERIMIENTOS</h3>\n        <table>\n            <tr>\n                <td class=\"first\">Requerimiento</td>\n                <td class=\"first\">Horas</td>\n                <td class=\"first\">Profesional</td>\n                <td class=\"first\">Horas</td>\n                <td class=\"first\">Estado</td>\n            </tr>\n        ";
     // line 318
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "dependencia"));
     foreach ($context['_seq'] as $context["_key"] => $context["requerimiento"]) {
         // line 319
         echo "            <tr>\n                <td class=\"second\"><p>";
         // line 320
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["requerimiento"]) ? $context["requerimiento"] : $this->getContext($context, "requerimiento"), "nombre"), "html", null, true);
         echo "</p></td>\n                <td class=\"second\">";
         // line 321
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["requerimiento"]) ? $context["requerimiento"] : $this->getContext($context, "requerimiento"), "horas"), "html", null, true);
         echo "</td>\n                <td class=\"second\">";
         // line 322
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["requerimiento"]) ? $context["requerimiento"] : $this->getContext($context, "requerimiento"), "profesional"), "pnombre"), "html", null, true);
         echo " ";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["requerimiento"]) ? $context["requerimiento"] : $this->getContext($context, "requerimiento"), "profesional"), "snombre"), "html", null, true);
         echo "</td>\n                <td class=\"second\">";
         // line 323
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["requerimiento"]) ? $context["requerimiento"] : $this->getContext($context, "requerimiento"), "avanceHoras"), "html", null, true);
         echo "</td>\n                <td class=\"second\"><a href=\"#\" data-etapa=\"";
         // line 324
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["requerimiento"]) ? $context["requerimiento"] : $this->getContext($context, "requerimiento"), "id"), "html", null, true);
         echo "\" class=\"eRequerimiento\">";
         if (null === $this->getAttribute(isset($context["requerimiento"]) ? $context["requerimiento"] : $this->getContext($context, "requerimiento"), "estado")) {
             echo "estado";
         } else {
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["requerimiento"]) ? $context["requerimiento"] : $this->getContext($context, "requerimiento"), "estado"), "estado"), "html", null, true);
         }
         echo "</a></td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['requerimiento'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 327
     echo "        </table> \n    </div>\n    <div class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-6 infoExep\">\n        <h3>EXEPCIONES</h3>\n        <ul class=\"botones nav nav-tabs\">\n            <li><a href=\"#licitacion\" data-toggle=\"tab\">Licitacion</a></li>\n            <li><a href=\"#requerimiento\" data-toggle=\"tab\">Req.</a></li>   \n        </ul>\n        <div class=\"tab-content\">\n            <div id=\"licitacion\" class=\"tab-pane active\">\n                <div id=\"containerScroll1\">\n                ";
     // line 338
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "excepcionesPlazo"));
     foreach ($context['_seq'] as $context["_key"] => $context["excepcion"]) {
         // line 339
         echo "                <div class=\"exepProyecto\">\n                    <div>\n                        <table>\n                            <tr>\n                                <td class=\"first\">Fecha de Anterior</td>\n                                <td class=\"first\">Fecha de Término</td>\n                                <td class=\"first\">Fecha de Ingreso</td>\n                            </tr>\n                            <tr>\n                                <td class=\"second\">";
         // line 348
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["excepcion"]) ? $context["excepcion"] : $this->getContext($context, "excepcion"), "fechaAnterior"), "d-m-Y"), "html", null, true);
         echo "</td>\n                                <td class=\"second\">";
         // line 349
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["excepcion"]) ? $context["excepcion"] : $this->getContext($context, "excepcion"), "fechaTermino"), "d-m-Y"), "html", null, true);
         echo "</td>\n                                <td class=\"second\">";
         // line 350
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["excepcion"]) ? $context["excepcion"] : $this->getContext($context, "excepcion"), "fechaIngreso"), "d-m-Y"), "html", null, true);
         echo "</td>\n                            </tr>\n                        </table>\n                        <div>\n                            <ul>\n                                <li>Las horas han ";
         // line 355
         if ($this->getAttribute(isset($context["excepcion"]) ? $context["excepcion"] : $this->getContext($context, "excepcion"), "accion") == "a") {
             echo " <p style=\"color: #02C7DC\">aumentado</p> ";
         } else {
             echo " <p style=\"color:#f9012a\">disminuido</p>";
         }
         echo " </li>\n                                <li>";
         // line 356
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["excepcion"]) ? $context["excepcion"] : $this->getContext($context, "excepcion"), "descripcion"), "html", null, true);
         echo "</li>\n                                <li>";
         // line 357
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["excepcion"]) ? $context["excepcion"] : $this->getContext($context, "excepcion"), "horas"), "html", null, true);
         echo " horas han sido modificadas</li>\n                            </ul>\n                        </div>\n                    </div>\n                </div>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['excepcion'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 363
     echo "               \n            </div>\n                <input type=\"button\" name=\"addExLic\" id=\"addExLic\" value=\"Añadir Excepción\" class=\"btnAdd center-block\" data-id=\"";
     // line 365
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "id"), "html", null, true);
     echo "\">\n            </div>\n            <div id=\"requerimiento\" class=\"tab-pane\">\n                <div id=\"containerScroll3\">\n                <table>\n                    <tr>\n                        <td class=\"first\">Req.</td>\n                        <td class=\"first\">Fecha de Inicio</td>\n                        <td class=\"first\">Fecha de Termino</td>\n                    </tr>\n                ";
     // line 375
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "dependencia"));
     foreach ($context['_seq'] as $context["_key"] => $context["requerimiento"]) {
         // line 376
         echo "                    ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["requerimiento"]) ? $context["requerimiento"] : $this->getContext($context, "requerimiento"), "excepcionesRequerimiento"));
         foreach ($context['_seq'] as $context["_key"] => $context["excepciones"]) {
             echo "  \n                        <tr>\n                            <td class=\"second\">";
             // line 378
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["requerimiento"]) ? $context["requerimiento"] : $this->getContext($context, "requerimiento"), "nombre"), "html", null, true);
             echo "</td>  \n                            <td class=\"second\">";
             // line 379
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["excepciones"]) ? $context["excepciones"] : $this->getContext($context, "excepciones"), "fechaInicio"), "d-m-Y"), "html", null, true);
             echo "</td>\n                            <td class=\"second\">";
             // line 380
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["excepciones"]) ? $context["excepciones"] : $this->getContext($context, "excepciones"), "fechaTermino"), "d-m-Y"), "html", null, true);
             echo "</td> \n                        </tr>                       \n                    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['excepciones'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 382
         echo " \n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['requerimiento'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 383
     echo " \n                </table> \n                </div>  \n                <input type=\"button\" name=\"addExReq\" id=\"addExReq\" value=\"Añadir Excepción\" class=\"btnAdd center-block\" data-id=\"";
     // line 386
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "id"), "html", null, true);
     echo "\">\n            </div>\n            <div id=\"profesionales\" class=\"tab-pane\">\n                3\n            </div>\n        </div>\n    </div> \n    <div id=\"infohitos\" class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-6 infoHitos\">\n                <h3>HITOS</h3>\n                <div id=\"containerScroll4\">\n                    <table>\n                        <tr>\n                            <td class=\"first\">Nombre</td>\n                            <td class=\"first\">Fecha</td>\n                            <td class=\"first\">Descripción</td>\n                            <td class=\"first\">Estado</td>\n                        </tr>\n                        ";
     // line 403
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "hito"));
     foreach ($context['_seq'] as $context["_key"] => $context["hito"]) {
         // line 404
         echo "                            <tr>\n                                <td class=\"third\">";
         // line 405
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["hito"]) ? $context["hito"] : $this->getContext($context, "hito"), "nombre"), "html", null, true);
         echo "</td>\n                                <td class=\"third\">";
         // line 406
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["hito"]) ? $context["hito"] : $this->getContext($context, "hito"), "fecha"), "d-m-Y"), "html", null, true);
         echo "</td>\n                                <td class=\"third\">";
         // line 407
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["hito"]) ? $context["hito"] : $this->getContext($context, "hito"), "descripcion"), "html", null, true);
         echo "</td>  \n                                <td class=\"third\"><a href=\"\" class=\"hitoEstado\" data-hito=\"";
         // line 408
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["hito"]) ? $context["hito"] : $this->getContext($context, "hito"), "id"), "html", null, true);
         echo "\">";
         if (null === $this->getAttribute(isset($context["hito"]) ? $context["hito"] : $this->getContext($context, "hito"), "estado")) {
             echo "estado";
         } else {
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["hito"]) ? $context["hito"] : $this->getContext($context, "hito"), "estado"), "estado"), "html", null, true);
         }
         echo "</a></td>                      \n                            </tr>\n                        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['hito'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 411
     echo "                    </table>\n                </div> \n        <input type=\"button\" name=\"addHito\" id=\"addHito\" data-proyecto=\"";
     // line 413
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "id"), "html", null, true);
     echo "\" value=\"Añadir Hito\" class=\"btnAdd center-block\">\n    </div>   \n</div>\n<script language=\"javascript\">\n    itemsGraph = [];\n    porcentaje = [];\n    ";
     // line 419
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "factTable"));
     foreach ($context['_seq'] as $context["_key"] => $context["tiempo"]) {
         echo "   \n            porcentaje.push(";
         // line 420
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tiempo"]) ? $context["tiempo"] : $this->getContext($context, "tiempo"), "porcentajeAvance"), "html", null, true);
         echo ");\n            itemsGraph.push(\"";
         // line 421
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["tiempo"]) ? $context["tiempo"] : $this->getContext($context, "tiempo"), "fechaId"), "fecha"), "d-m-Y"), "html", null, true);
         echo "\");   \n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tiempo'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 423
     echo "    var numero = 1;\n    var ctx = document.getElementById(\"casa\").getContext(\"2d\");\n    var data = {\n    labels: itemsGraph,\n    datasets: [\n        {\n            label: \"My First dataset\",\n            fillColor: \"rgba(220,220,220,0.2)\",\n            strokeColor: \"rgba(220,220,220,1)\",\n            pointColor: \"rgba(220,220,220,1)\",\n            pointStrokeColor: \"#fff\",\n            pointHighlightFill: \"#fff\",\n            pointHighlightStroke: \"rgba(220,220,220,1)\",\n            data: porcentaje\n        }\n    ]\n};\n\nvar myLineChart = new Chart(ctx).Line(data);\n</script>\n<script language=\"javascript\">\n           \n                var ctx = document.getElementById(\"myChart\").getContext(\"2d\");\n                var data = [\n                {\n                    value: ";
     // line 448
     echo twig_escape_filter($this->env, isset($context["avance"]) ? $context["avance"] : $this->getContext($context, "avance"), "html", null, true);
     echo ",\n                    color:\"#363569\",\n                    highlight: \"#363569\",\n                    label: \"Avance\"\n                },\n                {\n                    value: 100 - ";
     // line 454
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "avance"), "html", null, true);
     echo ",\n                    color: \"#AFAEFA\",\n                    highlight: \"#AFAEFA\",\n                    label: \"Restante\"\n                }\n                ];\nChart.defaults.global.animation = false;\nvar myPieChart = new Chart(ctx).Pie(data);\n</script>\n<script language=\"javascript\">\n                var ctx = document.getElementById(\"myChartFin\").getContext(\"2d\");\n                var data = [\n                {\n                    value: ";
     // line 467
     echo twig_escape_filter($this->env, isset($context["avanceFinanza"]) ? $context["avanceFinanza"] : $this->getContext($context, "avanceFinanza"), "html", null, true);
     echo ",\n                    color:\"#363569\",\n                    highlight: \"#363569\",\n                    label: \"Avance\"\n                },\n                {\n                    value: 100 - ";
     // line 473
     echo twig_escape_filter($this->env, isset($context["avanceFinanza"]) ? $context["avanceFinanza"] : $this->getContext($context, "avanceFinanza"), "html", null, true);
     echo ",\n                    color: \"#AFAEFA\",\n                    highlight: \"#AFAEFA\",\n                    label: \"Restante\"\n                }\n                ];\nChart.defaults.global.animation = false;\nvar myPieChart = new Chart(ctx).Pie(data);\n</script>\n<div id=\"popup\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Agregar Profesional a Licitación</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close\"><img src=\"";
     // line 485
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 486
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("glicitacion", array("id" => $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "id"))), "html", null, true);
     echo " \" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formProfesional"]) ? $context["formProfesional"] : $this->getContext($context, "formProfesional"), 'enctype');
     echo " novalidate>\n                <table>\n                    ";
     // line 488
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formProfesional"]) ? $context["formProfesional"] : $this->getContext($context, "formProfesional"), 'form_start');
     echo "\n                    <tr>\n                        <td class=\"etiqueta\"><font style=\"font-weight: bold;\">Profesional a asignar:</font></td>\n                        <td>";
     // line 491
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formProfesional"]) ? $context["formProfesional"] : $this->getContext($context, "formProfesional"), "profesional"), 'widget', array("attr" => array("class" => "largo-box chosen-select")));
     echo "</td>\n                    </tr>\n                    <tr>\n                        <td class=\"etiqueta\"><font style=\"font-weight: bold;\">Horas asignadas:</font></td>\n                        <td>";
     // line 495
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formProfesional"]) ? $context["formProfesional"] : $this->getContext($context, "formProfesional"), "horas"), 'widget', array("attr" => array("class" => "largo-box")));
     echo "</td>\n                    </tr>\n                    <tr>\n                        <td class=\"etiqueta\"><font style=\"font-weight: bold;\">Valor de la hora de profesional:</font></td>\n                        <td>";
     // line 499
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formProfesional"]) ? $context["formProfesional"] : $this->getContext($context, "formProfesional"), "valorHora"), 'widget', array("attr" => array("class" => "largo-box")));
     echo "</td>\n                    </tr>\n                    <tr>\n                        <td>Fecha de inicio</td>\n                        <td><input class=\"DatePicker\" name=\"fechaInicio\"></td> \n                    </tr>\n                    <tr>\n                        <td>Fecha de término</td>\n                        <td><input class=\"DatePicker\" name=\"fechaTermino\"></td> \n                    </tr>\n                    <tr>\n                        <td></td>\n                        <td>\n                            <input type=\"submit\" class=\"btnAdd\" name=\"agregarProfesional\" value=\"Agregar Profesional\">\n                            <input type=\"hidden\" id=\"valorLicitacionProf\" name=\"valorProyecto\" value=\"\">\n                        </td>\n                    </tr>\n                    ";
     // line 516
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formProfesional"]) ? $context["formProfesional"] : $this->getContext($context, "formProfesional"), 'form_end');
     echo "\n                </table>\n           </form>\n    </div>\n</div>\n<div id=\"popup1\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Agregar Excepción a Licitacion</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close1\"><img src=\"";
     // line 524
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 525
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("glicitacion", array("id" => $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "id"))), "html", null, true);
     echo "\" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formExcepcionPlazo"]) ? $context["formExcepcionPlazo"] : $this->getContext($context, "formExcepcionPlazo"), 'enctype');
     echo " novalidate>\n            <table>\n                ";
     // line 527
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formExcepcionPlazo"]) ? $context["formExcepcionPlazo"] : $this->getContext($context, "formExcepcionPlazo"), 'form_start');
     echo "\n                <tr>\n                    <td>Nueva Fecha de término</td>\n                    <td><input class=\"DatePicker\" name=\"fechaExLic\"></td>\n                </tr>\n                <tr>\n                    <td>";
     // line 533
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionPlazo"]) ? $context["formExcepcionPlazo"] : $this->getContext($context, "formExcepcionPlazo"), "horas"), 'label');
     echo "</td>\n                    <td>";
     // line 534
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionPlazo"]) ? $context["formExcepcionPlazo"] : $this->getContext($context, "formExcepcionPlazo"), "horas"), 'widget', array("attr" => array("class" => "largo-box")));
     echo "</td>\n                    <td>";
     // line 535
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionPlazo"]) ? $context["formExcepcionPlazo"] : $this->getContext($context, "formExcepcionPlazo"), "horas"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td>";
     // line 538
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionPlazo"]) ? $context["formExcepcionPlazo"] : $this->getContext($context, "formExcepcionPlazo"), "accion"), 'label');
     echo "</td>\n                    <td>";
     // line 539
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionPlazo"]) ? $context["formExcepcionPlazo"] : $this->getContext($context, "formExcepcionPlazo"), "accion"), 'widget', array("attr" => array("class" => "chosen-select largo-box")));
     echo "</td>\n                </tr>\n                <tr>\n                    <td>";
     // line 542
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionPlazo"]) ? $context["formExcepcionPlazo"] : $this->getContext($context, "formExcepcionPlazo"), "descripcion"), 'label');
     echo "</td>\n                    <td>";
     // line 543
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionPlazo"]) ? $context["formExcepcionPlazo"] : $this->getContext($context, "formExcepcionPlazo"), "descripcion"), 'widget', array("attr" => array("class" => "largo-box")));
     echo "</td>\n                    <td>";
     // line 544
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionPlazo"]) ? $context["formExcepcionPlazo"] : $this->getContext($context, "formExcepcionPlazo"), "descripcion"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td><input type=\"submit\" class=\"btnAdd\" name=\"salvarExcepcionP\" value=\"Agregar Excepción\"></td>\n                </tr>\n                <tr>\n                    <td><input type=\"hidden\" id=\"valorLicitacionEx\" name=\"valorLicitacionEx\" value=\"\"></td>\n                </tr>\n                ";
     // line 552
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formExcepcionPlazo"]) ? $context["formExcepcionPlazo"] : $this->getContext($context, "formExcepcionPlazo"), 'form_end');
     echo "\n            </table>\n        </form>\n    </div>\n</div>\n<div id=\"popup2\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Agregar Excepción a Requerimiento</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close2\"><img src=\"";
     // line 560
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 561
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("glicitacion", array("id" => $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "id"))), "html", null, true);
     echo "\" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formExcepcionReq"]) ? $context["formExcepcionReq"] : $this->getContext($context, "formExcepcionReq"), 'enctype');
     echo " novalidate>\n            <table>\n                ";
     // line 563
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formExcepcionReq"]) ? $context["formExcepcionReq"] : $this->getContext($context, "formExcepcionReq"), 'form_start');
     echo "\n                <tr>\n                    <td>";
     // line 565
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionReq"]) ? $context["formExcepcionReq"] : $this->getContext($context, "formExcepcionReq"), "requerimiento"), 'label');
     echo "</td>\n                    <td>";
     // line 566
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionReq"]) ? $context["formExcepcionReq"] : $this->getContext($context, "formExcepcionReq"), "requerimiento"), 'widget', array("attr" => array("class" => "largo-box")));
     echo "</td>\n                    <td>";
     // line 567
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionReq"]) ? $context["formExcepcionReq"] : $this->getContext($context, "formExcepcionReq"), "requerimiento"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td>Nueva Fecha de inicio</td>\n                    <td><input class=\"DatePicker\" name=\"fechaInicioReq\"></td>\n                </tr>\n                <tr>\n                    <td>Nueva Fecha de termino</td>\n                    <td><input class=\"DatePicker\" name=\"fechaTerminoReq\"></td>\n                </tr>\n                <tr>\n                    <td>";
     // line 578
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionReq"]) ? $context["formExcepcionReq"] : $this->getContext($context, "formExcepcionReq"), "horas"), 'label');
     echo "</td>\n                    <td>";
     // line 579
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionReq"]) ? $context["formExcepcionReq"] : $this->getContext($context, "formExcepcionReq"), "horas"), 'widget', array("attr" => array("class" => "largo-box")));
     echo "</td>\n                    <td>";
     // line 580
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionReq"]) ? $context["formExcepcionReq"] : $this->getContext($context, "formExcepcionReq"), "horas"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td>";
     // line 583
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionReq"]) ? $context["formExcepcionReq"] : $this->getContext($context, "formExcepcionReq"), "accion"), 'label');
     echo "</td>\n                    <td>";
     // line 584
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionReq"]) ? $context["formExcepcionReq"] : $this->getContext($context, "formExcepcionReq"), "accion"), 'widget', array("attr" => array("class" => "chosen-select largo-box")));
     echo "</td>\n                </tr>\n                <tr>\n                    <td>";
     // line 587
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionReq"]) ? $context["formExcepcionReq"] : $this->getContext($context, "formExcepcionReq"), "descripcion"), 'label');
     echo "</td>\n                    <td>";
     // line 588
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionReq"]) ? $context["formExcepcionReq"] : $this->getContext($context, "formExcepcionReq"), "descripcion"), 'widget', array("attr" => array("class" => "chosen-select largo-box")));
     echo "</td>\n                    <td>";
     // line 589
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcepcionReq"]) ? $context["formExcepcionReq"] : $this->getContext($context, "formExcepcionReq"), "descripcion"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td><input type=\"submit\" class=\"btnAdd\" name=\"salvarExcepcionR\" value=\"Agregar Excepción\"></td>\n                </tr>\n                <tr>\n                    <td><input type=\"hidden\" id=\"valorRequerimientoEx\" name=\"valorRequerimientoEx\" value=\"\"></td>\n                </tr>\n                ";
     // line 597
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formExcepcionReq"]) ? $context["formExcepcionReq"] : $this->getContext($context, "formExcepcionReq"), 'form_end');
     echo "\n            </table>\n        </form>\n    </div>\n</div>\n<div id=\"popup5\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Agregar Hito</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close5\"><img src=\"";
     // line 605
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 606
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("glicitacion", array("id" => $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "id"))), "html", null, true);
     echo "\" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), 'enctype');
     echo " novalidate>\n            <table>\n                ";
     // line 608
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), 'form_start');
     echo "\n                <tr>\n                    <td>";
     // line 610
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), "nombre"), 'label');
     echo "</td>\n                    <td>";
     // line 611
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), "nombre"), 'widget');
     echo "</td>\n                    <td>";
     // line 612
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), "nombre"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td>Fecha:</td>\n                    <td><input class=\"DatePicker\" name=\"fechaInicio\"></td> \n                </tr>\n                <tr>\n                    <td>";
     // line 619
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), "descripcion"), 'label');
     echo "</td>\n                    <td>";
     // line 620
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), "descripcion"), 'widget');
     echo "</td>\n                    <td>";
     // line 621
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), "descripcion"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td><input type=\"submit\" class=\"btnAdd\" name=\"salvarHito\" value=\"Agregar Hito\"></td>\n                    <td><input type=\"hidden\" id=\"valorHito\" name=\"valorHito\" value=\"\"></td>\n                </tr>\n                ";
     // line 627
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), 'form_end');
     echo "\n            </table>\n        </form>\n    </div>\n</div>\n<div id=\"popup3\" style=\"display: none;\">\n    <div class=\"content-popup2\">\n        <h4 class=\"modalh4\">Actualizar estado de Licitación</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close3\"><img src=\"";
     // line 635
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n            <form action=\"";
     // line 636
     echo $this->env->getExtension('routing')->getPath("licitacion");
     echo " \" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formEstadoLic"]) ? $context["formEstadoLic"] : $this->getContext($context, "formEstadoLic"), 'enctype');
     echo " novalidate>\n                <table>\n                    ";
     // line 638
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formEstadoLic"]) ? $context["formEstadoLic"] : $this->getContext($context, "formEstadoLic"), 'form_start');
     echo "\n                    <tr>\n                        <td class=\"etiqueta\"><font style=\"font-weight: bold;\">Estado a asignar:</font></td>\n                        <td>";
     // line 641
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEstadoLic"]) ? $context["formEstadoLic"] : $this->getContext($context, "formEstadoLic"), "estado"), 'widget', array("attr" => array("class" => "largo-box chosen-select")));
     echo "</td>\n                    </tr>\n                    <tr>\n                        <td></td>\n                        <td>\n                            <input type=\"submit\" class=\"btnAdd\" name=\"actLicEstado\" value=\"Actualizar\"/>\n                            <input type=\"text\" id=\"valorLicFin\" name=\"valorLicFin\" value=\"\"/>\n                        </td>\n                    </tr>\n                    ";
     // line 650
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formEstadoLic"]) ? $context["formEstadoLic"] : $this->getContext($context, "formEstadoLic"), 'form_end');
     echo "\n                </table>\n           </form>\n    </div>\n</div>\n<div id=\"popup6\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Modificar Estado</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close6\"><img src=\"";
     // line 658
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 659
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("glicitacion", array("id" => $this->getAttribute(isset($context["licitacion"]) ? $context["licitacion"] : $this->getContext($context, "licitacion"), "id"))), "html", null, true);
     echo "\" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formEstado"]) ? $context["formEstado"] : $this->getContext($context, "formEstado"), 'enctype');
     echo " novalidate>\n            <table>\n                ";
     // line 661
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formEstado"]) ? $context["formEstado"] : $this->getContext($context, "formEstado"), 'form_start');
     echo "\n                <tr>\n                    <td>";
     // line 663
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEstado"]) ? $context["formEstado"] : $this->getContext($context, "formEstado"), "estado"), 'label');
     echo "</td>\n                    <td>";
     // line 664
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEstado"]) ? $context["formEstado"] : $this->getContext($context, "formEstado"), "estado"), 'widget', array("attr" => array("class" => "chosen-select largo-box")));
     echo "</td>\n                    <td>";
     // line 665
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEstado"]) ? $context["formEstado"] : $this->getContext($context, "formEstado"), "estado"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td><input type=\"submit\" class=\"btnAdd\" name=\"salvarEstadoEtapa\" value=\"Modificar Estado\"></td>\n                    <td><input type=\"hidden\" id=\"valorEtapaAsignada\" name=\"valorEtapa\" value=\"\"></td>\n                    <td><input type=\"hidden\" id=\"aaa\" name=\"aaa\" value=\"\"></td>\n                </tr>\n                ";
     // line 672
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formEstado"]) ? $context["formEstado"] : $this->getContext($context, "formEstado"), 'form_end');
     echo "\n            </table>\n        </form>\n    </div>\n</div>\n<script>\n    \$\$('.DatePicker').each( function(el){\n    new DatePicker(el);\n});\n</script>\n\n\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 2
     echo "\n<style>\n    .sysbar td {\n        white-space: nowrap;\n    }\n    .sysbar td span {\n        font-size: 0.9em;\n        white-space: nowrap;\n        margin-left: 6px;\n        display: none;\n    }    \n    .sysbar td:hover span {\n        display: block;\n    }    \n</style>\n";
     // line 17
     $context["greenBar"] = "#28a428";
     // line 18
     $context["redBar"] = "#d4291f";
     // line 19
     $context["fawnBar"] = "#c0c000";
     // line 20
     $context["blueBar"] = "#205081";
     // line 21
     $context["grayBar"] = "#e8e8e8";
     // line 22
     echo "\n<div style=\"margin:15px;\">\n    <div style=\"white-space:nowrap;\">";
     // line 24
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SimpleSysMon_SystemLoad")), "html", null, true);
     echo "</div>\n    \n    <table style=\"width:100%; border-collapse:collapse;margin-top:4px;\">\n        <tr style=\"height:18px;\">\n            <td style=\"width:";
     // line 28
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "avgload", array()), "used", array())), "html", null, true);
     echo "%; background-color:";
     echo twig_escape_filter($this->env, isset($context["blueBar"]) ? $context["blueBar"] : $this->getContext($context, "blueBar"), "html", null, true);
     echo ";\"></td>\n            <td style=\"width:";
     // line 29
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "avgload", array()), "free", array())), "html", null, true);
     echo "%; background-color:";
     echo twig_escape_filter($this->env, isset($context["grayBar"]) ? $context["grayBar"] : $this->getContext($context, "grayBar"), "html", null, true);
     echo ";font-size:1.1em;font-weight:bold;overflow:hidden;\">&nbsp;";
     echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "avgload", array()), "used", array())), "html", null, true);
     echo " %</td>\n        </tr>\n    </table>\n    \n    <table style=\"width:100%; border-collapse:collapse;\">\n        <tr><td colspan=\"2\">&nbsp;</td></tr>\n    </table>\n        \n    <div style=\"white-space:nowrap;\">";
     // line 37
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SimpleSysMon_UsedMemory")), "html", null, true);
     echo "</div>\n    \n    <div class=\"sysbar\">\n        <table style=\"width:100%; border-collapse:collapse;margin-top:4px;\">\n            <tr style=\"height:18px;\">\n                <td style=\"width:";
     // line 42
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "memory", array()), "procUsed", array())), "html", null, true);
     echo "%; color:#ffffff; background-color:";
     echo twig_escape_filter($this->env, isset($context["blueBar"]) ? $context["blueBar"] : $this->getContext($context, "blueBar"), "html", null, true);
     echo ";\"><span>";
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SimpleSysMon_LabelUsedMemory")), "html", null, true);
     echo ": ";
     echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "memory", array()), "valUsed", array())), "html", null, true);
     echo " MB</span></td>\n                <td style=\"width:";
     // line 43
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "memory", array()), "procCached", array())), "html", null, true);
     echo "%; background-color:";
     echo twig_escape_filter($this->env, isset($context["fawnBar"]) ? $context["fawnBar"] : $this->getContext($context, "fawnBar"), "html", null, true);
     echo ";\"><span>";
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SimpleSysMon_LabelCachedMemory")), "html", null, true);
     echo ": ";
     echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "memory", array()), "valCached", array())), "html", null, true);
     echo " MB</span></td>\n                <td style=\"width:";
     // line 44
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "memory", array()), "procFree", array())), "html", null, true);
     echo "%; background-color:";
     echo twig_escape_filter($this->env, isset($context["grayBar"]) ? $context["grayBar"] : $this->getContext($context, "grayBar"), "html", null, true);
     echo ";font-size:1.1em;font-weight:bold;overflow:hidden;\">&nbsp;";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "memory", array()), "procUsed", array()) + twig_round($this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "memory", array()), "procCached", array())), "html", null, true);
     echo " %</td>\n            </tr>\n        </table>\n    </div>\n    \n    <table style=\"width:100%; border-collapse:collapse;\">\n        <tr><td colspan=\"2\">&nbsp;</td></tr>\n    </table>\n        \n    <div style=\"white-space:nowrap;\">";
     // line 53
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SimpleSysMon_NetTraffic")), "html", null, true);
     echo "</div>\n    \n    <div class=\"sysbar\">\n        <table style=\"width:100%; border-collapse:collapse;margin-top:4px;\">\n            <tr style=\"height:18px;\">\n                <td style=\"width:";
     // line 58
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "net", array()), "procDownload", array())), "html", null, true);
     echo "%; color:#ffffff; background-color:";
     echo twig_escape_filter($this->env, isset($context["blueBar"]) ? $context["blueBar"] : $this->getContext($context, "blueBar"), "html", null, true);
     echo ";\"><span>";
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SimpleSysMon_LabelDownload")), "html", null, true);
     echo ": ";
     echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "net", array()), "valDownload", array())), "html", null, true);
     echo " kB/s</span></td>\n                <td style=\"width:";
     // line 59
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "net", array()), "procUpload", array())), "html", null, true);
     echo "%; background-color:";
     echo twig_escape_filter($this->env, isset($context["fawnBar"]) ? $context["fawnBar"] : $this->getContext($context, "fawnBar"), "html", null, true);
     echo ";\"><span>";
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SimpleSysMon_LabelUpload")), "html", null, true);
     echo ": ";
     echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "net", array()), "valUpload", array())), "html", null, true);
     echo " kB/s</span></td>\n                <td style=\"width:";
     // line 60
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "net", array()), "procFree", array())), "html", null, true);
     echo "%; background-color:";
     echo twig_escape_filter($this->env, isset($context["grayBar"]) ? $context["grayBar"] : $this->getContext($context, "grayBar"), "html", null, true);
     echo ";font-size:1.1em;font-weight:bold;overflow:hidden;\">&nbsp;";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "net", array()), "procDownload", array()) + twig_round($this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "net", array()), "procUpload", array())), "html", null, true);
     echo " %</td>\n            </tr>\n        </table>\n    </div>\n    \n    <table style=\"width:100%; border-collapse:collapse;\">\n        <tr><td colspan=\"2\">&nbsp;</td></tr>\n    </table>\n        \n    <div style=\"white-space:nowrap;\">";
     // line 69
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("SimpleSysMon_UsedDisk")), "html", null, true);
     echo "</div>\n    \n    <div class=\"sysbar\">\n        <table style=\"width:100%; border-collapse:collapse;margin-top:4px;table-layout:fixed;\">\n            <tr style=\"height:18px;\">\n                <td style=\"width:";
     // line 74
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "disk", array()), "procUsed", array())), "html", null, true);
     echo "%; color:#ffffff; background-color:";
     echo twig_escape_filter($this->env, isset($context["blueBar"]) ? $context["blueBar"] : $this->getContext($context, "blueBar"), "html", null, true);
     echo ";\"><span>";
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "disk", array()), "valUsed", array()), 1, "", ""), "html", null, true);
     echo " GB</span></td>\n                <td style=\"width:";
     // line 75
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "disk", array()), "procFree", array())), "html", null, true);
     echo "%; background-color:";
     echo twig_escape_filter($this->env, isset($context["grayBar"]) ? $context["grayBar"] : $this->getContext($context, "grayBar"), "html", null, true);
     echo ";font-size:1.1em;font-weight:bold;overflow-x:hidden;\">&nbsp;";
     echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["sysLoad"]) ? $context["sysLoad"] : $this->getContext($context, "sysLoad"), "disk", array()), "procUsed", array())), "html", null, true);
     echo " %</td>\n            </tr>\n        </table>\n    </div>\n        \n    <div style=\"height:1.0em;\"> </div>\n    \n</div>";
 }
 public function block_container($context, array $blocks = array())
 {
     // line 3
     echo "<div class=\"container\">\n\n    <div class=\"row\">\n        <div class=\"box diapo\">\n            <div class=\"col-lg-12 text-center\">\n                <div id=\"carousel-example-generic\" class=\"carousel slide\">\n                    <!-- Indicators -->\n                    <ol class=\"carousel-indicators hidden-xs\">\n                        <li data-target=\"#carousel-example-generic\" data-slide-to=\"0\" class=\"active\"></li>\n                        <li data-target=\"#carousel-example-generic\" data-slide-to=\"1\"></li>\n                        <li data-target=\"#carousel-example-generic\" data-slide-to=\"2\"></li>\n                    </ol>\n\n                    <!-- Wrapper for slides -->\n                    <div class=\"carousel-inner\">\n                        <div class=\"item active\">\n                            <img class=\"img-responsive img-full\" src=\"";
     // line 19
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/slide-1.jpg"), "html", null, true);
     echo "\" alt=\"\">\n                        </div>\n                        <div class=\"item\">\n                            <img class=\"img-responsive img-full\" src=\"";
     // line 22
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/slide-2.jpg"), "html", null, true);
     echo "\" alt=\"\">\n                        </div>\n                        <div class=\"item\">\n                            <img class=\"img-responsive img-full\" src=\"";
     // line 25
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/slide-3.jpg"), "html", null, true);
     echo "\" alt=\"\">\n                        </div>\n                    </div>\n\n                    <!-- Controls -->\n                    <a class=\"left carousel-control\" href=\"#carousel-example-generic\" data-slide=\"prev\">\n                        <span class=\"icon-prev\"></span>\n                    </a>\n                    <a class=\"right carousel-control\" href=\"#carousel-example-generic\" data-slide=\"next\">\n                        <span class=\"icon-next\"></span>\n                    </a>\n                </div>\n                <div class=\"deal1\"> <h3>\n                        <small>Welcome to</small>\n                    </h3></div>\n                <div class=\"deal\"> <h1>\n                        <span class=\"brand-name\">Best Deal</span>\n                    </h1></div>\n\n            </div>\n        </div>\n\n        <div class=\"box\">\n                ";
     // line 48
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["deals"]) ? $context["deals"] : $this->getContext($context, "deals"));
     foreach ($context['_seq'] as $context["_key"] => $context["deal"]) {
         // line 49
         echo "\n                <div class=\"col-sm-4 text-center\">\n                    <div class=\"test\">\n                        <div id=\"";
         // line 52
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal"), "html", null, true);
         echo "\">\n                            <div class=\"libelle\">  <span class=\"shorttitle\">";
         // line 53
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "Libelle"), "html", null, true);
         echo "</span></div>\n                            <img src='";
         // line 54
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "Image"), "html", null, true);
         echo "' width=\"100%\" height=\"180px\">\n                            <br><span class=\"discount_text\">A partir de</span> <span class=\"item_price\">";
         // line 55
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixPromotionnel"), "html", null, true);
         echo " dt</span> <span class=\"original_price\"> ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixInitial"), "html", null, true);
         echo " dt</span><br>\n\n                            <div class=\"dealex\"><span class=\"dealexp\">  Ce deal est valable jusqu'au<br> </span> <span class=\"dealdateexp\">";
         // line 57
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "DateFin"), "html", null, true);
         echo "</span></div>\n                            \n                            <div class=\"dealr\"><span class=\"remise\"> - ";
         // line 59
         echo twig_escape_filter($this->env, twig_round(100 / ($this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixInitial") / $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixPromotionnel")), 1, "floor"), "html", null, true);
         echo " %</span></div>\n                            \n                        </div>\n                    </div>   \n\n                    <div id=\"";
         // line 64
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal") + 200, "html", null, true);
         echo "\"  class=\"divkbira\" style=\"display:none;\">                             \n                        <h4 class=\"dealtitr\">";
         // line 65
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "Libelle"), "html", null, true);
         echo "</h4>\n                        <div class=\"imgdet\"><img src='";
         // line 66
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "Image"), "html", null, true);
         echo "' width=\"600px\" height=\"300px\"></div>\n                        <div class=\"dealdet\"><span class=\"discount_text\">A partir de</span> <span class=\"item_price\">";
         // line 67
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixPromotionnel"), "html", null, true);
         echo " dt</span> <span class=\"original_price\"> ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixInitial"), "html", null, true);
         echo " dt</span><br>\n                        La date du d�p�t du deal est le ";
         // line 68
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "DateDebut"), "html", null, true);
         echo " <br>\n                        Profitez VITE, ce deal est valable jusqu'au <span class=\"dealdateexp\">";
         // line 69
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "DateFin"), "html", null, true);
         echo "</span><br>\n                        <b>Type :</b> ";
         // line 70
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "TypeDeal"), "html", null, true);
         echo "<br>\n                        <b> Cat�gorie:</b> ";
         // line 71
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "Categorie"), "html", null, true);
         echo "<br>\n                        Vous �conomisez ";
         // line 72
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixInitial") - $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixPromotionnel"), "html", null, true);
         echo " dt<br>\n                        <span class=\"remise\"> - ";
         // line 73
         echo twig_escape_filter($this->env, twig_round(100 / ($this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixInitial") / $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "PrixPromotionnel")), 1, "floor"), "html", null, true);
         echo " %</span><br>\n                        </div>\n                            <div class=\"detdeal\"><b> D�tail de l'offre:</b><br>";
         // line 75
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "Descriptif"), "html", null, true);
         echo "\n                    \n                                </br> <div class=\"dealre\"><a href=\"";
         // line 77
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("deal_areserver", array("iddeal" => $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal"), "iduser" => $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user"), "id"))), "html", null, true);
         echo "\"><img src=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/reservez.jpg"), "html", null, true);
         echo "\"></a></div> \n                          \n                        <div class=\"evaluation\">\n                            <form action=\"";
         // line 80
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("deal_evaluer", array("iddeal" => $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal"), "iduser" => $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "user"), "getid", array(), "method"))), "html", null, true);
         echo "\" method=\"POST\" >\n                                 \n                                <fieldset class=\"rating\">\n                                    <legend>Notez le deal:</legend>\n                                    <input type=\"radio\" id=\"star5\" name=\"rating\" value=\"5\" /><label for=\"star5\" title=\"Rocks!\">5 stars</label>\n                                    <input type=\"radio\" id=\"star4\" name=\"rating\" value=\"4\" /><label for=\"star4\" title=\"Pretty good\">4 stars</label>\n                                    <input type=\"radio\" id=\"star3\" name=\"rating\" value=\"3\" /><label for=\"star3\" title=\"Meh\">3 stars</label>\n                                    <input type=\"radio\" id=\"star2\" name=\"rating\" value=\"2\" /><label for=\"star2\" title=\"Kinda bad\">2 stars</label>\n                                    <input type=\"radio\" id=\"star1\" name=\"rating\" value=\"1\" /><label for=\"star1\" title=\"Sucks big time\">1 star</label>\n                                </fieldset>\n\n                                <br>\n                                <textarea name=\"commentaire\" rows=\"4\" cols=\"50\">\n                                    Commentez le deal\n                                </textarea><br>\n                                <center><input id=\"eval\" type=\"submit\" class=\"col-sm-2\" value=\"Evaluer\"></center>\n                                <div id=\"zone\"></div>\n                            </form>\n                        </div>\n                              </div>\n                ";
         // line 113
         echo "                    </div>\n\n                </div>\n\n\n\n                <script>\n                    // Lors du clique sur le boutton le div #d1 sera AFFICHER\n\n\n                    \$('#";
         // line 123
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal"), "html", null, true);
         echo "').click(function() {\n\n                        \$('.test').addClass(\"transparence\");\n                        \$('#";
         // line 126
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal") + 200, "html", null, true);
         echo "').fadeIn(\"slow\");\n                    });\n                    \$('#";
         // line 128
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal") + 200, "html", null, true);
         echo "').dblclick(function() {\n\n                        \$('#";
         // line 130
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["deal"]) ? $context["deal"] : $this->getContext($context, "deal"), "IdDeal") + 200, "html", null, true);
         echo "').hide();\n                        \$('.test').removeClass(\"transparence\");\n                    });\n\n\n                    \$('#eval').click(function() {\n\n                        \$('.evaluation').hide(\"slow\");\n                    });\n\n\n\n\n\n\n                    </script>         \n                        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['deal'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 147
     echo "\n                </div>\n            </div>\n\n\n\n        </div>\n";
 }
 public function block_contenido($context, array $blocks = array())
 {
     // line 3
     echo "<script src=\"";
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/mootools2.js"), "html", null, true);
     echo "\"></script>\n<link href=\"";
     // line 4
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("css/jquery.mCustomScrollbar.min.css"), "html", null, true);
     echo "\" rel=\"stylesheet\" media=\"screen\">\n<link href=\"";
     // line 5
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("css/modal.css"), "html", null, true);
     echo "\" rel=\"stylesheet\" media=\"screen\">\n<script src=\"";
     // line 6
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/Chart.js-master/Chart.js"), "html", null, true);
     echo "\"></script>\n<script src=\"";
     // line 7
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/jquery.mCustomScrollbar.concat.min.js"), "html", null, true);
     echo "\"></script>\n<script src=\"";
     // line 8
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/calendar.js"), "html", null, true);
     echo "\"></script>\n<link href=\"";
     // line 9
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("css/calendar.css"), "html", null, true);
     echo "\" rel=\"stylesheet\" media=\"screen\">\n<script>\n    \$\$('.DatePicker').each( function(el){\n\tnew DatePicker(el);\n});\n</script>\n<script type=\"text/javascript\">\n    \$(document).ready(function(){\n         var cw = \$('#infoGeneral').height();\n         \$('#infoGeneral').css('height', cw+'px');\n         \$('#infoProf').css('height', cw+'px');\n         \$('#infoFin').css('height', cw+'px');\n         \$('#infoEtapa').css('height', cw+'px');\n         \$('#infoAdic').css('height', cw+'px');\n         \$('#infoExep').css('height', cw+'px');\n         \$('#infoHitos').css('height', cw+'px');\n         \$('#infoAvances').css('height', cw+'px');\n         \$('#infoActividades').css('height', cw+'px');\n    });\n   \n    \n</script>\n<script type=\"text/javascript\">\n    (function(\$){\n        \$(window).load(function(){\n            var cw = \$('#infoGeneral').height();\n            var ce = cw - 38 - cw * 0.30;\n            \$('#containerScroll').css('height', ce+'px');\n            \$('#containerScroll1').css('height', ce+'px');\n            \$('#containerScroll2').css('height', ce+'px');\n            \$('#containerScroll3').css('height', ce+'px');\n            \$('#containerScroll4').css('height', ce+'px');\n            \$(\"#containerScroll\").mCustomScrollbar();\n            \$(\"#containerScroll1\").mCustomScrollbar();\n            \$(\"#containerScroll2\").mCustomScrollbar();\n            \$(\"#containerScroll3\").mCustomScrollbar();\n            \$('#containerScroll4').css('height', ce+'px');\n        });\n    })(jQuery);\n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('#addProfesional').click(function(){\n        var id = \$(this).data(\"id\");\n        \$(\"#valorProyecto\").val( id );\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close').click(function(){\n    \$('#popup').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('#addExProy').click(function(){\n        var id = \$(this).data(\"id\");\n        \$(\"#valorProyecto\").val( id );\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup1').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close1').click(function(){\n    \$('#popup1').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('#addExEtapa').click(function(){\n        var etapa = \$(this).data(\"etapa\");\n        \$(\"#valorEtapaEx\").val( etapa );\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup3').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close3').click(function(){\n    \$('#popup3').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script lang=\"text/javascript\">\n\$(document).ready(function(){\n    \$(\".chosen-select\").chosen();\n});\n</script>\n<script type=\"text/javascript\">\n    (function(\$){\n        \$(window).load(function(){\n            \$(\"#containerScroll\").mCustomScrollbar();\n        });\n    })(jQuery);\n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('#addEtapa').click(function(){\n        var etapa = \$(this).data(\"etapa\");\n        \$(\"#valorProyecto1\").val( etapa );\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup4').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close4').click(function(){\n    \$('#popup4').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('#addEtapaE').click(function(){\n        var etapaexistente = \$(this).data(\"etapaexistente\");\n        \$(\"#valorProyecto2\").val( etapaexistente );\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup2').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close2').click(function(){\n    \$('#popup2').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n  \$('#addHito').click(function(){\n        var hito = \$(this).data(\"proyecto\");\n        \$(\"#valorHito\").val( hito );\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup5').fadeIn('slow');\n        \$('.popup-overlay').fadeIn('slow');\n        \$('.popup-overlay').height(\$(window).height());\n        return false;\n    });\n    \n  \$('#close5').click(function(){\n    \$('#popup5').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n});\n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n    \$(\".eEtapa\").click(function(e){\n        e.preventDefault();\n        var asEtapa = \$(this).data(\"etapa\");\n        \$(\"#aaa\").val(1);\n        \$(\"#valorEtapaAsignada\").val(asEtapa);\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup6').fadeIn('slow');\n    });\n\n    \$('#close6').click(function(){\n    \$('#popup6').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n}\n);    \n</script>\n<script type=\"text/javascript\">\n\$(document).ready(function(){\n    \$(\".eHito\").click(function(e){\n        e.preventDefault();\n        var asHito = \$(this).data(\"hito\");\n        \$(\"#aaa\").val(2);\n        \$(\"#valorEtapaAsignada\").val(asHito);\n        \$('#blackWindow').fadeIn('slow');\n        \$('#popup6').fadeIn('slow');\n    });\n\n    \$('#close6').click(function(){\n    \$('#popup6').fadeOut('slow');\n    \$('#blackWindow').fadeOut('slow');\n    \$('.popup-overlay').fadeOut('slow');\n    return false;\n  });\n}\n);    \n</script>\n<div id=\"contenedorGraficos\">\n<h4 class=\"tituloDash\">Dashboard de Proyecto ";
     // line 222
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "nombreProyecto"), "html", null, true);
     echo "</h4>\n";
     // line 223
     $context["largo"] = twig_length_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "factTable")) - 1;
     // line 224
     echo "    <div  id=\"infoGeneral\" class=\" dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-4 infoGeneral\">\n        <h3>INFORMACIÓN GENERAL</h3>\n        <canvas class=\"avanceGraficoProyecto\" id=\"myChart\" width=\"180\" height=\"180\"></canvas>\n        <table>\n            <tr>\n                <td class=\"first\">Avance:</td>\n                ";
     // line 230
     if ($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "avanceHoras") == 0 || $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "horasProgramadas") == 0) {
         // line 231
         echo "                <td class=\"second\">0%</td>\n                ";
     } else {
         // line 233
         echo "                <td class=\"second\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "avanceHoras") * 100 / twig_round($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "horasProgramadas"), 2, "floor"), "html", null, true);
         echo "%</td>\n\n                ";
     }
     // line 236
     echo "            </tr>\n            <tr>\n                <td class=\"first\">Fecha de Inicio:</td>\n                <td class=\"second\">";
     // line 239
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "fechaInicio"), "d-m-Y"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Fecha de Término</td>\n                <td class=\"second\">";
     // line 243
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "fechaFin"), "d-m-Y"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Horas Programadas:</td>\n                <td class=\"second\">";
     // line 247
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "horasProgramadas"), "html", null, true);
     echo " horas</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Horas Avanzadas:</td>\n                <td class=\"second\">";
     // line 251
     echo twig_escape_filter($this->env, twig_round($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "avanceHoras"), 2, "floor"), "html", null, true);
     echo " horas</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Horas Restantes:</td>\n                <td class=\"second\">";
     // line 255
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "horasProgramadas") - twig_round($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "avanceHoras"), 2, "floor"), "html", null, true);
     echo " horas</td>\n            </tr>\n        </table>\n        \n    </div>\n    <div id=\"infoFin\" class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-4 infoFin\">\n        <h3>FINANZAS</h3>\n        <canvas class=\"avanceGraficoProyecto\" id=\"myChartFin\" width=\"180\" height=\"180\"></canvas>\n        <table>\n            ";
     // line 264
     if ($this->getAttribute($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "finanzas"), "valorFecha", array(), "array") == 0 || $this->getAttribute($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "finanzas"), "valorPresupuestado", array(), "array") == 0) {
         // line 265
         echo "                ";
         $context["avanceFinanza"] = 0;
         // line 266
         echo "                    ";
     } else {
         // line 267
         echo "                ";
         $context["avanceFinanza"] = $this->getAttribute($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "finanzas"), "valorFecha", array(), "array") * 100 / $this->getAttribute($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "finanzas"), "valorPresupuestado", array(), "array");
         // line 268
         echo "            ";
     }
     // line 269
     echo "            <tr>\n                <td class=\"first\">Avance:</td>\n                <td class=\"second\">";
     // line 271
     echo twig_escape_filter($this->env, twig_round(isset($context["avanceFinanza"]) ? $context["avanceFinanza"] : $this->getContext($context, "avanceFinanza"), 2, "floor"), "html", null, true);
     echo "%</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Valor actual:</td>\n                <td class=\"second\">";
     // line 275
     echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "finanzas"), "valorFecha", array(), "array"), 2, "floor"), "html", null, true);
     echo " U.F</td>\n            </tr>\n            <tr>\n                <td class=\"first\">Valor Presupuestado:</td>\n                <td class=\"second\">";
     // line 279
     echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "finanzas"), "valorPresupuestado", array(), "array"), 2, "floor"), "html", null, true);
     echo " U.F</td>\n            </tr>\n        </table>\n        \n        \n    </div>\n    <div id=\"infoProf\" class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-4 infoProf\">\n        <h3>PROFESIONALES ASIGNADOS</h3>\n        <div id=\"containerScroll\">\n        ";
     // line 288
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "asignacion"));
     foreach ($context['_seq'] as $context["_key"] => $context["asignacion"]) {
         // line 289
         echo "        <div class=\"profAsignado\">\n            <div>\n                ";
         // line 291
         if ($this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "imagenPerfil") == null) {
             // line 292
             echo "                <div class=\"dashImgPerfil\"><img src=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/male.png"), "html", null, true);
             echo "\" class=\"img-circle\" /></div>\n                ";
         } else {
             // line 294
             echo "                <div class=\"dashImgPerfil\"><img src=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("documentos/"), "html", null, true);
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "imagenPerfil"), "path"), "html", null, true);
             echo "\"></div>\n                ";
         }
         // line 296
         echo "                <div class=\"dashInfoProf\">\n                    <ul> \n                        ";
         // line 298
         if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "papellido")) >= 5) {
             echo " \n                        <li>";
             // line 299
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "pnombre"), "html", null, true);
             echo " ";
             echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "papellido"), 0, 3), "html", null, true);
             echo "...</li>\n                        ";
         } else {
             // line 301
             echo "                        <li>";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "pnombre"), "html", null, true);
             echo " ";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "profesional"), "papellido"), "html", null, true);
             echo "</li>\n                        ";
         }
         // line 303
         echo "                        <li>";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "horas"), "html", null, true);
         echo " h/Prog.</li>\n                        <li>";
         // line 304
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "valorHora"), "html", null, true);
         echo " U.F</li>\n                        <li>";
         // line 305
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "fechaInicio"), "d-m-Y"), "html", null, true);
         echo " F/I</li>\n                        <li>";
         // line 306
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["asignacion"]) ? $context["asignacion"] : $this->getContext($context, "asignacion"), "fechaTermino"), "d-m-Y"), "html", null, true);
         echo " F/T</li>\n                    </ul>\n     \n                </div>\n            </div>  \n        </div>\n                \n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['asignacion'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 314
     echo "        </div>\n        <div><input type=\"button\" id=\"addProfesional\" class=\"btnAdd center-block\" name=\"agregarProfesional\" value=\"Añadir Profesional\" data-id=\"";
     // line 315
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "id"), "html", null, true);
     echo "\"/></div>\n        \n    </div>\n    <div id=\"infoEtapa\" class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-6 infoEtapa\">\n        <h3>ETAPAS</h3>\n        <div id=\"containerScroll2\">\n        <table>\n            <tr>\n                <td class=\"first\">Etapa</td>\n                <td class=\"first\">Fecha Inicio</td>\n                <td class=\"first\">Fecha Término</td>\n                <td class=\"first\">horas</td>\n                <td class=\"first\">Estado</td>\n            </tr>\n        ";
     // line 329
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "asignacionEtapa"));
     foreach ($context['_seq'] as $context["_key"] => $context["etapa"]) {
         // line 330
         echo "            <tr>\n                <td class=\"second etapa\"><p>";
         // line 331
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["etapa"]) ? $context["etapa"] : $this->getContext($context, "etapa"), "etapaProyecto"), "nombre"), "html", null, true);
         echo "</p></td>\n                <td class=\"second\">";
         // line 332
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["etapa"]) ? $context["etapa"] : $this->getContext($context, "etapa"), "fechaInicio"), "d-m-Y"), "html", null, true);
         echo "</td>\n                <td class=\"second\">";
         // line 333
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["etapa"]) ? $context["etapa"] : $this->getContext($context, "etapa"), "fechaTermino"), "d-m-Y"), "html", null, true);
         echo "</td>\n                <td class=\"second\">";
         // line 334
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["etapa"]) ? $context["etapa"] : $this->getContext($context, "etapa"), "sumaHoras"), "html", null, true);
         echo "</td>\n                <td><a href=\"#\" data-etapa=\"";
         // line 335
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["etapa"]) ? $context["etapa"] : $this->getContext($context, "etapa"), "id"), "html", null, true);
         echo "\" class=\"eEtapa\">";
         if (null === $this->getAttribute(isset($context["etapa"]) ? $context["etapa"] : $this->getContext($context, "etapa"), "estado")) {
             echo "estado";
         } else {
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["etapa"]) ? $context["etapa"] : $this->getContext($context, "etapa"), "estado"), "estado"), "html", null, true);
         }
         echo "</a></td>\n            </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['etapa'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 338
     echo "        </table> \n        </div> \n        <div><input type=\"button\" id=\"addEtapa\" class=\"btnAdd center-block\" name=\"agregarNEtapa\" value=\"Añadir Etapa\"      data-etapa=\"";
     // line 340
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "id"), "html", null, true);
     echo "\"/>\n            <input type=\"button\" id=\"addEtapaE\" class=\"btnAdd center-block\" name=\"agregarEtapaE\" value=\"Añadir Etapa Existente\" data-etapaexistente=\"";
     // line 341
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "id"), "html", null, true);
     echo "\"/>\n        </div>      \n    </div>\n    <div id=\"infoExep\" class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-6 infoExep\">\n        <h3>EXCEPCIONES</h3>\n        <ul class=\"botones nav nav-tabs\">\n            <li><a href=\"#proyecto\" data-toggle=\"tab\">Proyecto</a></li>\n            <li><a href=\"#etapa\" data-toggle=\"tab\">Etapas</a></li>\n             <li><a href=\"#hitos\" data-toggle=\"tab\">Hitos</a></li>    \n        </ul>\n        <div class=\"tab-content\">\n            <div id=\"proyecto\" class=\"tab-pane active\">\n            <div id=\"containerScroll1\">\n                ";
     // line 354
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "excepcionesPlazo"));
     foreach ($context['_seq'] as $context["_key"] => $context["excepcion"]) {
         // line 355
         echo "                <div class=\"exepProyecto\">\n                    <div>\n                        <table>\n                            <tr>\n                                <td class=\"first\">Fecha de Anterior</td>\n                                <td class=\"first\">Fecha de Término</td>\n                                <td class=\"first\">Fecha de Ingreso</td>\n                            </tr>\n                            <tr>\n                                <td class=\"second\">";
         // line 364
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["excepcion"]) ? $context["excepcion"] : $this->getContext($context, "excepcion"), "fechaAnterior"), "d-m-Y"), "html", null, true);
         echo "</td>\n                                <td class=\"second\">";
         // line 365
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["excepcion"]) ? $context["excepcion"] : $this->getContext($context, "excepcion"), "fechaTermino"), "d-m-Y"), "html", null, true);
         echo "</td>\n                                <td class=\"second\">";
         // line 366
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["excepcion"]) ? $context["excepcion"] : $this->getContext($context, "excepcion"), "fechaIngreso"), "d-m-Y"), "html", null, true);
         echo "</td>\n                            </tr>\n                        </table>\n                        <div>\n                            <ul>\n                                <li>Las horas han ";
         // line 371
         if ($this->getAttribute(isset($context["excepcion"]) ? $context["excepcion"] : $this->getContext($context, "excepcion"), "accion") == "a") {
             echo " <p style=\"color: #02C7DC\">aumentado</p> ";
         } else {
             echo " <p style=\"color:#f9012a\">disminuido</p>";
         }
         echo " </li>\n                                <li>";
         // line 372
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["excepcion"]) ? $context["excepcion"] : $this->getContext($context, "excepcion"), "descripcion"), "html", null, true);
         echo "</li>\n                                <li>";
         // line 373
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["excepcion"]) ? $context["excepcion"] : $this->getContext($context, "excepcion"), "horas"), "html", null, true);
         echo " horas han sido modificadas</li>\n                            </ul>\n                        </div>\n                    </div>\n                </div>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['excepcion'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 379
     echo "               \n            </div>\n                <input type=\"button\" name=\"addExProyecto\" id=\"addExProy\" value=\"Añadir Excepción\" class=\"btnAdd center-block\">\n        </div>\n            <div id=\"etapa\" class=\"tab-pane\">\n                <div id=\"containerScroll3\">\n                <table>\n                    <tr>\n                        <td class=\"first\">Etapa</td>\n                        <td class=\"first\">Fecha de Inicio</td>\n                        <td class=\"first\">Fecha de Termino</td>\n                    </tr>\n                ";
     // line 391
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "asignacionEtapa"));
     foreach ($context['_seq'] as $context["_key"] => $context["exepcion"]) {
         // line 392
         echo "                    ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["exepcion"]) ? $context["exepcion"] : $this->getContext($context, "exepcion"), "excepcionesEtapa"));
         foreach ($context['_seq'] as $context["_key"] => $context["excepciones"]) {
             echo "  \n                        <tr>\n                            <td class=\"second\">";
             // line 394
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["exepcion"]) ? $context["exepcion"] : $this->getContext($context, "exepcion"), "etapaProyecto"), "nombre"), "html", null, true);
             echo "</td>  \n                            <td class=\"second\">";
             // line 395
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["excepciones"]) ? $context["excepciones"] : $this->getContext($context, "excepciones"), "fechaInicio"), "d-m-Y"), "html", null, true);
             echo "</td>\n                            <td class=\"second\">";
             // line 396
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["excepciones"]) ? $context["excepciones"] : $this->getContext($context, "excepciones"), "fechaTermino"), "d-m-Y"), "html", null, true);
             echo "</td> \n                        </tr>                       \n                    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['excepciones'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 398
         echo " \n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['exepcion'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 399
     echo " \n                </table> \n                </div>  \n                <input type=\"button\" name=\"addExEtapa\" id=\"addExEtapa\" data-proyecto=\"";
     // line 402
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "id"), "html", null, true);
     echo "\" value=\"Añadir Excepción\" class=\"btnAdd center-block\">\n                \n            </div>\n            <div id=\"hitos\" class=\"tab-pane\">\n                3\n            </div>\n            \n        </div>\n    </div>\n    <div id=\"infoAdic\" class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-6 infoAdic\">\n        <h3>HITOS</h3>\n        <div id=\"containerScroll3\">\n            <table>\n                <tr>\n                    <td class=\"first\">Nombre</td>\n                    <td class=\"first\">Fecha</td>\n                    <td class=\"first\">Descripción</td>\n                    <td class=\"first\">Estado</td>\n                </tr>\n                ";
     // line 421
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "hito"));
     foreach ($context['_seq'] as $context["_key"] => $context["hito"]) {
         // line 422
         echo "                    <tr>\n                        <td class=\"second\"><p>";
         // line 423
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["hito"]) ? $context["hito"] : $this->getContext($context, "hito"), "nombre"), "html", null, true);
         echo "</p></td>\n                        <td class=\"third\">";
         // line 424
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["hito"]) ? $context["hito"] : $this->getContext($context, "hito"), "fecha"), "d-m-Y"), "html", null, true);
         echo "</td>\n                        <td class=\"third\">";
         // line 425
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["hito"]) ? $context["hito"] : $this->getContext($context, "hito"), "descripcion"), "html", null, true);
         echo "</td>\n                        <td class=\"third\"><a href=\"\" class=\"eHito\" data-hito=\"";
         // line 426
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["hito"]) ? $context["hito"] : $this->getContext($context, "hito"), "id"), "html", null, true);
         echo "\">";
         if (null === $this->getAttribute(isset($context["hito"]) ? $context["hito"] : $this->getContext($context, "hito"), "estado")) {
             echo "estado";
         } else {
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["hito"]) ? $context["hito"] : $this->getContext($context, "hito"), "estado"), "estado"), "html", null, true);
         }
         echo "</a></td>                        \n                    </tr>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['hito'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 429
     echo "\n            </table>\n        </div> \n        <input type=\"button\" name=\"addHito\" id=\"addHito\" data-proyecto=\"";
     // line 432
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "id"), "html", null, true);
     echo "\" value=\"Añadir Hito\" class=\"btnAdd center-block\">\n    </div>\n    <div id=\"infoAvances\" class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-6 infoAvances\">\n        <h3>AVANCE DE PROFESIONALES</h3>\n        <canvas id=\"avancesProf\" width=\"270\" height=\"200\"></canvas>\n        \n    </div>\n    <div id=\"infoActividades\" class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-6 infoAvances\">\n        <h3>ACTIVIDADES DOCUMENTADAS</h3>\n        <canvas id=\"avancesAct\" width=\"270\" height=\"200\"></canvas> \n        ";
     // line 442
     $context["numeroAct"] = 1;
     // line 443
     echo "            <div id=\"containerScroll4\">\n                <div class=\"tituloLista\">Lista de actividades</div>\n                <ul id=\"ulItems\">\n        ";
     // line 446
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "actividades"));
     foreach ($context['_seq'] as $context["_key"] => $context["actividades"]) {
         // line 447
         echo "            <li>";
         echo twig_escape_filter($this->env, isset($context["numeroAct"]) ? $context["numeroAct"] : $this->getContext($context, "numeroAct"), "html", null, true);
         echo ".-";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["actividades"]) ? $context["actividades"] : $this->getContext($context, "actividades"), "nombre"), "html", null, true);
         echo "</li>\n            ";
         // line 448
         $context["numeroAct"] = (isset($context["numeroAct"]) ? $context["numeroAct"] : $this->getContext($context, "numeroAct")) + 1;
         // line 449
         echo "        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['actividades'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     echo " \n                </ul>\n            </div>\n    </div>\n    <div id=\"infoActividadesProf\" class=\"dashboardColumn col-xs-12 col-sm-12 col-md-6 col-lg-6 infoAvances\">\n        <h3>ACTIVIDADES POR PROFESIONALES</h3>\n            <div id=\"containerScroll5\">\n                <div class=\"tituloLista\">Actividades desarrolladas por Profesionales</div>\n                <table>\n                    <tr>\n                        <td class=\"first\">Profesional</td>\n                        <td class=\"first\">Actividad</td>\n                        <td class=\"first\">Cantidad de horas</td>\n                    </tr>\n                ";
     // line 463
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "actProf"));
     foreach ($context['_seq'] as $context["_key"] => $context["actividad"]) {
         // line 464
         echo "                    <tr>\n                        <td class=\"third\">";
         // line 465
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["actividad"]) ? $context["actividad"] : $this->getContext($context, "actividad"), "nombre"), "html", null, true);
         echo "</td>\n                        <td class=\"third\">";
         // line 466
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["actividad"]) ? $context["actividad"] : $this->getContext($context, "actividad"), "actnom"), "html", null, true);
         echo "</td>\n                        <td class=\"third\" style=\"text-align:center\">";
         // line 467
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["actividad"]) ? $context["actividad"] : $this->getContext($context, "actividad"), "suma"), "html", null, true);
         echo "</td>\n                    </tr>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['actividad'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 470
     echo "                </table>\n            </div>\n    </div>\n<script language=\"javascript\">\n           \n                var ctx = document.getElementById(\"myChart\").getContext(\"2d\");\n                var data = [\n                {\n                    value: ";
     // line 478
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "avanceHoras") * 100 / twig_round($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "horasProgramadas"), 2, "floor"), "html", null, true);
     echo ",\n                    color:\"#363569\",\n                    highlight: \"#363569\",\n                    label: \"Avance\"\n                },\n                {\n                    value: 100 - ";
     // line 484
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "avanceHoras") * 100 / twig_round($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "horasProgramadas"), 2, "floor"), "html", null, true);
     echo ",\n                    color: \"#AFAEFA\",\n                    highlight: \"#AFAEFA\",\n                    label: \"Restante\"\n                }\n                ];\nChart.defaults.global.animation = false;\nvar myPieChart = new Chart(ctx).Pie(data);\n</script>\n<script language=\"javascript\">\n                var ctx = document.getElementById(\"myChartFin\").getContext(\"2d\");\n                var data = [\n                {\n                    value: ";
     // line 497
     echo twig_escape_filter($this->env, twig_round(isset($context["avanceFinanza"]) ? $context["avanceFinanza"] : $this->getContext($context, "avanceFinanza"), 2, "floor"), "html", null, true);
     echo ",\n                    color:\"#363569\",\n                    highlight: \"#363569\",\n                    label: \"Avance\"\n                },\n                {\n                    value: 100 - ";
     // line 503
     echo twig_escape_filter($this->env, twig_round(isset($context["avanceFinanza"]) ? $context["avanceFinanza"] : $this->getContext($context, "avanceFinanza"), 2, "floor"), "html", null, true);
     echo ",\n                    color: \"#AFAEFA\",\n                    highlight: \"#AFAEFA\",\n                    label: \"Restante\"\n                }\n                ];\nChart.defaults.global.animation = false;\nvar myPieChart = new Chart(ctx).Pie(data);\n</script>\n<script language=\"javascript\">\n    itemsNombre = [];\n    avancePropio = [];\n    ";
     // line 515
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "avanceProfesionales"));
     foreach ($context['_seq'] as $context["_key"] => $context["tiempo"]) {
         // line 516
         echo "            itemsNombre.push(\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tiempo"]) ? $context["tiempo"] : $this->getContext($context, "tiempo"), "nombre"), "html", null, true);
         echo "\");\n            avancePropio.push(\"";
         // line 517
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tiempo"]) ? $context["tiempo"] : $this->getContext($context, "tiempo"), "suma"), "html", null, true);
         echo "\");      \n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tiempo'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 519
     echo "    var avance = document.getElementById(\"avancesProf\").getContext(\"2d\");\n    var data = {\n    labels: itemsNombre,\n    datasets: [\n        {\n            label: \"Avances por Profesionales\",\n            fillColor: \"rgba(220,220,220,0.5)\",\n            strokeColor: \"rgba(220,220,220,0.8)\",\n            highlightFill: \"rgba(220,220,220,0.75)\",\n            highlightStroke: \"rgba(220,220,220,1)\",\n            data: avancePropio\n        }\n    ]\n};\n\nvar myBarChart = new Chart(avance).Bar(data);\n</script>\n<script language=\"javascript\">\n    itemsNombre = [];\n    avancePropio = [];\n    var numero = 1;\n    ";
     // line 540
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "actividades"));
     foreach ($context['_seq'] as $context["_key"] => $context["tiempo"]) {
         // line 541
         echo "            itemsNombre.push(numero);\n            avancePropio.push(\"";
         // line 542
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tiempo"]) ? $context["tiempo"] : $this->getContext($context, "tiempo"), "suma"), "html", null, true);
         echo "\");   \n            numero = numero +1;   \n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tiempo'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 545
     echo "    var avance = document.getElementById(\"avancesAct\").getContext(\"2d\");\n    var data = {\n    labels: itemsNombre,\n    datasets: [\n        {\n            label: \"Avances por Profesionales\",\n            fillColor: \"rgba(220,220,220,0.5)\",\n            strokeColor: \"rgba(220,220,220,0.8)\",\n            highlightFill: \"rgba(220,220,220,0.75)\",\n            highlightStroke: \"rgba(220,220,220,1)\",\n            data: avancePropio\n        }\n    ]\n};\n\nvar myBarChart = new Chart(avance).Bar(data);\n</script>\n<script language=\"javascript\">\n    itemsGraph = [];\n    porcentaje = [];\n    ";
     // line 565
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "factTable"));
     foreach ($context['_seq'] as $context["_key"] => $context["tiempo"]) {
         // line 566
         echo "            itemsGraph.push(\"";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["tiempo"]) ? $context["tiempo"] : $this->getContext($context, "tiempo"), "fechaId"), "fecha"), "d-m-Y"), "html", null, true);
         echo "\");      \n            porcentaje.push(\"";
         // line 567
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tiempo"]) ? $context["tiempo"] : $this->getContext($context, "tiempo"), "porcentajeAvance"), "html", null, true);
         echo "\");\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tiempo'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 569
     echo "    var avance = document.getElementById(\"avances\").getContext(\"2d\");\n    var data = {\n    labels: itemsGraph,\n    datasets: [\n        {\n            label: \"My First dataset\",\n            fillColor: \"rgba(220,220,220,0.2)\",\n            strokeColor: \"rgba(220,220,220,9)\",\n            pointColor: \"rgba(220,220,220,9)\",\n            pointStrokeColor: \"rgba(220,220,220,0.5)\",\n            pointHighlightFill: \"rgba(220,220,220,0.5)\",\n            pointHighlightStroke: \"rgba(220,220,220,1)\",\n            data: porcentaje\n        }\n    ]\n};\n\nvar myLineChart = new Chart(avance).Line(data);\n</script>\n<div id=\"popup\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Agregar Profesional a Proyecto</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close\"><img src=\"";
     // line 591
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 592
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("gproyecto", array("id" => $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "id"))), "html", null, true);
     echo " \" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formProfesional"]) ? $context["formProfesional"] : $this->getContext($context, "formProfesional"), 'enctype');
     echo " novalidate>\n                <table>\n                    ";
     // line 594
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formProfesional"]) ? $context["formProfesional"] : $this->getContext($context, "formProfesional"), 'form_start');
     echo "\n                    <tr>\n                        <td class=\"etiqueta\"><font style=\"font-weight: bold;\">Profesional a asignar:</font></td>\n                        <td>";
     // line 597
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formProfesional"]) ? $context["formProfesional"] : $this->getContext($context, "formProfesional"), "profesional"), 'widget', array("attr" => array("class" => "largo-box chosen-select")));
     echo "</td>\n                    </tr>\n                    <tr>\n                        <td class=\"etiqueta\"><font style=\"font-weight: bold;\">Horas asignadas:</font></td>\n                        <td>";
     // line 601
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formProfesional"]) ? $context["formProfesional"] : $this->getContext($context, "formProfesional"), "horas"), 'widget', array("attr" => array("class" => "largo-box")));
     echo "</td>\n                    </tr>\n                    <tr>\n                        <td class=\"etiqueta\"><font style=\"font-weight: bold;\">Valor de la hora de profesional:</font></td>\n                        <td>";
     // line 605
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formProfesional"]) ? $context["formProfesional"] : $this->getContext($context, "formProfesional"), "valorHora"), 'widget', array("attr" => array("class" => "largo-box")));
     echo "</td>\n                    </tr>\n                    <tr>\n                        <td>Fecha de inicio</td>\n                        <td><input class=\"DatePicker\" name=\"fechaInicio\"></td> \n                    </tr>\n                    <tr>\n                        <td>Fecha de término</td>\n                        <td><input class=\"DatePicker\" name=\"fechaTermino\"></td> \n                    </tr>\n                    <tr>\n                        <td></td>\n                        <td>\n                            <input type=\"submit\" class=\"btnAdd\" name=\"agregarProfesional\" value=\"Agregar Profesional\">\n                            <input type=\"hidden\" id=\"valorProyecto\" name=\"valorProyecto\" value=\"\">\n                        </td>\n                    </tr>\n                    ";
     // line 622
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formProfesional"]) ? $context["formProfesional"] : $this->getContext($context, "formProfesional"), 'form_end');
     echo "\n                </table>\n           </form>\n    </div>\n</div>\n<div id=\"popup1\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Agregar Excepción a Proyecto</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close1\"><img src=\"";
     // line 630
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 631
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("gproyecto", array("id" => $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "id"))), "html", null, true);
     echo "\" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), 'enctype');
     echo " novalidate>\n            <table>\n                ";
     // line 633
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), 'form_start');
     echo "\n                <tr>\n                    <td>Nueva Fecha de término</td>\n                    <td><input class=\"DatePicker\" name=\"fechaExPro\"></td>\n                </tr>\n                <tr>\n                    <td>";
     // line 639
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "horas"), 'label');
     echo "</td>\n                    <td>";
     // line 640
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "horas"), 'widget', array("attr" => array("class" => "largo-box")));
     echo "</td>\n                    <td>";
     // line 641
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "horas"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td>";
     // line 644
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "accion"), 'label');
     echo "</td>\n                    <td>";
     // line 645
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "accion"), 'widget', array("attr" => array("class" => "chosen-select largo-box")));
     echo "</td>\n                </tr>\n                <tr>\n                    <td>";
     // line 648
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "descripcion"), 'label');
     echo "</td>\n                    <td>";
     // line 649
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "descripcion"), 'widget', array("attr" => array("class" => "largo-box")));
     echo "</td>\n                    <td>";
     // line 650
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), "descripcion"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td><input type=\"submit\" class=\"btnAdd\" name=\"salvarExcepcionP\" value=\"Agregar Etapa\"></td>\n                </tr>\n                <tr>\n                    <td><input type=\"hidden\" id=\"valorProyectoEx\" name=\"valorProyectoEx\" value=\"\"></td>\n                </tr>\n                ";
     // line 658
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formExcPlazoP"]) ? $context["formExcPlazoP"] : $this->getContext($context, "formExcPlazoP"), 'form_end');
     echo "\n            </table>\n        </form>\n    </div>\n</div>\n<div id=\"popup2\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Agregar Etapa existente a Proyecto</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close2\"><img src=\"";
     // line 666
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 667
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("gproyecto", array("id" => $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "id"))), "html", null, true);
     echo "\" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formEtapaE"]) ? $context["formEtapaE"] : $this->getContext($context, "formEtapaE"), 'enctype');
     echo " novalidate>\n            <table>\n                ";
     // line 669
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formEtapaE"]) ? $context["formEtapaE"] : $this->getContext($context, "formEtapaE"), 'form_start');
     echo "\n                <tr>\n                    <td>";
     // line 671
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEtapaE"]) ? $context["formEtapaE"] : $this->getContext($context, "formEtapaE"), "nombre"), 'label');
     echo "</td>\n                    <td>";
     // line 672
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEtapaE"]) ? $context["formEtapaE"] : $this->getContext($context, "formEtapaE"), "nombre"), 'widget', array("attr" => array("class" => "chosen-select largo-box")));
     echo "</td>\n                    <td>";
     // line 673
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEtapaE"]) ? $context["formEtapaE"] : $this->getContext($context, "formEtapaE"), "nombre"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td>Fecha de inicio</td>\n                    <td><input class=\"DatePicker\" name=\"fechaInicio\"></td> \n                </tr>\n                <tr>\n                    <td>Fecha de término</td>\n                    <td><input class=\"DatePicker\" name=\"fechaterminoet\"></td> \n                </tr>\n                <tr>\n                    <td><input type=\"submit\" class=\"btnAdd\" name=\"salvarEtapaE\" value=\"Agregar Etapa\"></td>\n                    <td><input type=\"hidden\" id=\"valorProyecto2\" name=\"valorProyecto2\" value=\"\"></td>\n                </tr>\n                ";
     // line 687
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formEtapaE"]) ? $context["formEtapaE"] : $this->getContext($context, "formEtapaE"), 'form_end');
     echo "\n            </table>\n        </form>\n    </div>\n</div>\n<div id=\"popup3\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Agregar Excepción a Etapa</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close3\"><img src=\"";
     // line 695
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 696
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("gproyecto", array("id" => $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "id"))), "html", null, true);
     echo "\" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formEtapaProyecto"]) ? $context["formEtapaProyecto"] : $this->getContext($context, "formEtapaProyecto"), 'enctype');
     echo "  novalidate>\n            <table>\n                ";
     // line 698
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formEtapaProyecto"]) ? $context["formEtapaProyecto"] : $this->getContext($context, "formEtapaProyecto"), 'form_start');
     echo "\n                <tr>\n                    <td>";
     // line 700
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEtapaProyecto"]) ? $context["formEtapaProyecto"] : $this->getContext($context, "formEtapaProyecto"), "etapaProyecto"), 'label');
     echo "</td>\n                    <td>";
     // line 701
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEtapaProyecto"]) ? $context["formEtapaProyecto"] : $this->getContext($context, "formEtapaProyecto"), "etapaProyecto"), 'widget', array("attr" => array("class" => "chosen-select largo-box")));
     echo "</td>\n                    <td>";
     // line 702
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEtapaProyecto"]) ? $context["formEtapaProyecto"] : $this->getContext($context, "formEtapaProyecto"), "etapaProyecto"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td>Nueva Fecha de Inicio</td>\n                    <td><input class=\"DatePicker\" name=\"fechaInicioEtapa\"></td>\n                </tr>\n                <tr>\n                    <td>Nueva Fecha de término</td>\n                    <td><input class=\"DatePicker\" name=\"fechaTerminoEtapa\"></td>\n                </tr>\n                <tr>\n                    <td>Motivo de modificación</td>\n                    <td><input type=\"text\" name=\"descripcion\"></td>                    \n                </tr>\n                <tr>\n                    <td><input type=\"submit\" class=\"btnAdd\" name=\"salvarExcepcionE\" value=\"Salvar Excepción\"></td>\n                </tr>\n                <tr>\n                    <td><input type=\"hidden\" id=\"valorEtapaEx\" name=\"valorEtapaEx\" value=\"";
     // line 720
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "id"), "html", null, true);
     echo "\"></td>\n                </tr>\n                ";
     // line 722
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formEtapaProyecto"]) ? $context["formEtapaProyecto"] : $this->getContext($context, "formEtapaProyecto"), 'form_end');
     echo "\n            </table>\n        </form>\n    </div>\n</div>\n<div id=\"popup4\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Agregar Etapa a Proyecto</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close4\"><img src=\"";
     // line 730
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 731
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("gproyecto", array("id" => $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "id"))), "html", null, true);
     echo "\" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formNuevaEtapa"]) ? $context["formNuevaEtapa"] : $this->getContext($context, "formNuevaEtapa"), 'enctype');
     echo " novalidate>\n            <table>\n                ";
     // line 733
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formNuevaEtapa"]) ? $context["formNuevaEtapa"] : $this->getContext($context, "formNuevaEtapa"), 'form_start');
     echo "\n                <tr>\n                    <td>";
     // line 735
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formNuevaEtapa"]) ? $context["formNuevaEtapa"] : $this->getContext($context, "formNuevaEtapa"), "nombre"), 'label');
     echo "</td>\n                    <td>";
     // line 736
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formNuevaEtapa"]) ? $context["formNuevaEtapa"] : $this->getContext($context, "formNuevaEtapa"), "nombre"), 'widget');
     echo "</td>\n                    <td>";
     // line 737
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formNuevaEtapa"]) ? $context["formNuevaEtapa"] : $this->getContext($context, "formNuevaEtapa"), "nombre"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td>Fecha de inicio</td>\n                    <td><input class=\"DatePicker\" name=\"fechaInicio\"></td> \n                </tr>\n                <tr>\n                    <td>Fecha de término</td>\n                    <td><input class=\"DatePicker\" name=\"fechaterminoet\"></td> \n                </tr>\n                <tr>\n                    <td><input type=\"submit\" class=\"btnAdd\" name=\"salvarEtapa\" value=\"Agregar Etapa\"></td>\n                    <td><input type=\"text\" id=\"valorProyecto1\" name=\"valorProyecto1\" value=\"\"></td>\n                </tr>\n                ";
     // line 751
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formNuevaEtapa"]) ? $context["formNuevaEtapa"] : $this->getContext($context, "formNuevaEtapa"), 'form_end');
     echo "\n            </table>\n        </form>\n    </div>\n</div>\n<div id=\"popup5\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Agregar Hito</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close5\"><img src=\"";
     // line 759
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 760
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("gproyecto", array("id" => $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "id"))), "html", null, true);
     echo "\" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), 'enctype');
     echo " novalidate>\n            <table>\n                ";
     // line 762
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formNuevaEtapa"]) ? $context["formNuevaEtapa"] : $this->getContext($context, "formNuevaEtapa"), 'form_start');
     echo "\n                <tr>\n                    <td>";
     // line 764
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), "nombre"), 'label');
     echo "</td>\n                    <td>";
     // line 765
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), "nombre"), 'widget');
     echo "</td>\n                    <td>";
     // line 766
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), "nombre"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td>Fecha:</td>\n                    <td><input class=\"DatePicker\" name=\"fechaInicio\"></td> \n                </tr>\n                <tr>\n                    <td>";
     // line 773
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), "descripcion"), 'label');
     echo "</td>\n                    <td>";
     // line 774
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), "descripcion"), 'widget');
     echo "</td>\n                    <td>";
     // line 775
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), "descripcion"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td><input type=\"submit\" class=\"btnAdd\" name=\"salvarHito\" value=\"Agregar Hito\"></td>\n                    <td><input type=\"hidden\" id=\"valorHito\" name=\"valorHito\" value=\"\"></td>\n                </tr>\n                ";
     // line 781
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formHito"]) ? $context["formHito"] : $this->getContext($context, "formHito"), 'form_end');
     echo "\n            </table>\n        </form>\n    </div>\n</div>\n<div id=\"popup6\" style=\"display: none;\">\n    <div class=\"content-popup\">\n        <h4 class=\"modalh4\">Modificar Estado</h4>\n        <div class=\"close\"><a href=\"#\" id=\"close6\"><img src=\"";
     // line 789
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/close.png"), "html", null, true);
     echo "\"/></a></div>\n        <form action=\"";
     // line 790
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("gproyecto", array("id" => $this->getAttribute(isset($context["proyecto"]) ? $context["proyecto"] : $this->getContext($context, "proyecto"), "id"))), "html", null, true);
     echo "\" method=\"post\" ";
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["formEstadoEtapa"]) ? $context["formEstadoEtapa"] : $this->getContext($context, "formEstadoEtapa"), 'enctype');
     echo " novalidate>\n            <table>\n                ";
     // line 792
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formEstadoEtapa"]) ? $context["formEstadoEtapa"] : $this->getContext($context, "formEstadoEtapa"), 'form_start');
     echo "\n                <tr>\n                    <td>";
     // line 794
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEstadoEtapa"]) ? $context["formEstadoEtapa"] : $this->getContext($context, "formEstadoEtapa"), "estado"), 'label');
     echo "</td>\n                    <td>";
     // line 795
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEstadoEtapa"]) ? $context["formEstadoEtapa"] : $this->getContext($context, "formEstadoEtapa"), "estado"), 'widget', array("attr" => array("class" => "chosen-select largo-box")));
     echo "</td>\n                    <td>";
     // line 796
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute(isset($context["formEstadoEtapa"]) ? $context["formEstadoEtapa"] : $this->getContext($context, "formEstadoEtapa"), "estado"), 'errors');
     echo "</td>\n                </tr>\n                <tr>\n                    <td><input type=\"submit\" class=\"btnAdd\" name=\"salvarEstadoEtapa\" value=\"Modificar Estado\"></td>\n                    <td><input type=\"hidden\" id=\"valorEtapaAsignada\" name=\"valorEtapa\" value=\"\"></td>\n                    <td><input type=\"hidden\" id=\"aaa\" name=\"aaa\" value=\"\"></td>\n                </tr>\n                ";
     // line 803
     echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["formEstadoEtapa"]) ? $context["formEstadoEtapa"] : $this->getContext($context, "formEstadoEtapa"), 'form_end');
     echo "\n            </table>\n        </form>\n    </div>\n</div>\n<script>\n    \$\$('.DatePicker').each( function(el){\n    new DatePicker(el);\n});\n</script>\n</div>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 15
     echo "\n    <div class=\"edit_form\">\n        <form id=\"ticket_edit\" name=\"ticket_edit\" action=\"/helpdesk/?stage=save&id=";
     // line 17
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id"), "html", null, true);
     echo "\" method=\"post\">\n        <input type=\"hidden\" id=\"ticket_id\" value=\"";
     // line 18
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id"), "html", null, true);
     echo "\"/>\n        <div class=\"form_block header\">\n            <h3 class=\"title\">\n                <a id=\"change-status\" class=\"popup_button\">\n                    <img src='/stat/img/helpdesk/status_";
     // line 22
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "status"), "html", null, true);
     echo ".png'>\n                </a>\n                <input type=\"hidden\" id=\"input-status\" name=\"status\" value=\"";
     // line 24
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "status"), "html", null, true);
     echo "\">\n                <div id=\"popup_change-status\" class=\"popup_menu\">\n                    <ul>\n                    ";
     // line 27
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["statuses"]) ? $context["statuses"] : null);
     foreach ($context['_seq'] as $context["id"] => $context["status"]) {
         // line 28
         echo "                        <li class=\"i-change-status ";
         echo (isset($context["id"]) ? $context["id"] : null) == $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "status") ? "current" : "";
         echo "\">\n                            <a data-status=\"";
         // line 29
         echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
         echo "\" onclick=\"changeStatus('";
         echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
         echo "')\">\n                                <img class=\"icon\" src=\"/stat/img/helpdesk/status_";
         // line 30
         echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
         echo ".png\">";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["statuses"]) ? $context["statuses"] : null, isset($context["id"]) ? $context["id"] : null, array(), "array"), "name"), "html", null, true);
         echo "</a>\n                        </li>\n                    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['id'], $context['status'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 33
     echo "                    </ul>\n                </div>\n                &nbsp;";
     // line 35
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id") ? "#" . $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id") . "." : "", "html", null, true);
     echo "&nbsp;\n                <input  name=\"title\" type=\"text\" value=\"";
     // line 36
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "title"), "html", null, true);
     echo "\" class=\"title_input\" ";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id") ? $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id") : "autofocus=autofocus", "html", null, true);
     echo " placeholder=\"Новая заявка\"/>\n                ";
     // line 37
     if ($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id")) {
         // line 38
         echo "                    <span class='ticket_edit_rating'>\n                        ";
         // line 39
         if ((isset($context["admin_id"]) ? $context["admin_id"] : null) == $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "creator") || twig_in_filter(isset($context["admin_id"]) ? $context["admin_id"] : null, array(0 => 164, 1 => 177))) {
             // line 40
             echo "                            ";
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(range(1, 5));
             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                 // line 41
                 echo "                                <a href=\"javascript: rateTicket('";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id"), "html", null, true);
                 echo "', '";
                 echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
                 echo "' )\">\n                                    <img src=\"/stat/img/helpdesk/rate_";
                 // line 42
                 echo $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "rate") >= (isset($context["i"]) ? $context["i"] : null) ? 1 : 0;
                 echo ".png\">\n                                </a>\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 45
             echo "                        ";
         } else {
             // line 46
             echo "                            ";
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(range(1, 5));
             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                 // line 47
                 echo "                                <img src=\"/stat/img/helpdesk/rate_";
                 echo $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "rate") >= (isset($context["i"]) ? $context["i"] : null) ? 1 : 0;
                 echo ".png\">\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 49
             echo "                        ";
         }
         // line 50
         echo "                    </span>\n                ";
     }
     // line 52
     echo "            </h3>\n        </div>\n\n        <div class=\"form_block details\">\n\n            <div class=\"form_line\">\n                    <div class=\"area\">\n                        <label>Территория:\n                            <a id=\"change-area\" class=\"popup_button\">\n                                ";
     // line 61
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "area") ? $this->getAttribute(isset($context["areas"]) ? $context["areas"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "area"), array(), "array") : $this->getAttribute(isset($context["areas"]) ? $context["areas"] : null, 6, array(), "array"), "html", null, true);
     echo "\n                            </a>\n                        </label>\n\n                        <input type=\"hidden\" id=\"input-area\" name=\"area\" value=\"";
     // line 65
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "area") ? $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "area") : $this->getAttribute(isset($context["areas"]) ? $context["areas"] : null, 6, array(), "array"), "html", null, true);
     echo "\">\n\n                        <div id=\"popup_change-area\" class=\"popup_menu\">\n                            <ul>\n                            ";
     // line 69
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["areas"]) ? $context["areas"] : null);
     foreach ($context['_seq'] as $context["id"] => $context["area"]) {
         // line 70
         echo "                                <li class=\"i-change-area ";
         echo (isset($context["id"]) ? $context["id"] : null) == $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "area") ? "current" : "";
         echo "\">\n                                    <a data-area=\"";
         // line 71
         echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
         echo "\" onclick=\"changeArea('";
         echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
         echo "')\">";
         echo twig_escape_filter($this->env, isset($context["area"]) ? $context["area"] : null, "html", null, true);
         echo "</a>\n                                </li>\n                                ";
         // line 73
         echo (isset($context["id"]) ? $context["id"] : null) == 2 ? "<hr>" : "";
         echo "\n                            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['id'], $context['area'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 75
     echo "                            </ul>\n                        </div>\n\n                    </div>\n                    <div class=\"deadline\">\n                        <label>Срок:\n                            <input id=\"input-deadline\" name=\"deadline\" class=\"popup_button calendar\" readonly\n                                   value=\"";
     // line 82
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "deadline") > 0 ? twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "deadline"), "d.m.Y") : "не указан", "html", null, true);
     echo "\"/>\n                        </label>\n                        <a class=\"clear-deadline ";
     // line 84
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "deadline") > 0 ? $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "deadline") > 0 : "hidden", "html", null, true);
     echo "\" onclick=\"clearDeadline()\">\n                            <img class=\"icon clear-deadline-icon\" src=\"/stat/img/small_close.gif\" alt=\"\"/>\n                        </a>\n                    </div>\n            </div>\n\n            <div class=\"description\">\n                <textarea class=\"edit_description\" name=\"description\" placeholder=\"Описание\">";
     // line 91
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "description"), "html", null, true);
     echo "</textarea>\n            </div>\n\n            <div class=\"tags_container\">\n                <div id=\"tags\" class=\"form_line popup_button\">\n                    ";
     // line 96
     if ($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "tags") > 0) {
         // line 97
         echo "                        ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "tags"));
         foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
             // line 98
             echo "                            <a class=\"tag active weight_";
             echo twig_escape_filter($this->env, twig_round($this->getAttribute($this->getAttribute(isset($context["tags"]) ? $context["tags"] : null, isset($context["tag"]) ? $context["tag"] : null, array(), "array"), "weight") * 5), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["tags"]) ? $context["tags"] : null, isset($context["tag"]) ? $context["tag"] : null, array(), "array"), "name"), "html", null, true);
             echo "</a>\n                        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 100
         echo "                    ";
     } else {
         // line 101
         echo "                        <a class=\"tag active\">добавить метки</a>\n                    ";
     }
     // line 103
     echo "                </div>\n\n                <input type=\"hidden\" id=\"input-tags\" name=\"tags\" value=\"";
     // line 105
     echo twig_escape_filter($this->env, twig_join_filter($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "tags"), ","), "html", null, true);
     echo "\"/>\n\n            </div>\n\n            <div id=\"popup_tags\" class=\"popup_menu unsensitive\">\n                ";
     // line 110
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["tags"]) ? $context["tags"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
         // line 111
         echo "                    <a data-weight=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tag"]) ? $context["tag"] : null, "weight"), "html", null, true);
         echo "\" data-id=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tag"]) ? $context["tag"] : null, "id"), "html", null, true);
         echo "\"  class=\"tag sensitive weight_";
         echo twig_escape_filter($this->env, twig_round($this->getAttribute(isset($context["tag"]) ? $context["tag"] : null, "weight") * 5), "html", null, true);
         echo " ";
         echo twig_in_filter($this->getAttribute(isset($context["tag"]) ? $context["tag"] : null, "id"), $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "tags")) ? "active" : "";
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tag"]) ? $context["tag"] : null, "name"), "html", null, true);
         echo "</a>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 113
     echo "                ";
     // line 114
     echo "                ";
     // line 115
     echo "                    ";
     // line 116
     echo "                        ";
     // line 117
     echo "                            ";
     // line 118
     echo "                        ";
     // line 119
     echo "                        ";
     // line 120
     echo "                            ";
     // line 121
     echo "                        ";
     // line 122
     echo "                        ";
     // line 123
     echo "                            ";
     // line 124
     echo "                        ";
     // line 125
     echo "                    ";
     // line 126
     echo "                ";
     // line 127
     echo "            </div>\n\n        </div>\n\n        <div class=\"form_block members\">\n            ";
     // line 132
     if ($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id")) {
         // line 133
         echo "                <div class=\"ticket_creator_and_changer\">\n                    <label>Создал</label>\n                    <span class=\"ticket_created\">\n                        ";
         // line 136
         if (twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "created"), "Y") == twig_date_format_filter($this->env, "now", "Y")) {
             // line 137
             echo "                            ";
             echo twig_escape_filter($this->env, "(" . twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "created"), "j"), "html", null, true);
             echo " ";
             echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute(isset($context["MONTHS_G"]) ? $context["MONTHS_G"] : null, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "created"), "m") - 1, array(), "array"), 0, 3), "html", null, true);
             echo " в ";
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "created"), "H:i") . "):", "html", null, true);
             echo "\n                        ";
         } else {
             // line 139
             echo "                            ";
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "created"), "d.m.Y \\в H:i"), "html", null, true);
             echo "\n                        ";
         }
         // line 141
         echo "                    </span>\n                    <a class=\"ticket_creator\" data-id=\"";
         // line 142
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "creator"), "html", null, true);
         echo "\">\n                        ";
         // line 143
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["users"]) ? $context["users"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "creator"), array(), "array"), "lastname"), "html", null, true);
         echo " ";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["users"]) ? $context["users"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "creator"), array(), "array"), "firstname"), "html", null, true);
         echo "\n                    </a>\n                    <br>\n                    <br>\n                    ";
         // line 147
         if ($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "changer")) {
             // line 148
             echo "                        <label>Изменил</label>\n                        <span class=\"ticket_changed\">\n                            ";
             // line 150
             if (twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "changed"), "Y") == twig_date_format_filter($this->env, "now", "Y")) {
                 // line 151
                 echo "                                ";
                 echo twig_escape_filter($this->env, "(" . twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "changed"), "j"), "html", null, true);
                 echo " ";
                 echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute(isset($context["MONTHS_G"]) ? $context["MONTHS_G"] : null, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "changed"), "m") - 1, array(), "array"), 0, 3), "html", null, true);
                 echo " в ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "changed"), "H:i") . "):", "html", null, true);
                 echo "\n                            ";
             } else {
                 // line 153
                 echo "                                ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "changed"), "d.m.Y \\в H:i"), "html", null, true);
                 echo "\n                            ";
             }
             // line 155
             echo "                        </span>\n                        <a class=\"ticket_changer\" data-id=\"";
             // line 156
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "changer"), "html", null, true);
             echo "\">\n                            ";
             // line 157
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["admins"]) ? $context["admins"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "changer"), array(), "array"), "lastname"), "html", null, true);
             echo " ";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["admins"]) ? $context["admins"] : null, $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "changer"), array(), "array"), "firstname"), "html", null, true);
             echo "\n                        </a>\n                    ";
         }
         // line 160
         echo "\n                </div>\n            ";
     }
     // line 163
     echo "\n            <div class=\"contractor\">\n                <label>Ответственный:<br>\n                    <select name=\"contractor\">\n                        ";
     // line 167
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["admins"]) ? $context["admins"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["admin"]) {
         // line 168
         echo "                            ";
         $context["selected"] = ($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id") == "" || !$this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "contractor")) && $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "uid") == (isset($context["admin_id"]) ? $context["admin_id"] : null) || $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "contractor") == $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "uid");
         // line 169
         echo "                            <option value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "uid"), "html", null, true);
         echo "\" ";
         echo isset($context["selected"]) ? $context["selected"] : null ? "selected" : "";
         echo ">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "lastname"), "html", null, true);
         echo " ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "firstname"), "html", null, true);
         echo "</option>\n                        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['admin'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 171
     echo "                    </select>\n                </label>\n            </div>\n            <br>\n\n            <div class=\"performers\">\n                <label>Исполнители:</label>\n                ";
     // line 178
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["admins"]) ? $context["admins"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["admin"]) {
         // line 179
         echo "                    ";
         $context["checked"] = twig_in_filter($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "uid"), $this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "performers")) || $this->getAttribute($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "performers"), 0, array(), "array") == "" && $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "uid") == (isset($context["admin_id"]) ? $context["admin_id"] : null);
         // line 180
         echo "                    <label class=\"performer\">\n                        <input class=\"performer\" type=\"checkbox\" data-performer=\"";
         // line 181
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "uid"), "html", null, true);
         echo "\" ";
         echo isset($context["checked"]) ? $context["checked"] : null ? "checked" : "";
         echo "/>\n                        ";
         // line 182
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "lastname"), "html", null, true);
         echo " ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "firstname"), "html", null, true);
         echo "\n                    </label>\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['admin'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 185
     echo "                <input type=\"hidden\" name=\"performers\"/>\n            </div>\n\n        </div>\n\n        ";
     // line 190
     if ($this->getAttribute(isset($context["ticket"]) ? $context["ticket"] : null, "id")) {
         // line 191
         echo "            <div id=\"comments_block\" class=\"form_block cut_block cutted\">\n                ";
         // line 192
         $this->env->loadTemplate("helpdesk/ticket_edit_comments.twig")->display($context);
         // line 193
         echo "            </div>\n        ";
     }
     // line 195
     echo "\n        </form>\n        <div class=\"spacer\"></div>\n        <div class=\"buttons\">\n            <a class=\"button red\" id=\"back\"  href=\"javascript: (history.length > 1) ? history.back() : location = '/helpdesk/'\">« Вернуться</a>\n            <div class=\"right\">\n                <a class=\"button green\" id=\"save_ticket\">Сохранить</a>\n                <a class=\"button green\" id=\"save_ticket_and_back\">Сохранить и вернуться</a>\n            </div>\n        </div>\n    </div>\n\n";
 }
 public function getpagination($__paginationPath__ = null, $__params__ = null, $__currentPage__ = null, $__results_per_page__ = null, $__total__ = null, $__number_results__ = null, $__number_results_list__ = null)
 {
     $context = $this->env->mergeGlobals(array("paginationPath" => $__paginationPath__, "params" => $__params__, "currentPage" => $__currentPage__, "results_per_page" => $__results_per_page__, "total" => $__total__, "number_results" => $__number_results__, "number_results_list" => $__number_results_list__));
     $blocks = array();
     ob_start();
     try {
         // line 18
         echo "    ";
         $context["lastPage"] = twig_round((isset($context["total"]) ? $context["total"] : $this->getContext($context, "total")) / (isset($context["results_per_page"]) ? $context["results_per_page"] : $this->getContext($context, "results_per_page")), 0, "ceil");
         // line 19
         echo "    ";
         $context["showAlwaysFirstAndLast"] = true;
         // line 20
         echo "    ";
         ob_start();
         // line 21
         echo "        <div class=\"pagination";
         if ((isset($context["number_results"]) ? $context["number_results"] : $this->getContext($context, "number_results")) == true) {
             echo " has_pagination_show_choice";
         }
         echo "\">\n            ";
         // line 23
         echo "            ";
         $context["extremePagesLimit"] = 2;
         // line 24
         echo "            ";
         // line 25
         echo "            ";
         $context["nearbyPagesLimit"] = 2;
         // line 26
         echo "                ";
         if ((isset($context["currentPage"]) ? $context["currentPage"] : $this->getContext($context, "currentPage")) > 1) {
             // line 27
             echo "                    <a class=\"previous\" href=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath(isset($context["paginationPath"]) ? $context["paginationPath"] : $this->getContext($context, "paginationPath"), twig_array_merge(isset($context["params"]) ? $context["params"] : $this->getContext($context, "params"), array("show" => isset($context["results_per_page"]) ? $context["results_per_page"] : $this->getContext($context, "results_per_page"), "page" => (isset($context["currentPage"]) ? $context["currentPage"] : $this->getContext($context, "currentPage")) - 1))), "html", null, true);
             echo "\">Previous</a>\n\n                    ";
             // line 29
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(range(1, isset($context["extremePagesLimit"]) ? $context["extremePagesLimit"] : $this->getContext($context, "extremePagesLimit")));
             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                 if ($context["i"] < (isset($context["currentPage"]) ? $context["currentPage"] : $this->getContext($context, "currentPage")) - (isset($context["nearbyPagesLimit"]) ? $context["nearbyPagesLimit"] : $this->getContext($context, "nearbyPagesLimit"))) {
                     // line 30
                     echo "                        <a class=\"\" href=\"";
                     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath(isset($context["paginationPath"]) ? $context["paginationPath"] : $this->getContext($context, "paginationPath"), twig_array_merge(isset($context["params"]) ? $context["params"] : $this->getContext($context, "params"), array("show" => isset($context["results_per_page"]) ? $context["results_per_page"] : $this->getContext($context, "results_per_page"), "page" => $context["i"]))), "html", null, true);
                     echo "\">";
                     echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                     echo "</a>\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 32
             echo "\n                    ";
             // line 33
             if ((isset($context["extremePagesLimit"]) ? $context["extremePagesLimit"] : $this->getContext($context, "extremePagesLimit")) + 1 < (isset($context["currentPage"]) ? $context["currentPage"] : $this->getContext($context, "currentPage")) - (isset($context["nearbyPagesLimit"]) ? $context["nearbyPagesLimit"] : $this->getContext($context, "nearbyPagesLimit"))) {
                 // line 34
                 echo "                        <span class=\"sep-dots\">...</span>\n                    ";
             }
             // line 36
             echo "\n                    ";
             // line 37
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(range((isset($context["currentPage"]) ? $context["currentPage"] : $this->getContext($context, "currentPage")) - (isset($context["nearbyPagesLimit"]) ? $context["nearbyPagesLimit"] : $this->getContext($context, "nearbyPagesLimit")), (isset($context["currentPage"]) ? $context["currentPage"] : $this->getContext($context, "currentPage")) - 1));
             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                 if ($context["i"] > 0) {
                     // line 38
                     echo "                        <a class=\"\" href=\"";
                     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath(isset($context["paginationPath"]) ? $context["paginationPath"] : $this->getContext($context, "paginationPath"), twig_array_merge(isset($context["params"]) ? $context["params"] : $this->getContext($context, "params"), array("show" => isset($context["results_per_page"]) ? $context["results_per_page"] : $this->getContext($context, "results_per_page"), "page" => $context["i"]))), "html", null, true);
                     echo "\">";
                     echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                     echo "</a>\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 40
             echo "                ";
         } elseif (isset($context["showAlwaysFirstAndLast"]) ? $context["showAlwaysFirstAndLast"] : $this->getContext($context, "showAlwaysFirstAndLast")) {
             // line 41
             echo "                    <span class=\"previous disabled\">Previous</span>\n                ";
         }
         // line 43
         echo "\n                <a class=\"active\">";
         // line 44
         echo twig_escape_filter($this->env, isset($context["currentPage"]) ? $context["currentPage"] : $this->getContext($context, "currentPage"), "html", null, true);
         echo "</a>\n\n                ";
         // line 46
         if ((isset($context["currentPage"]) ? $context["currentPage"] : $this->getContext($context, "currentPage")) < (isset($context["lastPage"]) ? $context["lastPage"] : $this->getContext($context, "lastPage"))) {
             // line 47
             echo "                    ";
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(range((isset($context["currentPage"]) ? $context["currentPage"] : $this->getContext($context, "currentPage")) + 1, (isset($context["currentPage"]) ? $context["currentPage"] : $this->getContext($context, "currentPage")) + (isset($context["nearbyPagesLimit"]) ? $context["nearbyPagesLimit"] : $this->getContext($context, "nearbyPagesLimit"))));
             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                 if ($context["i"] <= (isset($context["lastPage"]) ? $context["lastPage"] : $this->getContext($context, "lastPage"))) {
                     // line 48
                     echo "                        <a class=\"\" href=\"";
                     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath(isset($context["paginationPath"]) ? $context["paginationPath"] : $this->getContext($context, "paginationPath"), twig_array_merge(isset($context["params"]) ? $context["params"] : $this->getContext($context, "params"), array("show" => isset($context["results_per_page"]) ? $context["results_per_page"] : $this->getContext($context, "results_per_page"), "page" => $context["i"]))), "html", null, true);
                     echo "\">";
                     echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                     echo "</a>\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 50
             echo "\n                    ";
             // line 51
             if ((isset($context["lastPage"]) ? $context["lastPage"] : $this->getContext($context, "lastPage")) - (isset($context["extremePagesLimit"]) ? $context["extremePagesLimit"] : $this->getContext($context, "extremePagesLimit")) > (isset($context["currentPage"]) ? $context["currentPage"] : $this->getContext($context, "currentPage")) + (isset($context["nearbyPagesLimit"]) ? $context["nearbyPagesLimit"] : $this->getContext($context, "nearbyPagesLimit"))) {
                 // line 52
                 echo "                        <span class=\"sep-dots\">...</span>\n                    ";
             }
             // line 54
             echo "\n                    ";
             // line 55
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(range((isset($context["lastPage"]) ? $context["lastPage"] : $this->getContext($context, "lastPage")) - (isset($context["extremePagesLimit"]) ? $context["extremePagesLimit"] : $this->getContext($context, "extremePagesLimit")) + 1, isset($context["lastPage"]) ? $context["lastPage"] : $this->getContext($context, "lastPage")));
             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                 if ($context["i"] > (isset($context["currentPage"]) ? $context["currentPage"] : $this->getContext($context, "currentPage")) + (isset($context["nearbyPagesLimit"]) ? $context["nearbyPagesLimit"] : $this->getContext($context, "nearbyPagesLimit"))) {
                     // line 56
                     echo "                        <a class=\"\" href=\"";
                     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath(isset($context["paginationPath"]) ? $context["paginationPath"] : $this->getContext($context, "paginationPath"), twig_array_merge(isset($context["params"]) ? $context["params"] : $this->getContext($context, "params"), array("show" => isset($context["results_per_page"]) ? $context["results_per_page"] : $this->getContext($context, "results_per_page"), "page" => $context["i"]))), "html", null, true);
                     echo "\">";
                     echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                     echo "</a>\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 58
             echo "\n                    <a class=\"next\" href=\"";
             // line 59
             echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath(isset($context["paginationPath"]) ? $context["paginationPath"] : $this->getContext($context, "paginationPath"), twig_array_merge(isset($context["params"]) ? $context["params"] : $this->getContext($context, "params"), array("show" => isset($context["results_per_page"]) ? $context["results_per_page"] : $this->getContext($context, "results_per_page"), "page" => (isset($context["currentPage"]) ? $context["currentPage"] : $this->getContext($context, "currentPage")) + 1))), "html", null, true);
             echo "\">Next</a>\n                ";
         } elseif (isset($context["showAlwaysFirstAndLast"]) ? $context["showAlwaysFirstAndLast"] : $this->getContext($context, "showAlwaysFirstAndLast")) {
             // line 61
             echo "                    <span class=\"next disabled\">Next</span>\n                ";
         }
         // line 63
         echo "        ";
         if ((isset($context["number_results"]) ? $context["number_results"] : $this->getContext($context, "number_results")) == true) {
             // line 64
             echo "            <div class=\"pagination-dropdown-wrapper dropdown-wrapper\">\n                <a href=\"javascript:void(0)\" class=\"dropdown-button pagination-results results-per-page dropdown-show-label\">\n                    Show <b>";
             // line 66
             echo twig_escape_filter($this->env, isset($context["results_per_page"]) ? $context["results_per_page"] : $this->getContext($context, "results_per_page"), "html", null, true);
             echo "</b> results per page\n                </a>\n                <div class=\"dropdown\">\n                    ";
             // line 69
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["number_results_list"]) ? $context["number_results_list"] : $this->getContext($context, "number_results_list"));
             foreach ($context['_seq'] as $context["_key"] => $context["n"]) {
                 // line 70
                 echo "                        ";
                 if ($context["n"] != (isset($context["results_per_page"]) ? $context["results_per_page"] : $this->getContext($context, "results_per_page"))) {
                     // line 71
                     echo "                            <a href=\"";
                     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath(isset($context["paginationPath"]) ? $context["paginationPath"] : $this->getContext($context, "paginationPath"), twig_array_merge(isset($context["params"]) ? $context["params"] : $this->getContext($context, "params"), array("show" => $context["n"]))), "html", null, true);
                     echo "\">";
                     echo twig_escape_filter($this->env, $context["n"], "html", null, true);
                     echo " per page</a>\n                        ";
                 }
                 // line 73
                 echo "                    ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['n'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 74
             echo "                </div>\n            </div>\n        ";
         }
         // line 77
         echo "        </div>\n    ";
         echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }