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

/* absence/create.html.twig */
class __TwigTemplate_6fa8e1d6363b9acbec7584c9f861d553d31935b927cf5302c8e4f6fd88154077 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", "absence/create.html.twig"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "absence/create.html.twig"));

        $this->parent = $this->loadTemplate("base.html.twig", "absence/create.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 "    ";
        if (0 === twig_compare((isset($context["omluvenka"]) || array_key_exists("omluvenka", $context) ? $context["omluvenka"] : (function () { throw new RuntimeError('Variable "omluvenka" does not exist.', 4, $this->source); })()), 2)) {
            // line 5
            echo "        Suplování
    ";
        } elseif (0 === twig_compare(        // line 6
(isset($context["omluvenka"]) || array_key_exists("omluvenka", $context) ? $context["omluvenka"] : (function () { throw new RuntimeError('Variable "omluvenka" does not exist.', 6, $this->source); })()), 1)) {
            // line 7
            echo "        Omluvenka
    ";
        } else {
            // line 9
            echo "        Docházka
    ";
        }
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    // line 13
    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 14
        echo "
    ";
        // line 15
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(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.', 15, $this->source); })()), "flashes", [0 => "danger"], "method", false, false, false, 15));
        foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
            // line 16
            echo "
        <div class=\"alert alert-danger\">
            ";
            // line 18
            echo twig_escape_filter($this->env, $context["message"], "html", null, true);
            echo "
        </div>

    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 22
        echo "    ";
        if (0 === twig_compare((isset($context["omluvenka"]) || array_key_exists("omluvenka", $context) ? $context["omluvenka"] : (function () { throw new RuntimeError('Variable "omluvenka" does not exist.', 22, $this->source); })()), 2)) {
            // line 23
            echo "        <h3 class=\"h3 card-title mb-3 font-weight-normal\">Suplování</h3>
    ";
        } else {
            // line 25
            echo "        ";
            if (0 === twig_compare((isset($context["predmet"]) || array_key_exists("predmet", $context) ? $context["predmet"] : (function () { throw new RuntimeError('Variable "predmet" does not exist.', 25, $this->source); })()), null)) {
                // line 26
                echo "            <h3 class=\"h3 card-title mb-3 font-weight-normal\">Absence</h3>
        ";
            } else {
                // line 28
                echo "            <h3 class=\"h3 card-title mb-3 font-weight-normal\">Absence - ";
                echo twig_escape_filter($this->env, (isset($context["predmet"]) || array_key_exists("predmet", $context) ? $context["predmet"] : (function () { throw new RuntimeError('Variable "predmet" does not exist.', 28, $this->source); })()), "html", null, true);
                echo "</h3>
        ";
            }
            // line 30
            echo "    ";
        }
        // line 31
        echo "

    <hr>

    ";
        // line 35
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 35, $this->source); })()), 'form_start');
        echo "

    <div class=\"input-group mb-3 justify-content-center\">
        <label class=\"btn btn-outline-primary\">
            ";
        // line 39
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 39, $this->source); })()), "chybi", [], "any", false, false, false, 39), 'widget');
        echo "
        </label>
    </div>

    <div class=\"input-group mb-3\">
        <div class=\"input-group-prepend\">
            <span class=\"input-group-text\">Jméno: </span>
        </div>
        ";
        // line 47
        if (0 === twig_compare((isset($context["omluvenka"]) || array_key_exists("omluvenka", $context) ? $context["omluvenka"] : (function () { throw new RuntimeError('Variable "omluvenka" does not exist.', 47, $this->source); })()), 2)) {
            // line 48
            echo "            ";
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 48, $this->source); })()), "ucitel", [], "any", false, false, false, 48), 'widget');
            echo "
        ";
        } else {
            // line 50
            echo "            ";
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 50, $this->source); })()), "zak", [], "any", false, false, false, 50), 'widget');
            echo "
        ";
        }
        // line 52
        echo "    </div>

    <div class=\"input-group mb-3\">
        <div class=\"input-group-prepend\">
            <span class=\"input-group-text\">Datum: </span>
        </div>
        ";
        // line 58
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 58, $this->source); })()), "datum", [], "any", false, false, false, 58), 'widget');
        echo "
    </div>

    <div class=\"input-group mb-3\">
        <div class=\"input-group-prepend\">
            <span class=\"input-group-text\">Čas: </span>
        </div>
        ";
        // line 65
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 65, $this->source); })()), "doba", [], "any", false, false, false, 65), 'widget');
        echo "
    </div>

    ";
        // line 68
        if (0 === twig_compare((isset($context["omluvenka"]) || array_key_exists("omluvenka", $context) ? $context["omluvenka"] : (function () { throw new RuntimeError('Variable "omluvenka" does not exist.', 68, $this->source); })()), 1)) {
            // line 69
            echo "
        <div class=\"input-group mb-3\">
        <div class=\"input-group-prepend\">
            <span class=\"input-group-text\">Omluvenka: </span>
        </div>
        ";
            // line 74
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 74, $this->source); })()), "poznamka", [], "any", false, false, false, 74), 'widget');
            echo "
        </div>

    ";
        } elseif (0 === twig_compare(        // line 77
(isset($context["omluvenka"]) || array_key_exists("omluvenka", $context) ? $context["omluvenka"] : (function () { throw new RuntimeError('Variable "omluvenka" does not exist.', 77, $this->source); })()), 2)) {
            // line 78
            echo "
        <div class=\"input-group mb-3\">
            <div class=\"input-group-prepend\">
                <span class=\"input-group-text\">Suplující učitel: </span>
            </div>
            ";
            // line 83
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 83, $this->source); })()), "supl_ucitel", [], "any", false, false, false, 83), 'widget');
            echo "
        </div>

    ";
        }
        // line 87
        echo "
    <hr>

    ";
        // line 90
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 90, $this->source); })()), "save", [], "any", false, false, false, 90), 'widget');
        echo "

