<?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/detalles_mov.html.twig */
class __TwigTemplate_850a628bf41c91c42073e6b3d98ecda0 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", "empresas/detalles_mov.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\">
<div class=\"row\">
<div class=\"col-md-12 text-center border-bottom border-dark\">
<h4>Aprendiz:&nbsp;";
        // line 6
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["aprendiz"] ?? null), "cedula", [], "any", false, false, false, 6), "html", null, true);
        echo "-";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["aprendiz"] ?? null), "apellidos", [], "any", false, false, false, 6), "html", null, true);
        echo "&nbsp;";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["aprendiz"] ?? null), "nombres", [], "any", false, false, false, 6), "html", null, true);
        echo "</h4>
</div>
</div>

<div class=\"row\">
<!--<div class=\"col-md-4 text-center\">
    <div class=\"row\">
    <div class=\"col-md-12 text-center p-5\">
        <a onclick=\"procesando();\" class=\"btn btn-info btn-sm\" href=\"";
        // line 14
        echo twig_escape_filter($this->env, twig_constant("URLROOT2"), "html", null, true);
        echo "/tableros/detalles_notas/";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["nroaprendiz"] ?? null), "nro", [], "any", false, false, false, 14), "html", null, true);
        echo "\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Notas del Aprendiz\">NOTAS</a>
    </div>
    <div class=\"col-md-12 text-center p-5\">
        <a onclick=\"procesando();\" class=\"btn btn-info btn-sm\" href=\"";
        // line 17
        echo twig_escape_filter($this->env, twig_constant("URLROOT2"), "html", null, true);
        echo "/tableros/detalles_doc/";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["nroaprendiz"] ?? null), "nro", [], "any", false, false, false, 17), "html", null, true);
        echo "\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Notas del Aprendiz\">DOCUMENTOS</a>
    </div>
    <div class=\"col-md-12 text-center p-5\">
        <a onclick=\"procesando();\" class=\"btn btn-info btn-sm\" href=\"";
        // line 20
        echo twig_escape_filter($this->env, twig_constant("URLROOT2"), "html", null, true);
        echo "/tableros/detalles_mov/";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["nroaprendiz"] ?? null), "nro", [], "any", false, false, false, 20), "html", null, true);
        echo "\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Notas del Aprendiz\">MOVIMIENTOS</a>
    </div>
    </div>
</div>-->
<div class=\"col-md-8 text-center\">
<h4>MOVIMIENTOS</h4>
</div>
<div class=\"col-md-4 text-center\">
<a onclick=\"procesando();\" class=\"btn btn-danger btn-sm\" href=\"";
        // line 28
        echo twig_escape_filter($this->env, twig_constant("URLROOT2"), "html", null, true);
        echo "/tableros\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Movimientos\">Regresar</a>
</div>
</div>
<div class=\"col-md-12 text-center\">
<table class=\"table table-striped table-hover table-sm\" style=\"width:100%;font-size: 10pt; \">
<thead style=\" background-color: #4E73DF;color:#FFFFFF;\">
        <tr class=\"d-flex\">
        <th class='col text-center'>Fecha</th>
        <th class='col-2 text-center'>Tipo</th>
        <th class='col-4 text-center'>Motivo</th>
        <th class='col text-center'>&nbsp;</th>
        </tr>
    </thead>
    <tbody>

";
        // line 43
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["aprendiz_notas"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["educado"]) {
            // line 44
            echo "        <tr class=\"d-flex\">
            <td class='col text-center'>";
            // line 45
            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["educado"], "fecha", [], "any", false, false, false, 45), "d/m/Y"), "html", null, true);
            echo "</td>
            <td class='col-2 text-center'>";
            // line 46
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["educado"], "tipo", [], "any", false, false, false, 46), "html", null, true);
            echo "</td>
            <td class='col-4 text-center'>";
            // line 47
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["educado"], "motivo", [], "any", false, false, false, 47), "html", null, true);
            echo "</td>
        <td class='col text-center'>
                        ";
            // line 49
            if ((null === twig_get_attribute($this->env, $this->source, $context["educado"], "archivo", [], "any", false, false, false, 49))) {
                // line 50
                echo "                        &nbsp;
                        ";
            } else {
                // line 52
                echo "                        <a class=\"btn btn-primary btn-sm\" href=\"";
                echo twig_escape_filter($this->env, twig_constant("URLROOT2"), "html", null, true);
                echo "/tableros/descargar/";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["educado"], "archivo", [], "any", false, false, false, 52), "html", null, true);
                echo "\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Descargar\"><i class=\"fa fa-download\"></i></a>
                        ";
            }
            // line 54
            echo "        </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 57
        echo "</tbody>
