<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* empresas/asistencia_instituto_rpt.html.twig */
class __TwigTemplate_030cd2ffc18950ac36b6dc567dccad08 extends \Twig\Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
        $macros["_self"] = $this->macros["_self"] = $this;
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<style type=\"text/css\">
        @page {
            margin: 20px;
        }

        table.table-bordered{
        border:1px solid blue;
        margin-top:20px;
    }

.table-bordered > tbody > tr > td,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > td,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > thead > tr > th {
    border: 1px solid black;
}


</style>
<title>SIRCOnet</title>
<table align=\"center\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"  style=\"font-size: 20px;\">
<tr><td  align=\"center\" width=\"50%\" border=\"0\"><img src=\"";
        // line 24
        echo twig_escape_filter($this->env, twig_constant("URLROOTP"), "html", null, true);
        echo "/images/hd_inces.jpg\" width=\"150\" height=\"40\" alt=\"\" /></td><td  align=\"center\" width=\"50%\"><img src=\"";
        echo twig_escape_filter($this->env, twig_constant("URLROOTP"), "html", null, true);
        echo "/images/00123456.jpg\" width=\"250\" height=\"60\" /></td></tr>
</table>





<table align=\"center\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" style=\"font-size: 15px;font-family: Arial, Helvetica, sans-serif;font-weight:bold;\">
<tr><td align=\"center\">ASISTENCIA DE LOS APRENDICES EN EL INSTITUTO - EMPRESA:&nbsp;";
        // line 32
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["empresas"] ?? null), "razon", [], "any", false, false, false, 32), "html", null, true);
        echo "<br>MES: ";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["empresas"] ?? null), "mes", [], "any", false, false, false, 32), "html", null, true);
        echo " / A&Ntilde;O: ";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["empresas"] ?? null), "ahno", [], "any", false, false, false, 32), "html", null, true);
        echo "</td></tr>
</table>

<table align=\"center\" style=\"font-size: 12px;font-family: Arial, Helvetica, sans-serif;\" bgcolor=\"#BDBDBD\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"1\" bordercolor=\"#9393FF\">
  <tr>
   <td width='10%' align='center' bgcolor=\"#FFFF00\"><b>LEYENDA</b></td>
   <td width='15%' align='center'><b>1-5: Asistencia</b></td>
    <td width='15%' align='center'><b>I: Inasistencia</b></td>
    <td width='15%' align='center'><b>J: Inasistencia Justificada</b></td>
    <td width='15%' align='center'><b>R: Retardo</b></td>
    <td width='15%' align='center'><b>P: Permiso</b></td>
    <td width='15%' align='center'><b>O: Reposo</b></td>
  </tr>
</table>


<table style=\"font-size: 11px;font-family: Arial, Helvetica, sans-serif;\" class=\"table table-bordered\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"1\" bordercolor=\"#9393FF\">

<!--<tr>
<th width=\"2%\">&nbsp;</th>

<th width=\"5%\">&nbsp;</th>

<th width=\"20%\">&nbsp;</th>

<th width=\"1.5%\" align=\"center\">1</th>

<th width=\"1.5%\" align=\"center\">2</th>

<th width=\"1.5%\" align=\"center\">3</th>

<th width=\"1.5%\" align=\"center\">4</th>

<th width=\"1.5%\" align=\"center\">5</th>

<th width=\"1.5%\" align=\"center\">6</th>

<th width=\"1.5%\" align=\"center\">7</th>

<th width=\"1.5%\" align=\"center\">8</th>

<th width=\"1.5%\" align=\"center\">9</th>

<th width=\"1.5%\" align=\"center\">10</th>

<th width=\"1.5%\" align=\"center\">11</th>

<th width=\"1.5%\" align=\"center\">12</th>

<th width=\"1.5%\" align=\"center\">13</th>

<th width=\"1.5%\" align=\"center\">14</th>

<th width=\"1.5%\" align=\"center\">15</th>

