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

/* ucitele/index.html.twig */
class __TwigTemplate_2c4fcee3d9a202728e18f8ff7da9ae67159eea703be03bcbec6845ce393b2464 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'title' => [$this, 'block_title'],
            'body' => [$this, 'block_body'],
        ];
    }

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

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ucitele/index.html.twig"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ucitele/index.html.twig"));

        $this->parent = $this->loadTemplate("base.html.twig", "ucitele/index.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 3
    public function block_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));

        // line 4
        echo "    Učitelé
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    // line 7
    public function block_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));

        // line 8
        echo "
    <h2>Seznam všech učitelů</h2>

    <hr>
    ";
        // line 12
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
            // line 13
            echo "    <a href=\"";
            echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ucitele.create");
            echo "\" class=\"btn btn-outline-primary float-left\">Vytvořit nového učitele</a>
    <br>
    ";
        }
        // line 16
        echo "    <br>


    <div class=\"shadow\" style=\"width: max-content;\">
            <table id=\"table\" data-toggle=\"table\" data-height=\"500\"
                   class=\"table table-bordered table-borderless table-hover\">
                <thead class=\"thead-light\">
                <tr>
                    <th data-field=\"ID\">ID</th>
                    <th data-field=\"Jmeno\">Jméno</th>
                    <th data-field=\"Prijmeni\">Příjmení</th>
                    <th data-field=\"Ucebna\">Učebna</th>
                    <th data-field=\"Trida\">Třída</th>
                    <th data-field=\"DatNar\" style=\"width:150px\">Datum Narození</th>
                    <th data-field=\"Stat\">Stát</th>
                    <th data-field=\"Mesto\">Město</th>
                    <th data-field=\"Ulice\">Ulice</th>
                    <th data-field=\"CisPop\" style=\"width: 125px\">Číslo popisné</th>
                    <th data-field=\"PSC\">PSČ</th>
                </tr>
                </thead>
                <tbody>

                ";
        // line 39
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["ucitele"]) || array_key_exists("ucitele", $context) ? $context["ucitele"] : (function () { throw new RuntimeError('Variable "ucitele" does not exist.', 39, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["ucitel"]) {
            // line 40
            echo "
                    <tr style=\"transform: rotate(0);\">
                        <td scope=\"colgroup\"><a href=\"";
            // line 42
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ucitele.show", ["id" => twig_get_attribute($this->env, $this->source, $context["ucitel"], "id", [], "any", false, false, false, 42)]), "html", null, true);
            echo "\"
                                           class=\"stretched-link\">";
            // line 43
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ucitel"], "id", [], "any", false, false, false, 43), "html", null, true);
            echo "</a></td>
                        <td>
                            ";
            // line 45
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ucitel"], "jmeno", [], "any", false, false, false, 45), "html", null, true);
            echo "
                        </td>
                        <td>
                            ";
            // line 48
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ucitel"], "prijmeni", [], "any", false, false, false, 48), "html", null, true);
            echo "
                        </td>
                        <td>
                            ";
            // line 51
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ucitel"], "ucebna", [], "any", false, false, false, 51), "html", null, true);
            echo "
                        </td>
                        <td>
                            ";
            // line 54
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ucitel"], "trida", [], "any", false, false, false, 54), "html", null, true);
            echo "
                        </td>
                        <td>
                            ";
            // line 57
            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ucitel"], "datNar", [], "any", false, false, false, 57), "Y-m-d"), "html", null, true);
            echo "
                        </td>
                        <td>
                            ";
            // line 60
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ucitel"], "stat", [], "any", false, false, false, 60), "html", null, true);
            echo "
                        </td>
                        <td>
                            ";
            // line 63
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ucitel"], "mesto", [], "any", false, false, false, 63), "html", null, true);
            echo "
                        </td>
                        <td>
                            ";
            // line 66
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ucitel"], "ulice", [], "any", false, false, false, 66), "html", null, true);
            echo "
                        </td>
                        <td>
                            ";
            // line 69
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ucitel"], "cisPop", [], "any", false, false, false, 69), "html", null, true);
            echo "
                        </td>
                        <td>
                            ";
            // line 72
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ucitel"], "psc", [], "any", false, false, false, 72), "html", null, true);
            echo "
                        </td>
                    </tr>

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

";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    public function getTemplateName()
    {
        return "ucitele/index.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  212 => 77,  201 => 72,  195 => 69,  189 => 66,  183 => 63,  177 => 60,  171 => 57,  165 => 54,  159 => 51,  153 => 48,  147 => 45,  142 => 43,  138 => 42,  134 => 40,  130 => 39,  105 => 16,  98 => 13,  96 => 12,  90 => 8,  80 => 7,  69 => 4,  59 => 3,  36 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends 'base.html.twig' %}

{% block title %}
    Učitelé
{% endblock %}

{% block body %}

    <h2>Seznam všech učitelů</h2>

    <hr>
    {% if is_granted('ROLE_ADMIN') %}
    <a href=\"{{path('ucitele.create')}}\" class=\"btn btn-outline-primary float-left\">Vytvořit nového učitele</a>
    <br>
    {% endif %}
    <br>


    <div class=\"shadow\" style=\"width: max-content;\">
            <table id=\"table\" data-toggle=\"table\" data-height=\"500\"
                   class=\"table table-bordered table-borderless table-hover\">
                <thead class=\"thead-light\">
                <tr>
                    <th data-field=\"ID\">ID</th>
                    <th data-field=\"Jmeno\">Jméno</th>
                    <th data-field=\"Prijmeni\">Příjmení</th>
                    <th data-field=\"Ucebna\">Učebna</th>
                    <th data-field=\"Trida\">Třída</th>
                    <th data-field=\"DatNar\" style=\"width:150px\">Datum Narození</th>
                    <th data-field=\"Stat\">Stát</th>
                    <th data-field=\"Mesto\">Město</th>
                    <th data-field=\"Ulice\">Ulice</th>
                    <th data-field=\"CisPop\" style=\"width: 125px\">Číslo popisné</th>
                    <th data-field=\"PSC\">PSČ</th>
                </tr>
                </thead>
                <tbody>

                {% for ucitel in ucitele %}

                    <tr style=\"transform: rotate(0);\">
                        <td scope=\"colgroup\"><a href=\"{{ path('ucitele.show', {id: ucitel.id}) }}\"
                                           class=\"stretched-link\">{{ ucitel.id }}</a></td>
                        <td>
                            {{ ucitel.jmeno }}
                        </td>
                        <td>
                            {{ ucitel.prijmeni }}
                        </td>
                        <td>
                            {{ ucitel.ucebna }}
                        </td>
                        <td>
                            {{ ucitel.trida }}
                        </td>
                        <td>
                            {{ ucitel.datNar|date('Y-m-d') }}
                        </td>
                        <td>
                            {{ ucitel.stat }}
                        </td>
                        <td>
                            {{ ucitel.mesto }}
                        </td>
                        <td>
                            {{ ucitel.ulice }}
                        </td>
                        <td>
                            {{ ucitel.cisPop }}
                        </td>
                        <td>
                            {{ ucitel.psc }}
                        </td>
                    </tr>

                {% endfor %}

                </tbody>
            </table>
    </div>

{% endblock %}
", "ucitele/index.html.twig", "C:\\Users\\JanVe\\Desktop\\BakalarskaPrace\\www\\Thesis\\templates\\ucitele\\index.html.twig");
    }
}