";
        // line 92
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 92, $this->source); })()), 'form_start');
        echo "

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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    public function getTemplateName()
    {
        return "absence/create.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  250 => 92,  245 => 90,  240 => 87,  233 => 83,  226 => 78,  224 => 77,  218 => 74,  211 => 69,  209 => 68,  203 => 65,  193 => 58,  185 => 52,  179 => 50,  173 => 48,  171 => 47,  160 => 39,  153 => 35,  147 => 31,  144 => 30,  138 => 28,  134 => 26,  131 => 25,  127 => 23,  124 => 22,  114 => 18,  110 => 16,  106 => 15,  103 => 14,  93 => 13,  81 => 9,  77 => 7,  75 => 6,  72 => 5,  69 => 4,  59 => 3,  36 => 1,);
    }

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

{% block title %}
    {% if omluvenka == 2 %}
        Suplování
    {% elseif omluvenka == 1 %}
        Omluvenka
    {% else %}
        Docházka
    {% endif %}
{% endblock %}

{% block body %}

    {% for message in app.flashes('danger') %}

        <div class=\"alert alert-danger\">
            {{ message }}
        </div>

    {% endfor %}
    {% if omluvenka == 2 %}
        <h3 class=\"h3 card-title mb-3 font-weight-normal\">Suplování</h3>
    {% else %}
        {% if predmet == null %}
            <h3 class=\"h3 card-title mb-3 font-weight-normal\">Absence</h3>
        {% else %}
            <h3 class=\"h3 card-title mb-3 font-weight-normal\">Absence - {{ predmet }}</h3>
        {% endif %}
    {% endif %}


    <hr>

    {{ form_start(form) }}

    <div class=\"input-group mb-3 justify-content-center\">
        <label class=\"btn btn-outline-primary\">
            {{ form_widget(form.chybi) }}
        </label>
    </div>

    <div class=\"input-group mb-3\">
        <div class=\"input-group-prepend\">
            <span class=\"input-group-text\">Jméno: </span>
        </div>
        {% if omluvenka == 2 %}
            {{ form_widget(form.ucitel) }}
        {% else %}
            {{ form_widget(form.zak) }}
        {% endif %}
    </div>

    <div class=\"input-group mb-3\">
        <div class=\"input-group-prepend\">
            <span class=\"input-group-text\">Datum: </span>
        </div>
        {{ form_widget(form.datum) }}
    </div>

    <div class=\"input-group mb-3\">
        <div class=\"input-group-prepend\">
            <span class=\"input-group-text\">Čas: </span>
        </div>
        {{ form_widget(form.doba) }}
    </div>

    {% if omluvenka == 1 %}

        <div class=\"input-group mb-3\">
        <div class=\"input-group-prepend\">
            <span class=\"input-group-text\">Omluvenka: </span>
        </div>
        {{ form_widget(form.poznamka) }}
        </div>

    {% elseif omluvenka == 2 %}

        <div class=\"input-group mb-3\">
            <div class=\"input-group-prepend\">
                <span class=\"input-group-text\">Suplující učitel: </span>
            </div>
            {{ form_widget(form.supl_ucitel) }}
        </div>

    {% endif %}

    <hr>

    {{ form_widget(form.save) }}

{{ form_start(form) }}

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