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

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

        $this->parent = $this->loadTemplate("base.html.twig", "rodic/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 "    Rodiče
";
        
        $__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 rodičů</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("rodic.create");
            echo "\" class=\"btn btn-outline-primary float-left\">Vytvořit nového rodiče</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=\"Titul\">Titul</th>
                <th data-field=\"Jmeno\">Jméno</th>
                <th data-field=\"Prijmeni\">Příjmení</th>
                <th data-field=\"DatNar\" style=\"width:150px\">Datum Narození</th>
                <th data-field=\"Stat\">Stát</th>
                <th data-field=\"Obec\">Obec</th>
                <th data-field=\"MCast\">Městská část</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["rodice"]) || array_key_exists("rodice", $context) ? $context["rodice"] : (function () { throw new RuntimeError('Variable "rodice" does not exist.', 39, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["rodic"]) {
            // line 40
            echo "
                <tr style=\"transform: rotate(0);\">
                    <td scope=\"colgroup\">
                        <a href=\"";
            // line 43
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("rodic.show", ["rodic" => twig_get_attribute($this->env, $this->source, $context["rodic"], "id", [], "any", false, false, false, 43)]), "html", null, true);
            echo "\" class=\"stretched-link\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rodic"], "id", [], "any", false, false, false, 43), "html", null, true);
            echo "</a>
                    </td>
                    <td>
                        ";
            // line 46
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rodic"], "titul", [], "any", false, false, false, 46), "html", null, true);
            echo "
                    </td>
                    <td>
                        ";
            // line 49
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rodic"], "jmeno", [], "any", false, false, false, 49), "html", null, true);
            echo "
                    </td>
                    <td>
                        ";
            // line 52
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rodic"], "prijmeni", [], "any", false, false, false, 52), "html", null, true);
            echo "
                    </td>
                    <td>
                        ";
            // line 55
            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rodic"], "datNar", [], "any", false, false, false, 55), "d-m-Y"), "html", null, true);
            echo "
                    </td>
                    <td>
                        ";
            // line 58
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rodic"], "stat", [], "any", false, false, false, 58), "html", null, true);
            echo "
                    </td>
                    <td>
                        ";
            // line 61
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rodic"], "obec", [], "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["rodic"], "mCast", [], "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, $context["rodic"], "ulice", [], "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["rodic"], "cisPop", [], "any", false, false, false, 70), "html", null, true);
            echo "
                    </td>
                    <td>
                        ";
            // line 73
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["rodic"], "psc", [], "any", false, false, false, 73), "html", null, true);
            echo "
                    </td>
                </tr>

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

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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  212 => 78,  201 => 73,  195 => 70,  189 => 67,  183 => 64,  177 => 61,  171 => 58,  165 => 55,  159 => 52,  153 => 49,  147 => 46,  139 => 43,  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 %}
    Rodiče
{% endblock %}

{% block body %}

    <h2>Seznam všech rodičů</h2>

    <hr>
    {% if is_granted('ROLE_ADMIN') %}
        <a href=\"{{path('rodic.create')}}\" class=\"btn btn-outline-primary float-left\">Vytvořit nového rodiče</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=\"Titul\">Titul</th>
                <th data-field=\"Jmeno\">Jméno</th>
                <th data-field=\"Prijmeni\">Příjmení</th>
                <th data-field=\"DatNar\" style=\"width:150px\">Datum Narození</th>
                <th data-field=\"Stat\">Stát</th>
                <th data-field=\"Obec\">Obec</th>
                <th data-field=\"MCast\">Městská část</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 rodic in rodice %}

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

            {% endfor %}

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

{% endblock %}

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