<th width=\"1.5%\" align=\"center\">16</th>

<th width=\"1.5%\" align=\"center\">17</th>

<th width=\"1.5%\" align=\"center\">18</th>

<th width=\"1.5%\" align=\"center\">19</th>

<th width=\"1.5%\" align=\"center\">20</th>

<th width=\"1.5%\" align=\"center\">21</th>

<th width=\"1.5%\" align=\"center\">22</th>

<th width=\"1.5%\" align=\"center\">23</th>

<th width=\"1.5%\" align=\"center\">24</th>

<th width=\"1.5%\" align=\"center\">25</th>

<th width=\"1.5%\" align=\"center\">26</th>

<th width=\"1.5%\" align=\"center\">27</th>

<th width=\"1.5%\" align=\"center\">28</th>

<th width=\"1.5%\" align=\"center\">29</th>

<th width=\"1.5%\" align=\"center\">30</th>

<th width=\"1.5%\" align=\"center\">31</th>
<th width=\"1.5%\" align=\"center\">&nbsp;</th>

</tr>-->



<tr>

<th width=\"2%\">No.</th>

<th width=\"5%\">CEDULA ";
        // line 128
        echo twig_escape_filter($this->env, ($context["dia_fin"] ?? null), "html", null, true);
        echo "</th>

<th width=\"20%\">APELLIDOS Y NOMBRES</th>

";
        // line 132
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(range(1, ($context["dia_fin"] ?? null)));
        foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
            // line 133
            echo "<th width=\"1.5%\" align=\"center\">";
            echo twig_escape_filter($this->env, $context["i"], "html", null, true);
            echo "</th>
";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 135
        echo "
</tr>

";
        // line 148
        echo "
