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

/* AppBundle:User:list_users.html.twig */
class __TwigTemplate_e336b53241333e8d6d0143e297eee04abba05d6b8da4f62e09ee7a86d847def1 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        // line 8
        $this->parent = $this->loadTemplate("@App/Layouts/layout.html.twig", "AppBundle:User:list_users.html.twig", 8);
        $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", "AppBundle:User:list_users.html.twig"));

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

    }

    // line 9
    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 10
        echo "<div class=\"container-fluid\">
    <div class=\"row\">
        <div class=\"col-lg-12\">
            <h2 id=\"prueba\">Usuarios</h2>
            <div class=\"count\">
                <span class=\"label label-primary\">
                    Total de Personas ";
        // line 16
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["users"]) ? $context["users"] : $this->getContext($context, "users")), "getTotalItemCount", []), "html", null, true);
        echo "
                </span>
            </div>
            <hr/>
            <table class=\"table table-striped\">
                <thead>
                    <th>ID</th>
                    <th>Usuario</th>
                    <th>Nombre</th>
                    <th>Rol</th>
                    <th>Estado</th>
                    <th class=\"columnaimagen\">Imagen</th>
                    <th>Acciones</th>
                </thead>
                <tbody class=\"tablewithimages\">
                ";
        // line 31
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["users"]) ? $context["users"] : $this->getContext($context, "users")));
        foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
            // line 32
            echo "                    <tr id=\"trtablewithimages_";
            echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "idUser", []), "html", null, true);
            echo "\">
                        <td>";
            // line 33
            echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "idUser", []), "html", null, true);
            echo "</td>
                        <td>";
            // line 34
            echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "username", []), "html", null, true);
            echo "</td>
                        <td>";
            // line 35
            echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "name", []), "html", null, true);
            echo " ";
            echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "surname", []), "html", null, true);
            echo "</td>
                        <td>";
            // line 36
            echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "idRole", []), "html", null, true);
            echo "</td>
                        <td>";
            // line 37
            echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "active", []), "html", null, true);
            echo "</td>
                        <td class=\"columnaimagen\">";
            // line 38
            if (((($this->getAttribute($context["item"], "image", []) == "") || ($this->getAttribute($context["item"], "image", []) == null)) || ($this->getAttribute($context["item"], "image", []) == " "))) {
                // line 39
                echo "                                <img src=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("assets/images/default.png"), "html", null, true);
                echo "\" class=\"\" alt=\"Imagen por defecto\"/>
                            ";
            } else {
                // line 41
                echo "                                <img src=\"";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl(("uploads/users/" . $this->getAttribute($context["item"], "image", []))), "html", null, true);
                echo "\" id=\"imagendelatabla";
                echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "idUser", []), "html", null, true);
                echo "\" class=\"imagendesdelatabla\" alt=\"Imagen de perfil de ";
                echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "name", []), "html", null, true);
                echo " ";
                echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "surname", []), "html", null, true);
                echo "\"/>
                            ";
            }
            // line 42
            echo "</td>
                        <td><a href=\"";
            // line 43
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("useredit", ["id" => $this->getAttribute($context["item"], "idUser", [])]), "html", null, true);
            echo "\" class=\"btn btn-default\"><span class=\"glyphicon glyphicon-edit espacioMenu\" aria-hidden=\"true\"></span>Editar Usuario</a></td>
                    </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 46
        echo "                </tbody>
            </table>
            <div class=\"navigation\">
                ";
        // line 49
        echo $this->env->getExtension('Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension')->render($this->env, (isset($context["users"]) ? $context["users"] : $this->getContext($context, "users")));
        echo "
            </div>
        </div>
    </div>
</div>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 55
    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 56
        echo "    ";
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
    <script>
        \$(document).ready(function(){
            \$(\".imagendesdelatabla\").hover(function(){
                \$(\"#\"+this.id).animate({height:\"50px\",width:\"50px\"},400);
            }, function(){
                \$(\"#\"+this.id).animate({height:\"30px\",width:\"30px\"},400);
            });
        });
    </script>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    public function getTemplateName()
    {
        return "AppBundle:User:list_users.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  165 => 56,  159 => 55,  146 => 49,  141 => 46,  132 => 43,  129 => 42,  117 => 41,  111 => 39,  109 => 38,  105 => 37,  101 => 36,  95 => 35,  91 => 34,  87 => 33,  82 => 32,  78 => 31,  60 => 16,  52 => 10,  46 => 9,  22 => 8,);
    }

    /** @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("{#
# Created by PhpStorm.
# User: @jdperea59
# PC: gerencia-ti
# Date: 16/04/18
# Time: 11:23 AM
#}
{% extends \"@App/Layouts/layout.html.twig\" %}
{% block content %}
<div class=\"container-fluid\">
    <div class=\"row\">
        <div class=\"col-lg-12\">
            <h2 id=\"prueba\">Usuarios</h2>
            <div class=\"count\">
                <span class=\"label label-primary\">
                    Total de Personas {{ users.getTotalItemCount }}
                </span>
            </div>
            <hr/>
            <table class=\"table table-striped\">
                <thead>
                    <th>ID</th>
                    <th>Usuario</th>
                    <th>Nombre</th>
                    <th>Rol</th>
                    <th>Estado</th>
                    <th class=\"columnaimagen\">Imagen</th>
                    <th>Acciones</th>
                </thead>
                <tbody class=\"tablewithimages\">
                {% for item in users %}
                    <tr id=\"trtablewithimages_{{ item.idUser }}\">
                        <td>{{ item.idUser }}</td>
                        <td>{{ item.username }}</td>
                        <td>{{ item.name }} {{ item.surname }}</td>
                        <td>{{ item.idRole }}</td>
                        <td>{{ item.active }}</td>
                        <td class=\"columnaimagen\">{% if item.image == '' or item.image == null or item.image == ' '%}
                                <img src=\"{{ asset('assets/images/default.png') }}\" class=\"\" alt=\"Imagen por defecto\"/>
                            {% else %}
                                <img src=\"{{ asset('uploads/users/'~item.image) }}\" id=\"imagendelatabla{{ item.idUser }}\" class=\"imagendesdelatabla\" alt=\"Imagen de perfil de {{ item.name }} {{ item.surname }}\"/>
                            {% endif %}</td>
                        <td><a href=\"{{ path('useredit',{'id':item.idUser}) }}\" class=\"btn btn-default\"><span class=\"glyphicon glyphicon-edit espacioMenu\" aria-hidden=\"true\"></span>Editar Usuario</a></td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
            <div class=\"navigation\">
                {{ knp_pagination_render(users) }}
            </div>
        </div>
    </div>
</div>
{% endblock %}
{% block javascripts %}
    {{ parent() }}
    <script>
        \$(document).ready(function(){
            \$(\".imagendesdelatabla\").hover(function(){
                \$(\"#\"+this.id).animate({height:\"50px\",width:\"50px\"},400);
            }, function(){
                \$(\"#\"+this.id).animate({height:\"30px\",width:\"30px\"},400);
            });
        });
    </script>
{% endblock %} {# SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST; #}", "AppBundle:User:list_users.html.twig", "/home/ponchamdc/public_html/cmda/src/AppBundle/Resources/views/User/list_users.html.twig");
    }
}
