<?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.tridy.html.twig */
class __TwigTemplate_45bf917da4d6de2c6c8c23d742c48642e85b754146d195a049e17e95444c4551 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.tridy.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.tridy.html.twig"));

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

    <div class=\"shadow-lg\" style=\"min-width: 1000px\">
        <div class=\"card\">
            <div class=\"card-header\">
                <ul class=\"nav nav-tabs card-header-tabs\">
                    <li class=\"nav-item\">
                        <a class=\"nav-link\" href=\"";
        // line 16
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("zak.index");
        echo "\">Seznam všech žáků</a>
                    </li>
                    <li class=\"nav-item\">
                        <a class=\"nav-link active\" href=\"#\">Filtrování podle tříd</a>
                    </li>
                </ul>
            </div>

            <div class=\"tab-content\">
                <div id=\"tridy\" class=\"card-body tab-pane active\">

                    <br>

                    <div class=\"card shadow\" style=\"margin-bottom: 10px\">
                        <div class=\"float-center flex-wrap btn-group\">
                            ";
        // line 31
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["trida"]) || array_key_exists("trida", $context) ? $context["trida"] : (function () { throw new RuntimeError('Variable "trida" does not exist.', 31, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["t"]) {
            // line 32
            echo "
                                <a href=\"";
            // line 33
            echo twig_escape_filter($this->env, ("#" . twig_get_attribute($this->env, $this->source, $context["t"], "id", [], "any", false, false, false, 33)), "html", null, true);
            echo "\" class=\"btn btn-outline-primary\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["t"], "nazev", [], "any", false, false, false, 33), "html", null, true);
            echo "</a>

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

                    <br>

                    <main id=\"accordion\">

                        ";
        // line 43
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["trida"]) || array_key_exists("trida", $context) ? $context["trida"] : (function () { throw new RuntimeError('Variable "trida" does not exist.', 43, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["t"]) {
            // line 44
            echo "
                            <section id=\"";
            // line 45
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["t"], "id", [], "any", false, false, false, 45), "html", null, true);
            echo "\" class=\"card shadow\">
                                <a href=\"";
            // line 46
            echo twig_escape_filter($this->env, ("#" . twig_get_attribute($this->env, $this->source, $context["t"], "id", [], "any", false, false, false, 46)), "html", null, true);
            echo "\" class=\"card-header\"><h5
                                            class=\"card-title h6\">";
            // line 47
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["t"], "nazev", [], "any", false, false, false, 47), "html", null, true);
            echo "</h5></a>
                                <div class=\"card-body\">
                                    <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 69
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["t"], "zak", [], "any", false, false, false, 69));
            foreach ($context['_seq'] as $context["_key"] => $context["z"]) {
                // line 70
                echo "
                                                <tr style=\"transform: rotate(0);\">
                                                    <td scope=\"colgroup\"><a
                                                                href=\"";
                // line 73
                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, 73)]), "html", null, true);
                echo "\"
                                                                class=\"stretched-link\">";
                // line 74
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "id", [], "any", false, false, false, 74), "html", null, true);
                echo "</a></td>
                                                    <td>
                                                        ";
                // line 76
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "jmeno", [], "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"], "prijmeni", [], "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, twig_get_attribute($this->env, $this->source, $context["z"], "trida", [], "any", false, false, false, 82), "ucebna", [], "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"], "trida", [], "any", false, false, false, 85), "html", null, true);
                echo "
                                                    </td>
                                                    <td>
                                                        ";
                // line 88
                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, 88), "Y-m-d"), "html", null, true);
                echo "
                                                    </td>
                                                    <td>
                                                        ";
                // line 91
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "stat", [], "any", false, false, false, 91), "html", null, true);
                echo "
                                                    </td>
                                                    <td>
                                                        ";
                // line 94
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "okres", [], "any", false, false, false, 94), "html", null, true);
                echo "
                                                    </td>
                                                    <td>
                                                        ";
                // line 97
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "ulice", [], "any", false, false, false, 97), "html", null, true);
                echo "
                                                    </td>
                                                    <td>
                                                        ";
                // line 100
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "cisPop", [], "any", false, false, false, 100), "html", null, true);
                echo "
                                                    </td>
                                                    <td>
                                                        ";
                // line 103
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["z"], "psc", [], "any", false, false, false, 103), "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 108
            echo "
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </section>

                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['t'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 116
        echo "
                    </main>

                </div>
            </div>
        </div>
    </div>



    <style>
        #accordion section div {
            display: none;
            text-align: center;
        }

        #accordion section a {
            text-align: center;
            color: black;
            text-decoration: none;
        }

        #accordion section a:hover {
            text-decoration: none;
        }

        #accordion section:target div {
            display: block;
        }
    </style>

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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  281 => 116,  268 => 108,  257 => 103,  251 => 100,  245 => 97,  239 => 94,  233 => 91,  227 => 88,  221 => 85,  215 => 82,  209 => 79,  203 => 76,  198 => 74,  194 => 73,  189 => 70,  185 => 69,  160 => 47,  156 => 46,  152 => 45,  149 => 44,  145 => 43,  136 => 36,  125 => 33,  122 => 32,  118 => 31,  100 => 16,  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>

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

            <div class=\"tab-content\">
                <div id=\"tridy\" class=\"card-body tab-pane active\">

                    <br>

                    <div class=\"card shadow\" style=\"margin-bottom: 10px\">
                        <div class=\"float-center flex-wrap btn-group\">
                            {% for t in trida %}

                                <a href=\"{{ '#' ~ t.id }}\" class=\"btn btn-outline-primary\">{{ t.nazev }}</a>

                            {% endfor %}
                        </div>
                    </div>

                    <br>

                    <main id=\"accordion\">

                        {% for t in trida %}

                            <section id=\"{{ t.id }}\" class=\"card shadow\">
                                <a href=\"{{ '#' ~ t.id }}\" class=\"card-header\"><h5
                                            class=\"card-title h6\">{{ t.nazev }}</h5></a>
                                <div class=\"card-body\">
                                    <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 z in t.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>
                            </section>

                        {% endfor %}

                    </main>

                </div>
            </div>
        </div>
    </div>



    <style>
        #accordion section div {
            display: none;
            text-align: center;
        }

        #accordion section a {
            text-align: center;
            color: black;
            text-decoration: none;
        }

        #accordion section a:hover {
            text-decoration: none;
        }

        #accordion section:target div {
            display: block;
        }
    </style>

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