<?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;

/* educadores/remediales.html.twig */
class __TwigTemplate_b317385987cf9af2ad9b674536fddeed extends \Twig\Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'body' => [$this, 'block_body'],
            'javascripts' => [$this, 'block_javascripts'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "inc/base.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $this->parent = $this->loadTemplate("inc/base.html.twig", "educadores/remediales.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 2
    public function block_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 3
        echo "<div class=\"container-fluid mt-3\">
<h2>Educador: ";
        // line 4
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["datos_educa"] ?? null), "id_ed", [], "any", false, false, false, 4), "html", null, true);
        echo "&nbsp;-&nbsp;";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["datos_educa"] ?? null), "ape_ed", [], "any", false, false, false, 4), "html", null, true);
        echo "&nbsp;";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["datos_educa"] ?? null), "nom_ed", [], "any", false, false, false, 4), "html", null, true);
        echo "</h2>

<h3>Aprendiz: ";
        // line 6
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["eval_alumnos"] ?? null), "ap_ced", [], "any", false, false, false, 6), "html", null, true);
        echo "&nbsp;-&nbsp;";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["eval_alumnos"] ?? null), "ap_ape", [], "any", false, false, false, 6), "html", null, true);
        echo "&nbsp;";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["eval_alumnos"] ?? null), "ap_nom", [], "any", false, false, false, 6), "html", null, true);
        echo "&nbsp;&nbsp;(";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["eval_alumnos"] ?? null), "ap_cur", [], "any", false, false, false, 6), "html", null, true);
        echo ")</h3>
<div class=\"row\">
    <div class=\"col-12 text-center bg-info text-white\">
    <b><h2>ASIGNAR NOTAS REMEDIALES</h2></b>
    </div>
</div>
<div class=\"row\">
<div class=\"col-md-7 mx-auto mt-5\">
<table class=\"table table-striped table-hover table-sm\" style=\"width:100%\">
  <thead style=\"background-color: #006699;color:#FFFFFF;\">
    <tr>
<!--    <th scope=\"col\" class=\"text-center\">Id</th>-->
    <th scope=\"col\">T&eacute;cnicas</th>
    <th scope=\"col\" class=\"text-center\">Nota</th>
    <th scope=\"col\">&nbsp;</th>
    </tr>
  </thead>
  <tbody>

";
        // line 25
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["record"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["educado"]) {
            // line 26
            echo "    <tr>
 <!--     <td class=\"text-center\">";
            // line 27
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["educado"], "id", [], "any", false, false, false, 27), "html", null, true);
            echo "</td>-->
      <td>";
            // line 28
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["educado"], "descripcion", [], "any", false, false, false, 28), "html", null, true);
            echo "</td>
      <td class=\"text-center\">";
            // line 29
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["educado"], "nt3", [], "any", false, false, false, 29), "html", null, true);
            echo "</td>

    <td class=\"text-center\">
    <button type=\"button\" class=\"btn btn-dark btn-sm\" data-nt='";
            // line 32
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["educado"], "nt3", [], "any", false, false, false, 32), "html", null, true);
            echo "' data-tec='";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["educado"], "tecnica", [], "any", false, false, false, 32), "html", null, true);
            echo "' data-curso='";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["educado"], "id", [], "any", false, false, false, 32), "html", null, true);
            echo "' data-des='";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["educado"], "descripcion", [], "any", false, false, false, 32), "html", null, true);
            echo "' data-toggle=\"modal\" data-target=\"#ModalNt\" data-whatever=\"@mdo\" title=\"Modificar Nota\" >Modificar</button>
 </td>
    </tr>

";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['educado'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 37
        echo "</tbody>
</table>

</div>
</div>

<div class=\"row\">
<div class=\"col-md-6 mx-auto mt-5\">
    <div class=\"col-12 text-center bg-info text-white\">
    <b><h3>NOTAS REMEDIALES</h3></b>
    </div>
<table class=\"table table-striped table-hover table-sm\" style=\"width:100%\">
  <thead style=\"background-color: #006699;color:#FFFFFF;\">
    <tr>
    <th scope=\"col\">T&eacute;cnicas</th>
    <th scope=\"col\" class=\"text-center\">Nota</th>
    <th scope=\"col\" class=\"text-center\">Fecha</th>
    </tr>
  </thead>
  <tbody>

