var/cache/dev/twig/c8/c891895ff2b1cc4b02d39f41decd1896136283d5637f80e3590f5c16cb8b12c9.php line 315

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* course/show/content.html.twig */
  14. class __TwigTemplate_446965f6278ae7ac154d8086b734d98e4114abca0ef577cadc27ad6ebf910c52 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""course/show/content.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""course/show/content.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"container course-detail\">
  35.     ";
  36.         // line 2
  37.         $this->loadTemplate("parts/flashes.html.twig""course/show/content.html.twig"2)->display($context);
  38.         // line 3
  39.         echo "    <div class=\"shadow-sm card\" style=\"margin: 0px;\">
  40.         <div class=\"card-header\">
  41.             <div class=\"card-title d-flex flex-row align-items-end justify-content-between\">
  42.                 <h1>";
  43.         // line 6
  44.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'6$this->source); })()), "name", [], "any"falsefalsefalse6), "html"nulltrue);
  45.         echo "</h1>
  46.                 ";
  47.         // line 7
  48.         $this->loadTemplate("course/icons.html.twig""course/show/content.html.twig"7)->display(twig_array_merge($context, ["icons" => twig_get_attribute($this->env$this->source, (isset($context["GlobalUtil"]) || array_key_exists("GlobalUtil"$context) ? $context["GlobalUtil"] : (function () { throw new RuntimeError('Variable "GlobalUtil" does not exist.'7$this->source); })()), "getCourseIcons", [=> (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'7$this->source); })())], "method"falsefalsefalse7)]));
  49.         // line 8
  50.         echo "            </div>
  51.         </div>
  52.         <div class=\"card-body\">
  53.             <div class=\"row\">
  54.                 ";
  55.         // line 12
  56.         $this->loadTemplate("course/parts/length.html.twig""course/show/content.html.twig"12)->display(twig_array_merge($context, ["course" => (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'12$this->source); })()), "gridClass" => "col-lg-3"]));
  57.         // line 13
  58.         echo "                ";
  59.         $this->loadTemplate("course/parts/registered_users.html.twig""course/show/content.html.twig"13)->display(twig_array_merge($context, ["course" => (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'13$this->source); })()), "gridClass" => "col-lg-3"]));
  60.         // line 14
  61.         echo "                ";
  62.         $this->loadTemplate("course/parts/place.html.twig""course/show/content.html.twig"14)->display(twig_array_merge($context, ["course" => (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'14$this->source); })()), "gridClass" => "col-lg-3"]));
  63.         // line 15
  64.         echo "            </div>
  65.             <div class=\"row mt-3 mb-3\">
  66.                 <div class=\"col-12\">
  67.                     ";
  68.         // line 18
  69.         echo twig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'18$this->source); })()), "description", [], "any"falsefalsefalse18);
  70.         echo "
  71.                 </div>
  72.             </div>
  73.             <div class=\"row mt-3 mb-3\">
  74.                 <div class=\"col-12\">
  75.                     ";
  76.         // line 23
  77.         $this->loadTemplate("course/parts/params.html.twig""course/show/content.html.twig"23)->display(twig_array_merge($context, ["course" => (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'23$this->source); })())]));
  78.         // line 24
  79.         echo "                </div>
  80.             </div>
  81.             <div class=\"row mt-3 mb-2\">
  82.                 <div class=\"col-12\">
  83.                     ";
  84.         // line 29
  85.         $this->loadTemplate("course/parts/organizer_link.html.twig""course/show/content.html.twig"29)->display(twig_array_merge($context, ["course" => (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'29$this->source); })())]));
  86.         // line 30
  87.         echo "                </div>
  88.             </div>
  89.         </div>
  90.     </div>
  91.     <div class=\"row mt-3 mb-2\">
  92.         ";
  93.         // line 36
  94.         $context['_parent'] = $context;
  95.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'36$this->source); })()), "terms", [], "any"falsefalsefalse36));
  96.         foreach ($context['_seq'] as $context["_key"] => $context["courseTerm"]) {
  97.             // line 37
  98.             echo "            ";
  99.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["courseTerm"], "state", [], "any"falsefalsefalse37), "identifier", [], "any"falsefalsefalse37) == "ongoing")) {
  100.                 // line 38
  101.                 echo "                <div class=\"col-md-4 mb-4\">
  102.                     <div class=\"panel panel-danger\">
  103.                         <div class=\"panel-heading\">
  104.                             <h4 class=\"text-center\">";
  105.                 // line 41
  106.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["courseTerm"], "start", [], "any"falsefalsefalse41), "j. n. Y"), "html"nulltrue);
  107.                 echo "
  108.                             ";
  109.                 // line 42
  110.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["courseTerm"], "end", [], "any"falsefalsefalse42))) {
  111.                     // line 43
  112.                     echo "                                - ";
  113.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["courseTerm"], "end", [], "any"falsefalsefalse43), "j. n. Y"), "html"nulltrue);
  114.                     echo "
  115.                             ";
  116.                 }
  117.                 // line 45
  118.                 echo "                            </h4>
  119.                         </div>
  120.                         ";
  121.                 // line 47
  122.                 if (twig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'47$this->source); })()), "price", [], "any"falsefalsefalse47)) {
  123.                     // line 48
  124.                     echo "                            <div class=\"panel-body text-center\">
  125.                                 <p class=\"lead\">
  126.                                     <strong>
  127.                                         ";
  128.                     // line 51
  129.                     echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatCurrency(twig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'51$this->source); })()), "price", [], "any"falsefalsefalse51), "CZK"), "html"nulltrue);
  130.                     echo "
  131.                                     </strong>
  132.                                     ";
  133.                     // line 53
  134.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'53$this->source); })()), "priceDescription", [], "any"falsefalsefalse53), "html"nulltrue);
  135.                     echo "
  136.                                 </p>
  137.                             </div>
  138.                         ";
  139.                 }
  140.                 // line 57
  141.                 echo "
  142.                         <ul class=\"list-group list-group-flush text-center\">
  143.                             <li class=\"list-group-item\"><i
  144.                                         class=\"icon-ok text-danger\"></i></li>
  145.                             <li class=\"list-group-item\">
  146.                                 ";
  147.                 // line 64
  148.                 if (twig_get_attribute($this->env$this->source$context["courseTerm"], "isRegistrationActive", [], "method"falsefalsefalse64)) {
  149.                     // line 65
  150.                     echo "                                    Registrace probíhá do ";
  151.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["courseTerm"], "registrationEnd", [], "any"falsefalsefalse65), "d.m.Y"), "html"nulltrue);
  152.                     echo "
  153.                                 ";
  154.                 } else {
  155.                     // line 67
  156.                     echo "                                    ";
  157.                     if (twig_get_attribute($this->env$this->source$context["courseTerm"], "hasRegistrationEnd", [], "any"falsefalsefalse67)) {
  158.                         // line 68
  159.                         echo "                                        Registrace již neprobíhá
  160.                                     ";
  161.                     } else {
  162.                         // line 70
  163.                         echo "                                        Registrace od ";
  164.                         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["courseTerm"], "registrationStart", [], "any"falsefalsefalse70), "d.m.Y"), "html"nulltrue);
  165.                         echo " do ";
  166.                         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["courseTerm"], "registrationEnd", [], "any"falsefalsefalse70), "d.m.Y"), "html"nulltrue);
  167.                         echo "
  168.                                     ";
  169.                     }
  170.                     // line 72
  171.                     echo "                                ";
  172.                 }
  173.                 // line 73
  174.                 echo "                            </li>
  175.                             <li class=\"list-group-item\"><i class=\"icon-ok text-danger\"></i>Minimální počet
  176.                                 účastníků: ";
  177.                 // line 76
  178.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["courseTerm"], "minimumNumberOfPersons", [], "any"falsefalsefalse76))) {
  179.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["courseTerm"], "minimumNumberOfPersons", [], "any"falsefalsefalse76), "html"nulltrue);
  180.                 } else {
  181.                     echo "není omezeno";
  182.                 }
  183.                 // line 77
  184.                 echo "                            </li>
  185.                             ";
  186.                 // line 78
  187.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["courseTerm"], "maximumNumberOfPersons", [], "any"falsefalsefalse78))) {
  188.                     // line 79
  189.                     echo "                                <li class=\"list-group-item\" style=\"height: 40px;\"><i
  190.                                             class=\"icon-ok text-danger\"></i>Počet
  191.                                     míst: ";
  192.                     // line 81
  193.                     echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["courseTerm"], "registrations", [], "any"falsefalsefalse81)), "html"nulltrue);
  194.                     echo "
  195.                                     / ";
  196.                     // line 82
  197.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["courseTerm"], "maximumNumberOfPersons", [], "any"falsefalsefalse82), "html"nulltrue);
  198.                     echo "</li>
  199.                             ";
  200.                 } else {
  201.                     // line 84
  202.                     echo "                                <li class=\"list-group-item\" style=\"height: 40px;\"></li>
  203.                             ";
  204.                 }
  205.                 // line 86
  206.                 echo "                        </ul>
  207.                         ";
  208.                 // line 88
  209.                 if ((((twig_test_empty(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.'88$this->source); })()), "user", [], "any"falsefalsefalse88)) || twig_get_attribute($this->env$this->sourcetwig_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.'88$this->source); })()), "user", [], "any"falsefalsefalse88), "hasRole", [=> "ROLE_APPLICANT"], "method"falsefalsefalse88)) && twig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'88$this->source); })()), "canRegister", [], "method"falsefalsefalse88)) && twig_get_attribute($this->env$this->source$context["courseTerm"], "canRegister", [], "method"falsefalsefalse88))) {
  210.                     // line 89
  211.                     echo "                            <div class=\"panel-footer text-center\">
  212.                                 <a class=\"btn btn-lg btn-block btn-primary\"
  213.                                    href=\"";
  214.                     // line 91
  215.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("course_registration", ["id" => twig_get_attribute($this->env$this->source$context["courseTerm"], "id", [], "any"falsefalsefalse91)]), "html"nulltrue);
  216.                     echo "\">Rezervovat
  217.                                     místo</a>
  218.                             </div>
  219.                         ";
  220.                 }
  221.                 // line 95
  222.                 echo "                        ";
  223.                 if (((( !twig_test_empty(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.'95$this->source); })()), "user", [], "any"falsefalsefalse95)) && twig_get_attribute($this->env$this->sourcetwig_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.'95$this->source); })()), "user", [], "any"falsefalsefalse95), "hasRole", [=> "ROLE_APPLICANT_COMPANY"], "method"falsefalsefalse95)) && twig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'95$this->source); })()), "canRegister", [], "method"falsefalsefalse95)) && twig_get_attribute($this->env$this->source$context["courseTerm"], "canRegister", [], "method"falsefalsefalse95))) {
  224.                     // line 96
  225.                     echo "                            <div class=\"panel-footer text-center\">
  226.                                 <a class=\"btn btn-lg btn-block btn-primary\"
  227.                                    href=\"";
  228.                     // line 98
  229.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("course_registration_company", ["id" => twig_get_attribute($this->env$this->source$context["courseTerm"], "id", [], "any"falsefalsefalse98)]), "html"nulltrue);
  230.                     echo "\">Rezervovat
  231.                                     místo</a>
  232.                             </div>
  233.                         ";
  234.                 }
  235.                 // line 102
  236.                 echo "                    </div>
  237.                 </div>
  238.             ";
  239.             }
  240.             // line 105
  241.             echo "        ";
  242.         }
  243.         $_parent $context['_parent'];
  244.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['courseTerm'], $context['_parent'], $context['loop']);
  245.         $context array_intersect_key($context$_parent) + $_parent;
  246.         // line 106
  247.         echo "        ";
  248.         if (twig_get_attribute($this->env$this->source, (isset($context["GlobalUtil"]) || array_key_exists("GlobalUtil"$context) ? $context["GlobalUtil"] : (function () { throw new RuntimeError('Variable "GlobalUtil" does not exist.'106$this->source); })()), "isOrganizerOfCourse", [=> (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'106$this->source); })())], "method"falsefalsefalse106)) {
  249.             // line 107
  250.             echo "            <div class=\"col-md-4 mb-4\">
  251.                 <a href=\"";
  252.             // line 108
  253.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("course_terms_new", ["id" => twig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'108$this->source); })()), "id", [], "any"falsefalsefalse108)]), "html"nulltrue);
  254.             echo "\" class=\"btn btn-primary\">Přidat
  255.                     termín</a>
  256.             </div>
  257.         ";
  258.         }
  259.         // line 112
  260.         echo "    </div>
  261.     <div class=\"row mt-4\">
  262.         ";
  263.         // line 116
  264.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'116$this->source); })()), "reviews", [], "any"falsefalsefalse116)) > 0)) {
  265.             // line 117
  266.             echo "            <div class=\"col-6 ps-5\">
  267.                 <a href=\"#panelsStayOpen-collapseOne\" aria-controls=\"panelsStayOpen-collapseOne\"
  268.                    data-bs-toggle=\"collapse\" data-state=\"show\" class=\"fs-7 course-form-collapse-link\"
  269.                    data-current-state=\"hide\" data-text-show=\"Zobrazit\" data-text-hide=\"Skrýt\" role=\"button\"
  270.                    aria-expanded=\"true\">zobrazit recenze <i class=\"fa fa-chevron-down\"></i> </a>
  271.             </div>
  272.         ";
  273.         }
  274.         // line 124
  275.         echo "    </div>
  276.     <div id=\"panelsStayOpen-collapseOne\" class=\"collapse\">
  277.         <div class=\"row\">
  278.             ";
  279.         // line 127
  280.         $context['_parent'] = $context;
  281.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'127$this->source); })()), "reviews", [], "any"falsefalsefalse127));
  282.         $context['loop'] = [
  283.           'parent' => $context['_parent'],
  284.           'index0' => 0,
  285.           'index'  => 1,
  286.           'first'  => true,
  287.         ];
  288.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  289.             $length count($context['_seq']);
  290.             $context['loop']['revindex0'] = $length 1;
  291.             $context['loop']['revindex'] = $length;
  292.             $context['loop']['length'] = $length;
  293.             $context['loop']['last'] = === $length;
  294.         }
  295.         foreach ($context['_seq'] as $context["_key"] => $context["review"]) {
  296.             // line 128
  297.             echo "                ";
  298.             $this->loadTemplate("review/default.html.twig""course/show/content.html.twig"128)->display(twig_array_merge($context, ["course" => (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'128$this->source); })()), "review" => $context["review"]]));
  299.             // line 129
  300.             echo "            ";
  301.             ++$context['loop']['index0'];
  302.             ++$context['loop']['index'];
  303.             $context['loop']['first'] = false;
  304.             if (isset($context['loop']['length'])) {
  305.                 --$context['loop']['revindex0'];
  306.                 --$context['loop']['revindex'];
  307.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  308.             }
  309.         }
  310.         $_parent $context['_parent'];
  311.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['review'], $context['_parent'], $context['loop']);
  312.         $context array_intersect_key($context$_parent) + $_parent;
  313.         // line 130
  314.         echo "        </div>
  315.     </div>
  316.     <div class=\"row mt-4\">
  317.         <div class=\"col-12 col-lg-4 mb-2\">
  318.             ";
  319.         // line 134
  320.         if (twig_get_attribute($this->env$this->source, (isset($context["GlobalUtil"]) || array_key_exists("GlobalUtil"$context) ? $context["GlobalUtil"] : (function () { throw new RuntimeError('Variable "GlobalUtil" does not exist.'134$this->source); })()), "isOrganizerOfCourse", [=> (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'134$this->source); })())], "method"falsefalsefalse134)) {
  321.             // line 135
  322.             echo "                <a href=\"";
  323.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("organizer_detail_reviews", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'135$this->source); })()), "organizer", [], "any"falsefalsefalse135), "id", [], "any"falsefalsefalse135)]), "html"nulltrue);
  324.             echo "\"
  325.                    class=\"btn btn-primary w-100 p-3\">Recenze kurzu</a>
  326.             ";
  327.         } else {
  328.             // line 138
  329.             echo "                <a href=\"";
  330.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("course_review_create", ["id" => twig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'138$this->source); })()), "id", [], "any"falsefalsefalse138)]), "html"nulltrue);
  331.             echo "\"
  332.                    class=\"btn btn-primary w-100 p-3\">Zapsat recenzi</a>
  333.             ";
  334.         }
  335.         // line 141
  336.         echo "        </div>
  337.         <div class=\"col-12 col-lg-4 mb-2\">
  338.             ";
  339.         // line 143
  340.         if (twig_get_attribute($this->env$this->source, (isset($context["CourseCompareUtil"]) || array_key_exists("CourseCompareUtil"$context) ? $context["CourseCompareUtil"] : (function () { throw new RuntimeError('Variable "CourseCompareUtil" does not exist.'143$this->source); })()), "isCourseInCompareList", [=> (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'143$this->source); })())], "method"falsefalsefalse143)) {
  341.             // line 144
  342.             echo "                <a href=\"";
  343.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("compare_remove", ["id" => twig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'144$this->source); })()), "id", [], "any"falsefalsefalse144)]), "html"nulltrue);
  344.             echo "\" class=\"btn btn-primary w-100 p-3\">Odebrat
  345.                     z porovnání</a>
  346.             ";
  347.         } else {
  348.             // line 147
  349.             echo "                <a href=\"";
  350.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("compare_add", ["id" => twig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'147$this->source); })()), "id", [], "any"falsefalsefalse147)]), "html"nulltrue);
  351.             echo "\" class=\"btn btn-primary w-100 p-3\">Přidat
  352.                     k porovnání</a>
  353.             ";
  354.         }
  355.         // line 150
  356.         echo "        </div>
  357.         <div class=\"col-12 col-lg-4 mb-2\">
  358.             ";
  359.         // line 152
  360.         if (twig_get_attribute($this->env$this->source, (isset($context["GlobalUtil"]) || array_key_exists("GlobalUtil"$context) ? $context["GlobalUtil"] : (function () { throw new RuntimeError('Variable "GlobalUtil" does not exist.'152$this->source); })()), "isOrganizerOfCourse", [=> (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'152$this->source); })())], "method"falsefalsefalse152)) {
  361.             // line 153
  362.             echo "                <a href=\"";
  363.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("course_edit", ["id" => twig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'153$this->source); })()), "id", [], "any"falsefalsefalse153)]), "html"nulltrue);
  364.             echo "\" class=\"btn btn-primary w-100 p-3\">Upravit kurz</a>
  365.             ";
  366.         } else {
  367.             // line 155
  368.             echo "                <a href=\"";
  369.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("course_alternative", ["id" => twig_get_attribute($this->env$this->source, (isset($context["course"]) || array_key_exists("course"$context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.'155$this->source); })()), "id", [], "any"falsefalsefalse155)]), "html"nulltrue);
  370.             echo "\" class=\"btn btn-primary w-100 p-3\">Najdi
  371.                     podobné</a>
  372.             ";
  373.         }
  374.         // line 158
  375.         echo "        </div>
  376.     </div>
  377. </div>
  378. ";
  379.         
  380.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  381.         
  382.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  383.     }
  384.     public function getTemplateName()
  385.     {
  386.         return "course/show/content.html.twig";
  387.     }
  388.     public function isTraitable()
  389.     {
  390.         return false;
  391.     }
  392.     public function getDebugInfo()
  393.     {
  394.         return array (  392 => 158,  385 => 155,  379 => 153,  377 => 152,  373 => 150,  366 => 147,  359 => 144,  357 => 143,  353 => 141,  346 => 138,  339 => 135,  337 => 134,  331 => 130,  317 => 129,  314 => 128,  297 => 127,  292 => 124,  283 => 117,  281 => 116,  275 => 112,  268 => 108,  265 => 107,  262 => 106,  256 => 105,  251 => 102,  244 => 98,  240 => 96,  237 => 95,  230 => 91,  226 => 89,  224 => 88,  220 => 86,  216 => 84,  211 => 82,  207 => 81,  203 => 79,  201 => 78,  198 => 77,  192 => 76,  187 => 73,  184 => 72,  176 => 70,  172 => 68,  169 => 67,  163 => 65,  161 => 64,  152 => 57,  145 => 53,  140 => 51,  135 => 48,  133 => 47,  129 => 45,  123 => 43,  121 => 42,  117 => 41,  112 => 38,  109 => 37,  105 => 36,  97 => 30,  95 => 29,  88 => 24,  86 => 23,  78 => 18,  73 => 15,  70 => 14,  67 => 13,  65 => 12,  59 => 8,  57 => 7,  53 => 6,  48 => 3,  46 => 2,  43 => 1,);
  395.     }
  396.     public function getSourceContext()
  397.     {
  398.         return new Source("<div class=\"container course-detail\">
  399.     {% include 'parts/flashes.html.twig' %}
  400.     <div class=\"shadow-sm card\" style=\"margin: 0px;\">
  401.         <div class=\"card-header\">
  402.             <div class=\"card-title d-flex flex-row align-items-end justify-content-between\">
  403.                 <h1>{{ course.name }}</h1>
  404.                 {% include 'course/icons.html.twig' with { 'icons': GlobalUtil.getCourseIcons(course)} %}
  405.             </div>
  406.         </div>
  407.         <div class=\"card-body\">
  408.             <div class=\"row\">
  409.                 {% include 'course/parts/length.html.twig' with {'course': course, 'gridClass': 'col-lg-3'} %}
  410.                 {% include 'course/parts/registered_users.html.twig' with {'course': course, 'gridClass': 'col-lg-3'} %}
  411.                 {% include 'course/parts/place.html.twig' with {'course': course, 'gridClass': 'col-lg-3'} %}
  412.             </div>
  413.             <div class=\"row mt-3 mb-3\">
  414.                 <div class=\"col-12\">
  415.                     {{ course.description | raw }}
  416.                 </div>
  417.             </div>
  418.             <div class=\"row mt-3 mb-3\">
  419.                 <div class=\"col-12\">
  420.                     {% include 'course/parts/params.html.twig' with {'course': course} %}
  421.                 </div>
  422.             </div>
  423.             <div class=\"row mt-3 mb-2\">
  424.                 <div class=\"col-12\">
  425.                     {% include 'course/parts/organizer_link.html.twig' with {'course': course} %}
  426.                 </div>
  427.             </div>
  428.         </div>
  429.     </div>
  430.     <div class=\"row mt-3 mb-2\">
  431.         {% for courseTerm in course.terms %}
  432.             {% if(courseTerm.state.identifier=='ongoing') %}
  433.                 <div class=\"col-md-4 mb-4\">
  434.                     <div class=\"panel panel-danger\">
  435.                         <div class=\"panel-heading\">
  436.                             <h4 class=\"text-center\">{{ courseTerm.start|date('j. n. Y') }}
  437.                             {% if(courseTerm.end is not empty) %}
  438.                                 - {{ courseTerm.end|date('j. n. Y') }}
  439.                             {% endif %}
  440.                             </h4>
  441.                         </div>
  442.                         {% if(course.price) %}
  443.                             <div class=\"panel-body text-center\">
  444.                                 <p class=\"lead\">
  445.                                     <strong>
  446.                                         {{ course.price|format_currency('CZK') }}
  447.                                     </strong>
  448.                                     {{ course.priceDescription }}
  449.                                 </p>
  450.                             </div>
  451.                         {% endif %}
  452.                         <ul class=\"list-group list-group-flush text-center\">
  453.                             <li class=\"list-group-item\"><i
  454.                                         class=\"icon-ok text-danger\"></i></li>
  455.                             <li class=\"list-group-item\">
  456.                                 {% if(courseTerm.isRegistrationActive()) %}
  457.                                     Registrace probíhá do {{ courseTerm.registrationEnd|date('d.m.Y') }}
  458.                                 {% else %}
  459.                                     {% if(courseTerm.hasRegistrationEnd) %}
  460.                                         Registrace již neprobíhá
  461.                                     {% else %}
  462.                                         Registrace od {{ courseTerm.registrationStart|date('d.m.Y') }} do {{ courseTerm.registrationEnd|date('d.m.Y') }}
  463.                                     {% endif %}
  464.                                 {% endif %}
  465.                             </li>
  466.                             <li class=\"list-group-item\"><i class=\"icon-ok text-danger\"></i>Minimální počet
  467.                                 účastníků: {% if(courseTerm.minimumNumberOfPersons is not empty) %}{{ courseTerm.minimumNumberOfPersons }}{% else %}není omezeno{% endif %}
  468.                             </li>
  469.                             {% if(courseTerm.maximumNumberOfPersons is not empty) %}
  470.                                 <li class=\"list-group-item\" style=\"height: 40px;\"><i
  471.                                             class=\"icon-ok text-danger\"></i>Počet
  472.                                     míst: {{ courseTerm.registrations|length }}
  473.                                     / {{ courseTerm.maximumNumberOfPersons }}</li>
  474.                             {% else %}
  475.                                 <li class=\"list-group-item\" style=\"height: 40px;\"></li>
  476.                             {% endif %}
  477.                         </ul>
  478.                         {% if((app.user is empty or app.user.hasRole('ROLE_APPLICANT')) and course.canRegister() and courseTerm.canRegister()) %}
  479.                             <div class=\"panel-footer text-center\">
  480.                                 <a class=\"btn btn-lg btn-block btn-primary\"
  481.                                    href=\"{{ path('course_registration', {'id': courseTerm.id}) }}\">Rezervovat
  482.                                     místo</a>
  483.                             </div>
  484.                         {% endif %}
  485.                         {% if(app.user is not empty and app.user.hasRole('ROLE_APPLICANT_COMPANY') and course.canRegister() and courseTerm.canRegister()) %}
  486.                             <div class=\"panel-footer text-center\">
  487.                                 <a class=\"btn btn-lg btn-block btn-primary\"
  488.                                    href=\"{{ path('course_registration_company', {'id': courseTerm.id}) }}\">Rezervovat
  489.                                     místo</a>
  490.                             </div>
  491.                         {% endif %}
  492.                     </div>
  493.                 </div>
  494.             {% endif %}
  495.         {% endfor %}
  496.         {% if(GlobalUtil.isOrganizerOfCourse(course)) %}
  497.             <div class=\"col-md-4 mb-4\">
  498.                 <a href=\"{{ path('course_terms_new', { id: course.id }) }}\" class=\"btn btn-primary\">Přidat
  499.                     termín</a>
  500.             </div>
  501.         {% endif %}
  502.     </div>
  503.     <div class=\"row mt-4\">
  504.         {% if(course.reviews|length>0) %}
  505.             <div class=\"col-6 ps-5\">
  506.                 <a href=\"#panelsStayOpen-collapseOne\" aria-controls=\"panelsStayOpen-collapseOne\"
  507.                    data-bs-toggle=\"collapse\" data-state=\"show\" class=\"fs-7 course-form-collapse-link\"
  508.                    data-current-state=\"hide\" data-text-show=\"Zobrazit\" data-text-hide=\"Skrýt\" role=\"button\"
  509.                    aria-expanded=\"true\">zobrazit recenze <i class=\"fa fa-chevron-down\"></i> </a>
  510.             </div>
  511.         {% endif %}
  512.     </div>
  513.     <div id=\"panelsStayOpen-collapseOne\" class=\"collapse\">
  514.         <div class=\"row\">
  515.             {% for review in course.reviews %}
  516.                 {% include 'review/default.html.twig' with {'course': course, 'review': review} %}
  517.             {% endfor %}
  518.         </div>
  519.     </div>
  520.     <div class=\"row mt-4\">
  521.         <div class=\"col-12 col-lg-4 mb-2\">
  522.             {% if(GlobalUtil.isOrganizerOfCourse(course)) %}
  523.                 <a href=\"{{ path('organizer_detail_reviews', {'id': course.organizer.id}) }}\"
  524.                    class=\"btn btn-primary w-100 p-3\">Recenze kurzu</a>
  525.             {% else %}
  526.                 <a href=\"{{ path('course_review_create', {'id': course.id}) }}\"
  527.                    class=\"btn btn-primary w-100 p-3\">Zapsat recenzi</a>
  528.             {% endif %}
  529.         </div>
  530.         <div class=\"col-12 col-lg-4 mb-2\">
  531.             {% if(CourseCompareUtil.isCourseInCompareList(course)) %}
  532.                 <a href=\"{{ path('compare_remove',{'id': course.id }) }}\" class=\"btn btn-primary w-100 p-3\">Odebrat
  533.                     z porovnání</a>
  534.             {% else %}
  535.                 <a href=\"{{ path('compare_add',{'id': course.id }) }}\" class=\"btn btn-primary w-100 p-3\">Přidat
  536.                     k porovnání</a>
  537.             {% endif %}
  538.         </div>
  539.         <div class=\"col-12 col-lg-4 mb-2\">
  540.             {% if(GlobalUtil.isOrganizerOfCourse(course)) %}
  541.                 <a href=\"{{ path('course_edit',{'id': course.id }) }}\" class=\"btn btn-primary w-100 p-3\">Upravit kurz</a>
  542.             {% else %}
  543.                 <a href=\"{{ path('course_alternative',{'id': course.id }) }}\" class=\"btn btn-primary w-100 p-3\">Najdi
  544.                     podobné</a>
  545.             {% endif %}
  546.         </div>
  547.     </div>
  548. </div>
  549. ""course/show/content.html.twig""/home/forge/vsechnykurzy.cz/templates/course/show/content.html.twig");
  550.     }
  551. }