<?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;
/* course/show/content.html.twig */
class __TwigTemplate_446965f6278ae7ac154d8086b734d98e4114abca0ef577cadc27ad6ebf910c52 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "course/show/content.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "course/show/content.html.twig"));
// line 1
echo "<div class=\"container course-detail\">
";
// line 2
$this->loadTemplate("parts/flashes.html.twig", "course/show/content.html.twig", 2)->display($context);
// line 3
echo " <div class=\"shadow-sm card\" style=\"margin: 0px;\">
<div class=\"card-header\">
<div class=\"card-title d-flex flex-row align-items-end justify-content-between\">
<h1>";
// line 6
echo twig_escape_filter($this->env, 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.', 6, $this->source); })()), "name", [], "any", false, false, false, 6), "html", null, true);
echo "</h1>
";
// line 7
$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", [0 => (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 7, $this->source); })())], "method", false, false, false, 7)]));
// line 8
echo " </div>
</div>
<div class=\"card-body\">
<div class=\"row\">
";
// line 12
$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"]));
// line 13
echo " ";
$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"]));
// line 14
echo " ";
$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"]));
// line 15
echo " </div>
<div class=\"row mt-3 mb-3\">
<div class=\"col-12\">
";
// line 18
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", false, false, false, 18);
echo "
</div>
</div>
<div class=\"row mt-3 mb-3\">
<div class=\"col-12\">
";
// line 23
$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); })())]));
// line 24
echo " </div>
</div>
<div class=\"row mt-3 mb-2\">
<div class=\"col-12\">
";
// line 29
$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); })())]));
// line 30
echo " </div>
</div>
</div>
</div>
<div class=\"row mt-3 mb-2\">
";
// line 36
$context['_parent'] = $context;
$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", false, false, false, 36));
foreach ($context['_seq'] as $context["_key"] => $context["courseTerm"]) {
// line 37
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["courseTerm"], "state", [], "any", false, false, false, 37), "identifier", [], "any", false, false, false, 37) == "ongoing")) {
// line 38
echo " <div class=\"col-md-4 mb-4\">
<div class=\"panel panel-danger\">
<div class=\"panel-heading\">
<h4 class=\"text-center\">";
// line 41
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["courseTerm"], "start", [], "any", false, false, false, 41), "j. n. Y"), "html", null, true);
echo "
";
// line 42
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["courseTerm"], "end", [], "any", false, false, false, 42))) {
// line 43
echo " - ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["courseTerm"], "end", [], "any", false, false, false, 43), "j. n. Y"), "html", null, true);
echo "
";
}
// line 45
echo " </h4>
</div>
";
// line 47
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", false, false, false, 47)) {
// line 48
echo " <div class=\"panel-body text-center\">
<p class=\"lead\">
<strong>
";
// line 51
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", false, false, false, 51), "CZK"), "html", null, true);
echo "
</strong>
";
// line 53
echo twig_escape_filter($this->env, 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.', 53, $this->source); })()), "priceDescription", [], "any", false, false, false, 53), "html", null, true);
echo "
</p>
</div>
";
}
// line 57
echo "
<ul class=\"list-group list-group-flush text-center\">
<li class=\"list-group-item\"><i
class=\"icon-ok text-danger\"></i></li>
<li class=\"list-group-item\">
";
// line 64
if (twig_get_attribute($this->env, $this->source, $context["courseTerm"], "isRegistrationActive", [], "method", false, false, false, 64)) {
// line 65
echo " Registrace probíhá do ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["courseTerm"], "registrationEnd", [], "any", false, false, false, 65), "d.m.Y"), "html", null, true);
echo "
";
} else {
// line 67
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["courseTerm"], "hasRegistrationEnd", [], "any", false, false, false, 67)) {
// line 68
echo " Registrace již neprobíhá
";
} else {
// line 70
echo " Registrace od ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["courseTerm"], "registrationStart", [], "any", false, false, false, 70), "d.m.Y"), "html", null, true);
echo " do ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["courseTerm"], "registrationEnd", [], "any", false, false, false, 70), "d.m.Y"), "html", null, true);
echo "
";
}
// line 72
echo " ";
}
// line 73
echo " </li>
<li class=\"list-group-item\"><i class=\"icon-ok text-danger\"></i>Minimální počet
účastníků: ";
// line 76
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["courseTerm"], "minimumNumberOfPersons", [], "any", false, false, false, 76))) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["courseTerm"], "minimumNumberOfPersons", [], "any", false, false, false, 76), "html", null, true);
} else {
echo "není omezeno";
}
// line 77
echo " </li>
";
// line 78
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["courseTerm"], "maximumNumberOfPersons", [], "any", false, false, false, 78))) {
// line 79
echo " <li class=\"list-group-item\" style=\"height: 40px;\"><i
class=\"icon-ok text-danger\"></i>Počet
míst: ";
// line 81
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["courseTerm"], "registrations", [], "any", false, false, false, 81)), "html", null, true);
echo "
/ ";
// line 82
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["courseTerm"], "maximumNumberOfPersons", [], "any", false, false, false, 82), "html", null, true);
echo "</li>
";
} else {
// line 84
echo " <li class=\"list-group-item\" style=\"height: 40px;\"></li>
";
}
// line 86
echo " </ul>
";
// line 88
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", false, false, false, 88)) || twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 88, $this->source); })()), "user", [], "any", false, false, false, 88), "hasRole", [0 => "ROLE_APPLICANT"], "method", false, false, false, 88)) && 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", false, false, false, 88)) && twig_get_attribute($this->env, $this->source, $context["courseTerm"], "canRegister", [], "method", false, false, false, 88))) {
// line 89
echo " <div class=\"panel-footer text-center\">
<a class=\"btn btn-lg btn-block btn-primary\"
href=\"";
// line 91
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", false, false, false, 91)]), "html", null, true);
echo "\">Rezervovat
místo</a>
</div>
";
}
// line 95
echo " ";
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", false, false, false, 95)) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 95, $this->source); })()), "user", [], "any", false, false, false, 95), "hasRole", [0 => "ROLE_APPLICANT_COMPANY"], "method", false, false, false, 95)) && 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", false, false, false, 95)) && twig_get_attribute($this->env, $this->source, $context["courseTerm"], "canRegister", [], "method", false, false, false, 95))) {
// line 96
echo " <div class=\"panel-footer text-center\">
<a class=\"btn btn-lg btn-block btn-primary\"
href=\"";
// line 98
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", false, false, false, 98)]), "html", null, true);
echo "\">Rezervovat
místo</a>
</div>
";
}
// line 102
echo " </div>
</div>
";
}
// line 105
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['courseTerm'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 106
echo " ";
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", [0 => (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 106, $this->source); })())], "method", false, false, false, 106)) {
// line 107
echo " <div class=\"col-md-4 mb-4\">
<a href=\"";
// line 108
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", false, false, false, 108)]), "html", null, true);
echo "\" class=\"btn btn-primary\">Přidat
termín</a>
</div>
";
}
// line 112
echo " </div>
<div class=\"row mt-4\">
";
// line 116
if ((twig_length_filter($this->env, 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.', 116, $this->source); })()), "reviews", [], "any", false, false, false, 116)) > 0)) {
// line 117
echo " <div class=\"col-6 ps-5\">
<a href=\"#panelsStayOpen-collapseOne\" aria-controls=\"panelsStayOpen-collapseOne\"
data-bs-toggle=\"collapse\" data-state=\"show\" class=\"fs-7 course-form-collapse-link\"
data-current-state=\"hide\" data-text-show=\"Zobrazit\" data-text-hide=\"Skrýt\" role=\"button\"
aria-expanded=\"true\">zobrazit recenze <i class=\"fa fa-chevron-down\"></i> </a>
</div>
";
}
// line 124
echo " </div>
<div id=\"panelsStayOpen-collapseOne\" class=\"collapse\">
<div class=\"row\">
";
// line 127
$context['_parent'] = $context;
$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", false, false, false, 127));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["review"]) {
// line 128
echo " ";
$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"]]));
// line 129
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['review'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 130
echo " </div>
</div>
<div class=\"row mt-4\">
<div class=\"col-12 col-lg-4 mb-2\">
";
// line 134
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", [0 => (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 134, $this->source); })())], "method", false, false, false, 134)) {
// line 135
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("organizer_detail_reviews", ["id" => twig_get_attribute($this->env, $this->source, 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.', 135, $this->source); })()), "organizer", [], "any", false, false, false, 135), "id", [], "any", false, false, false, 135)]), "html", null, true);
echo "\"
class=\"btn btn-primary w-100 p-3\">Recenze kurzu</a>
";
} else {
// line 138
echo " <a href=\"";
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", false, false, false, 138)]), "html", null, true);
echo "\"
class=\"btn btn-primary w-100 p-3\">Zapsat recenzi</a>
";
}
// line 141
echo " </div>
<div class=\"col-12 col-lg-4 mb-2\">
";
// line 143
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", [0 => (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 143, $this->source); })())], "method", false, false, false, 143)) {
// line 144
echo " <a href=\"";
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", false, false, false, 144)]), "html", null, true);
echo "\" class=\"btn btn-primary w-100 p-3\">Odebrat
z porovnání</a>
";
} else {
// line 147
echo " <a href=\"";
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", false, false, false, 147)]), "html", null, true);
echo "\" class=\"btn btn-primary w-100 p-3\">Přidat
k porovnání</a>
";
}
// line 150
echo " </div>
<div class=\"col-12 col-lg-4 mb-2\">
";
// line 152
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", [0 => (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 152, $this->source); })())], "method", false, false, false, 152)) {
// line 153
echo " <a href=\"";
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", false, false, false, 153)]), "html", null, true);
echo "\" class=\"btn btn-primary w-100 p-3\">Upravit kurz</a>
";
} else {
// line 155
echo " <a href=\"";
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", false, false, false, 155)]), "html", null, true);
echo "\" class=\"btn btn-primary w-100 p-3\">Najdi
podobné</a>
";
}
// line 158
echo " </div>
</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "course/show/content.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<div class=\"container course-detail\">
{% include 'parts/flashes.html.twig' %}
<div class=\"shadow-sm card\" style=\"margin: 0px;\">
<div class=\"card-header\">
<div class=\"card-title d-flex flex-row align-items-end justify-content-between\">
<h1>{{ course.name }}</h1>
{% include 'course/icons.html.twig' with { 'icons': GlobalUtil.getCourseIcons(course)} %}
</div>
</div>
<div class=\"card-body\">
<div class=\"row\">
{% include 'course/parts/length.html.twig' with {'course': course, 'gridClass': 'col-lg-3'} %}
{% include 'course/parts/registered_users.html.twig' with {'course': course, 'gridClass': 'col-lg-3'} %}
{% include 'course/parts/place.html.twig' with {'course': course, 'gridClass': 'col-lg-3'} %}
</div>
<div class=\"row mt-3 mb-3\">
<div class=\"col-12\">
{{ course.description | raw }}
</div>
</div>
<div class=\"row mt-3 mb-3\">
<div class=\"col-12\">
{% include 'course/parts/params.html.twig' with {'course': course} %}
</div>
</div>
<div class=\"row mt-3 mb-2\">
<div class=\"col-12\">
{% include 'course/parts/organizer_link.html.twig' with {'course': course} %}
</div>
</div>
</div>
</div>
<div class=\"row mt-3 mb-2\">
{% for courseTerm in course.terms %}
{% if(courseTerm.state.identifier=='ongoing') %}
<div class=\"col-md-4 mb-4\">
<div class=\"panel panel-danger\">
<div class=\"panel-heading\">
<h4 class=\"text-center\">{{ courseTerm.start|date('j. n. Y') }}
{% if(courseTerm.end is not empty) %}
- {{ courseTerm.end|date('j. n. Y') }}
{% endif %}
</h4>
</div>
{% if(course.price) %}
<div class=\"panel-body text-center\">
<p class=\"lead\">
<strong>
{{ course.price|format_currency('CZK') }}
</strong>
{{ course.priceDescription }}
</p>
</div>
{% endif %}
<ul class=\"list-group list-group-flush text-center\">
<li class=\"list-group-item\"><i
class=\"icon-ok text-danger\"></i></li>
<li class=\"list-group-item\">
{% if(courseTerm.isRegistrationActive()) %}
Registrace probíhá do {{ courseTerm.registrationEnd|date('d.m.Y') }}
{% else %}
{% if(courseTerm.hasRegistrationEnd) %}
Registrace již neprobíhá
{% else %}
Registrace od {{ courseTerm.registrationStart|date('d.m.Y') }} do {{ courseTerm.registrationEnd|date('d.m.Y') }}
{% endif %}
{% endif %}
</li>
<li class=\"list-group-item\"><i class=\"icon-ok text-danger\"></i>Minimální počet
účastníků: {% if(courseTerm.minimumNumberOfPersons is not empty) %}{{ courseTerm.minimumNumberOfPersons }}{% else %}není omezeno{% endif %}
</li>
{% if(courseTerm.maximumNumberOfPersons is not empty) %}
<li class=\"list-group-item\" style=\"height: 40px;\"><i
class=\"icon-ok text-danger\"></i>Počet
míst: {{ courseTerm.registrations|length }}
/ {{ courseTerm.maximumNumberOfPersons }}</li>
{% else %}
<li class=\"list-group-item\" style=\"height: 40px;\"></li>
{% endif %}
</ul>
{% if((app.user is empty or app.user.hasRole('ROLE_APPLICANT')) and course.canRegister() and courseTerm.canRegister()) %}
<div class=\"panel-footer text-center\">
<a class=\"btn btn-lg btn-block btn-primary\"
href=\"{{ path('course_registration', {'id': courseTerm.id}) }}\">Rezervovat
místo</a>
</div>
{% endif %}
{% if(app.user is not empty and app.user.hasRole('ROLE_APPLICANT_COMPANY') and course.canRegister() and courseTerm.canRegister()) %}
<div class=\"panel-footer text-center\">
<a class=\"btn btn-lg btn-block btn-primary\"
href=\"{{ path('course_registration_company', {'id': courseTerm.id}) }}\">Rezervovat
místo</a>
</div>
{% endif %}
</div>
</div>
{% endif %}
{% endfor %}
{% if(GlobalUtil.isOrganizerOfCourse(course)) %}
<div class=\"col-md-4 mb-4\">
<a href=\"{{ path('course_terms_new', { id: course.id }) }}\" class=\"btn btn-primary\">Přidat
termín</a>
</div>
{% endif %}
</div>
<div class=\"row mt-4\">
{% if(course.reviews|length>0) %}
<div class=\"col-6 ps-5\">
<a href=\"#panelsStayOpen-collapseOne\" aria-controls=\"panelsStayOpen-collapseOne\"
data-bs-toggle=\"collapse\" data-state=\"show\" class=\"fs-7 course-form-collapse-link\"
data-current-state=\"hide\" data-text-show=\"Zobrazit\" data-text-hide=\"Skrýt\" role=\"button\"
aria-expanded=\"true\">zobrazit recenze <i class=\"fa fa-chevron-down\"></i> </a>
</div>
{% endif %}
</div>
<div id=\"panelsStayOpen-collapseOne\" class=\"collapse\">
<div class=\"row\">
{% for review in course.reviews %}
{% include 'review/default.html.twig' with {'course': course, 'review': review} %}
{% endfor %}
</div>
</div>
<div class=\"row mt-4\">
<div class=\"col-12 col-lg-4 mb-2\">
{% if(GlobalUtil.isOrganizerOfCourse(course)) %}
<a href=\"{{ path('organizer_detail_reviews', {'id': course.organizer.id}) }}\"
class=\"btn btn-primary w-100 p-3\">Recenze kurzu</a>
{% else %}
<a href=\"{{ path('course_review_create', {'id': course.id}) }}\"
class=\"btn btn-primary w-100 p-3\">Zapsat recenzi</a>
{% endif %}
</div>
<div class=\"col-12 col-lg-4 mb-2\">
{% if(CourseCompareUtil.isCourseInCompareList(course)) %}
<a href=\"{{ path('compare_remove',{'id': course.id }) }}\" class=\"btn btn-primary w-100 p-3\">Odebrat
z porovnání</a>
{% else %}
<a href=\"{{ path('compare_add',{'id': course.id }) }}\" class=\"btn btn-primary w-100 p-3\">Přidat
k porovnání</a>
{% endif %}
</div>
<div class=\"col-12 col-lg-4 mb-2\">
{% if(GlobalUtil.isOrganizerOfCourse(course)) %}
<a href=\"{{ path('course_edit',{'id': course.id }) }}\" class=\"btn btn-primary w-100 p-3\">Upravit kurz</a>
{% else %}
<a href=\"{{ path('course_alternative',{'id': course.id }) }}\" class=\"btn btn-primary w-100 p-3\">Najdi
podobné</a>
{% endif %}
</div>
</div>
</div>
", "course/show/content.html.twig", "/home/forge/vsechnykurzy.cz/templates/course/show/content.html.twig");
}
}