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

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

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

        echo "Zprávy";
        
        $__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>Zprávy</h2>

    <hr>
        <div class=\"btn-group\">
            <a href=\"";
        // line 11
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("zprava.create", ["prijemce" => 2]);
        echo "\" class=\"btn btn-outline-primary float-left\">Nová Zpráva</a>
        </div>
    <hr>

    <div class=\"shadow-lg\" style=\"min-width: 1000px\">
        <div class=\"card\">
            <div class=\"card-header\">
                <ul class=\"nav nav-tabs card-header-tabs\">
                    <li class=\"nav-item\">
                        <a class=\"nav-link active\" href=\"";
        // line 20
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("zprava.index");
        echo "\">Doručené Zprávy</a>
                    </li>
                    <li class=\"nav-item\">
                        <a class=\"nav-link\" href=\"";
        // line 23
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("zprava.odeslane");
        echo "\">Odeslané Zprávy</a>
                    </li>
                </ul>
            </div>

            <div class=\"tab-content\">
                <div id=\"tridy\" class=\"card-body tab-pane active\">

                    <br>

                    <main id=\"accordion\">

                        ";
        // line 35
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["zpravy"]) || array_key_exists("zpravy", $context) ? $context["zpravy"] : (function () { throw new RuntimeError('Variable "zpravy" does not exist.', 35, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["zprava"]) {
            // line 36
            echo "
                            <section id=\"";
            // line 37
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["zprava"], "id", [], "any", false, false, false, 37), "html", null, true);
            echo "\" class=\"card shadow\">
                                <a href=\"";
            // line 38
            echo twig_escape_filter($this->env, ("#" . twig_get_attribute($this->env, $this->source, $context["zprava"], "id", [], "any", false, false, false, 38)), "html", null, true);
            echo "\" class=\"card-header\"><h5
                                            class=\"card-title h6\">";
            // line 39
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["zprava"], "predmet", [], "any", false, false, false, 39), "html", null, true);
            echo "</h5></a>
                                <div class=\"card-body shadow-sm\">
                                <div class=\"input-group mb-3\">
                                    <div class=\"input-group-prepend\">
                                        <span class=\"input-group-text\" id=\"basic-addon1\">Od: ";
            // line 43
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["zprava"], "odesilatel", [], "any", false, false, false, 43), "html", null, true);
            echo "</span>
                                    </div>
                                </div>

                                    <div class=\"input-group mb-3\">
                                        <div class=\"input-group-prepend\">
                                            <span class=\"input-group-text\">Datum odeslání: ";
            // line 49
            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["zprava"], "datodesl", [], "any", false, false, false, 49), "d-m-Y"), "html", null, true);
            echo "</span>
                                        </div>
                                    </div>

                                    <textarea readonly class=\"form-control\" aria-label=\"textarea\" rows=\"6\">
                                            ";
            // line 54
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["zprava"], "text", [], "any", false, false, false, 54), "html", null, true);
            echo "
                                    </textarea>

                                        <br>

                                    <a href=\"";
            // line 59
            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, $context["zprava"], "odesilatel", [], "any", false, false, false, 59), "id", [], "any", false, false, false, 59)]), "html", null, true);
            echo "\" class=\"btn btn-outline-primary float-left\">Odpovědět</a>

                                </div>
                            </section>

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



    <style>
        #accordion section div {
            display: none;
            text-align: center;
        }

        #accordion section a {
            text-align: center;
            color: black;
            text-decoration: none;
        }

        #accordion section a:hover {
            text-decoration: none;
        }

        #accordion section:target div {
            display: block;
        }

    </style>

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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  187 => 65,  175 => 59,  167 => 54,  159 => 49,  150 => 43,  143 => 39,  139 => 38,  135 => 37,  132 => 36,  128 => 35,  113 => 23,  107 => 20,  95 => 11,  88 => 6,  78 => 5,  59 => 3,  36 => 1,);
    }

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

{% block title %}Zprávy{% endblock %}

{% block body %}

    <h2>Zprávy</h2>

    <hr>
        <div class=\"btn-group\">
            <a href=\"{{ path('zprava.create', {prijemce: 2}) }}\" class=\"btn btn-outline-primary float-left\">Nová Zpráva</a>
        </div>
    <hr>

    <div class=\"shadow-lg\" style=\"min-width: 1000px\">
        <div class=\"card\">
            <div class=\"card-header\">
                <ul class=\"nav nav-tabs card-header-tabs\">
                    <li class=\"nav-item\">
                        <a class=\"nav-link active\" href=\"{{ path('zprava.index') }}\">Doručené Zprávy</a>
                    </li>
                    <li class=\"nav-item\">
                        <a class=\"nav-link\" href=\"{{ path('zprava.odeslane') }}\">Odeslané Zprávy</a>
                    </li>
                </ul>
            </div>

            <div class=\"tab-content\">
                <div id=\"tridy\" class=\"card-body tab-pane active\">

                    <br>

                    <main id=\"accordion\">

                        {% for zprava in zpravy %}

                            <section id=\"{{ zprava.id }}\" class=\"card shadow\">
                                <a href=\"{{ '#' ~ zprava.id }}\" class=\"card-header\"><h5
                                            class=\"card-title h6\">{{ zprava.predmet }}</h5></a>
                                <div class=\"card-body shadow-sm\">
                                <div class=\"input-group mb-3\">
                                    <div class=\"input-group-prepend\">
                                        <span class=\"input-group-text\" id=\"basic-addon1\">Od: {{ zprava.odesilatel }}</span>
                                    </div>
                                </div>

                                    <div class=\"input-group mb-3\">
                                        <div class=\"input-group-prepend\">
                                            <span class=\"input-group-text\">Datum odeslání: {{ zprava.datodesl|date('d-m-Y') }}</span>
                                        </div>
                                    </div>

                                    <textarea readonly class=\"form-control\" aria-label=\"textarea\" rows=\"6\">
                                            {{ zprava.text }}
                                    </textarea>

                                        <br>

                                    <a href=\"{{ path('zprava.create', {prijemce: zprava.odesilatel.id}) }}\" class=\"btn btn-outline-primary float-left\">Odpovědět</a>

                                </div>
                            </section>

                        {% endfor %}

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



    <style>
        #accordion section div {
            display: none;
            text-align: center;
        }

        #accordion section a {
            text-align: center;
            color: black;
            text-decoration: none;
        }

        #accordion section a:hover {
            text-decoration: none;
        }

        #accordion section:target div {
            display: block;
        }

    </style>

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