";
        // line 58
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["remedial"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["educadxo"]) {
            // line 59
            echo "    <tr>
      <td>";
            // line 60
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["educadxo"], "descripcion", [], "any", false, false, false, 60), "html", null, true);
            echo "</td>
      <td class=\"text-center\">";
            // line 61
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["educadxo"], "nt3", [], "any", false, false, false, 61), "html", null, true);
            echo "</td>
      <td class=\"text-center\">";
            // line 62
            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["educadxo"], "created_at", [], "any", false, false, false, 62), "d/m/Y"), "html", null, true);
            echo "</td>
    </tr>

";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['educadxo'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 66
        echo "</tbody>
</table>

</div>
</div>
</div>



<div class=\"modal fade\" id=\"remedial\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
<form id=\"form1\" name=\"form1\" action=\"";
        // line 76
        echo twig_escape_filter($this->env, twig_constant("URLROOT2"), "html", null, true);
        echo "/estudiantes/asistencia\" method=\"POST\">

  <div class=\"modal-dialog\" role=\"document\">
    <div class=\"modal-content\">
      <div class=\"modal-header\">
        <h5 class=\"modal-title\" id=\"exampleModalLabel\">Remediales Aprendiz:</h5>
        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Cerrar\">
          <span aria-hidden=\"true\">&times;</span>
        </button>
      </div>
      <div class=\"modal-body\">
<div class='form-row text-center'>
<div class=\"form-group-sm col-12 mt-2\">

    <div class=\"input-group\">
<label for=\"name\">C&eacute;dula del Aprendiz:</label>
    <input class=\"form-control\" tabindex=\"1\" type=\"number\" id=\"cedula\" name=\"cedula\" value=\"\" autofocus=\"autofocus\" required/>
    </div>

</div>
</div>
      <div class=\"modal-footer\">
        <button type=\"button\" class=\"btn btn-danger\" data-dismiss=\"modal\">Cerrar</button>
        <button type=\"submit\" class=\"btn btn-success\">Aceptar</button>
      </div>
    </div>
  </div>
</div>
</form>
</div>


 <div class=\"modal fade\" id=\"ModalNt\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
    <div class=\"modal-dialog\" role=\"document\">
    <form action=\"";
        // line 110
        echo twig_escape_filter($this->env, twig_constant("URLROOT2"), "html", null, true);
        echo "/educadores/guardar_remedial\" method=\"post\">

        <div class=\"modal-content\">
            <div class=\"modal-header\">
                <h5 class=\"modal-title\" id=\"exampleModalLabel\">Nota Remedial</h5>
                <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
                    <span aria-hidden=\"true\">&times;</span>
                </button>
            </div>
            <div class=\"modal-body\">
            <div class=\"form-row\">
            <div class=\"form-group col-md-12\">
    <div class=\"input-group\">
    <label for=\"name\">T&eacute;nica:</label>
    <input class=\"form-control\" type=\"text\" id=\"tecnica\" name=\"tecnica\" value=\"\" disabled/>
    </div>

    <div class=\"input-group\">
    <label for=\"name\">Nota:</label>
    <input class=\"form-control\" tabindex=\"0\" type=\"number\" min='0' max='20' id=\"nota\" name=\"nota\" value=\"\" autofocus=\"autofocus\" required/>
    </div>
           </div>
            <input id=\"id_idd\" type=\"hidden\" name=\"id_idd\" value=\"\">
            <input id=\"id_cur\" type=\"hidden\" name=\"id_cur\" value=\"";
        // line 133
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["eval_alumnos"] ?? null), "ap_cur", [], "any", false, false, false, 133), "html", null, true);
        echo "\">
            <input id=\"id_ced\" type=\"hidden\" name=\"id_ced\" value=\"";
        // line 134
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["eval_alumnos"] ?? null), "ap_ced", [], "any", false, false, false, 134), "html", null, true);
        echo "\">
            <input id=\"id_tec\" type=\"hidden\" name=\"id_tec\" value=\"\">
            <input id=\"id_nt0\" type=\"hidden\" name=\"id_nt0\" value=\"5\">
            </div>
            <div class=\"modal-footer\">
                <button type=\"submit\" class=\"btn btn-success\">Aceptar</button>
                <button type=\"button\" class=\"btn btn-danger\" data-dismiss=\"modal\">Cerrar</button>
            </div>
