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

/* ucitele/show.html.twig */
class __TwigTemplate_76fe2d667b9a55f5199660b57a352d5765665ce7cc8ccaf0044d840a89557578 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", "ucitele/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", "ucitele/show.html.twig"));

        $this->parent = $this->loadTemplate("base.html.twig", "ucitele/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 Učitele
";
        
        $__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 učitele</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["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" 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["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" 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["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" 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["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" 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\">Třídním učitelem pro: ";
        // line 29
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" does not exist.', 29, $this->source); })()), "trida", [], "any", false, false, false, 29), "html", null, true);
        echo "</li>
                    <li class=\"list-group-item\">Kancelář : ";
        // line 30
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" does not exist.', 30, $this->source); })()), "ucebna", [], "any", false, false, false, 30), "html", null, true);
        echo "</li>
                    <li class=\"list-group-item\">Telefon: ";
        // line 31
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" does not exist.', 31, $this->source); })()), "telefon", [], "any", false, false, false, 31), "html", null, true);
        echo "</li>
                    <li class=\"list-group-item\">Email: ";
        // line 32
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" does not exist.', 32, $this->source); })()), "email", [], "any", false, false, false, 32), "html", null, true);
        echo "</li>
                    <li class=\"list-group-item\">Webové stránky: ";
        // line 33
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" does not exist.', 33, $this->source); })()), "web", [], "any", false, false, false, 33), "html", null, true);
        echo "</li>
                </ul>

            </div>
        </div>

        <br>

        <div class=\"d-flex justify-content-center\">
            <div id=\"Textbox\" style=\"max-width: 400px; margin-top: 30px\">
                <article class=\"text-justify\">";
        // line 43
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" does not exist.', 43, $this->source); })()), "poznamka", [], "any", false, false, false, 43), "html", null, true);
        echo "</article>
        </div>
        </div>

        <hr>
        ";
        // line 48
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
            // line 49
            echo "        <div class=\"btn-group\">
            <a href=\"";
            // line 50
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ucitele.aedit", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" does not exist.', 50, $this->source); })()), "id", [], "any", false, false, false, 50)]), "html", null, true);
            echo "\" class=\"btn btn-outline-primary btn-group\">Upravit</a>
            <a href=\"";
            // line 51
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ucitele.uedit", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" does not exist.', 51, $this->source); })()), "id", [], "any", false, false, false, 51)]), "html", null, true);
            echo "\" class=\"btn btn-outline-info btn-group\">Upravit</a>
            <a href=\"";
            // line 52
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ucitele.delete", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" does not exist.', 52, $this->source); })()), "id", [], "any", false, false, false, 52)]), "html", null, true);
            echo "\" class=\"btn btn-outline-danger btn-group\">Smazat</a>
        </div>
        ";
        }
        // line 55
        echo "        ";
        if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_TEACHER") && 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.', 55, $this->source); })()), "user", [], "any", false, false, false, 55), "ucitel", [], "any", false, false, false, 55), "id", [], "any", false, false, false, 55), twig_get_attribute($this->env, $this->source, (isset($context["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" does not exist.', 55, $this->source); })()), "id", [], "any", false, false, false, 55)))) {
            // line 56
            echo "            <a href=\"";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ucitele.uedit", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" does not exist.', 56, $this->source); })()), "id", [], "any", false, false, false, 56)]), "html", null, true);
            echo "\" class=\"btn btn-outline-primary btn-group\">Upravit</a>
        ";
        }
        // line 58
        echo "
        ";
        // line 59
        if (0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" does not exist.', 59, $this->source); })()), "user", [], "any", false, false, false, 59), null)) {
            // line 60
            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, twig_get_attribute($this->env, $this->source, (isset($context["ucitel"]) || array_key_exists("ucitel", $context) ? $context["ucitel"] : (function () { throw new RuntimeError('Variable "ucitel" does not exist.', 60, $this->source); })()), "user", [], "any", false, false, false, 60), "id", [], "any", false, false, false, 60)]), "html", null, true);
            echo "\" class=\"btn btn-outline-primary float-left\">Poslat zprávu</a>
        ";
        }
        // line 62
        echo "    </div>

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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  202 => 62,  196 => 60,  194 => 59,  191 => 58,  185 => 56,  182 => 55,  176 => 52,  172 => 51,  168 => 50,  165 => 49,  163 => 48,  155 => 43,  142 => 33,  138 => 32,  134 => 31,  130 => 30,  126 => 29,  119 => 24,  112 => 20,  109 => 19,  107 => 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 Učitele
{% endblock %}

{% block body %}

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

        <h3 class=\"h3 card-title mb-3 font-weight-normal\">Profil učitele</h3>
        <h4 class=\"h4 card-title mb-3 font-weight-normal\">{{ ucitel.jmeno }} {{ ucitel.prijmeni }}</h4>

        <hr>

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

            {% if ucitel.image != NULL %}

                <img src=\"{{ '/uploads/' ~ ucitel.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\">Třídním učitelem pro: {{ ucitel.trida }}</li>
                    <li class=\"list-group-item\">Kancelář : {{ ucitel.ucebna }}</li>
                    <li class=\"list-group-item\">Telefon: {{ ucitel.telefon }}</li>
                    <li class=\"list-group-item\">Email: {{ ucitel.email }}</li>
                    <li class=\"list-group-item\">Webové stránky: {{ ucitel.web }}</li>
                </ul>

            </div>
        </div>

        <br>

        <div class=\"d-flex justify-content-center\">
            <div id=\"Textbox\" style=\"max-width: 400px; margin-top: 30px\">
                <article class=\"text-justify\">{{ ucitel.poznamka }}</article>
        </div>
        </div>

        <hr>
        {% if is_granted('ROLE_ADMIN') %}
        <div class=\"btn-group\">
            <a href=\"{{ path('ucitele.aedit', {id: ucitel.id}) }}\" class=\"btn btn-outline-primary btn-group\">Upravit</a>
            <a href=\"{{ path('ucitele.uedit', {id: ucitel.id}) }}\" class=\"btn btn-outline-info btn-group\">Upravit</a>
            <a href=\"{{ path('ucitele.delete', {id: ucitel.id}) }}\" class=\"btn btn-outline-danger btn-group\">Smazat</a>
        </div>
        {% endif %}
        {% if is_granted('ROLE_TEACHER') and app.user.ucitel.id == ucitel.id %}
            <a href=\"{{ path('ucitele.uedit', {id: ucitel.id}) }}\" class=\"btn btn-outline-primary btn-group\">Upravit</a>
        {% endif %}

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

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