";
        // line 149
        $context["n"] = 0;
        // line 150
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["asistencia"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["asistenciax"]) {
            // line 151
            $context["n"] = (($context["n"] ?? null) + 1);
            // line 152
            echo "<tr>
    ";
            // line 153
            if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["asistenciax"], "vector", [], "any", false, false, false, 153)) > 0)) {
                // line 154
                echo "            ";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($context["asistenciax"]);
                foreach ($context['_seq'] as $context["key"] => $context["user"]) {
                    // line 155
                    echo "            <td width=\"2%\" align=\"center\">";
                    echo twig_escape_filter($this->env, ($context["n"] ?? null), "html", null, true);
                    echo "</td>
            <td width=\"5%\" align=\"center\">";
                    // line 156
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "cedula", [], "any", false, false, false, 156), "html", null, true);
                    echo "</td>
            <td width=\"20%\" align=\"center\">";
                    // line 157
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "apellidos", [], "any", false, false, false, 157), "html", null, true);
                    echo "&nbsp;";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "nombres", [], "any", false, false, false, 157), "html", null, true);
                    echo "
            ";
                    // line 158
                    if ((twig_get_attribute($this->env, $this->source, $context["user"], "tag1", [], "any", false, false, false, 158) == "ACTIVO")) {
                        // line 159
                        echo "            ";
                    } else {
                        // line 160
                        echo "<!--            <small>";
                        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "tag1", [], "any", false, false, false, 160), "html", null, true);
                        echo "<br>";
                        echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "f_tag", [], "any", false, false, false, 160), "d/m/Y"), "html", null, true);
                        echo " </small>     -->
            <span style=\"background-color: #FF8A8A;color:#000000;padding:2px;font-weight:bold;\"><br>";
                        // line 161
                        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "tag1", [], "any", false, false, false, 161), "html", null, true);
                        echo "&nbsp;";
                        echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "f_tag", [], "any", false, false, false, 161), "d/m/Y"), "html", null, true);
                        echo "</span>
            ";
                    }
                    // line 162
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 163
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d1", [], "any", false, false, false, 163)], 163, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d1", [], "any", false, false, false, 163), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 164
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d2", [], "any", false, false, false, 164)], 164, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d2", [], "any", false, false, false, 164), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 165
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d3", [], "any", false, false, false, 165)], 165, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d3", [], "any", false, false, false, 165), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 166
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d4", [], "any", false, false, false, 166)], 166, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d4", [], "any", false, false, false, 166), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 167
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d5", [], "any", false, false, false, 167)], 167, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d5", [], "any", false, false, false, 167), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 168
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d6", [], "any", false, false, false, 168)], 168, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d6", [], "any", false, false, false, 168), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 169
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d7", [], "any", false, false, false, 169)], 169, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d7", [], "any", false, false, false, 169), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 170
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d8", [], "any", false, false, false, 170)], 170, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d8", [], "any", false, false, false, 170), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 171
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d9", [], "any", false, false, false, 171)], 171, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d9", [], "any", false, false, false, 171), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 172
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d10", [], "any", false, false, false, 172)], 172, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d10", [], "any", false, false, false, 172), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 173
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d11", [], "any", false, false, false, 173)], 173, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d11", [], "any", false, false, false, 173), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 174
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d12", [], "any", false, false, false, 174)], 174, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d12", [], "any", false, false, false, 174), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 175
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d13", [], "any", false, false, false, 175)], 175, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d13", [], "any", false, false, false, 175), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 176
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d14", [], "any", false, false, false, 176)], 176, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d14", [], "any", false, false, false, 176), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 177
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d15", [], "any", false, false, false, 177)], 177, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d15", [], "any", false, false, false, 177), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 178
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d16", [], "any", false, false, false, 178)], 178, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d16", [], "any", false, false, false, 178), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 179
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d17", [], "any", false, false, false, 179)], 179, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d17", [], "any", false, false, false, 179), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 180
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d18", [], "any", false, false, false, 180)], 180, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d18", [], "any", false, false, false, 180), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 181
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d19", [], "any", false, false, false, 181)], 181, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d19", [], "any", false, false, false, 181), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 182
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d20", [], "any", false, false, false, 182)], 182, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d20", [], "any", false, false, false, 182), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 183
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d21", [], "any", false, false, false, 183)], 183, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d21", [], "any", false, false, false, 183), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 184
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d22", [], "any", false, false, false, 184)], 184, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d22", [], "any", false, false, false, 184), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 185
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d23", [], "any", false, false, false, 185)], 185, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d23", [], "any", false, false, false, 185), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 186
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d24", [], "any", false, false, false, 186)], 186, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d24", [], "any", false, false, false, 186), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 187
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d25", [], "any", false, false, false, 187)], 187, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d25", [], "any", false, false, false, 187), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 188
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d26", [], "any", false, false, false, 188)], 188, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d26", [], "any", false, false, false, 188), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 189
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d27", [], "any", false, false, false, 189)], 189, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d27", [], "any", false, false, false, 189), "html", null, true);
                    echo "</td>
<!--            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 190
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d28", [], "any", false, false, false, 190)], 190, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d28", [], "any", false, false, false, 190), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 191
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d29", [], "any", false, false, false, 191)], 191, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d29", [], "any", false, false, false, 191), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 192
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d30", [], "any", false, false, false, 192)], 192, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d30", [], "any", false, false, false, 192), "html", null, true);
                    echo "</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='";
                    // line 193
                    echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d31", [], "any", false, false, false, 193)], 193, $context, $this->getSourceContext());
                    echo "'>";
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d31", [], "any", false, false, false, 193), "html", null, true);
                    echo "</td>
-->