</div>
        </div>
    </form>
    </div>
</div>

";
    }

    // line 149
    public function block_javascripts($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 150
        echo "<script>


\$('#ModalNt').on('show.bs.modal', function (event) {
          var button = \$(event.relatedTarget) // Botón que activó el modal
                    var id = button.data('curso') // Extraer la información de atributos de datos
                    var des = button.data('des')
                    var tec = button.data('tec')
                    var nt0 = button.data('nt')
                    var modal = \$(this)
                //    modal.find('.modal-title').text('Modificar país: '+nombre)
                    modal.find('.modal-body #id_idd').val(id)
                    modal.find('.modal-body #tecnica').val(des)
                    modal.find('.modal-body #id_nt0').val(nt0)
                    modal.find('.modal-body #id_tec').val(tec)

})
</script>
";
    }

    public function getTemplateName()
    {
        return "educadores/remediales.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  279 => 150,  275 => 149,  256 => 134,  252 => 133,  226 => 110,  189 => 76,  177 => 66,  167 => 62,  163 => 61,  159 => 60,  156 => 59,  152 => 58,  129 => 37,  112 => 32,  106 => 29,  102 => 28,  98 => 27,  95 => 26,  91 => 25,  63 => 6,  54 => 4,  51 => 3,  47 => 2,  36 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends 'inc/base.html.twig' %}
{% block body %}
<div class=\"container-fluid mt-3\">
<h2>Educador: {{ datos_educa.id_ed }}&nbsp;-&nbsp;{{ datos_educa.ape_ed}}&nbsp;{{ datos_educa.nom_ed }}</h2>

<h3>Aprendiz: {{ eval_alumnos.ap_ced }}&nbsp;-&nbsp;{{ eval_alumnos.ap_ape}}&nbsp;{{ eval_alumnos.ap_nom }}&nbsp;&nbsp;({{ eval_alumnos.ap_cur }})</h3>
<div class=\"row\">
    <div class=\"col-12 text-center bg-info text-white\">
    <b><h2>ASIGNAR NOTAS REMEDIALES</h2></b>
    </div>
</div>
<div class=\"row\">
<div class=\"col-md-7 mx-auto mt-5\">
<table class=\"table table-striped table-hover table-sm\" style=\"width:100%\">
  <thead style=\"background-color: #006699;color:#FFFFFF;\">
    <tr>
<!--    <th scope=\"col\" class=\"text-center\">Id</th>-->
    <th scope=\"col\">T&eacute;cnicas</th>
    <th scope=\"col\" class=\"text-center\">Nota</th>
    <th scope=\"col\">&nbsp;</th>
    </tr>
  </thead>
  <tbody>

{% for educado in record %}
    <tr>
 <!--     <td class=\"text-center\">{{ educado.id }}</td>-->
      <td>{{ educado.descripcion }}</td>
      <td class=\"text-center\">{{ educado.nt3 }}</td>

    <td class=\"text-center\">
    <button type=\"button\" class=\"btn btn-dark btn-sm\" data-nt='{{ educado.nt3 }}' data-tec='{{ educado.tecnica }}' data-curso='{{ educado.id }}' data-des='{{ educado.descripcion }}' data-toggle=\"modal\" data-target=\"#ModalNt\" data-whatever=\"@mdo\" title=\"Modificar Nota\" >Modificar</button>
 </td>
    </tr>

{% endfor %}
</tbody>
</table>

</div>
</div>

<div class=\"row\">
<div class=\"col-md-6 mx-auto mt-5\">
    <div class=\"col-12 text-center bg-info text-white\">
    <b><h3>NOTAS REMEDIALES</h3></b>
    </div>
<table class=\"table table-striped table-hover table-sm\" style=\"width:100%\">
  <thead style=\"background-color: #006699;color:#FFFFFF;\">
    <tr>
    <th scope=\"col\">T&eacute;cnicas</th>
    <th scope=\"col\" class=\"text-center\">Nota</th>
    <th scope=\"col\" class=\"text-center\">Fecha</th>
    </tr>
  </thead>
  <tbody>

{% for educadxo in remedial %}
    <tr>
      <td>{{ educadxo.descripcion }}</td>
      <td class=\"text-center\">{{ educadxo.nt3 }}</td>
      <td class=\"text-center\">{{ educadxo.created_at | date('d/m/Y') }}</td>
    </tr>

{% endfor %}
</tbody>
</table>

</div>
</div>
</div>



<div class=\"modal fade\" id=\"remedial\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
<form id=\"form1\" name=\"form1\" action=\"{{ constant('URLROOT2') }}/estudiantes/asistencia\" method=\"POST\">

  <div class=\"modal-dialog\" role=\"document\">
    <div class=\"modal-content\">
      <div class=\"modal-header\">
        <h5 class=\"modal-title\" id=\"exampleModalLabel\">Remediales Aprendiz:</h5>
        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Cerrar\">
          <span aria-hidden=\"true\">&times;</span>
        </button>
      </div>
      <div class=\"modal-body\">
<div class='form-row text-center'>
<div class=\"form-group-sm col-12 mt-2\">

    <div class=\"input-group\">
<label for=\"name\">C&eacute;dula del Aprendiz:</label>
    <input class=\"form-control\" tabindex=\"1\" type=\"number\" id=\"cedula\" name=\"cedula\" value=\"\" autofocus=\"autofocus\" required/>
    </div>

</div>
</div>
      <div class=\"modal-footer\">
        <button type=\"button\" class=\"btn btn-danger\" data-dismiss=\"modal\">Cerrar</button>
        <button type=\"submit\" class=\"btn btn-success\">Aceptar</button>
      </div>
    </div>
  </div>
</div>
</form>
</div>


 <div class=\"modal fade\" id=\"ModalNt\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
    <div class=\"modal-dialog\" role=\"document\">
    <form action=\"{{ constant('URLROOT2') }}/educadores/guardar_remedial\" method=\"post\">

        <div class=\"modal-content\">
            <div class=\"modal-header\">
                <h5 class=\"modal-title\" id=\"exampleModalLabel\">Nota Remedial</h5>
                <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
                    <span aria-hidden=\"true\">&times;</span>
                </button>
            </div>
            <div class=\"modal-body\">
            <div class=\"form-row\">
            <div class=\"form-group col-md-12\">
    <div class=\"input-group\">
    <label for=\"name\">T&eacute;nica:</label>
    <input class=\"form-control\" type=\"text\" id=\"tecnica\" name=\"tecnica\" value=\"\" disabled/>
    </div>

    <div class=\"input-group\">
    <label for=\"name\">Nota:</label>
    <input class=\"form-control\" tabindex=\"0\" type=\"number\" min='0' max='20' id=\"nota\" name=\"nota\" value=\"\" autofocus=\"autofocus\" required/>
    </div>
           </div>
            <input id=\"id_idd\" type=\"hidden\" name=\"id_idd\" value=\"\">
            <input id=\"id_cur\" type=\"hidden\" name=\"id_cur\" value=\"{{ eval_alumnos.ap_cur }}\">
            <input id=\"id_ced\" type=\"hidden\" name=\"id_ced\" value=\"{{ eval_alumnos.ap_ced }}\">
            <input id=\"id_tec\" type=\"hidden\" name=\"id_tec\" value=\"\">
            <input id=\"id_nt0\" type=\"hidden\" name=\"id_nt0\" value=\"5\">
            </div>
            <div class=\"modal-footer\">
                <button type=\"submit\" class=\"btn btn-success\">Aceptar</button>
                <button type=\"button\" class=\"btn btn-danger\" data-dismiss=\"modal\">Cerrar</button>
            </div>
</div>
        </div>
    </form>
    </div>
</div>

{% endblock %}
{% block javascripts %}
<script>


\$('#ModalNt').on('show.bs.modal', function (event) {
          var button = \$(event.relatedTarget) // Botón que activó el modal
                    var id = button.data('curso') // Extraer la información de atributos de datos
                    var des = button.data('des')
                    var tec = button.data('tec')
                    var nt0 = button.data('nt')
                    var modal = \$(this)
                //    modal.find('.modal-title').text('Modificar país: '+nombre)
                    modal.find('.modal-body #id_idd').val(id)
                    modal.find('.modal-body #tecnica').val(des)
                    modal.find('.modal-body #id_nt0').val(nt0)
                    modal.find('.modal-body #id_tec').val(tec)

})
</script>
{% endblock %}
", "educadores/remediales.html.twig", "/home/sircone1/domains/sirconet.com.ve/public_html/adiestra/edutec/app/views/educadores/remediales.html.twig");
    }
}
