<?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;
/* review/default.html.twig */
class __TwigTemplate_f82104f40f7de3d8ad5790cf7b222b863d8355bf1a5950dd2976703052c5dcb6 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", "review/default.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "review/default.html.twig"));
// line 1
echo "<div class=\"col-6\">
<div class=\"shadow-sm card mt-2 mb-2 rounded-5 review-item\">
<div class=\"card-title fw-bold ps-3 pt-3\">
<i class=\"fa fa-user me-1\"></i> ";
// line 4
if (twig_get_attribute($this->env, $this->source, (isset($context["review"]) || array_key_exists("review", $context) ? $context["review"] : (function () { throw new RuntimeError('Variable "review" does not exist.', 4, $this->source); })()), "isAnonymous", [], "any", false, false, false, 4)) {
echo "Anonym";
} else {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["review"]) || array_key_exists("review", $context) ? $context["review"] : (function () { throw new RuntimeError('Variable "review" does not exist.', 4, $this->source); })()), "applicant", [], "any", false, false, false, 4), "fullName", [], "any", false, false, false, 4), "html", null, true);
}
// line 5
echo " </div>
<div class=\"card-body\">
";
// line 7
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["review"]) || array_key_exists("review", $context) ? $context["review"] : (function () { throw new RuntimeError('Variable "review" does not exist.', 7, $this->source); })()), "courseReview", [], "any", false, false, false, 7), "html", null, true);
echo "
<div class=\"rating text-end\">
";
// line 9
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, twig_get_attribute($this->env, $this->source, (isset($context["review"]) || array_key_exists("review", $context) ? $context["review"] : (function () { throw new RuntimeError('Variable "review" does not exist.', 9, $this->source); })()), "courseRating", [], "any", false, false, false, 9)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 10
echo " <i class=\"fa fa-star\"></i>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 12
echo " </div>
</div>
</div>
</div>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "review/default.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 74 => 12, 67 => 10, 63 => 9, 58 => 7, 54 => 5, 48 => 4, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"col-6\">
<div class=\"shadow-sm card mt-2 mb-2 rounded-5 review-item\">
<div class=\"card-title fw-bold ps-3 pt-3\">
<i class=\"fa fa-user me-1\"></i> {% if(review.isAnonymous) %}Anonym{% else %}{{ review.applicant.fullName }}{% endif %}
</div>
<div class=\"card-body\">
{{ review.courseReview }}
<div class=\"rating text-end\">
{% for i in range(1, review.courseRating) %}
<i class=\"fa fa-star\"></i>
{% endfor %}
</div>
</div>
</div>
</div>", "review/default.html.twig", "/home/forge/vsechnykurzy.cz/templates/review/default.html.twig");
}
}