";
                    // line 196
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable(range(28, ($context["dia_fin"] ?? null)));
                    foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                        // line 197
                        echo "        ";
                        if (($context["i"] == 28)) {
                            // line 198
                            echo "        <td width=\"1.5%\"  align=\"center\" bgcolor='";
                            echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d28", [], "any", false, false, false, 198)], 198, $context, $this->getSourceContext());
                            echo "'>";
                            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d28", [], "any", false, false, false, 198), "html", null, true);
                            echo "</td>
        ";
                        }
                        // line 200
                        echo "        ";
                        if (($context["i"] == 29)) {
                            // line 201
                            echo "        <td width=\"1.5%\"  align=\"center\" bgcolor='";
                            echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d29", [], "any", false, false, false, 201)], 201, $context, $this->getSourceContext());
                            echo "'>";
                            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d29", [], "any", false, false, false, 201), "html", null, true);
                            echo "</td>
        ";
                        }
                        // line 203
                        echo "        ";
                        if (($context["i"] == 30)) {
                            // line 204
                            echo "        <td width=\"1.5%\"  align=\"center\" bgcolor='";
                            echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d30", [], "any", false, false, false, 204)], 204, $context, $this->getSourceContext());
                            echo "'>";
                            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d30", [], "any", false, false, false, 204), "html", null, true);
                            echo "</td>
        ";
                        }
                        // line 206
                        echo "        ";
                        if (($context["i"] == 31)) {
                            // line 207
                            echo "        <td width=\"1.5%\"  align=\"center\" bgcolor='";
                            echo twig_call_macro($macros["_self"], "macro_color", [twig_get_attribute($this->env, $this->source, $context["user"], "d31", [], "any", false, false, false, 207)], 207, $context, $this->getSourceContext());
                            echo "'>";
                            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "d31", [], "any", false, false, false, 207), "html", null, true);
                            echo "</td>
        ";
                        }
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 210
                    echo "            ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['key'], $context['user'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 211
                echo "    ";
            }
            // line 212
            echo "</tr>
";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['asistenciax'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 214
        echo "</table>
<table align=\"center\" style=\"font-size: 12px;font-family: Arial, Helvetica, sans-serif;\" bgcolor=\"#BDBDBD\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"1\" bordercolor=\"#9393FF\">
  <tr>
   <td width='10%' align='center' bgcolor=\"#FFFF00\"><b>LEYENDA</b></td>
   <td width='15%' align='center'><b>1-5: Asistencia</b></td>
    <td width='15%' align='center'><b>I: Inasistencia</b></td>
    <td width='15%' align='center'><b>J: Inasistencia Justificada</b></td>
    <td width='15%' align='center'><b>R: Retardo</b></td>
    <td width='15%' align='center'><b>P: Permiso</b></td>
    <td width='15%' align='center'><b>O: Reposo</b></td>
  </tr>
</table>

    ";
        // line 246
        echo "