</table>
</div>
</div>

</div>

";
    }

    // line 65
    public function block_javascripts($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 66
        echo "<script>
\$('#ModalSabana').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 modal = \$(this)
                //    modal.find('.modal-title').text('Modificar país: '+nombre)
                    modal.find('.modal-body #id_curso').val(id)

})
</script>
";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  175 => 66,  171 => 65,  160 => 57,  152 => 54,  144 => 52,  140 => 50,  138 => 49,  133 => 47,  129 => 46,  125 => 45,  122 => 44,  118 => 43,  100 => 28,  87 => 20,  79 => 17,  71 => 14,  56 => 6,  51 => 3,  47 => 2,  36 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends 'inc/base.html.twig' %}
{% block body %}
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-12 text-center border-bottom border-dark\">
<h4>Aprendiz:&nbsp;{{ aprendiz.cedula}}-{{ aprendiz.apellidos}}&nbsp;{{ aprendiz.nombres}}</h4>
</div>
</div>

<div class=\"row\">
<!--<div class=\"col-md-4 text-center\">
    <div class=\"row\">
    <div class=\"col-md-12 text-center p-5\">
        <a onclick=\"procesando();\" class=\"btn btn-info btn-sm\" href=\"{{ constant('URLROOT2') }}/tableros/detalles_notas/{{ nroaprendiz.nro }}\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Notas del Aprendiz\">NOTAS</a>
    </div>
    <div class=\"col-md-12 text-center p-5\">
        <a onclick=\"procesando();\" class=\"btn btn-info btn-sm\" href=\"{{ constant('URLROOT2') }}/tableros/detalles_doc/{{ nroaprendiz.nro }}\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Notas del Aprendiz\">DOCUMENTOS</a>
    </div>
    <div class=\"col-md-12 text-center p-5\">
        <a onclick=\"procesando();\" class=\"btn btn-info btn-sm\" href=\"{{ constant('URLROOT2') }}/tableros/detalles_mov/{{ nroaprendiz.nro }}\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Notas del Aprendiz\">MOVIMIENTOS</a>
    </div>
    </div>
</div>-->
<div class=\"col-md-8 text-center\">
<h4>MOVIMIENTOS</h4>
</div>
<div class=\"col-md-4 text-center\">
<a onclick=\"procesando();\" class=\"btn btn-danger btn-sm\" href=\"{{ constant('URLROOT2') }}/tableros\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Movimientos\">Regresar</a>
</div>
</div>
<div class=\"col-md-12 text-center\">
<table class=\"table table-striped table-hover table-sm\" style=\"width:100%;font-size: 10pt; \">
<thead style=\" background-color: #4E73DF;color:#FFFFFF;\">
        <tr class=\"d-flex\">
        <th class='col text-center'>Fecha</th>
        <th class='col-2 text-center'>Tipo</th>
        <th class='col-4 text-center'>Motivo</th>
        <th class='col text-center'>&nbsp;</th>
        </tr>
    </thead>
    <tbody>

{% for educado in aprendiz_notas %}
        <tr class=\"d-flex\">
            <td class='col text-center'>{{ educado.fecha| date('d/m/Y') }}</td>
            <td class='col-2 text-center'>{{ educado.tipo }}</td>
            <td class='col-4 text-center'>{{ educado.motivo }}</td>
        <td class='col text-center'>
                        {% if educado.archivo is null %}
                        &nbsp;
                        {% else %}
                        <a class=\"btn btn-primary btn-sm\" href=\"{{ constant('URLROOT2') }}/tableros/descargar/{{ educado.archivo }}\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Descargar\"><i class=\"fa fa-download\"></i></a>
                        {% endif %}
        </td>
        </tr>
{% endfor %}
</tbody>
</table>
</div>
</div>

</div>

{% endblock %}
{% block javascripts %}
<script>
\$('#ModalSabana').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 modal = \$(this)
                //    modal.find('.modal-title').text('Modificar país: '+nombre)
                    modal.find('.modal-body #id_curso').val(id)

})
</script>
{% endblock %}
", "empresas/detalles_mov.html.twig", "/home/rtfyeqntgk/adiestra.com.ve/sistema/ruices/empresas/app/views/empresas/detalles_mov.html.twig");
    }
}
