<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* @App/TimeClock/supervisornotificacion/index.html.twig */
class __TwigTemplate_f54396910c85c473fb9d24a550355847513a38086007886e86ebd3467b6d4d85 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("@App/Layouts/layout.html.twig", "@App/TimeClock/supervisornotificacion/index.html.twig", 1);
        $this->blocks = [
            'content' => [$this, 'block_content'],
            'javascripts' => [$this, 'block_javascripts'],
        ];
    }

    protected function doGetParent(array $context)
    {
        return "@App/Layouts/layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@App/TimeClock/supervisornotificacion/index.html.twig"));

        $this->parent->display($context, array_merge($this->blocks, $blocks));
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 2
    public function block_content($context, array $blocks = [])
    {
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));

        // line 3
        echo "    <link href=\"//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css\" rel=\"stylesheet\" id=\"bootstrap-css\">
    <script src=\"//cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js\"></script>

    <div class=\"container\">
        <div id=\"users\">
            <table class=\"table table-bordered table-hover\">
                <thead>
                <tr>
                    <th>";
        // line 11
        echo $this->env->getExtension('Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension')->sortable($this->env, (isset($context["supervisorNotifications"]) ? $context["supervisorNotifications"] : $this->getContext($context, "supervisorNotifications")), "ID", "Idsupervisornotification");
        echo "</th>
                    <th>";
        // line 12
        echo $this->env->getExtension('Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension')->sortable($this->env, (isset($context["supervisorNotifications"]) ? $context["supervisorNotifications"] : $this->getContext($context, "supervisorNotifications")), "Nombre", "nombre");
        echo "</th>
                    <th>";
        // line 13
        echo $this->env->getExtension('Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension')->sortable($this->env, (isset($context["supervisorNotifications"]) ? $context["supervisorNotifications"] : $this->getContext($context, "supervisorNotifications")), "Estado", "Estado");
        echo "</th>
                    <th>";
        // line 14
        echo $this->env->getExtension('Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension')->sortable($this->env, (isset($context["supervisorNotifications"]) ? $context["supervisorNotifications"] : $this->getContext($context, "supervisorNotifications")), "Inout", "inout");
        echo "</th>
                    <th>";
        // line 15
        echo $this->env->getExtension('Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension')->sortable($this->env, (isset($context["supervisorNotifications"]) ? $context["supervisorNotifications"] : $this->getContext($context, "supervisorNotifications")), "Nota", "nota");
        echo "</th>
                    <th>";
        // line 16
        echo $this->env->getExtension('Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension')->sortable($this->env, (isset($context["supervisorNotifications"]) ? $context["supervisorNotifications"] : $this->getContext($context, "supervisorNotifications")), "Tipo permiso", "TipoDepermiso");
        echo "</th>
                    <th>Acciones <input class=\"search\" id=\"searchText\" value=\"\" placeholder=\"Search\" onkeyup=\"url()\"/>
                        <button id=\"searchT\">reinicializar</button>
                    </th>
                </tr>
                </thead>
                <tbody id=\"tbody\">

                ";
        // line 24
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["supervisorNotifications"]) ? $context["supervisorNotifications"] : $this->getContext($context, "supervisorNotifications")));
        foreach ($context['_seq'] as $context["_key"] => $context["supervisorNotification"]) {
            // line 25
            echo "                <tr>
                <td class=\"solicitud\">";
            // line 26
            echo twig_escape_filter($this->env, $this->getAttribute($context["supervisorNotification"], "idSupervisorNotification", []), "html", null, true);
            echo "</td>
                <td>";
            // line 27
            echo twig_escape_filter($this->env, $this->getAttribute($context["supervisorNotification"], "empfullname", []), "html", null, true);
            echo "</td>
                <td>";
            // line 28
            echo (($this->getAttribute($context["supervisorNotification"], "state", [])) ? ("Revisado") : ("No Revisado"));
            echo "</td>
                <td>";
            // line 29
            echo twig_escape_filter($this->env, $this->getAttribute($context["supervisorNotification"], "inout", []), "html", null, true);
            echo "</td>
                <td>";
            // line 30
            echo twig_escape_filter($this->env, $this->getAttribute($context["supervisorNotification"], "nota", []), "html", null, true);
            echo "</td>
                <td>";
            // line 31
            echo twig_escape_filter($this->env, $this->getAttribute($context["supervisorNotification"], "permiso", []), "html", null, true);
            echo "</td>
                <td>
                <a href=\"";
            // line 33
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("timeclock_supervisornotificationn_edit", ["idSupervisorNotification" => $this->getAttribute($context["supervisorNotification"], "idSupervisorNotification", [])]), "html", null, true);
            echo "\"
                class=\"btn btn-warning\">edit</a>
                </td>
                </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['supervisorNotification'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 38
        echo "                </tbody>
            </table>
        </div>
        <div class=\"navigation\">
            ";
        // line 42
        echo $this->env->getExtension('Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension')->render($this->env, (isset($context["supervisorNotifications"]) ? $context["supervisorNotifications"] : $this->getContext($context, "supervisorNotifications")));
        echo "
        </div>
    </div>


    <script type=\"text/javascript\">

        function url() {
            let search = \$(\".search\").val();

            \$('.pagination li a').each(function () {
                var _href = \$(this).attr(\"href\");
                if (_href.indexOf(\"&ref=\") > -1) {
                    var temp = _href.split('&ref=');
                    var newUrl = temp[0] + \"&ref=\" + search.replace(/[^-A-Za-z0-9]+/g, '').toLowerCase();
                } else {
                    var newUrl = _href + \"&ref=\" + search.replace(/[^-A-Za-z0-9]+/g, '').toLowerCase();
                }

                \$(this).attr(\"href\", newUrl);
            });
        }


    </script>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 68
    public function block_javascripts($context, array $blocks = [])
    {
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));

        // line 69
        echo "    ";
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "

    <script type=\"text/javascript\">
        \$(function () {
            \$('.search').val('";
        // line 73
        echo twig_escape_filter($this->env, (isset($context["ref"]) ? $context["ref"] : $this->getContext($context, "ref")), "html", null, true);
        echo "')
        });

        \$(document).ready(function () {
            \$(\"#searchT\").click(function () {

                var originalURL = window.location.href;
                var alteredURL = removeParam(\"ref\", originalURL);

                function removeParam(key, sourceURL) {
                    var rtn = sourceURL.split(\"?\")[0],
                        param,
                        params_arr = [],
                        queryString = (sourceURL.indexOf(\"?\") !== -1) ? sourceURL.split(\"?\")[1] : \"\";
                    if (queryString !== \"\") {
                        params_arr = queryString.split(\"&\");
                        for (var i = params_arr.length - 1; i >= 0; i -= 1) {
                            param = params_arr[i].split(\"=\")[0];
                            if (param === key) {
                                params_arr.splice(i, 1);
                            }
                        }
                        rtn = rtn + \"?\" + params_arr.join(\"&\");
                    }
                    return rtn;
                }

                window.open(alteredURL, '_self');
            })


        });


    </script>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    public function getTemplateName()
    {
        return "@App/TimeClock/supervisornotificacion/index.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  189 => 73,  181 => 69,  175 => 68,  142 => 42,  136 => 38,  125 => 33,  120 => 31,  116 => 30,  112 => 29,  108 => 28,  104 => 27,  100 => 26,  97 => 25,  93 => 24,  82 => 16,  78 => 15,  74 => 14,  70 => 13,  66 => 12,  62 => 11,  52 => 3,  46 => 2,  22 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("{% extends \"@App/Layouts/layout.html.twig\" %}
{% block content %}
    <link href=\"//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css\" rel=\"stylesheet\" id=\"bootstrap-css\">
    <script src=\"//cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js\"></script>

    <div class=\"container\">
        <div id=\"users\">
            <table class=\"table table-bordered table-hover\">
                <thead>
                <tr>
                    <th>{{ knp_pagination_sortable(supervisorNotifications, 'ID', 'Idsupervisornotification') }}</th>
                    <th>{{ knp_pagination_sortable(supervisorNotifications, 'Nombre','nombre') }}</th>
                    <th>{{ knp_pagination_sortable(supervisorNotifications, 'Estado', 'Estado') }}</th>
                    <th>{{ knp_pagination_sortable(supervisorNotifications, 'Inout', 'inout') }}</th>
                    <th>{{ knp_pagination_sortable(supervisorNotifications, 'Nota', 'nota') }}</th>
                    <th>{{ knp_pagination_sortable(supervisorNotifications, 'Tipo permiso', 'TipoDepermiso') }}</th>
                    <th>Acciones <input class=\"search\" id=\"searchText\" value=\"\" placeholder=\"Search\" onkeyup=\"url()\"/>
                        <button id=\"searchT\">reinicializar</button>
                    </th>
                </tr>
                </thead>
                <tbody id=\"tbody\">

                {% for supervisorNotification in supervisorNotifications %}
                <tr>
                <td class=\"solicitud\">{{ supervisorNotification.idSupervisorNotification }}</td>
                <td>{{ supervisorNotification.empfullname }}</td>
                <td>{{ supervisorNotification.state ? 'Revisado':'No Revisado' }}</td>
                <td>{{ supervisorNotification.inout }}</td>
                <td>{{ supervisorNotification.nota }}</td>
                <td>{{ supervisorNotification.permiso }}</td>
                <td>
                <a href=\"{{ path('timeclock_supervisornotificationn_edit', { 'idSupervisorNotification': supervisorNotification.idSupervisorNotification }) }}\"
                class=\"btn btn-warning\">edit</a>
                </td>
                </tr>
                {% endfor %}
                </tbody>
            </table>
        </div>
        <div class=\"navigation\">
            {{ knp_pagination_render(supervisorNotifications) }}
        </div>
    </div>


    <script type=\"text/javascript\">

        function url() {
            let search = \$(\".search\").val();

            \$('.pagination li a').each(function () {
                var _href = \$(this).attr(\"href\");
                if (_href.indexOf(\"&ref=\") > -1) {
                    var temp = _href.split('&ref=');
                    var newUrl = temp[0] + \"&ref=\" + search.replace(/[^-A-Za-z0-9]+/g, '').toLowerCase();
                } else {
                    var newUrl = _href + \"&ref=\" + search.replace(/[^-A-Za-z0-9]+/g, '').toLowerCase();
                }

                \$(this).attr(\"href\", newUrl);
            });
        }


    </script>
{% endblock %}
{% block javascripts %}
    {{ parent() }}

    <script type=\"text/javascript\">
        \$(function () {
            \$('.search').val('{{ ref }}')
        });

        \$(document).ready(function () {
            \$(\"#searchT\").click(function () {

                var originalURL = window.location.href;
                var alteredURL = removeParam(\"ref\", originalURL);

                function removeParam(key, sourceURL) {
                    var rtn = sourceURL.split(\"?\")[0],
                        param,
                        params_arr = [],
                        queryString = (sourceURL.indexOf(\"?\") !== -1) ? sourceURL.split(\"?\")[1] : \"\";
                    if (queryString !== \"\") {
                        params_arr = queryString.split(\"&\");
                        for (var i = params_arr.length - 1; i >= 0; i -= 1) {
                            param = params_arr[i].split(\"=\")[0];
                            if (param === key) {
                                params_arr.splice(i, 1);
                            }
                        }
                        rtn = rtn + \"?\" + params_arr.join(\"&\");
                    }
                    return rtn;
                }

                window.open(alteredURL, '_self');
            })


        });


    </script>
{% endblock %}", "@App/TimeClock/supervisornotificacion/index.html.twig", "/home/ponchamdc/public_html/cmda/src/AppBundle/Resources/views/TimeClock/supervisornotificacion/index.html.twig");
    }
}
