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

        $this->parent = $this->loadTemplate("base.html.twig", "rodic/show.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 "    Profil 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 "
    <div class=\"container-mt-3\" style=\"min-width: 400px\">

        <h3 class=\"h3 card-title mb-3 font-weight-normal\">Profil Rodiče</h3>
        <h4 class=\"h4 card-title mb-3 font-weight-normal\">";
        // line 12
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 12, $this->source); })()), "titul", [], "any", false, false, false, 12), "html", null, true);
        echo " ";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 12, $this->source); })()), "jmeno", [], "any", false, false, false, 12), "html", null, true);
        echo " ";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 12, $this->source); })()), "prijmeni", [], "any", false, false, false, 12), "html", null, true);
        echo "</h4>

        <hr>

        <div class=\"d-flex justify-content-center\">

            ";
        // line 18
        if (0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 18, $this->source); })()), "image", [], "any", false, false, false, 18), null)) {
            // line 19
            echo "
                <img src=\"";
            // line 20
            echo twig_escape_filter($this->env, ("/uploads/" . twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 20, $this->source); })()), "image", [], "any", false, false, false, 20)), "html", null, true);
            echo "\" alt=\"Profilový obrázek\"
                     style=\"max-width: 200px; max-height: 300px; margin-right: 20px\">

            ";
        }
        // line 24
        echo "


            <div id=\"InfoBox\" class=\"shadow-sm card\">

                <ul class=\"list-group list-group-flush\">
                    <li class=\"list-group-item\">Telefon: ";
        // line 30
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 30, $this->source); })()), "telefon", [], "any", false, false, false, 30), "html", null, true);
        echo "</li>
                    <li class=\"list-group-item\">Email: ";
        // line 31
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 31, $this->source); })()), "email", [], "any", false, false, false, 31), "html", null, true);
        echo "</li>
                    <li class=\"list-group-item\">
                        <ul class=\"list-group list-group-flush\">
                            <li class=\"list-group\"> Stát: ";
        // line 34
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 34, $this->source); })()), "stat", [], "any", false, false, false, 34), "html", null, true);
        echo "</li>
                            <li class=\"list-group\">Obec: ";
        // line 35
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 35, $this->source); })()), "obec", [], "any", false, false, false, 35), "html", null, true);
        echo "</li>
                            <li class=\"list-group\"> Městská část: ";
        // line 36
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 36, $this->source); })()), "mCast", [], "any", false, false, false, 36), "html", null, true);
        echo "</li>
                        </ul>
                    </li>
                    <li class=\"list-group-item\">
                        <ul class=\"list-group list-group-flush\">
                            <li class=\"list-group\"> Ulice: ";
        // line 41
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 41, $this->source); })()), "ulice", [], "any", false, false, false, 41), "html", null, true);
        echo "</li>
                            <li class=\"list-group\"> Čís. popisné: ";
        // line 42
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 42, $this->source); })()), "cisPop", [], "any", false, false, false, 42), "html", null, true);
        echo "</li>
                            <li class=\"list-group\"> PSČ: ";
        // line 43
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 43, $this->source); })()), "psc", [], "any", false, false, false, 43), "html", null, true);
        echo "</li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>

        <hr>

        <div class=\"d-flex justify-content-center shadow-sm\">
            <div id=\"Textbox\" style=\"max-width: 400px;\">

                 <span class = \"h-70 card-title mb-5 font-weight-normal\"> Děti: </span>

                <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=\"ID\">Jméno</th>
                            <th data-field=\"ID\">Příjmení</th>
                            <th data-field=\"ID\">Třída</th>
                        </tr>
                        </thead>
                        <tbody>

                        ";
        // line 72
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 72, $this->source); })()), "zak", [], "any", false, false, false, 72));
        foreach ($context['_seq'] as $context["_key"] => $context["zak"]) {
            // line 73
            echo "
                            <tr style=\"transform: rotate(0);\">
                                <td scope=\"colgroup\">
                                    <a href=\"";
            // line 76
            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["zak"], "id", [], "any", false, false, false, 76)]), "html", null, true);
            echo "\" class=\"stretched-link\">";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["zak"], "id", [], "any", false, false, false, 76), "html", null, true);
            echo "</a>
                                </td>
                                <td> ";
            // line 78
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["zak"], "jmeno", [], "any", false, false, false, 78), "html", null, true);
            echo " </td>
                                <td> ";
            // line 79
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["zak"], "prijmeni", [], "any", false, false, false, 79), "html", null, true);
            echo " </td>
                                <td> ";
            // line 80
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["zak"], "trida", [], "any", false, false, false, 80), "html", null, true);
            echo " </td>
                            </tr>

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

        <hr>
        ";
        // line 92
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
            // line 93
            echo "            <div class=\"btn-group\">
                <a href=\"";
            // line 94
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("rodic.edit", ["rodic" => twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 94, $this->source); })()), "id", [], "any", false, false, false, 94)]), "html", null, true);
            echo "\" class=\"btn btn-outline-primary btn-group\">Upravit</a>
                <a href=\"";
            // line 95
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("rodic.add", ["rodic" => twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 95, $this->source); })()), "id", [], "any", false, false, false, 95)]), "html", null, true);
            echo "\" class=\"btn btn-outline-info btn-group\">Přidat Dítě</a>
                <a href=\"";
            // line 96
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("rodic.delete", ["rodic" => twig_get_attribute($this->env, $this->source, (isset($context["rodic"]) || array_key_exists("rodic", $context) ? $context["rodic"] : (function () { throw new RuntimeError('Variable "rodic" does not exist.', 96, $this->source); })()), "id", [], "any", false, false, false, 96)]), "html", null, true);
            echo "\" class=\"btn btn-outline-danger btn-group\">Smazat</a>
            </div>
        ";
        }
        // line 99
        echo "
        ";
        // line 100
        if (0 !== twig_compare((isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 100, $this->source); })()), null)) {
            // line 101
            echo "            <a href=\"";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("zprava.create", ["prijemce" => twig_get_attribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 101, $this->source); })()), "id", [], "any", false, false, false, 101)]), "html", null, true);
            echo "\" class=\"btn btn-outline-primary float-left\">Poslat zprávu</a>
        ";
        }
        // line 103
        echo "
    </div>

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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  269 => 103,  263 => 101,  261 => 100,  258 => 99,  252 => 96,  248 => 95,  244 => 94,  241 => 93,  239 => 92,  229 => 84,  219 => 80,  215 => 79,  211 => 78,  204 => 76,  199 => 73,  195 => 72,  163 => 43,  159 => 42,  155 => 41,  147 => 36,  143 => 35,  139 => 34,  133 => 31,  129 => 30,  121 => 24,  114 => 20,  111 => 19,  109 => 18,  96 => 12,  90 => 8,  80 => 7,  69 => 4,  59 => 3,  36 => 1,);
    }

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

