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

        $this->parent = $this->loadTemplate("base.html.twig", "absence/all.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"));

        echo "Suplování";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    // line 5
    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 6
        echo "
    <h2>Seznam všech suplování</h2>

    <hr>

    <div class=\"shadow\" style=\"width: max-content;\">
        <table id=\"table\" data-toggle=\"table\" data-height=\"500\"
               class=\"table table-bordered table-borderless\">
            <thead class=\"thead-light\">
            <tr>
                <th> ID </th>
                <th> Datum </th>
                <th> Čas </th>
                <th> Předmět </th>
                <th> Supl. Učitel </th>
                <th> Chyb. Učitel </th>
                <th> Upravit </th>
                <th> Smazat </th>
            </tr>
            </thead>

            <tbody>


            ";
        // line 30
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["vysledek"]) || array_key_exists("vysledek", $context) ? $context["vysledek"] : (function () { throw new RuntimeError('Variable "vysledek" does not exist.', 30, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["s"]) {
            // line 31
            echo "

                    <tr style=\"transform: rotate(0);\">

                            <td scope=\"colgroup\" style=\"background-color: #808080; color: #f2f2f2\">
                                    ";
            // line 36
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["s"], 0, [], "array", false, false, false, 36), "id", [], "any", false, false, false, 36), "html", null, true);
            echo "
                            </td>


                        <td style=\"background-color: #bfbfbf\">
                                ";
            // line 41
            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["s"], 0, [], "array", false, false, false, 41), "absence", [], "any", false, false, false, 41), "datum", [], "any", false, false, false, 41), "d-m-Y"), "html", null, true);
            echo "
                        </td>

                        <td>
                            ";
            // line 45
            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, $context["s"], 0, [], "array", false, false, false, 45), "absence", [], "any", false, false, false, 45), "doba", [], "any", false, false, false, 45), "html", null, true);
            echo "
                        </td>

                        <td>
                            ";
            // line 49
            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, $context["s"], 0, [], "array", false, false, false, 49), "absence", [], "any", false, false, false, 49), "predmet", [], "any", false, false, false, 49), "html", null, true);
            echo "
                        </td>

                        <td>
                            ";
            // line 53
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["s"], 0, [], "array", false, false, false, 53), "ucitel", [], "any", false, false, false, 53), "html", null, true);
            echo "
                        </td>

                        <td>
                            ";
            // line 57
            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, $context["s"], 0, [], "array", false, false, false, 57), "absence", [], "any", false, false, false, 57), "ucitele", [], "any", false, false, false, 57), "html", null, true);
            echo "
                        </td>

                        <td>
                            <a href=\"";
            // line 61
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("absence.createUc", ["date" => twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["s"], 0, [], "array", false, false, false, 61), "absence", [], "any", false, false, false, 61), "datum", [], "any", false, false, false, 61), "d-m-Y"), "doba" => 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, $context["s"], 0, [], "array", false, false, false, 61), "absence", [], "any", false, false, false, 61), "doba", [], "any", false, false, false, 61), "id", [], "any", false, false, false, 61), "predmet" => 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, $context["s"], 0, [], "array", false, false, false, 61), "absence", [], "any", false, false, false, 61), "predmet", [], "any", false, false, false, 61), "id", [], "any", false, false, false, 61), "ucitel" => 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, $context["s"], 0, [], "array", false, false, false, 61), "absence", [], "any", false, false, false, 61), "ucitele", [], "any", false, false, false, 61), "id", [], "any", false, false, false, 61)]), "html", null, true);
            echo "\"
                               class=\"btn btn-outline-info btn-group\">
                                Upravit
                            </a>
                        </td>

                        <td>
                            <a href=\"";
            // line 68
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("absence.delete", ["suplovani" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["s"], 0, [], "array", false, false, false, 68), "id", [], "any", false, false, false, 68)]), "html", null, true);
            echo "\"
                               class=\"btn btn-outline-danger btn-group\">
                                Smazat
                            </a>
                        </td>

                    </tr>

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

    <hr>

    <div class=\"text-left\">
        ";
        // line 85
        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.', 85, $this->source); })()), 'form_start');
        echo "

        <div class=\"input-group mb-3\">
            <div class=\"input-group-prepend\">
                <span class=\"input-group-text\">Od: </span>
            </div>
            ";
        // line 91
        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.', 91, $this->source); })()), "dateZ", [], "any", false, false, false, 91), 'widget');
        echo "
        </div>
        <div class=\"input-group mb-3\">
            <div class=\"input-group-prepend\">
                <span class=\"input-group-text\">Do: </span>
            </div>
            ";
        // line 97
        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.', 97, $this->source); })()), "dateK", [], "any", false, false, false, 97), 'widget');
        echo "
        </div>

        ";
        // line 100
        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.', 100, $this->source); })()), "save", [], "any", false, false, false, 100), 'widget');
        echo "

        ";
        // line 102
        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.', 102, $this->source); })()), 'form_end');
        echo "
    </div>

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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  232 => 102,  227 => 100,  221 => 97,  212 => 91,  203 => 85,  193 => 77,  178 => 68,  168 => 61,  161 => 57,  154 => 53,  147 => 49,  140 => 45,  133 => 41,  125 => 36,  118 => 31,  114 => 30,  88 => 6,  78 => 5,  59 => 3,  36 => 1,);
    }

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

{% block title %}Suplování{% endblock %}

{% block body %}

    <h2>Seznam všech suplování</h2>

    <hr>

    <div class=\"shadow\" style=\"width: max-content;\">
        <table id=\"table\" data-toggle=\"table\" data-height=\"500\"
               class=\"table table-bordered table-borderless\">
            <thead class=\"thead-light\">
            <tr>
                <th> ID </th>
                <th> Datum </th>
                <th> Čas </th>
                <th> Předmět </th>
                <th> Supl. Učitel </th>
                <th> Chyb. Učitel </th>
                <th> Upravit </th>
                <th> Smazat </th>
            </tr>
            </thead>

            <tbody>


            {% for s in vysledek %}


                    <tr style=\"transform: rotate(0);\">

                            <td scope=\"colgroup\" style=\"background-color: #808080; color: #f2f2f2\">
                                    {{ s[0].id }}
                            </td>


                        <td style=\"background-color: #bfbfbf\">
                                {{ s[0].absence.datum|date('d-m-Y') }}
                        </td>

                        <td>
                            {{ s[0].absence.doba }}
                        </td>

                        <td>
                            {{ s[0].absence.predmet }}
                        </td>

                        <td>
                            {{ s[0].ucitel }}
                        </td>

                        <td>
                            {{ s[0].absence.ucitele }}
                        </td>

                        <td>
                            <a href=\"{{ path('absence.createUc', {date: s[0].absence.datum|date('d-m-Y'), doba: s[0].absence.doba.id, predmet: s[0].absence.predmet.id, ucitel: s[0].absence.ucitele.id }) }}\"
                               class=\"btn btn-outline-info btn-group\">
                                Upravit
                            </a>
                        </td>

                        <td>
                            <a href=\"{{ path('absence.delete', {suplovani: s[0].id }) }}\"
                               class=\"btn btn-outline-danger btn-group\">
                                Smazat
                            </a>
                        </td>

                    </tr>

            {% endfor %}

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

    <hr>

    <div class=\"text-left\">
        {{ form_start(form) }}

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

        {{ form_widget(form.save) }}

        {{ form_end(form) }}
    </div>

{% endblock %}

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