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

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

        $this->parent = $this->loadTemplate("base.html.twig", "home/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 "    Školní systém
";
        
        $__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=\"shadow\">
        <div class=\"jumbotron\">
            <div class=\"container\" align=\"center\">

                ";
        // line 13
        if ( !$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) {
            // line 14
            echo "
                <h1 class=\"display-3\">ZŠ Fiktivní základní škola</h1>
                <p>Toto je informační a administrační webový systém základní školy Fiktivní základní škola.
                    Umožňuje žákům a učitelům naší školy organizaci a známkování. Pokud chcete vstoupit do systému,
                    prosím, přihlašte se.</p>

                    ";
        } elseif ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
            // line 21
            echo "
                        <h1>Používáte systém s maximálním oprávněním</h1>
                        <p>Jako administrátor můžete přidávat a odebírat nové uživatele, žáky a učitele</p>

                        <hr>

                    <div class=\"d-flex justify-content-center\">
                        <div class=\"container\" align=\"right\">
                            <div class=\"analog-clock float-right\" style=\"margin: 20px\">
                            <svg width=\"140\" height=\"140\">
                                <circle id=\"clock-face\" cx=\"70\" cy=\"70\" r=\"65\" />
                                <line id=\"h-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"38\" />
                                <line id=\"m-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"20\" />
                                <line id=\"s-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"12\" />
                                <line id=\"s-tail\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"56\" />
                                <text x=\"62\" y=\"18\">12</text>
                                <text x=\"126\" y=\"76\">3</text>
                                <text x=\"66\" y=\"130\">6</text>
                                <text x=\"7\" y=\"76\">9</text>
                            </svg>
                            <div class=\"time-text\">
                                <span id=\"hr\">00</span>
                                <span>:</span>
                                <span id=\"min\">00</span>
                                <span>:</span>
                                <span id=\"sec\">00</span>
                            </div>
                        </div>
                        <div>


                            <div class=\"container\" align=\"left\">
                                <div class=\"shadow-sm card\" style=\"width: max-content;\">
                                    <ul class=\"list-group list-group shadow-sm\" style=\"min-width: fit-content; max-height: 130px\">
                                        <li class=\"list-group-item\">Počet nových zpráv : ";
            // line 55
            echo twig_escape_filter($this->env, (isset($context["zpravy"]) || array_key_exists("zpravy", $context) ? $context["zpravy"] : (function () { throw new RuntimeError('Variable "zpravy" does not exist.', 55, $this->source); })()), "html", null, true);
            echo "</li>
                                    </ul>
                                </div>

                                <br>

                                <h3>Seznam všech uživatelů</h3>

                                <br>

                                <div class=\"shadow bg-white\" 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=\"Username\">Přihlašovací jméno</th>
                                    <th data-field=\"Role\">Role</th>
                                    <th data-field=\"Učitel\">Učitel</th>
                                    <th data-field=\"Žák\">Žák</th>
                                    <th data-field=\"Žák\">Rodič</th>
                                </tr>
                                </thead>
                                <tbody>

                                ";
            // line 80
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["users"]) || array_key_exists("users", $context) ? $context["users"] : (function () { throw new RuntimeError('Variable "users" does not exist.', 80, $this->source); })()));
            foreach ($context['_seq'] as $context["_key"] => $context["user"]) {
                // line 81
                echo "
                                    <tr style=\"transform: rotate(0);\">
                                        <td scope=\"colgroup\"><a href=\"";
                // line 83
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user.edit", ["id" => twig_get_attribute($this->env, $this->source, $context["user"], "id", [], "any", false, false, false, 83)]), "html", null, true);
                echo "\"
                                                                class=\"stretched-link\">";
                // line 84
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "id", [], "any", false, false, false, 84), "html", null, true);
                echo "</a></td>
                                        <td>
                                            ";
                // line 86
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "username", [], "any", false, false, false, 86), "html", null, true);
                echo "
                                        </td>
                                        <td>
                                            ";
                // line 89
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["user"], "roles", [], "any", false, false, false, 89));
                foreach ($context['_seq'] as $context["_key"] => $context["r"]) {
                    // line 90
                    echo "                                                ";
                    echo twig_escape_filter($this->env, $context["r"], "html", null, true);
                    echo "
                                            ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['r'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 92
                echo "                                        </td>
                                        <td>
                                            ";
                // line 94
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "ucitel", [], "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["user"], "zak", [], "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["user"], "rodic", [], "any", false, false, false, 100), "html", null, true);
                echo "
                                        </td>
                                    </tr>

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

                    ";
        } elseif ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_TEACHER")) {
            // line 114
            echo "
                        <h1>Používáte systém jako Vyučující</h1>
                        <p>Jako vyučující můžete spravovat žáky a přidávat jim známky nebo tvořit rozvrhy</p>

                        <hr>

                        <div class=\"d-flex justify-content-center\">
                                <ul class=\"list-group list-group shadow-sm\" style=\"min-width: fit-content; max-height: 130px\">
                                    <li class=\"list-group-item\">Jste přihlášen jako: ";
            // line 122
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 122, $this->source); })()), "user", [], "any", false, false, false, 122), "ucitel", [], "any", false, false, false, 122), "jmeno", [], "any", false, false, false, 122), "html", null, true);
            echo "
                                        ";
            // line 123
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 123, $this->source); })()), "user", [], "any", false, false, false, 123), "ucitel", [], "any", false, false, false, 123), "prijmeni", [], "any", false, false, false, 123), "html", null, true);
            echo "</li>

                                    ";
            // line 125
            if (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 125, $this->source); })()), "user", [], "any", false, false, false, 125), "ucitel", [], "any", false, false, false, 125), "trida", [], "any", false, false, false, 125), null)) {
                // line 126
                echo "
                                        <li class=\"list-group-item\">Nejste Třídním učitelem</li>

                                    ";
            } else {
                // line 130
                echo "
                                        <li class=\"list-group-item\">Třídním učitelem pro: ";
                // line 131
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 131, $this->source); })()), "user", [], "any", false, false, false, 131), "ucitel", [], "any", false, false, false, 131), "trida", [], "any", false, false, false, 131), "html", null, true);
                echo " </li>

                                    ";
            }
            // line 134
            echo "
                                    <li class=\"list-group-item\">S Kabinetem: ";
            // line 135
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 135, $this->source); })()), "user", [], "any", false, false, false, 135), "ucitel", [], "any", false, false, false, 135), "ucebna", [], "any", false, false, false, 135), "html", null, true);
            echo "</li>

                                    <li class=\"list-group-item\">Počet nových zpráv : ";
            // line 137
            echo twig_escape_filter($this->env, (isset($context["zpravy"]) || array_key_exists("zpravy", $context) ? $context["zpravy"] : (function () { throw new RuntimeError('Variable "zpravy" does not exist.', 137, $this->source); })()), "html", null, true);
            echo "</li>

                                </ul>

                        ";
            // line 141
            if (0 === twig_compare((isset($context["rozvrh"]) || array_key_exists("rozvrh", $context) ? $context["rozvrh"] : (function () { throw new RuntimeError('Variable "rozvrh" does not exist.', 141, $this->source); })()), null)) {
                // line 142
                echo "
                            <h5 style=\"min-width: fit-content; padding: 20px\">Příští hodina už není, vyučování skončilo</h5>

                        ";
            } else {
                // line 146
                echo "
                            <ul class=\"list-group list-group shadow-sm\" style=\"min-width: fit-content; max-height: 130px\">
                                <li class=\"list-group-item\">Příští hodina je ";
                // line 148
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["rozvrh"]) || array_key_exists("rozvrh", $context) ? $context["rozvrh"] : (function () { throw new RuntimeError('Variable "rozvrh" does not exist.', 148, $this->source); })()), "predmet", [], "any", false, false, false, 148), "nazev", [], "any", false, false, false, 148), "html", null, true);
                echo "</li>
                                <li class=\"list-group-item\">V učebně ";
                // line 149
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rozvrh"]) || array_key_exists("rozvrh", $context) ? $context["rozvrh"] : (function () { throw new RuntimeError('Variable "rozvrh" does not exist.', 149, $this->source); })()), "ucebna", [], "any", false, false, false, 149), "html", null, true);
                echo "</li>
                                <li class=\"list-group-item\">Se třídou ";
                // line 150
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rozvrh"]) || array_key_exists("rozvrh", $context) ? $context["rozvrh"] : (function () { throw new RuntimeError('Variable "rozvrh" does not exist.', 150, $this->source); })()), "trida", [], "any", false, false, false, 150), "html", null, true);
                echo "</li>
                            </ul>

                        ";
            }
            // line 154
            echo "
                        <div class=\"container\" align=\"right\">
                            <div class=\"analog-clock\" style=\"margin: 20px\">
                            <svg width=\"140\" height=\"140\">
                                <circle id=\"clock-face\" cx=\"70\" cy=\"70\" r=\"65\" />
                                <line id=\"h-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"38\" />
                                <line id=\"m-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"20\" />
                                <line id=\"s-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"12\" />
                                <line id=\"s-tail\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"56\" />
                                <text x=\"62\" y=\"18\">12</text>
                                <text x=\"126\" y=\"76\">3</text>
                                <text x=\"66\" y=\"130\">6</text>
                                <text x=\"7\" y=\"76\">9</text>
                            </svg>
                            <div class=\"time-text\">
                                <span id=\"hr\">00</span>
                                <span>:</span>
                                <span id=\"min\">00</span>
                                <span>:</span>
                                <span id=\"sec\">00</span>
                            </div>
                        </div>
                        </div>
                        </div>

                        <hr>

                    ";
        } elseif ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_STUDENT")) {
            // line 182
            echo "
                        <h1>Používáte systém jako Žák</h1>
                        <p>Jako žák si můžete prohlížet známky a rozvrh nebo zjišťovat důležité informace o výuce</p>

                        <hr>


                        <div class=\"d-flex justify-content-center\">
                            <ul class=\"list-group list-group shadow-sm\" style=\"min-width: fit-content; max-height: 130px\">
                                <li class=\"list-group-item\">Jste přihlášen jako: ";
            // line 191
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 191, $this->source); })()), "user", [], "any", false, false, false, 191), "zak", [], "any", false, false, false, 191), "jmeno", [], "any", false, false, false, 191), "html", null, true);
            echo " ";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 191, $this->source); })()), "user", [], "any", false, false, false, 191), "zak", [], "any", false, false, false, 191), "prijmeni", [], "any", false, false, false, 191), "html", null, true);
            echo "</li>
                                <li class=\"list-group-item\">Ze třídy: ";
            // line 192
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 192, $this->source); })()), "user", [], "any", false, false, false, 192), "zak", [], "any", false, false, false, 192), "trida", [], "any", false, false, false, 192), "html", null, true);
            echo " </li>
                                <li class=\"list-group-item\">S Domovskou učebnou: ";
            // line 193
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 193, $this->source); })()), "user", [], "any", false, false, false, 193), "zak", [], "any", false, false, false, 193), "trida", [], "any", false, false, false, 193), "ucebna", [], "any", false, false, false, 193), "html", null, true);
            echo "</li>
                                <li class=\"list-group-item\">Počet nových zpráv : ";
            // line 194
            echo twig_escape_filter($this->env, (isset($context["zpravy"]) || array_key_exists("zpravy", $context) ? $context["zpravy"] : (function () { throw new RuntimeError('Variable "zpravy" does not exist.', 194, $this->source); })()), "html", null, true);
            echo "</li>
                            </ul>

                            ";
            // line 197
            if (0 === twig_compare((isset($context["rozvrh"]) || array_key_exists("rozvrh", $context) ? $context["rozvrh"] : (function () { throw new RuntimeError('Variable "rozvrh" does not exist.', 197, $this->source); })()), null)) {
                // line 198
                echo "
                                <h5 style=\"min-width: fit-content; padding: 20px\">Příští hodina už není, škola skončila</h5>

                            ";
            } else {
                // line 202
                echo "
                                <p style=\"min-width: fit-content; padding: 20px\"> </p>
                                <ul class=\"list-group list-group shadow-sm\" style=\"min-width: fit-content; max-height: 130px\">
                                    <li class=\"list-group-item\">Příští hodina je ";
                // line 205
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["rozvrh"]) || array_key_exists("rozvrh", $context) ? $context["rozvrh"] : (function () { throw new RuntimeError('Variable "rozvrh" does not exist.', 205, $this->source); })()), "predmet", [], "any", false, false, false, 205), "nazev", [], "any", false, false, false, 205), "html", null, true);
                echo "</li>
                                    <li class=\"list-group-item\">V učebně ";
                // line 206
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rozvrh"]) || array_key_exists("rozvrh", $context) ? $context["rozvrh"] : (function () { throw new RuntimeError('Variable "rozvrh" does not exist.', 206, $this->source); })()), "ucebna", [], "any", false, false, false, 206), "html", null, true);
                echo "</li>
                                    <li class=\"list-group-item\">S učitelem ";
                // line 207
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["rozvrh"]) || array_key_exists("rozvrh", $context) ? $context["rozvrh"] : (function () { throw new RuntimeError('Variable "rozvrh" does not exist.', 207, $this->source); })()), "ucitel", [], "any", false, false, false, 207), "html", null, true);
                echo "</li>
                                </ul>

                            ";
            }
            // line 211
            echo "
                                <div class=\"container\" align=\"right\">
                                    <div class=\"analog-clock\" style=\"margin: 20px\">
                            <svg width=\"140\" height=\"140\">
                                <circle id=\"clock-face\" cx=\"70\" cy=\"70\" r=\"65\" />
                                <line id=\"h-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"38\" />
                                <line id=\"m-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"20\" />
                                <line id=\"s-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"12\" />
                                <line id=\"s-tail\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"56\" />
                                <text x=\"62\" y=\"18\">12</text>
                                <text x=\"126\" y=\"76\">3</text>
                                <text x=\"66\" y=\"130\">6</text>
                                <text x=\"7\" y=\"76\">9</text>
                            </svg>
                            <div class=\"time-text\">
                                <span id=\"hr\">00</span>
                                <span>:</span>
                                <span id=\"min\">00</span>
                                <span>:</span>
                                <span id=\"sec\">00</span>
                            </div>
                        </div>
                                </div>
                            </div>
                            <hr>

                    ";
        } elseif ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PARENT")) {
            // line 238
            echo "
                        <h1>Používáte systém jako Rodič</h1>
                        <p>
                            Jako rodič si můžete prohlížet známky a rozvrh vašich dětí nebo zjišťovat důležité informace
                            o výuce, navíc můžete vypisovat omluvenky, nebo kontaktovat učitele
                        </p>

                        <hr>

                        <div class=\"d-flex justify-content-center\">
                            <ul class=\"list-group list-group shadow-sm\" style=\"min-width: fit-content; max-height: 130px\">
                                <li class=\"list-group-item\">Jste přihlášen jako: ";
            // line 249
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 249, $this->source); })()), "user", [], "any", false, false, false, 249), "rodic", [], "any", false, false, false, 249), "titul", [], "any", false, false, false, 249), "html", null, true);
            echo " ";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 249, $this->source); })()), "user", [], "any", false, false, false, 249), "rodic", [], "any", false, false, false, 249), "jmeno", [], "any", false, false, false, 249), "html", null, true);
            echo " ";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 249, $this->source); })()), "user", [], "any", false, false, false, 249), "rodic", [], "any", false, false, false, 249), "prijmeni", [], "any", false, false, false, 249), "html", null, true);
            echo "</li>

                                <li class=\"list-group-item\">Rodič dětí:
                                ";
            // line 252
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 252, $this->source); })()), "user", [], "any", false, false, false, 252), "rodic", [], "any", false, false, false, 252), "zak", [], "any", false, false, false, 252));
            foreach ($context['_seq'] as $context["_key"] => $context["zak"]) {
                // line 253
                echo "
                                    <ul class=\"list-group list-group shadow-sm\" style=\"min-width: fit-content; max-height: 130px\">
                                        <li class=\"list-group-item\"> ";
                // line 255
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["zak"], "jmeno", [], "any", false, false, false, 255), "html", null, true);
                echo " ";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["zak"], "prijmeni", [], "any", false, false, false, 255), "html", null, true);
                echo "</li>
                                    </ul>

                                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['zak'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 259
            echo "                                </li>
                            </ul>

                                <p style=\"min-width: fit-content; padding: 20px\"> </p>
                                <ul class=\"list-group \" style=\"min-width: fit-content; max-height: 130px\">
                                    <li class=\"list-group-item\">Počet nových zpráv : ";
            // line 264
            echo twig_escape_filter($this->env, (isset($context["zpravy"]) || array_key_exists("zpravy", $context) ? $context["zpravy"] : (function () { throw new RuntimeError('Variable "zpravy" does not exist.', 264, $this->source); })()), "html", null, true);
            echo "</li>
                                </ul>

                            <div class=\"container\" align=\"right\">
                                <div class=\"analog-clock\" style=\"margin: 20px\">
                                    <svg width=\"140\" height=\"140\">
                                        <circle id=\"clock-face\" cx=\"70\" cy=\"70\" r=\"65\" />
                                        <line id=\"h-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"38\" />
                                        <line id=\"m-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"20\" />
                                        <line id=\"s-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"12\" />
                                        <line id=\"s-tail\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"56\" />
                                        <text x=\"62\" y=\"18\">12</text>
                                        <text x=\"126\" y=\"76\">3</text>
                                        <text x=\"66\" y=\"130\">6</text>
                                        <text x=\"7\" y=\"76\">9</text>
                                    </svg>
                                    <div class=\"time-text\">
                                        <span id=\"hr\">00</span>
                                        <span>:</span>
                                        <span id=\"min\">00</span>
                                        <span>:</span>
                                        <span id=\"sec\">00</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <hr>

                ";
        }
        // line 293
        echo "
                ";
        // line 294
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) {
            // line 295
            echo "
                ";
        } elseif ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_ANONYMOUSLY")) {
            // line 297
            echo "
                    <p><a class=\"btn btn-outline-primary btn-lg\" href=\"";
            // line 298
            echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
            echo "\" role=\"button\">Přihlásit &raquo;</a></p>

                ";
        }
        // line 301
        echo "
            </div>
        </div>
    </div>
    <div class=\"container\">

        ";
        // line 307
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
            // line 308
            echo "
        <div class=\"row\">
            <div class=\"col-md-4\">
                <div class=\"shadow\">
                    <div class=\"card\" style=\"padding: 15px; height: 185px\">
                        <h2 class=\"h2 card-title mb-3 font-weight-normal\">Suplování</h2>
                        <p>Seznam a správa absencí učitelů a nastavení suplování</p>
                        <p><a class=\"btn btn-outline-info\" href=\"";
            // line 315
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("absence.absenceUc", ["datum" => twig_date_format_filter($this->env, "now", "d-m-Y"), "doba" => 1]), "html", null, true);
            echo "\" role=\"button\">Přejít &raquo;</a></p>
                    </div>
                </div>
            </div>

            <div class=\"col-md-4\">
                <div class=\"shadow\">
                    <div class=\"card\" style=\"padding: 15px; height: 185px\">
                        <h2 class=\"h2 card-title mb-3 font-weight-normal\">Registrace</h2>
                        <p>Formulář s možností registrování nových uživatelů</p>
                        <p><a class=\"btn btn-outline-info\" href=\"";
            // line 325
            echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");
            echo "\" role=\"button\">Přejít &raquo;</a></p>
                    </div>
                </div>
            </div>

            <div class=\"col-md-4\">
                <div class=\"shadow\">
                    <div class=\"card\" style=\"padding: 15px; height: 185px\">
                        <h2 class=\"h2 card-title mb-3 font-weight-normal\">Zprávy</h2>
                        <p>Seznam přijatých a odeslaných zpráv s možností tvorby nových</p>
                        <p><a class=\"btn btn-outline-info\" href=\"";
            // line 335
            echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("zprava.index");
            echo "\" role=\"button\">Přejít &raquo;</a></p>
                    </div>
                </div>
            </div>
        </div>

        ";
        } elseif ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_TEACHER")) {
            // line 342
            echo "
            <div class=\"row\">
                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Suplování</h2>
                            <p>Formulář s osobním rozvrhem a suplováním</p>
                                <p><a class=\"btn btn-outline-info\" href=\"";
            // line 349
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("absence.showUc", ["dateK" => twig_date_format_filter($this->env, "now", "d-m-Y"), "dateZ" => twig_date_format_filter($this->env, "now", "d-m-Y"), "ucitel" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 349, $this->source); })()), "user", [], "any", false, false, false, 349), "ucitel", [], "any", false, false, false, 349), "id", [], "any", false, false, false, 349)]), "html", null, true);
            echo "\" role=\"button\">Přejít &raquo;</a></p>
                        </div>
                    </div>
                </div>

                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Známky</h2>
                            <p>Formulář s možností známkováná žáků</p>
                            <p><a class=\"btn btn-outline-info\" href=\"";
            // line 359
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("grades.index", ["pid" => 1, "tid" => 1]), "html", null, true);
            echo "\" role=\"button\">Přejít &raquo;</a></p>
                        </div>
                    </div>
                </div>

                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Absence</h2>
                            <p>Seznam žáků v dané hodině s možností nastavení absence</p>
                            <p><a class=\"btn btn-outline-info\" href=\"";
            // line 369
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("absence.index", ["date" => twig_date_format_filter($this->env, "now", "d-m-Y"), "doba" => 1, "id" => 1, "redirect" => 0]), "html", null, true);
            echo "\" role=\"button\">Přejít &raquo;</a></p>
                        </div>
                    </div>
                </div>

            </div>

        ";
        } elseif ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_STUDENT")) {
            // line 377
            echo "
            <div class=\"row\">
                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Rozvrhy</h2>
                            <p>Formulář s tvým rozvrhem</p>
                            <p><a class=\"btn btn-outline-info\" href=\"";
            // line 384
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("time_table.index", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 384, $this->source); })()), "user", [], "any", false, false, false, 384), "zak", [], "any", false, false, false, 384), "trida", [], "any", false, false, false, 384), "id", [], "any", false, false, false, 384)]), "html", null, true);
            echo "\" role=\"button\">Přejít &raquo;</a></p>
                        </div>
                    </div>
                </div>

                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Známky</h2>
                            <p>Formulář s možností zobrazení svých známek</p>
                            <p><a class=\"btn btn-outline-info\" href=\"";
            // line 394
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("grades.studentShow", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 394, $this->source); })()), "user", [], "any", false, false, false, 394), "zak", [], "any", false, false, false, 394), "id", [], "any", false, false, false, 394)]), "html", null, true);
            echo "\" role=\"button\">Přejít &raquo;</a></p>
                        </div>
                    </div>
                </div>

                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Absence</h2>
                            <p>Informační tabulka se všemi zameškanými hodinami</p>
                            <p><a class=\"btn btn-outline-info\" href=\"";
            // line 404
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("absence.show", ["zak" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 404, $this->source); })()), "user", [], "any", false, false, false, 404), "zak", [], "any", false, false, false, 404), "id", [], "any", false, false, false, 404)]), "html", null, true);
            echo "\" role=\"button\">Přejít &raquo;</a></p>
                        </div>
                    </div>
                </div>
            </div>

        ";
        } elseif ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PARENT")) {
            // line 411
            echo "
            <div class=\"row\">
                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Absence</h2>
                            <p>Přehled absencí všech dětí s možností psaní omluvenek</p>

                            ";
            // line 419
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 419, $this->source); })()), "user", [], "any", false, false, false, 419), "rodic", [], "any", false, false, false, 419), "zak", [], "any", false, false, false, 419));
            foreach ($context['_seq'] as $context["_key"] => $context["zak"]) {
                // line 420
                echo "
                            <p><a class=\"btn btn-outline-info\" href=\"";
                // line 421
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("time_table.index", ["id" => twig_get_attribute($this->env, $this->source, $context["zak"], "id", [], "any", false, false, false, 421)]), "html", null, true);
                echo "\" role=\"button\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["zak"], "jmeno", [], "any", false, false, false, 421), "html", null, true);
                echo " &raquo;</a></p>

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

                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Známky</h2>
                            <p>Formulář s možností zobrazení známek žáků</p>

                            ";
            // line 435
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 435, $this->source); })()), "user", [], "any", false, false, false, 435), "rodic", [], "any", false, false, false, 435), "zak", [], "any", false, false, false, 435));
            foreach ($context['_seq'] as $context["_key"] => $context["zak"]) {
                // line 436
                echo "
                            <p><a class=\"btn btn-outline-info\" href=\"";
                // line 437
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("grades.studentShow", ["id" => twig_get_attribute($this->env, $this->source, $context["zak"], "id", [], "any", false, false, false, 437)]), "html", null, true);
                echo "\" role=\"button\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["zak"], "jmeno", [], "any", false, false, false, 437), "html", null, true);
                echo " &raquo;</a></p>

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

                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Rozvrhy</h2>
                            <p>Formulář s rozvrhy všech dětí</p>

                            ";
            // line 451
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 451, $this->source); })()), "user", [], "any", false, false, false, 451), "rodic", [], "any", false, false, false, 451), "zak", [], "any", false, false, false, 451));
            foreach ($context['_seq'] as $context["_key"] => $context["zak"]) {
                // line 452
                echo "
                            <p><a class=\"btn btn-outline-info\" href=\"";
                // line 453
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("time_table.index", ["id" => twig_get_attribute($this->env, $this->source, $context["zak"], "id", [], "any", false, false, false, 453)]), "html", null, true);
                echo "\" role=\"button\">";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["zak"], "jmeno", [], "any", false, false, false, 453), "html", null, true);
                echo " &raquo;</a></p>

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

        ";
        }
        // line 463
        echo "
        <hr>
    </div>

    <footer class=\"container\">
        <p>&copy; Jan Velebný 2020</p>
    </footer>

    <style>
        *{
            margin:0;
            padding:0;
            font-family:sans-serif;
            font-size:14px;
        }

        .analog-clock{
            width:140px;
            height:140px;
        }

        #clock-face{
            stroke:black;
            stroke-width:2px;
            fill:white;
        }

        #h-hand, #m-hand, #s-hand, #s-tail{
            stroke:black;
            stroke-linecap:round;
        }

        #h-hand{
            stroke-width:3px;
        }

        #m-hand{
            stroke-width:2px;
        }

        #s-hand{
            stroke-width:1px;
        }

        .time-text{
            text-align:center;
        }
    </style>


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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  787 => 463,  778 => 456,  767 => 453,  764 => 452,  760 => 451,  747 => 440,  736 => 437,  733 => 436,  729 => 435,  716 => 424,  705 => 421,  702 => 420,  698 => 419,  688 => 411,  678 => 404,  665 => 394,  652 => 384,  643 => 377,  632 => 369,  619 => 359,  606 => 349,  597 => 342,  587 => 335,  574 => 325,  561 => 315,  552 => 308,  550 => 307,  542 => 301,  536 => 298,  533 => 297,  529 => 295,  527 => 294,  524 => 293,  492 => 264,  485 => 259,  473 => 255,  469 => 253,  465 => 252,  455 => 249,  442 => 238,  413 => 211,  406 => 207,  402 => 206,  398 => 205,  393 => 202,  387 => 198,  385 => 197,  379 => 194,  375 => 193,  371 => 192,  365 => 191,  354 => 182,  324 => 154,  317 => 150,  313 => 149,  309 => 148,  305 => 146,  299 => 142,  297 => 141,  290 => 137,  285 => 135,  282 => 134,  276 => 131,  273 => 130,  267 => 126,  265 => 125,  260 => 123,  256 => 122,  246 => 114,  235 => 105,  224 => 100,  218 => 97,  212 => 94,  208 => 92,  199 => 90,  195 => 89,  189 => 86,  184 => 84,  180 => 83,  176 => 81,  172 => 80,  144 => 55,  108 => 21,  99 => 14,  97 => 13,  90 => 8,  80 => 7,  69 => 4,  59 => 3,  36 => 1,);
    }

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