";
    }

    // line 227
    public function macro_color($__valor__ = null, ...$__varargs__)
    {
        $macros = $this->macros;
        $context = $this->env->mergeGlobals([
            "valor" => $__valor__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start();
        try {
            // line 228
            echo "    ";
            if ((($context["valor"] ?? null) == "F")) {
                // line 229
                echo "    ";
                echo "#DDDDDD";
                echo "
    ";
            } elseif ((            // line 230
($context["valor"] ?? null) == "N")) {
                // line 231
                echo "    ";
                echo "#FF0000";
                echo "
    ";
            } elseif ((            // line 232
($context["valor"] ?? null) == "I")) {
                // line 233
                echo "    ";
                echo "#FF8C8C";
                echo "
    ";
            } elseif ((            // line 234
($context["valor"] ?? null) == "J")) {
                // line 235
                echo "    ";
                echo "#FFFF66";
                echo "
    ";
            } elseif ((            // line 236
($context["valor"] ?? null) == "R")) {
                // line 237
                echo "    ";
                echo "#A1D0E8";
                echo "
    ";
            } elseif ((            // line 238
($context["valor"] ?? null) == "P")) {
                // line 239
                echo "    ";
                echo "#66FF99";
                echo "
    ";
            } elseif ((            // line 240
($context["valor"] ?? null) == "A")) {
                // line 241
                echo "    ";
                echo "#FFFFFF";
                echo "
    ";
            } elseif ((            // line 242
($context["valor"] ?? null) == "")) {
                // line 243
                echo "    ";
                echo "#FFFFFF";
                echo "
    ";
            }
            // line 245
            echo "    ";

            return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
        } finally {
            ob_end_clean();
        }
    }

    public function getTemplateName()
    {
        return "empresas/asistencia_instituto_rpt.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  609 => 245,  603 => 243,  601 => 242,  596 => 241,  594 => 240,  589 => 239,  587 => 238,  582 => 237,  580 => 236,  575 => 235,  573 => 234,  568 => 233,  566 => 232,  561 => 231,  559 => 230,  554 => 229,  551 => 228,  538 => 227,  533 => 246,  518 => 214,  511 => 212,  508 => 211,  502 => 210,  490 => 207,  487 => 206,  479 => 204,  476 => 203,  468 => 201,  465 => 200,  457 => 198,  454 => 197,  450 => 196,  442 => 193,  436 => 192,  430 => 191,  424 => 190,  418 => 189,  412 => 188,  406 => 187,  400 => 186,  394 => 185,  388 => 184,  382 => 183,  376 => 182,  370 => 181,  364 => 180,  358 => 179,  352 => 178,  346 => 177,  340 => 176,  334 => 175,  328 => 174,  322 => 173,  316 => 172,  310 => 171,  304 => 170,  298 => 169,  292 => 168,  286 => 167,  280 => 166,  274 => 165,  268 => 164,  262 => 163,  259 => 162,  252 => 161,  245 => 160,  242 => 159,  240 => 158,  234 => 157,  230 => 156,  225 => 155,  220 => 154,  218 => 153,  215 => 152,  213 => 151,  209 => 150,  207 => 149,  204 => 148,  199 => 135,  190 => 133,  186 => 132,  179 => 128,  76 => 32,  63 => 24,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<style type=\"text/css\">
        @page {
            margin: 20px;
        }

        table.table-bordered{
        border:1px solid blue;
        margin-top:20px;
    }

.table-bordered > tbody > tr > td,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > td,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > thead > tr > th {
    border: 1px solid black;
}


</style>
<title>SIRCOnet</title>
<table align=\"center\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"  style=\"font-size: 20px;\">
<tr><td  align=\"center\" width=\"50%\" border=\"0\"><img src=\"{{ constant('URLROOTP') }}/images/hd_inces.jpg\" width=\"150\" height=\"40\" alt=\"\" /></td><td  align=\"center\" width=\"50%\"><img src=\"{{ constant('URLROOTP') }}/images/00123456.jpg\" width=\"250\" height=\"60\" /></td></tr>
</table>





<table align=\"center\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" style=\"font-size: 15px;font-family: Arial, Helvetica, sans-serif;font-weight:bold;\">
<tr><td align=\"center\">ASISTENCIA DE LOS APRENDICES EN EL INSTITUTO - EMPRESA:&nbsp;{{ empresas.razon }}<br>MES: {{ empresas.mes }} / A&Ntilde;O: {{ empresas.ahno }}</td></tr>
</table>

<table align=\"center\" style=\"font-size: 12px;font-family: Arial, Helvetica, sans-serif;\" bgcolor=\"#BDBDBD\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"1\" bordercolor=\"#9393FF\">
  <tr>
   <td width='10%' align='center' bgcolor=\"#FFFF00\"><b>LEYENDA</b></td>
   <td width='15%' align='center'><b>1-5: Asistencia</b></td>
    <td width='15%' align='center'><b>I: Inasistencia</b></td>
    <td width='15%' align='center'><b>J: Inasistencia Justificada</b></td>
    <td width='15%' align='center'><b>R: Retardo</b></td>
    <td width='15%' align='center'><b>P: Permiso</b></td>
    <td width='15%' align='center'><b>O: Reposo</b></td>
  </tr>
</table>


<table style=\"font-size: 11px;font-family: Arial, Helvetica, sans-serif;\" class=\"table table-bordered\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"1\" bordercolor=\"#9393FF\">

<!--<tr>
<th width=\"2%\">&nbsp;</th>

<th width=\"5%\">&nbsp;</th>

<th width=\"20%\">&nbsp;</th>

<th width=\"1.5%\" align=\"center\">1</th>

<th width=\"1.5%\" align=\"center\">2</th>

<th width=\"1.5%\" align=\"center\">3</th>

<th width=\"1.5%\" align=\"center\">4</th>

<th width=\"1.5%\" align=\"center\">5</th>

<th width=\"1.5%\" align=\"center\">6</th>

<th width=\"1.5%\" align=\"center\">7</th>

<th width=\"1.5%\" align=\"center\">8</th>

<th width=\"1.5%\" align=\"center\">9</th>

<th width=\"1.5%\" align=\"center\">10</th>

<th width=\"1.5%\" align=\"center\">11</th>

<th width=\"1.5%\" align=\"center\">12</th>

<th width=\"1.5%\" align=\"center\">13</th>

<th width=\"1.5%\" align=\"center\">14</th>

<th width=\"1.5%\" align=\"center\">15</th>

<th width=\"1.5%\" align=\"center\">16</th>

<th width=\"1.5%\" align=\"center\">17</th>

<th width=\"1.5%\" align=\"center\">18</th>

<th width=\"1.5%\" align=\"center\">19</th>

<th width=\"1.5%\" align=\"center\">20</th>

<th width=\"1.5%\" align=\"center\">21</th>

<th width=\"1.5%\" align=\"center\">22</th>

<th width=\"1.5%\" align=\"center\">23</th>

<th width=\"1.5%\" align=\"center\">24</th>

<th width=\"1.5%\" align=\"center\">25</th>

<th width=\"1.5%\" align=\"center\">26</th>

<th width=\"1.5%\" align=\"center\">27</th>

<th width=\"1.5%\" align=\"center\">28</th>

<th width=\"1.5%\" align=\"center\">29</th>

<th width=\"1.5%\" align=\"center\">30</th>

<th width=\"1.5%\" align=\"center\">31</th>
<th width=\"1.5%\" align=\"center\">&nbsp;</th>

</tr>-->



<tr>

<th width=\"2%\">No.</th>

<th width=\"5%\">CEDULA {{ dia_fin }}</th>

<th width=\"20%\">APELLIDOS Y NOMBRES</th>

{% for i in 1..dia_fin %}
<th width=\"1.5%\" align=\"center\">{{ i }}</th>
{% endfor %}

</tr>

{#
{% for estudiante in asistencia.vector %}

<td width=\"5%\" align=\"center\">{{ estudiante.cedula }}</td>
<td width=\"9%\">{{ estudiante.apellidos }}&nbsp;{{ estudiante.nombres }}</td>
<td width=\"5%\" align=\"center\">0</td>
<td width=\"10%\" align=\"center\">{{ estudiante.fecha| date('d/m/Y') }}</td>
<td width=\"10%\">{{ estudiante.motivo }}</td>

{% endfor %}        #}

{% set n=0 %}
{% for asistenciax in asistencia %}
{% set n=n+1 %}
<tr>
    {% if asistenciax.vector|length > 0 %}
            {% for key, user in asistenciax %}
            <td width=\"2%\" align=\"center\">{{ n }}</td>
            <td width=\"5%\" align=\"center\">{{ user.cedula }}</td>
            <td width=\"20%\" align=\"center\">{{ user.apellidos }}&nbsp;{{ user.nombres }}
            {% if user.tag1==\"ACTIVO\" %}
            {% else %}
<!--            <small>{{ user.tag1 }}<br>{{ user.f_tag| date('d/m/Y') }} </small>     -->
            <span style=\"background-color: #FF8A8A;color:#000000;padding:2px;font-weight:bold;\"><br>{{ user.tag1 }}&nbsp;{{ user.f_tag| date('d/m/Y') }}</span>
            {% endif %}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d1) }}'>{{ user.d1 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d2) }}'>{{ user.d2 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d3) }}'>{{ user.d3 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d4) }}'>{{ user.d4 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d5) }}'>{{ user.d5 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d6) }}'>{{ user.d6 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d7) }}'>{{ user.d7 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d8) }}'>{{ user.d8 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d9) }}'>{{ user.d9 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d10) }}'>{{ user.d10 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d11) }}'>{{ user.d11 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d12) }}'>{{ user.d12 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d13) }}'>{{ user.d13 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d14) }}'>{{ user.d14 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d15) }}'>{{ user.d15 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d16) }}'>{{ user.d16 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d17) }}'>{{ user.d17 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d18) }}'>{{ user.d18 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d19) }}'>{{ user.d19 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d20) }}'>{{ user.d20 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d21) }}'>{{ user.d21 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d22) }}'>{{ user.d22 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d23) }}'>{{ user.d23 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d24) }}'>{{ user.d24 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d25) }}'>{{ user.d25 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d26) }}'>{{ user.d26 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d27) }}'>{{ user.d27 }}</td>
