<?php

/* FishmanFrontEndBundle:Dashboard/Report:benchmarking_internal.html.twig */
class __TwigTemplate_4d06d4565cd68efd31425c345e323ea4 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = $this->env->loadTemplate("::base_fishman.html.twig");

        $this->blocks = array(
            'subtitle' => array($this, 'block_subtitle'),
            'top_navigation' => array($this, 'block_top_navigation'),
            'navigation' => array($this, 'block_navigation'),
            'breadcrumb' => array($this, 'block_breadcrumb'),
            'subtitle2' => array($this, 'block_subtitle2'),
            'content' => array($this, 'block_content'),
            '__internal_954569b6d95b781781df94037530bc18b2c93c18' => array($this, 'block___internal_954569b6d95b781781df94037530bc18b2c93c18'),
            'javascripts' => array($this, 'block_javascripts'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "::base_fishman.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    public function block_subtitle($context, array $blocks = array())
    {
        echo "<span class=\"icon-screen\"></span>Reporte";
    }

    // line 5
    public function block_top_navigation($context, array $blocks = array())
    {
        // line 6
        $this->env->loadTemplate("FishmanFrontEndBundle:Dashboard:navigation.html.twig")->display(array_merge($context, array("navigation" => "report", "dashboard" => "all")));
    }

    // line 9
    public function block_navigation($context, array $blocks = array())
    {
        // line 10
        $this->env->loadTemplate("FishmanFrontEndBundle:Dashboard:navigation.html.twig")->display(array_merge($context, array("navigation" => "report", "dashboard" => "all")));
    }

    // line 13
    public function block_breadcrumb($context, array $blocks = array())
    {
        // line 14
        echo "<ul id=\"breadcrumbs\" class=\"breadcrumbs\">
    <li><a href=\"";
        // line 15
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fishman_front_end_homepage"), "html", null, true);
        echo "\">Dashboard</a></li>
    <li class=\"current\"><a href=\"";
        // line 16
        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fishman_front_end_report_benchmarking_internal"), "html", null, true);
        echo "\">Reportes: Benchmarking Interno</a></li>
</ul>
";
    }

    // line 20
    public function block_subtitle2($context, array $blocks = array())
    {
        // line 21
        echo "<span class=\"icos-cog4\"></span></span><h5>Benchmarking Interno</h5>
";
    }

    // line 24
    public function block_content($context, array $blocks = array())
    {
        // line 25
        $this->displayParentBlock("content", $context, $blocks);
        echo "

<div class=\"dashboard dataList crud\">

    <div class=\"widget tableDefault containerReport clearfix\">
  
        <div class=\"whead clearfix\">
            <h6>";
        // line 32
        echo twig_escape_filter($this->env, twig_upper_filter($this->env, (string) $this->renderBlock("__internal_954569b6d95b781781df94037530bc18b2c93c18", $context, $blocks)), "html", null, true);
        echo "</h6>
        </div>
          
        <div class=\"formCrudCreate\">
            
            <form action=\"\" method=\"post\" class=\"crudBenchmarking main\">
            
                <div class=\"fluid tableDefault clearfix\">
                        
                    <fieldset class=\"step ui-formwizard-content clearfix\" id=\"w1first\" style=\"display: block;\">
                        
                        <div class=\"grid12\">
                            
                            <div class=\"formRow clearfix\">
                                <div class=\"grid2\"><label>Empresa</label><span class=\"req\">*</span></div>
                                <div class=\"grid6\">
                                    ";
        // line 48
        echo (isset($context["selectCompanies"]) ? $context["selectCompanies"] : null);
        echo "
                                </div>
                            </div>
                            
                            <div class=\"formRow clearfix\">
                                <div class=\"grid2\"><label>Encuesta</label><span class=\"req\">*</span></div>
                                <div class=\"grid6 pollsByCompany\">
                                    ";
        // line 55
        echo (isset($context["selectPolls"]) ? $context["selectPolls"] : null);
        echo "
                                </div>
                            </div>
                            
                            <div class=\"formRow clearfix\">
                                <div class=\"grid2\"><label>Agrupado por</label><span class=\"req\">*</span></div>
                                <div class=\"grid6\">
                                    ";
        // line 62
        echo (isset($context["selectLevels"]) ? $context["selectLevels"] : null);
        echo "
                                </div>
                            </div>
                            
                            <div class=\"formRow clearfix\">
                                <div class=\"grid2\"><label>Periodo</label><span class=\"req\">*</span></div>
                                <div class=\"grid6 pollschedulingsByPoll\">
                                    ";
        // line 69
        echo (isset($context["selectPollschedulingPeriods"]) ? $context["selectPollschedulingPeriods"] : null);
        echo "
                                </div>
                            </div>
                            
                            <div class=\"formRow formFilters formActiveOff clearfix\">
                                <div class=\"grid2\"><label>Filtrado por</label><span class=\"req\">*</span></div>
                                <div class=\"grid6 filterOptions\">
                                    ";
        // line 76
        echo (isset($context["selectFilters"]) ? $context["selectFilters"] : null);
        echo "
                                </div>
                            </div>
                            
                            <div class=\"formRow formFilterOptions formSelectMultiple formFilterOrganizationalUnits formActiveOff clearfix\">
                                <div class=\"grid2\"><label>Unidades Organizativas</label><span class=\"req\">*</span></div>
                                <div class=\"grid6 organizationalUnitsByCompany\" id=\"organizationalunits_options\">
                                    ";
        // line 83
        echo (isset($context["selectOrganizationalUnits"]) ? $context["selectOrganizationalUnits"] : null);
        echo "
                                </div>
                            </div>
                            
                            <div class=\"formRow formFilterOptions formSelectMultiple formFilterCharges formActiveOff clearfix\">
                                <div class=\"grid2\"><label>Cargos</label><span class=\"req\">*</span></div>
                                <div class=\"grid6 chargesByCompany\" id=\"charges_options\">
                                    ";
        // line 90
        echo (isset($context["selectCharges"]) ? $context["selectCharges"] : null);
        echo "
                                </div>
                            </div>
                            
                            <div class=\"formRow formFilterOptions formSelectMultiple formFilterHeadquarters formActiveOff clearfix\">
                                <div class=\"grid2\"><label>Sedes</label><span class=\"req\">*</span></div>
                                <div class=\"grid6 headquartersByCompany\" id=\"headquartes_options\">
                                    ";
        // line 97
        echo (isset($context["selectHeadquarters"]) ? $context["selectHeadquarters"] : null);
        echo "
                                </div>
                            </div>
                            
                            <div class=\"formRow formFilterOptions formSelectMultiple formFilterEvaluateds formActiveOff clearfix\">
                                <div class=\"grid2\"><label>Evaluados</label><span class=\"req\">*</span></div>
                                <div class=\"grid6 evaluatedsByPollscheduling\" id=\"evaluateds_options\">
                                    ";
        // line 104
        echo (isset($context["selectEvaluateds"]) ? $context["selectEvaluateds"] : null);
        echo "
                                </div>
                            </div>
                            
                            <div class=\"formRow formFilterOptions formSelectMultiple formFilterFaculties formActiveOff clearfix\">
                                <div class=\"grid2\"><label>Facultades</label><span class=\"req\">*</span></div>
                                <div class=\"grid6 facultiesByCompany\" id=\"faculties_options\">
                                    ";
        // line 111
        echo (isset($context["selectFaculties"]) ? $context["selectFaculties"] : null);
        echo "
                                </div>
                            </div>
                            
                            <div class=\"formRow formFilterOptions formSelectMultiple formFilterCareers formActiveOff clearfix\">
                                <div class=\"grid2\"><label>Carreras</label><span class=\"req\">*</span></div>
                                <div class=\"grid6 careersByCompany\" id=\"careers_options\">
                                    ";
        // line 118
        echo (isset($context["selectCareers"]) ? $context["selectCareers"] : null);
        echo "
                                </div>
                            </div>
                            
                            <div class=\"formRow formFilterOptions formSelectMultiple formFilterGrades formActiveOff clearfix\">
                                <div class=\"grid2\"><label>Grados</label><span class=\"req\">*</span></div>
                                <div class=\"grid6 gradesByCompany\" id=\"gracdes_options\">
                                    ";
        // line 125
        echo (isset($context["selectGrades"]) ? $context["selectGrades"] : null);
        echo "
                                </div>
                            </div>
                          
                        </div>
      
                    </fieldset>
                    
                </div>
                <!-- /.tableDefault -->
                
                <div class=\"reportDashboardButton menuCrud clearfix\">
                    <ul class=\"record_actions\">
                        <li><button type=\"submit\" name=\"gerate_report\" value=\"1\" class=\"autoselectOptionData2 sideB bGreyish mt10\">Generar Reporte</button></li>
                        ";
        // line 139
        if (((($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_ADMIN") || ($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_SUPER_ADMIN")) || ($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "session"), "get", array(0 => "currentrol"), "method") == "ROLE_TEACHER"))) {
            // line 140
            echo "                            ";
            if (((isset($context["pollschedulingid"]) ? $context["pollschedulingid"] : null) != "")) {
                // line 141
                echo "                                <li><a href=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("fishman_front_end_report_benchmarking_internal_export", array("pollschedulingid" => (isset($context["pollschedulingid"]) ? $context["pollschedulingid"] : null), "typefilter" => (isset($context["typefilter"]) ? $context["typefilter"] : null), "filterids" => (isset($context["filterids"]) ? $context["filterids"] : null))), "html", null, true);
                echo "\" class=\"sideB bRed mt10\">Exportar a Excel</a></li>
                            ";
            } else {
                // line 143
                echo "                                <li><span class=\"sideB bRed mt10 spanButton\">Exportar a Excel</span></li>
                            ";
            }
            // line 145
            echo "                        ";
        }
        // line 146
        echo "                        <li><a href=\"javascript:window.print()\" class=\"sideB bRed mt10\">Imprimir</a></li>
                    </ul>
                </div>
                <!-- /.menuCrud -->
                
            </form>
        
        </div>
        <!-- /.formCrudCreate -->

    </div>
    <!-- /.tableDefault -->
    
    ";
        // line 159
        if (array_key_exists("report_results", $context)) {
            // line 160
            echo "    
    
    <div class=\"widget tableDefault clearfix\">
        <div class=\"dataListTable\">
            <table class=\"records_list dataTable\">
                <thead>
                    <tr>
                        <th></th>
                        <th><strong>Total empresa</strong></th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td class=\"mandatory\">Top 25%</td>
                        <td><strong>";
            // line 174
            echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["ranking_top"]) ? $context["ranking_top"] : null), 2), "html", null, true);
            echo "%</strong></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class=\"widget tableDefault clearfix\">
        <div class=\"dataListTable\">
            <table class=\"records_list dataTable\">
                <thead>
                    <tr>
                        <th>Sección / Pregunta</th>
                        ";
            // line 186
            $context["i"] = 0;
            // line 187
            echo "                        ";
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["header_results"]) ? $context["header_results"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["header"]) {
                // line 188
                echo "                            <th>";
                echo twig_escape_filter($this->env, (isset($context["header"]) ? $context["header"] : null), "html", null, true);
                echo "</th>
                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['header'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 190
            echo "                        <th><strong>Total Empresa</strong></th>
                    </tr>
                </thead>
                <tbody>
                    ";
            // line 194
            $context["i"] = 0;
            // line 195
            echo "                    <tr>
                        <td class=\"mandatory\">Número de Evaluadores</td>
                        ";
            // line 197
            if (((isset($context["number_evaluators"]) ? $context["number_evaluators"] : null) != "")) {
                // line 198
                echo "                            ";
                $context['_parent'] = (array) $context;
                $context['_seq'] = twig_ensure_traversable(range(0, ((isset($context["count_horizontal"]) ? $context["count_horizontal"] : null) - 1)));
                foreach ($context['_seq'] as $context["_key"] => $context["j"]) {
                    // line 199
                    echo "                                <td>";
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context["number_evaluators"]) ? $context["number_evaluators"] : null), (isset($context["j"]) ? $context["j"] : null), array(), "array"), "html", null, true);
                    echo "</td>
                            ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['j'], $context['_parent'], $context['loop']);
                $context = array_merge($_parent, array_intersect_key($context, $_parent));
                // line 201
                echo "                        ";
            }
            // line 202
            echo "                        <td>";
            echo twig_escape_filter($this->env, (isset($context["number_evaluators_total"]) ? $context["number_evaluators_total"] : null), "html", null, true);
            echo "</td>
                    </tr>
                    ";
            // line 204
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable(range(0, ((isset($context["count_vertical"]) ? $context["count_vertical"] : null) - 1)));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                // line 205
                echo "                    <tr>
                        ";
                // line 206
                $context["j"] = 0;
                // line 207
                echo "                        <td>";
                echo $this->getAttribute($this->getAttribute((isset($context["title_results"]) ? $context["title_results"] : null), (isset($context["i"]) ? $context["i"] : null), array(), "array"), "title");
                echo "</td>
                        ";
                // line 208
                if (((isset($context["report_results"]) ? $context["report_results"] : null) != "")) {
                    // line 209
                    echo "                            ";
                    $context['_parent'] = (array) $context;
                    $context['_seq'] = twig_ensure_traversable(range(0, ((isset($context["count_horizontal"]) ? $context["count_horizontal"] : null) - 1)));
                    foreach ($context['_seq'] as $context["_key"] => $context["j"]) {
                        // line 210
                        echo "                                <td>";
                        echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["report_results"]) ? $context["report_results"] : null), (isset($context["j"]) ? $context["j"] : null), array(), "array"), (isset($context["i"]) ? $context["i"] : null), array(), "array"), "percentage"), 2), "html", null, true);
                        echo "%</td>
                                ";
                        // line 211
                        $context["j"] = ((isset($context["j"]) ? $context["j"] : null) + 1);
                        // line 212
                        echo "                            ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['j'], $context['_parent'], $context['loop']);
                    $context = array_merge($_parent, array_intersect_key($context, $_parent));
                    // line 213
                    echo "                        ";
                }
                // line 214
                echo "                        <td><strong>";
                echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["report_rows"]) ? $context["report_rows"] : null), (isset($context["i"]) ? $context["i"] : null), array(), "array"), "percentage", array(), "array"), 2), "html", null, true);
                echo "%</strong></td>
                    </tr>
                    ";
                // line 216
                $context["i"] = ((isset($context["i"]) ? $context["i"] : null) + 1);
                // line 217
                echo "                    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 218
            echo "                    <tr>
                        <td><strong>Promedio Total</strong></td>
                        ";
            // line 220
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["total_results"]) ? $context["total_results"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["total"]) {
                // line 221
                echo "                            <td><strong>";
                echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute((isset($context["total"]) ? $context["total"] : null), "percentage"), 2), "html", null, true);
                echo "%</strong></td>
                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['total'], $context['_parent'], $context['loop']);
            $context = array_merge($_parent, array_intersect_key($context, $_parent));
            // line 223
            echo "                        <td><strong>";
            echo twig_escape_filter($this->env, twig_number_format_filter($this->env, $this->getAttribute((isset($context["row_results"]) ? $context["row_results"] : null), "percentage", array(), "array"), 2), "html", null, true);
            echo "%</strong></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    
    ";
        }
        // line 231
        echo "    