{% block title %}
    Profil Rodiče
{% endblock %}

{% block body %}

    <div class=\"container-mt-3\" style=\"min-width: 400px\">

        <h3 class=\"h3 card-title mb-3 font-weight-normal\">Profil Rodiče</h3>
        <h4 class=\"h4 card-title mb-3 font-weight-normal\">{{ rodic.titul }} {{ rodic.jmeno }} {{ rodic.prijmeni }}</h4>

        <hr>

        <div class=\"d-flex justify-content-center\">

            {% if rodic.image != NULL %}

                <img src=\"{{ '/uploads/' ~ rodic.image }}\" alt=\"Profilový obrázek\"
                     style=\"max-width: 200px; max-height: 300px; margin-right: 20px\">

            {% endif %}



            <div id=\"InfoBox\" class=\"shadow-sm card\">

                <ul class=\"list-group list-group-flush\">
                    <li class=\"list-group-item\">Telefon: {{ rodic.telefon }}</li>
                    <li class=\"list-group-item\">Email: {{ rodic.email }}</li>
                    <li class=\"list-group-item\">
                        <ul class=\"list-group list-group-flush\">
                            <li class=\"list-group\"> Stát: {{ rodic.stat }}</li>
                            <li class=\"list-group\">Obec: {{ rodic.obec }}</li>
                            <li class=\"list-group\"> Městská část: {{ rodic.mCast }}</li>
                        </ul>
                    </li>
                    <li class=\"list-group-item\">
                        <ul class=\"list-group list-group-flush\">
                            <li class=\"list-group\"> Ulice: {{ rodic.ulice }}</li>
                            <li class=\"list-group\"> Čís. popisné: {{ rodic.cisPop }}</li>
                            <li class=\"list-group\"> PSČ: {{ rodic.psc }}</li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>

        <hr>

        <div class=\"d-flex justify-content-center shadow-sm\">
            <div id=\"Textbox\" style=\"max-width: 400px;\">

                 <span class = \"h-70 card-title mb-5 font-weight-normal\"> Děti: </span>

                <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=\"ID\">Jméno</th>
                            <th data-field=\"ID\">Příjmení</th>
                            <th data-field=\"ID\">Třída</th>
                        </tr>
                        </thead>
                        <tbody>

                        {% for zak in rodic.zak %}

                            <tr style=\"transform: rotate(0);\">
                                <td scope=\"colgroup\">
                                    <a href=\"{{ path('zak.show', {id: zak.id}) }}\" class=\"stretched-link\">{{ zak.id }}</a>
                                </td>
                                <td> {{ zak.jmeno}} </td>
                                <td> {{ zak.prijmeni}} </td>
                                <td> {{ zak.trida}} </td>
                            </tr>

                        {% endfor %}

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

        <hr>
        {% if is_granted('ROLE_ADMIN') %}
            <div class=\"btn-group\">
                <a href=\"{{ path('rodic.edit', {rodic: rodic.id}) }}\" class=\"btn btn-outline-primary btn-group\">Upravit</a>
                <a href=\"{{ path('rodic.add', {rodic: rodic.id}) }}\" class=\"btn btn-outline-info btn-group\">Přidat Dítě</a>
                <a href=\"{{ path('rodic.delete', {rodic: rodic.id}) }}\" class=\"btn btn-outline-danger btn-group\">Smazat</a>
            </div>
        {% endif %}

        {% if user != null %}
            <a href=\"{{ path('zprava.create', {prijemce: user.id}) }}\" class=\"btn btn-outline-primary float-left\">Poslat zprávu</a>
        {% endif %}

    </div>

{% endblock %}

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