<!--            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d28) }}'>{{ user.d28 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d29) }}'>{{ user.d29 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d30) }}'>{{ user.d30 }}</td>
            <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d31) }}'>{{ user.d31 }}</td>
-->

{% for i in 28..dia_fin %}
        {% if i==28 %}
        <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d28) }}'>{{ user.d28 }}</td>
        {% endif %}
        {% if i==29 %}
        <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d29) }}'>{{ user.d29 }}</td>
        {% endif %}
        {% if i==30 %}
        <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d30) }}'>{{ user.d30 }}</td>
        {% endif %}
        {% if i==31 %}
        <td width=\"1.5%\"  align=\"center\" bgcolor='{{ _self.color(user.d31) }}'>{{ user.d31 }}</td>
        {% endif %}
{% endfor %}
            {% endfor %}
    {% endif %}
</tr>
{% endfor %}
</table>
<table align=\"center\" style=\"font-size: 12px;font-family: Arial, Helvetica, sans-serif;\" bgcolor=\"#BDBDBD\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"1\" bordercolor=\"#9393FF\">
  <tr>
   <td width='10%' align='center' bgcolor=\"#FFFF00\"><b>LEYENDA</b></td>
   <td width='15%' align='center'><b>1-5: Asistencia</b></td>
    <td width='15%' align='center'><b>I: Inasistencia</b></td>
    <td width='15%' align='center'><b>J: Inasistencia Justificada</b></td>
    <td width='15%' align='center'><b>R: Retardo</b></td>
    <td width='15%' align='center'><b>P: Permiso</b></td>
    <td width='15%' align='center'><b>O: Reposo</b></td>
  </tr>
</table>

    {% macro color(valor) %}
    {% if valor==\"F\" %}
    {{ '#DDDDDD' }}
    {% elseif valor==\"N\" %}
    {{ '#FF0000' }}
    {% elseif valor==\"I\" %}
    {{ '#FF8C8C' }}
    {% elseif valor==\"J\" %}
    {{ '#FFFF66' }}
    {% elseif valor==\"R\" %}
    {{ '#A1D0E8' }}
    {% elseif valor==\"P\" %}
    {{ '#66FF99' }}
    {% elseif valor==\"A\" %}
    {{ '#FFFFFF' }}
    {% elseif valor==\"\" %}
    {{ '#FFFFFF' }}
    {% endif %}
    {% endmacro %}

", "empresas/asistencia_instituto_rpt.html.twig", "/home/rtfyeqntgk/adiestra.com.ve/sistema/ruices/empresas/app/views/empresas/asistencia_instituto_rpt.html.twig");
    }
}
