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

/* zak/index.html.twig */
class __TwigTemplate_6a796e25ace1dd4ed5e3e271a5382358d54d0263b618652341f128fd8b92afb6 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", "zak/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", "zak/index.html.twig"));

        $this->parent = $this->loadTemplate("base.html.twig", "zak/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"));

        echo "Žáci";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    // line 5
    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 6
        echo "
    <h2>Seznamy žáků a tříd</h2>

    <hr>
    ";
        // line 10
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
            // line 11
            echo "        <div class=\"btn-group\">
            <a href=\"";
            // line 12
            echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("zak.create");
            echo "\" class=\"btn btn-outline-primary float-left\">Vytvořit nového žáka</a>
            <a href=\"";
            // line 13
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("xml.generate", ["rozdat" => twig_date_format_filter($this->env, "1.9.2020", "d-n-Y")]), "html", null, true);
            echo "\" class=\"btn btn-outline-primary float-left\">Generovat XML soubor</a>
            <a href=\"";
            // line 14
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("xml.generateA", ["rozdat" => twig_date_format_filter($this->env, "1.9.2020", "d-n-Y")]), "html", null, true);
            echo "\" class=\"btn btn-outline-primary float-left\">A</a>
            <a href=\"";
            // line 15
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("xml.generateB", ["rozdat" => twig_date_format_filter($this->env, "1.9.2020", "d-n-Y")]), "html", null, true);
            echo "\" class=\"btn btn-outline-primary float-left\">B</a>
        </div>
            <br><br>
    ";
        }
        // line 19
        echo "
    <div class=\"shadow-lg\">
        <div class=\"card\">
            <div class=\"card-header\">
                <ul class=\"nav nav-tabs card-header-tabs\">
                    <li class=\"nav-item\">
                        <a class=\"nav-link active\" href=\"#\">Seznam všech žáků</a>
                    </li>
                    <li class=\"nav-item\">
                        <a class=\"nav-link\" href=\"";
        // line 28
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("zak.tridy");
        echo "\">Filtrování podle tříd</a>
                    </li>
                </ul>
            </div>

            <div class=\"tab-content\">
                <div id=\"tridy\" class=\"card-body tab-pane active\">
                    <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=\"Okres\">Okres</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 55
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["zak"]) || array_key_exists("zak", $context) ? $context["zak"] : (function () { throw new RuntimeError('Variable "zak" does not exist.', 55, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["z"]) {
            // line 56
            echo "
                                <tr style=\"transform: rotate(0);\">
                                    <td scope=\"colgroup\"><a href=\"";
            // line 58
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("zak.show", ["id" => twig_get_attribute($this->env, $this->source, $context["z"], "id", [], "any", false, false, false, 58)]), "html", null, true);
            echo "\"
                                                            class=\"stretched-link\">";
            // line 59
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "id", [], "any", false, false, false, 59), "html", null, true);
            echo "</a></td>
                                    <td>
                                        ";
            // line 61
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "jmeno", [], "any", false, false, false, 61), "html", null, true);
            echo "
                                    </td>
                                    <td>
                                        ";
            // line 64
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "prijmeni", [], "any", false, false, false, 64), "html", null, true);
            echo "
                                    </td>
                                    <td>
                                        ";
            // line 67
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["z"], "trida", [], "any", false, false, false, 67), "ucebna", [], "any", false, false, false, 67), "html", null, true);
            echo "
                                    </td>
                                    <td>
                                        ";
            // line 70
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "trida", [], "any", false, false, false, 70), "html", null, true);
            echo "
                                    </td>
                                    <td>
                                        ";
            // line 73
            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "datNar", [], "any", false, false, false, 73), "Y-m-d"), "html", null, true);
            echo "
                                    </td>
                                    <td>
                                        ";
            // line 76
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "stat", [], "any", false, false, false, 76), "html", null, true);
            echo "
                                    </td>
                                    <td>
                                        ";
            // line 79
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "okres", [], "any", false, false, false, 79), "html", null, true);
            echo "
                                    </td>
                                    <td>
                                        ";
            // line 82
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "ulice", [], "any", false, false, false, 82), "html", null, true);
            echo "
                                    </td>
                                    <td>
                                        ";
            // line 85
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "cisPop", [], "any", false, false, false, 85), "html", null, true);
            echo "
                                    </td>
                                    <td>
                                        ";
            // line 88
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "psc", [], "any", false, false, false, 88), "html", null, true);
            echo "
                                    </td>
                                </tr>

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




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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  241 => 93,  230 => 88,  224 => 85,  218 => 82,  212 => 79,  206 => 76,  200 => 73,  194 => 70,  188 => 67,  182 => 64,  176 => 61,  171 => 59,  167 => 58,  163 => 56,  159 => 55,  129 => 28,  118 => 19,  111 => 15,  107 => 14,  103 => 13,  99 => 12,  96 => 11,  94 => 10,  88 => 6,  78 => 5,  59 => 3,  36 => 1,);
    }

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

{% block title %}Žáci{% endblock %}

{% block body %}

    <h2>Seznamy žáků a tříd</h2>

    <hr>
    {% if is_granted('ROLE_ADMIN') %}
        <div class=\"btn-group\">
            <a href=\"{{path('zak.create')}}\" class=\"btn btn-outline-primary float-left\">Vytvořit nového žáka</a>
            <a href=\"{{path('xml.generate', {rozdat: '1.9.2020'|date('d-n-Y')})}}\" class=\"btn btn-outline-primary float-left\">Generovat XML soubor</a>
            <a href=\"{{path('xml.generateA', {rozdat: '1.9.2020'|date('d-n-Y')})}}\" class=\"btn btn-outline-primary float-left\">A</a>
            <a href=\"{{path('xml.generateB', {rozdat: '1.9.2020'|date('d-n-Y')})}}\" class=\"btn btn-outline-primary float-left\">B</a>
        </div>
            <br><br>
    {% endif %}

    <div class=\"shadow-lg\">
        <div class=\"card\">
            <div class=\"card-header\">
                <ul class=\"nav nav-tabs card-header-tabs\">
                    <li class=\"nav-item\">
                        <a class=\"nav-link active\" href=\"#\">Seznam všech žáků</a>
                    </li>
                    <li class=\"nav-item\">
                        <a class=\"nav-link\" href=\"{{ path('zak.tridy') }}\">Filtrování podle tříd</a>
                    </li>
                </ul>
            </div>

            <div class=\"tab-content\">
                <div id=\"tridy\" class=\"card-body tab-pane active\">
                    <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=\"Okres\">Okres</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 z in zak %}

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

                            {% endfor %}

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




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