{% block title %}
    Školní systém
{% endblock %}

{% block body %}

    <div class=\"shadow\">
        <div class=\"jumbotron\">
            <div class=\"container\" align=\"center\">

                {% if not(is_granted('IS_AUTHENTICATED_FULLY')) %}

                <h1 class=\"display-3\">ZŠ Fiktivní základní škola</h1>
                <p>Toto je informační a administrační webový systém základní školy Fiktivní základní škola.
                    Umožňuje žákům a učitelům naší školy organizaci a známkování. Pokud chcete vstoupit do systému,
                    prosím, přihlašte se.</p>

                    {% elseif is_granted('ROLE_ADMIN') %}

                        <h1>Používáte systém s maximálním oprávněním</h1>
                        <p>Jako administrátor můžete přidávat a odebírat nové uživatele, žáky a učitele</p>

                        <hr>

                    <div class=\"d-flex justify-content-center\">
                        <div class=\"container\" align=\"right\">
                            <div class=\"analog-clock float-right\" style=\"margin: 20px\">
                            <svg width=\"140\" height=\"140\">
                                <circle id=\"clock-face\" cx=\"70\" cy=\"70\" r=\"65\" />
                                <line id=\"h-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"38\" />
                                <line id=\"m-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"20\" />
                                <line id=\"s-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"12\" />
                                <line id=\"s-tail\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"56\" />
                                <text x=\"62\" y=\"18\">12</text>
                                <text x=\"126\" y=\"76\">3</text>
                                <text x=\"66\" y=\"130\">6</text>
                                <text x=\"7\" y=\"76\">9</text>
                            </svg>
                            <div class=\"time-text\">
                                <span id=\"hr\">00</span>
                                <span>:</span>
                                <span id=\"min\">00</span>
                                <span>:</span>
                                <span id=\"sec\">00</span>
                            </div>
                        </div>
                        <div>


                            <div class=\"container\" align=\"left\">
                                <div class=\"shadow-sm card\" style=\"width: max-content;\">
                                    <ul class=\"list-group list-group shadow-sm\" style=\"min-width: fit-content; max-height: 130px\">
                                        <li class=\"list-group-item\">Počet nových zpráv : {{ zpravy }}</li>
                                    </ul>
                                </div>

                                <br>

                                <h3>Seznam všech uživatelů</h3>

                                <br>

                                <div class=\"shadow bg-white\" 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=\"Username\">Přihlašovací jméno</th>
                                    <th data-field=\"Role\">Role</th>
                                    <th data-field=\"Učitel\">Učitel</th>
                                    <th data-field=\"Žák\">Žák</th>
                                    <th data-field=\"Žák\">Rodič</th>
                                </tr>
                                </thead>
                                <tbody>

                                {% for user in users %}

                                    <tr style=\"transform: rotate(0);\">
                                        <td scope=\"colgroup\"><a href=\"{{ path('user.edit', {id: user.id}) }}\"
                                                                class=\"stretched-link\">{{ user.id }}</a></td>
                                        <td>
                                            {{ user.username }}
                                        </td>
                                        <td>
                                            {% for r in user.roles %}
                                                {{ r }}
                                            {% endfor %}
                                        </td>
                                        <td>
                                            {{ user.ucitel }}
                                        </td>
                                        <td>
                                            {{ user.zak }}
                                        </td>
                                        <td>
                                            {{ user.rodic }}
                                        </td>
                                    </tr>

                                {% endfor %}

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

                    {% elseif is_granted('ROLE_TEACHER') %}

                        <h1>Používáte systém jako Vyučující</h1>
                        <p>Jako vyučující můžete spravovat žáky a přidávat jim známky nebo tvořit rozvrhy</p>

                        <hr>

                        <div class=\"d-flex justify-content-center\">
                                <ul class=\"list-group list-group shadow-sm\" style=\"min-width: fit-content; max-height: 130px\">
                                    <li class=\"list-group-item\">Jste přihlášen jako: {{ app.user.ucitel.jmeno }}
                                        {{ app.user.ucitel.prijmeni }}</li>

                                    {% if app.user.ucitel.trida == null %}

                                        <li class=\"list-group-item\">Nejste Třídním učitelem</li>

                                    {% else %}

                                        <li class=\"list-group-item\">Třídním učitelem pro: {{ app.user.ucitel.trida }} </li>

                                    {% endif %}

                                    <li class=\"list-group-item\">S Kabinetem: {{ app.user.ucitel.ucebna }}</li>

                                    <li class=\"list-group-item\">Počet nových zpráv : {{ zpravy }}</li>

                                </ul>

                        {% if rozvrh == null %}

                            <h5 style=\"min-width: fit-content; padding: 20px\">Příští hodina už není, vyučování skončilo</h5>

                        {% else %}

                            <ul class=\"list-group list-group shadow-sm\" style=\"min-width: fit-content; max-height: 130px\">
                                <li class=\"list-group-item\">Příští hodina je {{ rozvrh.predmet.nazev }}</li>
                                <li class=\"list-group-item\">V učebně {{ rozvrh.ucebna}}</li>
                                <li class=\"list-group-item\">Se třídou {{ rozvrh.trida }}</li>
                            </ul>

                        {% endif %}

                        <div class=\"container\" align=\"right\">
                            <div class=\"analog-clock\" style=\"margin: 20px\">
                            <svg width=\"140\" height=\"140\">
                                <circle id=\"clock-face\" cx=\"70\" cy=\"70\" r=\"65\" />
                                <line id=\"h-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"38\" />
                                <line id=\"m-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"20\" />
                                <line id=\"s-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"12\" />
                                <line id=\"s-tail\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"56\" />
                                <text x=\"62\" y=\"18\">12</text>
                                <text x=\"126\" y=\"76\">3</text>
                                <text x=\"66\" y=\"130\">6</text>
                                <text x=\"7\" y=\"76\">9</text>
                            </svg>
                            <div class=\"time-text\">
                                <span id=\"hr\">00</span>
                                <span>:</span>
                                <span id=\"min\">00</span>
                                <span>:</span>
                                <span id=\"sec\">00</span>
                            </div>
                        </div>
                        </div>
                        </div>

                        <hr>

                    {% elseif is_granted('ROLE_STUDENT') %}

                        <h1>Používáte systém jako Žák</h1>
                        <p>Jako žák si můžete prohlížet známky a rozvrh nebo zjišťovat důležité informace o výuce</p>

                        <hr>


                        <div class=\"d-flex justify-content-center\">
                            <ul class=\"list-group list-group shadow-sm\" style=\"min-width: fit-content; max-height: 130px\">
                                <li class=\"list-group-item\">Jste přihlášen jako: {{ app.user.zak.jmeno }} {{ app.user.zak.prijmeni }}</li>
                                <li class=\"list-group-item\">Ze třídy: {{ app.user.zak.trida }} </li>
                                <li class=\"list-group-item\">S Domovskou učebnou: {{ app.user.zak.trida.ucebna }}</li>
                                <li class=\"list-group-item\">Počet nových zpráv : {{ zpravy }}</li>
                            </ul>

                            {% if rozvrh == null %}

                                <h5 style=\"min-width: fit-content; padding: 20px\">Příští hodina už není, škola skončila</h5>

                            {% else %}

                                <p style=\"min-width: fit-content; padding: 20px\"> </p>
                                <ul class=\"list-group list-group shadow-sm\" style=\"min-width: fit-content; max-height: 130px\">
                                    <li class=\"list-group-item\">Příští hodina je {{ rozvrh.predmet.nazev }}</li>
                                    <li class=\"list-group-item\">V učebně {{ rozvrh.ucebna}}</li>
                                    <li class=\"list-group-item\">S učitelem {{ rozvrh.ucitel }}</li>
                                </ul>

                            {% endif %}

                                <div class=\"container\" align=\"right\">
                                    <div class=\"analog-clock\" style=\"margin: 20px\">
                            <svg width=\"140\" height=\"140\">
                                <circle id=\"clock-face\" cx=\"70\" cy=\"70\" r=\"65\" />
                                <line id=\"h-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"38\" />
                                <line id=\"m-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"20\" />
                                <line id=\"s-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"12\" />
                                <line id=\"s-tail\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"56\" />
                                <text x=\"62\" y=\"18\">12</text>
                                <text x=\"126\" y=\"76\">3</text>
                                <text x=\"66\" y=\"130\">6</text>
                                <text x=\"7\" y=\"76\">9</text>
                            </svg>
                            <div class=\"time-text\">
                                <span id=\"hr\">00</span>
                                <span>:</span>
                                <span id=\"min\">00</span>
                                <span>:</span>
                                <span id=\"sec\">00</span>
                            </div>
                        </div>
                                </div>
                            </div>
                            <hr>

                    {% elseif is_granted('ROLE_PARENT') %}

                        <h1>Používáte systém jako Rodič</h1>
                        <p>
                            Jako rodič si můžete prohlížet známky a rozvrh vašich dětí nebo zjišťovat důležité informace
                            o výuce, navíc můžete vypisovat omluvenky, nebo kontaktovat učitele
                        </p>

                        <hr>

                        <div class=\"d-flex justify-content-center\">
                            <ul class=\"list-group list-group shadow-sm\" style=\"min-width: fit-content; max-height: 130px\">
                                <li class=\"list-group-item\">Jste přihlášen jako: {{ app.user.rodic.titul }} {{ app.user.rodic.jmeno }} {{ app.user.rodic.prijmeni }}</li>

                                <li class=\"list-group-item\">Rodič dětí:
                                {% for zak in  app.user.rodic.zak %}

                                    <ul class=\"list-group list-group shadow-sm\" style=\"min-width: fit-content; max-height: 130px\">
                                        <li class=\"list-group-item\"> {{ zak.jmeno }} {{ zak.prijmeni }}</li>
                                    </ul>

                                {% endfor %}
                                </li>
                            </ul>

                                <p style=\"min-width: fit-content; padding: 20px\"> </p>
                                <ul class=\"list-group \" style=\"min-width: fit-content; max-height: 130px\">
                                    <li class=\"list-group-item\">Počet nových zpráv : {{ zpravy }}</li>
                                </ul>

                            <div class=\"container\" align=\"right\">
                                <div class=\"analog-clock\" style=\"margin: 20px\">
                                    <svg width=\"140\" height=\"140\">
                                        <circle id=\"clock-face\" cx=\"70\" cy=\"70\" r=\"65\" />
                                        <line id=\"h-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"38\" />
                                        <line id=\"m-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"20\" />
                                        <line id=\"s-hand\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"12\" />
                                        <line id=\"s-tail\" x1=\"70\" y1=\"70\" x2=\"70\" y2=\"56\" />
                                        <text x=\"62\" y=\"18\">12</text>
                                        <text x=\"126\" y=\"76\">3</text>
                                        <text x=\"66\" y=\"130\">6</text>
                                        <text x=\"7\" y=\"76\">9</text>
                                    </svg>
                                    <div class=\"time-text\">
                                        <span id=\"hr\">00</span>
                                        <span>:</span>
                                        <span id=\"min\">00</span>
                                        <span>:</span>
                                        <span id=\"sec\">00</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <hr>

                {% endif %}

                {% if is_granted('IS_AUTHENTICATED_FULLY') %}

                {% elseif is_granted('IS_AUTHENTICATED_ANONYMOUSLY') %}

                    <p><a class=\"btn btn-outline-primary btn-lg\" href=\"{{ path('app_login') }}\" role=\"button\">Přihlásit &raquo;</a></p>

                {% endif %}

            </div>
        </div>
    </div>
    <div class=\"container\">

        {% if is_granted('ROLE_ADMIN') %}

        <div class=\"row\">
            <div class=\"col-md-4\">
                <div class=\"shadow\">
                    <div class=\"card\" style=\"padding: 15px; height: 185px\">
                        <h2 class=\"h2 card-title mb-3 font-weight-normal\">Suplování</h2>
                        <p>Seznam a správa absencí učitelů a nastavení suplování</p>
                        <p><a class=\"btn btn-outline-info\" href=\"{{ path('absence.absenceUc', {datum: 'now'|date('d-m-Y'), doba: 1}) }}\" role=\"button\">Přejít &raquo;</a></p>
                    </div>
                </div>
            </div>

            <div class=\"col-md-4\">
                <div class=\"shadow\">
                    <div class=\"card\" style=\"padding: 15px; height: 185px\">
                        <h2 class=\"h2 card-title mb-3 font-weight-normal\">Registrace</h2>
                        <p>Formulář s možností registrování nových uživatelů</p>
                        <p><a class=\"btn btn-outline-info\" href=\"{{ path('register') }}\" role=\"button\">Přejít &raquo;</a></p>
                    </div>
                </div>
            </div>

            <div class=\"col-md-4\">
                <div class=\"shadow\">
                    <div class=\"card\" style=\"padding: 15px; height: 185px\">
                        <h2 class=\"h2 card-title mb-3 font-weight-normal\">Zprávy</h2>
                        <p>Seznam přijatých a odeslaných zpráv s možností tvorby nových</p>
                        <p><a class=\"btn btn-outline-info\" href=\"{{ path('zprava.index') }}\" role=\"button\">Přejít &raquo;</a></p>
                    </div>
                </div>
            </div>
        </div>

        {% elseif is_granted('ROLE_TEACHER') %}

            <div class=\"row\">
                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Suplování</h2>
                            <p>Formulář s osobním rozvrhem a suplováním</p>
                                <p><a class=\"btn btn-outline-info\" href=\"{{ path('absence.showUc', {dateK:  \"now\"|date(\"d-m-Y\"), dateZ: \"now\"|date(\"d-m-Y\"), ucitel: app.user.ucitel.id}) }}\" role=\"button\">Přejít &raquo;</a></p>
                        </div>
                    </div>
                </div>

                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Známky</h2>
                            <p>Formulář s možností známkováná žáků</p>
                            <p><a class=\"btn btn-outline-info\" href=\"{{ path('grades.index', {pid: 1, tid: 1}) }}\" role=\"button\">Přejít &raquo;</a></p>
                        </div>
                    </div>
                </div>

                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Absence</h2>
                            <p>Seznam žáků v dané hodině s možností nastavení absence</p>
                            <p><a class=\"btn btn-outline-info\" href=\"{{ path('absence.index', {date: 'now'|date('d-m-Y'), doba:1, id:1, redirect: 0}) }}\" role=\"button\">Přejít &raquo;</a></p>
                        </div>
                    </div>
                </div>

            </div>

        {% elseif is_granted('ROLE_STUDENT') %}

            <div class=\"row\">
                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Rozvrhy</h2>
                            <p>Formulář s tvým rozvrhem</p>
                            <p><a class=\"btn btn-outline-info\" href=\"{{ path('time_table.index', {id: app.user.zak.trida.id}) }}\" role=\"button\">Přejít &raquo;</a></p>
                        </div>
                    </div>
                </div>

                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Známky</h2>
                            <p>Formulář s možností zobrazení svých známek</p>
                            <p><a class=\"btn btn-outline-info\" href=\"{{ path('grades.studentShow', {id: app.user.zak.id}) }}\" role=\"button\">Přejít &raquo;</a></p>
                        </div>
                    </div>
                </div>

                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Absence</h2>
                            <p>Informační tabulka se všemi zameškanými hodinami</p>
                            <p><a class=\"btn btn-outline-info\" href=\"{{ path('absence.show', {zak: app.user.zak.id}) }}\" role=\"button\">Přejít &raquo;</a></p>
                        </div>
                    </div>
                </div>
            </div>

        {% elseif is_granted('ROLE_PARENT') %}

            <div class=\"row\">
                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Absence</h2>
                            <p>Přehled absencí všech dětí s možností psaní omluvenek</p>

                            {% for zak in  app.user.rodic.zak %}

                            <p><a class=\"btn btn-outline-info\" href=\"{{ path('time_table.index', {id: zak.id}) }}\" role=\"button\">{{ zak.jmeno }} &raquo;</a></p>

                            {% endfor %}

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

                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Známky</h2>
                            <p>Formulář s možností zobrazení známek žáků</p>

                            {% for zak in  app.user.rodic.zak %}

                            <p><a class=\"btn btn-outline-info\" href=\"{{ path('grades.studentShow', {id: zak.id}) }}\" role=\"button\">{{ zak.jmeno }} &raquo;</a></p>

                            {% endfor %}

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

                <div class=\"col-md-4\">
                    <div class=\"shadow\">
                        <div class=\"card\" style=\"padding: 15px; height: 185px\">
                            <h2 class=\"h2 card-title mb-3 font-weight-normal\">Rozvrhy</h2>
                            <p>Formulář s rozvrhy všech dětí</p>

                            {% for zak in  app.user.rodic.zak %}

                            <p><a class=\"btn btn-outline-info\" href=\"{{ path('time_table.index', {id: zak.id}) }}\" role=\"button\">{{ zak.jmeno }} &raquo;</a></p>

                            {% endfor %}

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

        {% endif %}

        <hr>
    </div>

    <footer class=\"container\">
        <p>&copy; Jan Velebný 2020</p>
    </footer>

    <style>
        *{
            margin:0;
            padding:0;
            font-family:sans-serif;
            font-size:14px;
        }

        .analog-clock{
            width:140px;
            height:140px;
        }

        #clock-face{
            stroke:black;
            stroke-width:2px;
            fill:white;
        }

        #h-hand, #m-hand, #s-hand, #s-tail{
            stroke:black;
            stroke-linecap:round;
        }

        #h-hand{
            stroke-width:3px;
        }

        #m-hand{
            stroke-width:2px;
        }

        #s-hand{
            stroke-width:1px;
        }

        .time-text{
            text-align:center;
        }
    </style>


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