</div>
<!-- /.dataList -->

";
    }

    // line 32
    public function block___internal_954569b6d95b781781df94037530bc18b2c93c18($context, array $blocks = array())
    {
        echo "Resultado de Encuestas";
    }

    // line 237
    public function block_javascripts($context, array $blocks = array())
    {
        // line 238
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
<script type=\"text/javascript\" src=\"";
        // line 239
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/custom_options_move_v2.js"), "html", null, true);
        echo "\"></script>
<script type=\"text/javascript\" src=\"";
        // line 240
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/custom_options_copy.js"), "html", null, true);
        echo "\"></script>
";
        // line 241
        echo (isset($context["globaljavascript"]) ? $context["globaljavascript"] : null);
        echo "
<script type=\"text/javascript\">
  var companyid = '";
        // line 243
        echo twig_escape_filter($this->env, (isset($context["companyData"]) ? $context["companyData"] : null), "html", null, true);
        echo "';
</script>
<script type=\"text/javascript\" src=\"";
        // line 245
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("js/report_benchmarking_internal_ajax.js"), "html", null, true);
        echo "\"></script>
";
    }

    public function getTemplateName()
    {
        return "FishmanFrontEndBundle:Dashboard/Report:benchmarking_internal.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  475 => 245,  470 => 243,  465 => 241,  461 => 240,  457 => 239,  453 => 238,  450 => 237,  444 => 32,  436 => 231,  424 => 223,  415 => 221,  411 => 220,  407 => 218,  401 => 217,  399 => 216,  393 => 214,  390 => 213,  384 => 212,  382 => 211,  377 => 210,  372 => 209,  370 => 208,  365 => 207,  363 => 206,  360 => 205,  356 => 204,  350 => 202,  347 => 201,  338 => 199,  333 => 198,  331 => 197,  327 => 195,  325 => 194,  319 => 190,  310 => 188,  305 => 187,  303 => 186,  288 => 174,  272 => 160,  270 => 159,  255 => 146,  252 => 145,  248 => 143,  242 => 141,  239 => 140,  237 => 139,  220 => 125,  210 => 118,  200 => 111,  190 => 104,  180 => 97,  170 => 90,  160 => 83,  150 => 76,  140 => 69,  130 => 62,  120 => 55,  110 => 48,  91 => 32,  81 => 25,  78 => 24,  73 => 21,  70 => 20,  63 => 16,  59 => 15,  56 => 14,  53 => 13,  49 => 10,  46 => 9,  42 => 6,  39 => 5,  33 => 3,);
    }
}
