<?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;
/* Front/Event/event.html.twig */
class __TwigTemplate_a3e6f3026b8a5511e27d781073314112160c2cb49c7e3ebcf75a89e12eb4f84e extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'meta_dynamic_seo' => [$this, 'block_meta_dynamic_seo'],
'stylesheets' => [$this, 'block_stylesheets'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Global/layout.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", "Front/Event/event.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Event/event.html.twig"));
// line 3
$context["pagetitle"] = twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 3, $this->source); })()), "name", [], "any", false, false, false, 3);
// line 1
$this->parent = $this->loadTemplate("Global/layout.html.twig", "Front/Event/event.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 5
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 twig_escape_filter($this->env, (isset($context["pagetitle"]) || array_key_exists("pagetitle", $context) ? $context["pagetitle"] : (function () { throw new RuntimeError('Variable "pagetitle" does not exist.', 5, $this->source); })()), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 7
public function block_meta_dynamic_seo($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", "meta_dynamic_seo"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_dynamic_seo"));
// line 8
echo " <meta name=\"description\" content=\"";
echo twig_slice($this->env, twig_striptags(twig_nl2br(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 8, $this->source); })()), "description", [], "any", false, false, false, 8))), 0, 200);
echo "...\" />
";
// line 9
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 9, $this->source); })()), "tags", [], "any", false, false, false, 9)) {
// line 10
echo " <meta name=\"keywords\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 10, $this->source); })()), "name", [], "any", false, false, false, 10), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 10, $this->source); })()), "category", [], "any", false, false, false, 10), "name", [], "any", false, false, false, 10), "html", null, true);
echo ", ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 10, $this->source); })()), "tags", [], "any", false, false, false, 10), ","));
$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["tag"]) {
echo twig_escape_filter($this->env, $context["tag"], "html", null, true);
echo (( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 10)) ? (", ") : (""));
++$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['tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo "\" />
";
} else {
// line 12
echo " <meta name=\"keywords\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 12, $this->source); })()), "getSetting", [0 => ("website_keywords_" . 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.', 12, $this->source); })()), "request", [], "any", false, false, false, 12), "get", [0 => "_locale"], "method", false, false, false, 12))], "method", false, false, false, 12), "html", null, true);
echo "\" />
";
}
// line 14
echo " <meta property=\"og:title\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 14, $this->source); })()), "name", [], "any", false, false, false, 14), "html", null, true);
echo "\" />
<meta property=\"og:image\" content=\"";
// line 15
echo twig_escape_filter($this->env, 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.', 15, $this->source); })()), "request", [], "any", false, false, false, 15), "getSchemeAndHttpHost", [], "method", false, false, false, 15), "html", null, true);
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 15, $this->source); })()), "imageName", [], "any", false, false, false, 15)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 15, $this->source); })()), "getImagePath", [], "any", false, false, false, 15))) : (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 15, $this->source); })()), "getImagePlaceholder", [], "any", false, false, false, 15))), "html", null, true);
echo "\" />
<meta property=\"og:description\" content=\"";
// line 16
echo twig_slice($this->env, twig_striptags(twig_nl2br(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 16, $this->source); })()), "description", [], "any", false, false, false, 16))), 0, 200);
echo "...\" />
<meta name=\"twitter:title\" content=\"";
// line 17
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 17, $this->source); })()), "name", [], "any", false, false, false, 17), "html", null, true);
echo "\" />
<meta name=\"twitter:image\" content=\"";
// line 18
echo twig_escape_filter($this->env, 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.', 18, $this->source); })()), "request", [], "any", false, false, false, 18), "getSchemeAndHttpHost", [], "method", false, false, false, 18), "html", null, true);
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 18, $this->source); })()), "imageName", [], "any", false, false, false, 18)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 18, $this->source); })()), "getImagePath", [], "any", false, false, false, 18))) : (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 18, $this->source); })()), "getImagePlaceholder", [], "any", false, false, false, 18))), "html", null, true);
echo "\" />
<meta name=\"twitter:image:alt\" content=\"";
// line 19
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 19, $this->source); })()), "name", [], "any", false, false, false, 19), "html", null, true);
echo "\" />
<meta name=\"twitter:description\" content=\"";
// line 20
echo twig_slice($this->env, twig_striptags(twig_nl2br(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 20, $this->source); })()), "description", [], "any", false, false, false, 20))), 0, 200);
echo "...\" />
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 23
public function block_stylesheets($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", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 24
echo " <style>
.material-scrolltop.reveal {
bottom: 75px !important;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 31
public function block_content($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", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 32
echo "
";
// line 33
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMINISTRATOR")) {
// line 34
echo " ";
$this->loadTemplate("Global/message.html.twig", "Front/Event/event.html.twig", 34)->display(twig_array_merge($context, ["type" => "info", "icon" => "fas fa-info-circle", "message" => ((((("<a href=\"" . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard_administrator_event", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 34, $this->source); })()), "slug", [], "any", false, false, false, 34)])) . "\">") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Click here")) . "</a> ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("to manage this event"))]));
// line 35
echo " ";
}
// line 36
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ORGANIZER")) {
// line 37
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 37, $this->source); })()), "organizer", [], "any", false, false, false, 37) == 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.', 37, $this->source); })()), "user", [], "any", false, false, false, 37), "organizer", [], "any", false, false, false, 37))) {
// line 38
echo " ";
$this->loadTemplate("Global/message.html.twig", "Front/Event/event.html.twig", 38)->display(twig_array_merge($context, ["type" => "info", "icon" => "fas fa-info-circle", "message" => ((((("<a href=\"" . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard_organizer_event", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 38, $this->source); })()), "slug", [], "any", false, false, false, 38)])) . "\">") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Click here")) . "</a> ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("to manage your event"))]));
// line 39
echo " ";
}
// line 40
echo " ";
}
// line 41
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ATTENDEE")) {
// line 42
echo " ";
if (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.', 42, $this->source); })()), "user", [], "any", false, false, false, 42), "hasBoughtATicketForEvent", [0 => (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 42, $this->source); })())], "method", false, false, false, 42)) {
// line 43
echo " ";
$this->loadTemplate("Global/message.html.twig", "Front/Event/event.html.twig", 43)->display(twig_array_merge($context, ["type" => "info", "icon" => "fas fa-ticket-alt", "message" => (((((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("You are going to this event") . " ") . "<a href=\"") . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard_attendee_orders", ["event" => twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 43, $this->source); })()), "slug", [], "any", false, false, false, 43)])) . "\">") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("My tickets")) . "</a>")]));
// line 44
echo " ";
}
// line 45
echo " ";
}
// line 46
echo "
";
// line 47
$context["navigation"] = [0 => ["events" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Events"), "current" => (isset($context["pagetitle"]) || array_key_exists("pagetitle", $context) ? $context["pagetitle"] : (function () { throw new RuntimeError('Variable "pagetitle" does not exist.', 47, $this->source); })())]];
// line 48
echo " ";
$this->loadTemplate("Global/navigation.html.twig", "Front/Event/event.html.twig", 48)->display(twig_array_merge($context, (isset($context["navigation"]) || array_key_exists("navigation", $context) ? $context["navigation"] : (function () { throw new RuntimeError('Variable "navigation" does not exist.', 48, $this->source); })())));
// line 49
echo "
<div class=\"row no-gutters\">
<div class=\"col-12 p-0\">
<section class=\"section-main\">
<div class=\"owl-init slider-main owl-carousel\" data-items=\"1\" data-dots=\"false\" data-nav=\"false\" data-autoplay=\"false\">
<div class=\"item-slide d-flex\">
<img class=\"slider-img justify-content-center align-self-center img-lazy-load\" src=\"";
// line 55
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/loader.gif"), "html", null, true);
echo "\" data-src=\"";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 55, $this->source); })()), "imageName", [], "any", false, false, false, 55)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 55, $this->source); })()), "getImagePath", [], "any", false, false, false, 55))) : (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 55, $this->source); })()), "getImagePlaceholder", [], "any", false, false, false, 55))), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 55, $this->source); })()), "name", [], "any", false, false, false, 55), "html", null, true);
echo "\" />
<div class=\"slider-blured-background\" style=\"background-image: url('";
// line 56
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 56, $this->source); })()), "imageName", [], "any", false, false, false, 56)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 56, $this->source); })()), "getImagePath", [], "any", false, false, false, 56))) : (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 56, $this->source); })()), "getImagePlaceholder", [], "any", false, false, false, 56))), "html", null, true);
echo "');\"></div>
</div>
</div>
</section>
</div>
</div>
<section class=\"section-content padding-y bg-white ";
// line 62
if ((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.', 62, $this->source); })()), "request", [], "any", false, false, false, 62), "locale", [], "any", false, false, false, 62) == "ar")) {
echo "overflow-hidden";
}
echo "\">
<div class=\"";
// line 63
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 63, $this->source); })()), "getSetting", [0 => "app_layout"], "method", false, false, false, 63), "html", null, true);
echo "\">
<div class=\"card\">
<div class=\"row\">
<div class=\"col-12 col-lg-8 ";
// line 66
if ((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.', 66, $this->source); })()), "request", [], "any", false, false, false, 66), "locale", [], "any", false, false, false, 66) != "ar")) {
echo "border-right";
}
echo " order-1 order-lg-0\">
<div class=\"card-body\">
<h1 class=\"card-title b d-none d-lg-block\">";
// line 68
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 68, $this->source); })()), "name", [], "any", false, false, false, 68), "html", null, true);
echo "</h1>
";
// line 69
$context["reviewscount"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 69, $this->source); })()), "getReviews", [0 => ["count" => true, "event" => twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 69, $this->source); })()), "slug", [], "any", false, false, false, 69)]], "method", false, false, false, 69), "getQuery", [], "method", false, false, false, 69), "getSingleScalarResult", [], "method", false, false, false, 69);
// line 70
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 70, $this->source); })()), "enablereviews", [], "any", false, false, false, 70)) {
// line 71
echo " <div class=\"rating-wrap d-none d-lg-block\">
<ul class=\"rating-stars\">
<li style=\"width:";
// line 73
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 73, $this->source); })()), "getRatingPercentage", [], "any", false, false, false, 73), "html", null, true);
echo "%\" class=\"stars-active\">
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
</li>
<li>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
</li>
</ul>
<div class=\"label-rating\">";
// line 88
echo twig_escape_filter($this->env, (isset($context["reviewscount"]) || array_key_exists("reviewscount", $context) ? $context["reviewscount"] : (function () { throw new RuntimeError('Variable "reviewscount" does not exist.', 88, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Review(s)")), "html", null, true);
echo "</div>
</div>
";
}
// line 91
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 91, $this->source); })()), "description", [], "any", false, false, false, 91)) {
// line 92
echo " <dl class=\"mt-5 event-description\">
<dt class=\"text-muted\">";
// line 93
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Description"), "html", null, true);
echo "</dt>
<dd class=\"line-height-2 readmore\" data-collapsed-height=\"500\" data-height-margin=\"20\">
";
// line 95
echo twig_nl2br(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 95, $this->source); })()), "description", [], "any", false, false, false, 95));
echo "
</dd>
</dl>
";
}
// line 99
echo " <ul class=\"list-group list-group-flush mt-5 mb-5 p-0\">
<li class=\"list-group-item pl-0 pr-0\">
";
// line 101
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 101, $this->source); })()), "category", [], "any", false, false, false, 101)) {
// line 102
echo " <dl class=\"dlist-align\">
<dt class=\"text-muted\">";
// line 103
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Category"), "html", null, true);
echo "</dt>
<dd class=\"text-right\">";
// line 104
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 104, $this->source); })()), "category", [], "any", false, false, false, 104), "name", [], "any", false, false, false, 104), "html", null, true);
echo "</dd>
</dl>
";
}
// line 107
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 107, $this->source); })()), "country", [], "any", false, false, false, 107)) {
// line 108
echo " <dl class=\"dlist-align\">
<dt class=\"text-muted\">";
// line 109
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Country"), "html", null, true);
echo "</dt>
<dd class=\"text-right\"><span class=\"flag flag-";
// line 110
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 110, $this->source); })()), "country", [], "any", false, false, false, 110), "code", [], "any", false, false, false, 110)), "html", null, true);
echo "\"></span> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 110, $this->source); })()), "country", [], "any", false, false, false, 110), "name", [], "any", false, false, false, 110), "html", null, true);
echo "</dd>
</dl>
";
}
// line 113
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 113, $this->source); })()), "languages", [], "any", false, false, false, 113)) > 0)) {
// line 114
echo " <dl class=\"dlist-align\">
<dt class=\"text-muted\">";
// line 115
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Languages"), "html", null, true);
echo "</dt>
<dd class=\"text-right\">";
// line 116
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 116, $this->source); })()), "displayLanguages", [], "any", false, false, false, 116), "html", null, true);
echo "</dd>
</dl>
";
}
// line 119
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 119, $this->source); })()), "subtitles", [], "any", false, false, false, 119)) > 0)) {
// line 120
echo " <dl class=\"dlist-align\">
<dt class=\"text-muted\">";
// line 121
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Subtitles"), "html", null, true);
echo "</dt>
<dd class=\"text-right\">";
// line 122
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 122, $this->source); })()), "displaySubtitles", [], "any", false, false, false, 122), "html", null, true);
echo "</dd>
</dl>
";
}
// line 125
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 125, $this->source); })()), "artists", [], "any", false, false, false, 125)) {
// line 126
echo " <dl class=\"dlist-align\">
<dt class=\"text-muted\">";
// line 127
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Artists"), "html", null, true);
echo "</dt>
<dd class=\"text-right\">";
// line 128
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 128, $this->source); })()), "artists", [], "any", false, false, false, 128), "html", null, true);
echo "</dd>
</dl>
";
}
// line 131
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 131, $this->source); })()), "year", [], "any", false, false, false, 131)) {
// line 132
echo " <dl class=\"dlist-align\">
<dt class=\"text-muted\">";
// line 133
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Year"), "html", null, true);
echo "</dt>
<dd class=\"text-right\">";
// line 134
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 134, $this->source); })()), "year", [], "any", false, false, false, 134), "html", null, true);
echo "</dd>
</dl>
";
}
// line 137
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 137, $this->source); })()), "audiences", [], "any", false, false, false, 137)) > 0)) {
// line 138
echo " <dl class=\"dlist-align\">
<dt class=\"text-muted\">";
// line 139
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Audience"), "html", null, true);
echo "</dt>
<dd class=\"text-right\">
<ul class=\"list-inline\">
";
// line 142
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 142, $this->source); })()), "audiences", [], "any", false, false, false, 142));
foreach ($context['_seq'] as $context["_key"] => $context["audience"]) {
// line 143
echo " <li class=\"list-inline-item\" data-toggle=\"tooltip\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["audience"], "name", [], "any", false, false, false, 143), "html", null, true);
echo "\"><img src=\"";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["audience"], "imageName", [], "any", false, false, false, 143)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["audience"], "getImagePath", [], "any", false, false, false, 143))) : (twig_get_attribute($this->env, $this->source, $context["audience"], "getImagePlaceholder", [], "any", false, false, false, 143))), "html", null, true);
echo "\" class=\"img-xxs\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["audience"], "name", [], "any", false, false, false, 143), "html", null, true);
echo "\" /></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['audience'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 145
echo " </ul>
</dd>
</dl>
";
}
// line 149
echo " </li>
</ul>
";
// line 151
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 151, $this->source); })()), "images", [], "any", false, false, false, 151)) > 0)) {
// line 152
echo " <dl class=\"mt-5\">
<dt class=\"text-muted\">";
// line 153
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Photos"), "html", null, true);
echo "</dt>
<dd class=\"mr-0\">
<div class=\"gallery photos-gallery clearfix\">
";
// line 156
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 156, $this->source); })()), "images", [], "any", false, false, false, 156));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 157
echo " <figure>
";
// line 158
if ((twig_get_attribute($this->env, $this->source, $context["image"], "imageDimensions", [], "any", true, true, false, 158) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["image"], "imageDimensions", [], "any", false, false, false, 158)) >= 2))) {
// line 159
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["image"], "getImagePath", [], "any", false, false, false, 159)), "html", null, true);
echo "\" data-size=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "imageDimensions", [], "any", false, false, false, 159), 0, [], "array", false, false, false, 159), "html", null, true);
echo "x";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "imageDimensions", [], "any", false, false, false, 159), 1, [], "array", false, false, false, 159), "html", null, true);
echo "\">
";
} else {
// line 161
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, $context["image"], "getImagePath", [], "any", false, false, false, 161)), "html", null, true);
echo "\" data-size=\"default-widthxdefault-height\">
";
}
// line 163
echo " <img class=\"img-lazy-load\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/loader.gif"), "html", null, true);
echo "\" data-src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter(twig_get_attribute($this->env, $this->source, $context["image"], "getImagePath", [], "any", false, false, false, 163), "thumbnail"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 163, $this->source); })()), "name", [], "any", false, false, false, 163), "html", null, true);
echo "\" />
</a>
</figure>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 168
echo "
</div>
</dd>
</dl>
";
}
// line 173
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 173, $this->source); })()), "youtubeurl", [], "any", false, false, false, 173)) {
// line 174
echo " <dl class=\"mt-5\">
<dt class=\"text-muted\">";
// line 175
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Video"), "html", null, true);
echo "</dt>
<dd class=\"mr-0\">
<iframe class=\"w-100 border-0\" height=\"400\" src=\"https://www.youtube.com/embed/";
// line 177
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 177, $this->source); })()), "youtubeurl", [], "any", false, false, false, 177), "="), 1, [], "array", false, false, false, 177), "html", null, true);
echo "\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>
</dd>
</dl>
";
}
// line 181
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 181, $this->source); })()), "hasContactAndSocialMedia", [], "any", false, false, false, 181)) {
// line 182
echo " <dl class=\"mt-5\">
<dt class=\"text-muted\">";
// line 183
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Contact & Social media"), "html", null, true);
echo "</dt>
<dd class=\"mr-0\">
<ul class=\"list-icon row no-gutters\">
";
// line 186
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 186, $this->source); })()), "externallink", [], "any", false, false, false, 186)) {
// line 187
echo " <li class=\"col-md-6\"><a href=\"";
if ((!twig_in_filter("http://", twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 187, $this->source); })()), "externallink", [], "any", false, false, false, 187)) && !twig_in_filter("https://", twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 187, $this->source); })()), "externallink", [], "any", false, false, false, 187)))) {
echo "http://";
}
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 187, $this->source); })()), "externallink", [], "any", false, false, false, 187), "html", null, true);
echo "\" rel=\"noopener\" class=\"pl-4\" target=\"_blank\"><i class=\"icon fas fa-globe fa-fw\"></i><span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 187, $this->source); })()), "externallink", [], "any", false, false, false, 187), "html", null, true);
echo "</span></a></li>
";
}
// line 189
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 189, $this->source); })()), "email", [], "any", false, false, false, 189)) {
// line 190
echo " <li class=\"col-md-6\"><a href=\"mailto:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 190, $this->source); })()), "email", [], "any", false, false, false, 190), "html", null, true);
echo "\" class=\"pl-4\"><i class=\"icon fas fa-at fa-fw\"></i><span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 190, $this->source); })()), "email", [], "any", false, false, false, 190), "html", null, true);
echo "</span></a></li>
";
}
// line 192
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 192, $this->source); })()), "phonenumber", [], "any", false, false, false, 192)) {
// line 193
echo " <li class=\"col-md-6\"><a href=\"tel:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 193, $this->source); })()), "phonenumber", [], "any", false, false, false, 193), "html", null, true);
echo "\" class=\"pl-4\"><i class=\"icon fas fa-phone fa-fw\"></i><span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 193, $this->source); })()), "phonenumber", [], "any", false, false, false, 193), "html", null, true);
echo "</span></a></li>
";
}
// line 195
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 195, $this->source); })()), "facebook", [], "any", false, false, false, 195)) {
// line 196
echo " <li class=\"col-md-6\"><a href=\"";
if ((!twig_in_filter("http://", twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 196, $this->source); })()), "facebook", [], "any", false, false, false, 196)) && !twig_in_filter("https://", twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 196, $this->source); })()), "facebook", [], "any", false, false, false, 196)))) {
echo "http://";
}
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 196, $this->source); })()), "facebook", [], "any", false, false, false, 196), "html", null, true);
echo "\" class=\"pl-4\" rel=\"noopener\" target=\"_blank\"><i class=\"icon fab fa-facebook-f fa-fw\"></i><span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 196, $this->source); })()), "facebook", [], "any", false, false, false, 196), "html", null, true);
echo "</span></a></li>
";
}
// line 198
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 198, $this->source); })()), "twitter", [], "any", false, false, false, 198)) {
// line 199
echo " <li class=\"col-md-6\"><a href=\"";
if ((!twig_in_filter("http://", twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 199, $this->source); })()), "twitter", [], "any", false, false, false, 199)) && !twig_in_filter("https://", twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 199, $this->source); })()), "twitter", [], "any", false, false, false, 199)))) {
echo "http://";
}
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 199, $this->source); })()), "twitter", [], "any", false, false, false, 199), "html", null, true);
echo "\" class=\"pl-4\" rel=\"noopener\" target=\"_blank\"><i class=\"icon fab fa-twitter fa-fw\"></i><span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 199, $this->source); })()), "twitter", [], "any", false, false, false, 199), "html", null, true);
echo "</span></a></li>
";
}
// line 201
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 201, $this->source); })()), "googleplus", [], "any", false, false, false, 201)) {
// line 202
echo " <li class=\"col-md-6\"><a href=\"";
if ((!twig_in_filter("http://", twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 202, $this->source); })()), "googleplus", [], "any", false, false, false, 202)) && !twig_in_filter("https://", twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 202, $this->source); })()), "googleplus", [], "any", false, false, false, 202)))) {
echo "http://";
}
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 202, $this->source); })()), "googleplus", [], "any", false, false, false, 202), "html", null, true);
echo "\" rel=\"noopener\" class=\"pl-4\" target=\"_blank\"><i class=\"icon fab fa-google-plus fa-fw\"></i><span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 202, $this->source); })()), "googleplus", [], "any", false, false, false, 202), "html", null, true);
echo "</span></a></li>
";
}
// line 204
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 204, $this->source); })()), "instagram", [], "any", false, false, false, 204)) {
// line 205
echo " <li class=\"col-md-6\"><a href=\"";
if ((!twig_in_filter("http://", twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 205, $this->source); })()), "instagram", [], "any", false, false, false, 205)) && !twig_in_filter("https://", twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 205, $this->source); })()), "instagram", [], "any", false, false, false, 205)))) {
echo "http://";
}
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 205, $this->source); })()), "instagram", [], "any", false, false, false, 205), "html", null, true);
echo "\" rel=\"noopener\" class=\"pl-4\" target=\"_blank\"><i class=\"icon fab fa-instagram fa-fw\"></i><span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 205, $this->source); })()), "instagram", [], "any", false, false, false, 205), "html", null, true);
echo "</span></a></li>
";
}
// line 207
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 207, $this->source); })()), "linkedin", [], "any", false, false, false, 207)) {
// line 208
echo " <li class=\"col-md-6\"><a href=\"";
if ((!twig_in_filter("http://", twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 208, $this->source); })()), "linkedin", [], "any", false, false, false, 208)) && !twig_in_filter("https://", twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 208, $this->source); })()), "linkedin", [], "any", false, false, false, 208)))) {
echo "http://";
}
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 208, $this->source); })()), "linkedin", [], "any", false, false, false, 208), "html", null, true);
echo "\" rel=\"noopener\" class=\"pl-4\" target=\"_blank\"><i class=\"icon fab fa-linkedin fa-fw\"></i><span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 208, $this->source); })()), "linkedin", [], "any", false, false, false, 208), "html", null, true);
echo "</span></a></li>
";
}
// line 210
echo " </ul>
</dd>
</dl>
";
}
// line 214
echo " <dl class=\"mt-5\">
<dt class=\"text-muted\">";
// line 215
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html", null, true);
echo "</dt>
<dd class=\"mr-0\">
<div class=\"sharer\"></div>
</dd>
</dl>
";
// line 220
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 220, $this->source); })()), "tags", [], "any", false, false, false, 220)) {
// line 221
echo " <hr class=\"mt-5\">
<div class=\"row\">
<div class=\"col\">
";
// line 224
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 224, $this->source); })()), "tags", [], "any", false, false, false, 224), ","));
foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
// line 225
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("events", ["keyword" => $context["tag"]]), "html", null, true);
echo "\" class=\"btn btn-sm btn-default mr-3 mb-3 mt-3\">";
echo twig_escape_filter($this->env, $context["tag"], "html", null, true);
echo "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 227
echo " </div>
</div>
";
}
// line 230
echo "
";
// line 231
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 231, $this->source); })()), "enablereviews", [], "any", false, false, false, 231)) {
// line 232
echo " <hr class=\"mb-5\">
<div class=\"row\">
<div class=\"col-12 col-sm-6 mb-5\">
<h3 class=\"mb-1\">";
// line 235
echo twig_escape_filter($this->env, (isset($context["reviewscount"]) || array_key_exists("reviewscount", $context) ? $context["reviewscount"] : (function () { throw new RuntimeError('Variable "reviewscount" does not exist.', 235, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("review")), "html", null, true);
echo "</h3>
<div class=\"rating-wrap\">
<ul class=\"rating-stars\">
<li style=\"width:";
// line 238
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 238, $this->source); })()), "getRatingPercentage", [], "any", false, false, false, 238), "html", null, true);
echo "%\" class=\"stars-active\">
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
</li>
<li>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
</li>
</ul>
<div class=\"label-rating\">";
// line 253
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 253, $this->source); })()), "getRatingAvg", [], "any", false, false, false, 253), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("out of 5 stars")), "html", null, true);
echo "</div>
</div>
</div>
<div class=\"col-12 col-sm-6 text-sm-right\">
";
// line 257
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 258
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ATTENDEE")) {
// line 259
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 259, $this->source); })()), "isRatedBy", [0 => 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.', 259, $this->source); })()), "user", [], "any", false, false, false, 259)], "method", false, false, false, 259)) {
// line 260
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard_attendee_reviews", ["slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 260, $this->source); })()), "isRatedBy", [0 => 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.', 260, $this->source); })()), "user", [], "any", false, false, false, 260)], "method", false, false, false, 260), "slug", [], "any", false, false, false, 260)]), "html", null, true);
echo "\" class=\"btn btn-outline-primary\"><i class=\"far fa-star\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("My review"), "html", null, true);
echo "</a>
";
} else {
// line 262
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard_attendee_reviews_add", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 262, $this->source); })()), "slug", [], "any", false, false, false, 262)]), "html", null, true);
echo "\" class=\"btn btn-outline-primary\"><i class=\"far fa-star\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add your review"), "html", null, true);
echo "</a>
";
}
// line 264
echo " ";
}
// line 265
echo " ";
} else {
// line 266
echo " <a href=\"";
echo twig_escape_filter($this->env, (($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_security_login") . "?_target_path=") . 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.', 266, $this->source); })()), "request", [], "any", false, false, false, 266), "getPathInfo", [], "any", false, false, false, 266)), "html", null, true);
echo "\" rel=\"noopener\" class=\"btn btn-outline-primary\"><i class=\"far fa-star\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add your review"), "html", null, true);
echo "</a>
";
}
// line 268
echo " </div>
</div>
<div class=\"row mb-5 event-scorecard\">
<div class=\"col-12\">
<div class=\"side\">
<div>";
// line 274
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("5 stars"), "html", null, true);
echo "</div>
</div>
<div class=\"middle\">
<div class=\"bar-container\">
<div class=\"bar\" style=\"width: ";
// line 278
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 278, $this->source); })()), "getRatingsPercentageForRating", [0 => 5], "method", false, false, false, 278), "html", null, true);
echo "%;\"></div>
</div>
</div>
<div class=\"side right\">
<div class=\"text-muted\">";
// line 282
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 282, $this->source); })()), "getRatingsPercentageForRating", [0 => 5], "method", false, false, false, 282), "html", null, true);
echo "%</div>
</div>
<div class=\"side\">
<div>";
// line 285
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("4 stars"), "html", null, true);
echo "</div>
</div>
<div class=\"middle\">
<div class=\"bar-container\">
<div class=\"bar\" style=\"width: ";
// line 289
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 289, $this->source); })()), "getRatingsPercentageForRating", [0 => 4], "method", false, false, false, 289), "html", null, true);
echo "%;\"></div>
</div>
</div>
<div class=\"side right\">
<div class=\"text-muted\">";
// line 293
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 293, $this->source); })()), "getRatingsPercentageForRating", [0 => 4], "method", false, false, false, 293), "html", null, true);
echo "%</div>
</div>
<div class=\"side\">
<div>";
// line 296
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("3 stars"), "html", null, true);
echo "</div>
</div>
<div class=\"middle\">
<div class=\"bar-container\">
<div class=\"bar\" style=\"width: ";
// line 300
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 300, $this->source); })()), "getRatingsPercentageForRating", [0 => 3], "method", false, false, false, 300), "html", null, true);
echo "%;\"></div>
</div>
</div>
<div class=\"side right\">
<div class=\"text-muted\">";
// line 304
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 304, $this->source); })()), "getRatingsPercentageForRating", [0 => 3], "method", false, false, false, 304), "html", null, true);
echo "%</div>
</div>
<div class=\"side\">
<div>";
// line 307
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("2 stars"), "html", null, true);
echo "</div>
</div>
<div class=\"middle\">
<div class=\"bar-container\">
<div class=\"bar\" style=\"width: ";
// line 311
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 311, $this->source); })()), "getRatingsPercentageForRating", [0 => 2], "method", false, false, false, 311), "html", null, true);
echo "%;\"></div>
</div>
</div>
<div class=\"side right\">
<div class=\"text-muted\">";
// line 315
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 315, $this->source); })()), "getRatingsPercentageForRating", [0 => 2], "method", false, false, false, 315), "html", null, true);
echo "%</div>
</div>
<div class=\"side\">
<div>";
// line 318
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1 star"), "html", null, true);
echo "</div>
</div>
<div class=\"middle\">
<div class=\"bar-container\">
<div class=\"bar\" style=\"width: ";
// line 322
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 322, $this->source); })()), "getRatingsPercentageForRating", [0 => 1], "method", false, false, false, 322), "html", null, true);
echo "%;\"></div>
</div>
</div>
<div class=\"side right\">
<div class=\"text-muted\">";
// line 326
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 326, $this->source); })()), "getRatingsPercentageForRating", [0 => 1], "method", false, false, false, 326), "html", null, true);
echo "%</div>
</div>
</div>
</div>
";
// line 331
if (twig_length_filter($this->env, (isset($context["reviewscount"]) || array_key_exists("reviewscount", $context) ? $context["reviewscount"] : (function () { throw new RuntimeError('Variable "reviewscount" does not exist.', 331, $this->source); })()))) {
// line 332
echo " <div id=\"reviews\" class=\"row\">
<div class=\"col-12\">
";
// line 334
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 334, $this->source); })()), "getReviews", [0 => ["event" => twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 334, $this->source); })()), "slug", [], "any", false, false, false, 334), "limit" => 8]], "method", false, false, false, 334), "getQuery", [], "method", false, false, false, 334), "getResult", [], "method", false, false, false, 334));
$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 335
echo " ";
$this->loadTemplate("Global/user-review.html.twig", "Front/Event/event.html.twig", 335)->display(twig_array_merge($context, ["review" => $context["review"], "showuser" => 1]));
// line 336
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 337
echo " ";
if (((isset($context["reviewscount"]) || array_key_exists("reviewscount", $context) ? $context["reviewscount"] : (function () { throw new RuntimeError('Variable "reviewscount" does not exist.', 337, $this->source); })()) > 8)) {
// line 338
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("event_reviews");
echo "\" class=\"btn btn-outline-primary mx-auto\"><i class=\"far fa-star-half-full\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("See all %reviewscount% reviews", ["%reviewscount%" => (isset($context["reviewscount"]) || array_key_exists("reviewscount", $context) ? $context["reviewscount"] : (function () { throw new RuntimeError('Variable "reviewscount" does not exist.', 338, $this->source); })())]), "html", null, true);
echo "</a>
";
}
// line 340
echo " </div>
</div>
";
}
// line 343
echo "
";
}
// line 345
echo "
</div>
</div>
<div class=\"col-12 col-lg-4 order-0 order-lg-1 ";
// line 348
if ((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.', 348, $this->source); })()), "request", [], "any", false, false, false, 348), "locale", [], "any", false, false, false, 348) == "ar")) {
echo "border-right";
}
echo "\">
<div class=\"card-body\">
<h1 class=\"card-title b d-lg-none text-center\">";
// line 350
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 350, $this->source); })()), "name", [], "any", false, false, false, 350), "html", null, true);
echo "</h1>
";
// line 351
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 351, $this->source); })()), "enablereviews", [], "any", false, false, false, 351)) {
// line 352
echo " <div class=\"rating-wrap mb-5 d-lg-none text-center\">
<ul class=\"rating-stars\">
<li style=\"width:";
// line 354
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 354, $this->source); })()), "getRatingPercentage", [], "any", false, false, false, 354), "html", null, true);
echo "%\" class=\"stars-active\">
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
</li>
<li>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
</li>
</ul>
<div class=\"label-rating\">";
// line 369
echo twig_escape_filter($this->env, (isset($context["reviewscount"]) || array_key_exists("reviewscount", $context) ? $context["reviewscount"] : (function () { throw new RuntimeError('Variable "reviewscount" does not exist.', 369, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Reviews")), "html", null, true);
echo "</div>
</div>
";
}
// line 372
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 372, $this->source); })()), "hasAnEventDateOnSale", [], "any", false, false, false, 372)) {
// line 373
echo "
";
// line 375
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 375, $this->source); })()), "hasTwoOrMoreEventDatesOnSale", [], "any", false, false, false, 375)) {
// line 376
echo " ";
$context["eventDatesCalendar"] = [];
// line 377
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 377, $this->source); })()), "eventdates", [], "any", false, false, false, 377));
foreach ($context['_seq'] as $context["_key"] => $context["eventDate"]) {
if (twig_get_attribute($this->env, $this->source, $context["eventDate"], "isOnSale", [], "any", false, false, false, 377)) {
// line 378
echo " ";
$context["eventDatesCalendar"] = twig_array_merge((isset($context["eventDatesCalendar"]) || array_key_exists("eventDatesCalendar", $context) ? $context["eventDatesCalendar"] : (function () { throw new RuntimeError('Variable "eventDatesCalendar" does not exist.', 378, $this->source); })()), [0 => ["Date" => twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "startdate", [], "any", false, false, false, 378), "Y-m-d"), "Title" => twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "startdate", [], "any", false, false, false, 378), "g:i A"), "Link" => twig_get_attribute($this->env, $this->source, $context["eventDate"], "reference", [], "any", false, false, false, 378)]]);
// line 379
echo " ";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['eventDate'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 380
echo " ";
$this->loadTemplate("Global/message.html.twig", "Front/Event/event.html.twig", 380)->display(twig_array_merge($context, ["type" => "info", "icon" => "fas fa-info-circle", "message" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Click on a date to view tickets")]));
// line 381
echo "
<div id=\"event-dates-calendar\" class=\"mt-5\" data-event-dates=\"";
// line 382
echo twig_escape_filter($this->env, json_encode((isset($context["eventDatesCalendar"]) || array_key_exists("eventDatesCalendar", $context) ? $context["eventDatesCalendar"] : (function () { throw new RuntimeError('Variable "eventDatesCalendar" does not exist.', 382, $this->source); })())), "html", null, true);
echo "\"></div>
";
// line 383
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ATTENDEE")) {
// line 384
echo " <button id=\"add-to-cart-button\" type=\"button\" class=\"btn btn-primary btn-block mt-3 mb-3\"><i class=\"fas fa-cart-plus\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to cart"), "html", null, true);
echo "</button>
";
}
// line 386
echo "
";
}
// line 388
echo "
<form id=\"add-to-cart-form\" action=\"";
// line 389
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard_attendee_cart_add");
echo "\" method=\"post\">
";
// line 390
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 390, $this->source); })()), "eventdates", [], "any", false, false, false, 390));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
foreach ($context['_seq'] as $context["_key"] => $context["eventDate"]) {
if (twig_get_attribute($this->env, $this->source, $context["eventDate"], "isOnSale", [], "any", false, false, false, 390)) {
// line 391
echo "
<div id=\"eventDate-";
// line 392
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "reference", [], "any", false, false, false, 392), "html", null, true);
echo "-wrapper\" class=\"event-eventDate-wrapper\">
<dl>
<dt class=\"text-muted\">
<span>";
// line 395
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Dates"), "html", null, true);
echo "</span>
</dt>
<dd>
<div class=\"text-center\">
";
// line 400
echo " ";
$context["eventstartdate"] = "";
// line 401
echo " ";
$context["eventenddate"] = "";
// line 402
echo " ";
$context["eventlocation"] = "";
// line 403
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 403)) {
// line 404
echo " ";
$context["eventlocation"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 404), "name", [], "any", false, false, false, 404) . ": ") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 404), "stringifyAddress", [], "any", false, false, false, 404));
// line 405
echo " ";
} else {
// line 406
echo " ";
$context["eventlocation"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Online");
// line 407
echo " ";
}
// line 408
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["eventDate"], "startdate", [], "any", false, false, false, 408)) {
// line 409
echo " <div class=\"display-inline-block\">
<div class=\"display-inline-block\">
<span class=\"font-size-3rem\">";
// line 411
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "startdate", [], "any", false, false, false, 411), "d"), "html", null, true);
echo "</span>
</div>
<div class=\"display-inline-block mr-3\">
<div><span class=\"font-size-1rem\">";
// line 414
echo twig_escape_filter($this->env, twig_slice($this->env, twig_capitalize_string_filter($this->env, twig_localized_date_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "startdate", [], "any", false, false, false, 414), "none", "none", 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.', 414, $this->source); })()), "request", [], "any", false, false, false, 414), "locale", [], "any", false, false, false, 414), null, "MMMM")), 0, 3), "html", null, true);
echo "</span></div>
<div><span>";
// line 415
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "startdate", [], "any", false, false, false, 415), "Y"), "html", null, true);
echo "</span></div>
</div>
<div class=\"mb-2\">
<span class=\"text-muted b\">
";
// line 419
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "startdate", [], "any", false, false, false, 419), "g:i a")), "html", null, true);
echo "
";
// line 420
if (twig_get_attribute($this->env, $this->source, $context["eventDate"], "enddate", [], "any", false, false, false, 420)) {
// line 421
echo " ";
if ((twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "enddate", [], "any", false, false, false, 421), "Y-m-d") == twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "startdate", [], "any", false, false, false, 421), "Y-m-d"))) {
// line 422
echo " - ";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "enddate", [], "any", false, false, false, 422), "g:i a")), "html", null, true);
echo "
";
}
// line 424
echo " ";
}
// line 425
echo " </span>
</div>
</div>
";
// line 428
$context["eventstartdate"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "startdate", [], "any", false, false, false, 428), "F d, Y H:i");
// line 429
echo " ";
}
// line 430
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["eventDate"], "enddate", [], "any", false, false, false, 430)) {
// line 431
echo " ";
if ((twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "enddate", [], "any", false, false, false, 431), "Y-m-d") != twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "startdate", [], "any", false, false, false, 431), "Y-m-d"))) {
// line 432
echo " <div class=\"display-inline-block\">
<div class=\"display-inline-block\">
<span class=\"font-size-3rem\">";
// line 434
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "enddate", [], "any", false, false, false, 434), "d"), "html", null, true);
echo "</span>
</div>
<div class=\"display-inline-block\">
<div><span class=\"font-size-1rem\">";
// line 437
echo twig_escape_filter($this->env, twig_slice($this->env, twig_capitalize_string_filter($this->env, twig_localized_date_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "enddate", [], "any", false, false, false, 437), "none", "none", 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.', 437, $this->source); })()), "request", [], "any", false, false, false, 437), "locale", [], "any", false, false, false, 437), null, "MMMM")), 0, 3), "html", null, true);
echo "</span></div>
<div><span>";
// line 438
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "enddate", [], "any", false, false, false, 438), "Y"), "html", null, true);
echo "</span></div>
</div>
<div class=\"mb-2\"><span class=\"text-muted b\">";
// line 440
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "enddate", [], "any", false, false, false, 440), "g:i a")), "html", null, true);
echo "</span></div>
</div>
";
}
// line 443
echo " ";
$context["eventstartdate"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "enddate", [], "any", false, false, false, 443), "F d, Y H:i");
// line 444
echo " ";
}
// line 445
echo " <div class=\"clearfix\"></div>
<a id=\"add-to-calendar-link\" data-toggle=\"modal\" data-target=\"#add-to-calendar-modal\" href=\"javascript:void(0)\" data-title=\"";
// line 446
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 446, $this->source); })()), "name", [], "any", false, false, false, 446), "html", null, true);
echo "\" data-start=\"";
echo twig_escape_filter($this->env, (isset($context["eventstartdate"]) || array_key_exists("eventstartdate", $context) ? $context["eventstartdate"] : (function () { throw new RuntimeError('Variable "eventstartdate" does not exist.', 446, $this->source); })()), "html", null, true);
echo "\" data-end=\"";
echo twig_escape_filter($this->env, (isset($context["eventenddate"]) || array_key_exists("eventenddate", $context) ? $context["eventenddate"] : (function () { throw new RuntimeError('Variable "eventenddate" does not exist.', 446, $this->source); })()), "html", null, true);
echo "\" data-address=\"";
echo twig_escape_filter($this->env, (isset($context["eventlocation"]) || array_key_exists("eventlocation", $context) ? $context["eventlocation"] : (function () { throw new RuntimeError('Variable "eventlocation" does not exist.', 446, $this->source); })()), "html", null, true);
echo "\" data-description=\"";
echo twig_nl2br(twig_slice($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 446, $this->source); })()), "description", [], "any", false, false, false, 446)), 0, 250));
echo "\"><i class=\"fas fa-calendar-plus\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to calendar"), "html", null, true);
echo "</a>
<div class=\"modal fade\" id=\"add-to-calendar-modal\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h4 class=\"modal-title\"><i class=\"fas fa-calendar-plus\"></i> ";
// line 451
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to calendar"), "html", null, true);
echo "</h4>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\">×</button>
</div>
<div id=\"add-to-calendar\" class=\"modal-body\">
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-primary\" data-dismiss=\"modal\">";
// line 457
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Close"), "html", null, true);
echo "</button>
</div>
</div>
</div>
</div>
</div>
</dd>
</dl>
<hr class=\"hr-md\">
";
// line 467
if (twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 467)) {
// line 468
echo " <dl>
<dt class=\"text-muted\">
<span class=\"";
// line 470
if ((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.', 470, $this->source); })()), "request", [], "any", false, false, false, 470), "locale", [], "any", false, false, false, 470) == "ar")) {
echo "float-right";
} else {
echo "float-left";
}
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Venue"), "html", null, true);
echo "</span>
";
// line 471
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 471), "listedondirectory", [], "any", false, false, false, 471)) {
// line 472
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("venue", ["slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 472), "slug", [], "any", false, false, false, 472)]), "html", null, true);
echo "\" class=\"";
if ((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.', 472, $this->source); })()), "request", [], "any", false, false, false, 472), "locale", [], "any", false, false, false, 472) == "ar")) {
echo "float-left";
} else {
echo "float-right";
}
echo " text-sm\"><i class=\"far fa-building\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Details"), "html", null, true);
echo "</a>
";
}
// line 474
echo " <div class=\"clearfix\"></div>
</dt>
<dd class=\"mr-0\">
<h4 class=\"text-center\">";
// line 478
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 478), "name", [], "any", false, false, false, 478), "html", null, true);
echo "</h4>
<p>";
// line 479
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 479), "stringifyAddress", [], "any", false, false, false, 479), "html", null, true);
echo "</p>
<div class=\"d-flex mb-3\">
<ul class=\"list-inline mx-auto\">
<li class=\"list-inline-item\"><a href=\"https://www.google.com/maps/dir/?api=1&destination=";
// line 482
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 482), "lat", [], "any", false, false, false, 482), "html", null, true);
echo ",";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 482), "lng", [], "any", false, false, false, 482), "html", null, true);
echo "&travelmode=driving\" class=\"text-black-50\" data-toggle=\"tooltip\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Display itinerary driving"), "html", null, true);
echo "\" rel=\"noopener\" target=\"_blank\"><i class=\"fas fa-car fa-fw\"></i></a></li>
<li class=\"list-inline-item\"><a href=\"https://www.google.com/maps/dir/?api=1&destination=";
// line 483
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 483), "lat", [], "any", false, false, false, 483), "html", null, true);
echo ",";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 483), "lng", [], "any", false, false, false, 483), "html", null, true);
echo "&travelmode=walking\" class=\"text-black-50\" data-toggle=\"tooltip\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Display itinerary walking"), "html", null, true);
echo "\" rel=\"noopener\" target=\"_blank\"><i class=\"fas fa-walking fa-fw\"></i></a></li>
<li class=\"list-inline-item\"><a href=\"https://www.google.com/maps/dir/?api=1&destination=";
// line 484
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 484), "lat", [], "any", false, false, false, 484), "html", null, true);
echo ",";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 484), "lng", [], "any", false, false, false, 484), "html", null, true);
echo "&travelmode=transit\" class=\"text-black-50\" data-toggle=\"tooltip\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Display itinerary on public transportation"), "html", null, true);
echo "\" rel=\"noopener\" target=\"_blank\"><i class=\"fas fa-bus fa-fw\"></i></a></li>
<li class=\"list-inline-item\"><a href=\"https://www.google.com/maps/dir/?api=1&destination=";
// line 485
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 485), "lat", [], "any", false, false, false, 485), "html", null, true);
echo ",";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 485), "lng", [], "any", false, false, false, 485), "html", null, true);
echo "&travelmode=bicycling\" class=\"text-black-50\" data-toggle=\"tooltip\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Display itinerary bicycling"), "html", null, true);
echo "\" rel=\"noopener\" target=\"_blank\"><i class=\"fas fa-bicycle fa-fw\"></i></a></li>
</ul>
</div>
<iframe class=\"w-100 border-0 venue-map\" height=\"300\" src=\"";
// line 488
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 488, $this->source); })()), "getCurrentRequestProtocol", [], "method", false, false, false, 488), "html", null, true);
echo "://maps.google.com/maps?q=";
echo twig_escape_filter($this->env, ((twig_urlencode_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 488), "name", [], "any", false, false, false, 488)) . "%20") . twig_urlencode_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["eventDate"], "venue", [], "any", false, false, false, 488), "stringifyAddress", [], "any", false, false, false, 488))), "html", null, true);
echo "&t=&z=13&ie=UTF8&iwloc=&output=embed\"></iframe>
</dd>
</dl>
";
} else {
// line 492
echo " <dl>
<dt class=\"text-muted\">
<span class=\"";
// line 494
if ((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.', 494, $this->source); })()), "request", [], "any", false, false, false, 494), "locale", [], "any", false, false, false, 494) == "ar")) {
echo "float-right";
} else {
echo "float-left";
}
echo "\">";
echo "Venue";
echo "</span>
</dt>
<dd>
<br>
<h4 class=\"text-center\">";
// line 499
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Online"), "html", null, true);
echo "</h4>
</dd>
</dl>
";
}
// line 503
echo " <hr class=\"hr-md\">
<dl class=\"mt-5\">
<dt class=\"text-muted\">";
// line 505
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tickets"), "html", null, true);
echo "</dt>
<dd class=\"mr-0\">
<div class=\"table-responsive\">
<table class=\"table table-hover table-condensed\">
<tbody>
";
// line 510
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["eventDate"], "tickets", [], "any", false, false, false, 510));
foreach ($context['_seq'] as $context["_key"] => $context["ticket"]) {
// line 511
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["ticket"], "active", [], "any", false, false, false, 511)) {
// line 512
echo " <tr class=\"bg-gray\">
<td class=\"border-top-white\" style=\"width: 75%;\">
";
// line 514
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ticket"], "name", [], "any", false, false, false, 514), "html", null, true);
echo "
</td>
<td class=\"border-top-white text-right\">
";
// line 517
if ( !twig_get_attribute($this->env, $this->source, $context["ticket"], "isOnSale", [], "any", false, false, false, 517)) {
// line 518
echo " <span class=\"badge badge-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ticket"], "stringifyStatusClass", [], "any", false, false, false, 518), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["ticket"], "stringifyStatus", [], "any", false, false, false, 518)), "html", null, true);
echo "</span>
";
} else {
// line 520
echo " ";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["ticket"], "free", [], "any", false, false, false, 520)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Free")) : ((((((twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 520, $this->source); })()), "getSetting", [0 => "currency_position"], "method", false, false, false, 520) == "left")) ? (twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 520, $this->source); })()), "getSetting", [0 => "currency_symbol"], "method", false, false, false, 520)) : ("")) . twig_get_attribute($this->env, $this->source, $context["ticket"], "getSalePrice", [], "method", false, false, false, 520)) . (((twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 520, $this->source); })()), "getSetting", [0 => "currency_position"], "method", false, false, false, 520) == "right")) ? (twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 520, $this->source); })()), "getSetting", [0 => "currency_symbol"], "method", false, false, false, 520)) : (""))))), "html", null, true);
echo "
";
// line 521
if ((twig_get_attribute($this->env, $this->source, $context["ticket"], "promotionalprice", [], "any", false, false, false, 521) && !twig_get_attribute($this->env, $this->source, $context["ticket"], "free", [], "any", false, false, false, 521))) {
// line 522
echo " <del class=\"price-old\">";
echo twig_escape_filter($this->env, (((((twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 522, $this->source); })()), "getSetting", [0 => "currency_position"], "method", false, false, false, 522) == "left")) ? (twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 522, $this->source); })()), "getSetting", [0 => "currency_symbol"], "method", false, false, false, 522)) : ("")) . twig_get_attribute($this->env, $this->source, $context["ticket"], "getPrice", [], "method", false, false, false, 522)) . (((twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 522, $this->source); })()), "getSetting", [0 => "currency_position"], "method", false, false, false, 522) == "right")) ? (twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 522, $this->source); })()), "getSetting", [0 => "currency_symbol"], "method", false, false, false, 522)) : (""))), "html", null, true);
echo "</del>
";
}
// line 524
echo " ";
}
// line 525
echo " </tr>
";
}
// line 527
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ticket'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 528
echo " </tbody>
</table>
</div>
";
// line 531
if (( !$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ATTENDEE"))) {
// line 532
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 533
echo " <a href=\"#\" class=\"btn btn-primary btn-block mb-2 buy-tickets-modal-button\" data-toggle=\"modal\" data-target=\"#buy-tickets-modal-eventDate-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["eventDate"], "reference", [], "any", false, false, false, 533), "html", null, true);
echo "\"><i class=\"fas fa-ticket-alt\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tickets"), "html", null, true);
echo "</a>
";
// line 534
$this->loadTemplate("Dashboard/Attendee/Cart/add-to-cart-modal.html.twig", "Front/Event/event.html.twig", 534)->display(twig_array_merge($context, ["eventdate" => $context["eventDate"]]));
// line 535
echo " ";
} else {
// line 536
echo " <a href=\"";
echo twig_escape_filter($this->env, (($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_security_login") . "?_target_path=") . 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.', 536, $this->source); })()), "request", [], "any", false, false, false, 536), "getPathInfo", [], "any", false, false, false, 536)), "html", null, true);
echo "\" class=\"btn btn-primary btn-block\"><i class=\"fas fa-ticket-alt\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tickets"), "html", null, true);
echo "</a>
";
}
// line 538
echo " ";
}
// line 539
echo " </dd>
</dl>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['eventDate'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 544
echo " </form>
";
// line 546
if (( !$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ATTENDEE"))) {
// line 547
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 548
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 548, $this->source); })()), "isAddedToFavoritesBy", [0 => 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.', 548, $this->source); })()), "user", [], "any", false, false, false, 548)], "method", false, false, false, 548)) {
// line 549
echo " <button class=\"event-favorites-remove btn btn-outline-primary btn-block\" data-target=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard_attendee_favorites_remove", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 549, $this->source); })()), "slug", [], "any", false, false, false, 549)]), "html", null, true);
echo "\" data-toggle=\"tooltip\" title=\"\" data-placement=\"bottom\"><i class=\"fas fa-heart\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Remove from favorites"), "html", null, true);
echo "</button>
";
} else {
// line 551
echo " <button class=\"event-favorites-add btn btn-outline-primary btn-block\" data-target=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard_attendee_favorites_add", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 551, $this->source); })()), "slug", [], "any", false, false, false, 551)]), "html", null, true);
echo "\" data-toggle=\"tooltip\" title=\"\" data-placement=\"bottom\"><i class=\"far fa-heart\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to favorites"), "html", null, true);
echo "</button>
";
}
// line 553
echo " ";
} else {
// line 554
echo " <a href=\"";
echo twig_escape_filter($this->env, (($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_security_login") . "?_target_path=") . 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.', 554, $this->source); })()), "request", [], "any", false, false, false, 554), "getPathInfo", [], "any", false, false, false, 554)), "html", null, true);
echo "\" class=\"btn btn-outline-primary btn-block\"><i class=\"far fa-heart\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to favorites"), "html", null, true);
echo "</a>
";
}
// line 556
echo " ";
}
// line 557
echo "
";
} else {
// line 559
echo " ";
$this->loadTemplate("Global/message.html.twig", "Front/Event/event.html.twig", 559)->display(twig_array_merge($context, ["type" => "info", "icon" => "fas fa-info-circle", "message" => "No tickets on sale at this moment"]));
// line 560
echo " ";
}
// line 561
echo " <hr class=\"hr-md\">
<dl class=\"mt-5 mb-5\">
<dt class=\"text-muted\">
<span class=\"";
// line 565
if ((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.', 565, $this->source); })()), "request", [], "any", false, false, false, 565), "locale", [], "any", false, false, false, 565) == "ar")) {
echo "float-right";
} else {
echo "float-left";
}
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Organizer"), "html", null, true);
echo "</span>
<a href=\"";
// line 566
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("organizer", ["slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 566, $this->source); })()), "organizer", [], "any", false, false, false, 566), "slug", [], "any", false, false, false, 566)]), "html", null, true);
echo "\" class=\"";
if ((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.', 566, $this->source); })()), "request", [], "any", false, false, false, 566), "locale", [], "any", false, false, false, 566) == "ar")) {
echo "float-left";
} else {
echo "float-right";
}
echo " text-sm\"><i class=\"far fa-id-card\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Details"), "html", null, true);
echo "</a>
<div class=\"clearfix\"></div>
</dt>
<dt class=\"text-muted\">
<span class=\"";
// line 571
if ((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.', 571, $this->source); })()), "request", [], "any", false, false, false, 571), "locale", [], "any", false, false, false, 571) == "ar")) {
echo "float-right";
} else {
echo "float-left";
}
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Organizer WhatsApp Number"), "html", null, true);
echo "</span>
<a target=\"_blank\" href=\"https://wa.me/";
// line 572
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 572, $this->source); })()), "whatsappnumber", [], "any", false, false, false, 572), "html", null, true);
echo "?text=Hi,%20I%20want%20to%20know%20about%20your%20event:%20";
echo twig_escape_filter($this->env, 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.', 572, $this->source); })()), "request", [], "any", false, false, false, 572), "schemeAndHttpHost", [], "any", false, false, false, 572), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("event", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 572, $this->source); })()), "slug", [], "any", false, false, false, 572)]), "html", null, true);
echo "\" class=\"";
if ((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.', 572, $this->source); })()), "request", [], "any", false, false, false, 572), "locale", [], "any", false, false, false, 572) == "ar")) {
echo "float-left";
} else {
echo "float-right";
}
echo " text-sm\"><i class=\"fab fa-whatsapp\"></i> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 572, $this->source); })()), "whatsappnumber", [], "any", false, false, false, 572), "html", null, true);
echo "</a>
<div class=\"clearfix\"></div>
</dt>
<dd class=\"mr-0\">
<div class=\"card-banner ";
// line 577
echo ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 577, $this->source); })()), "organizer", [], "any", false, false, false, 577), "coverName", [], "any", false, false, false, 577)) ? ("") : ("organizer-preview-no-cover"));
echo "\"";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 577, $this->source); })()), "organizer", [], "any", false, false, false, 577), "coverName", [], "any", false, false, false, 577)) {
echo " style=\"height:250px;background-image: url('";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 577, $this->source); })()), "organizer", [], "any", false, false, false, 577), "getCoverPath", [], "any", false, false, false, 577), "thumbnail", ["thumbnail" => ["size" => [0 => 400, 1 => 250]]])), "html", null, true);
echo "');\" ";
}
echo ">
<article class=\"overlay bottom text-center\">
<h4 class=\"card-title\"><a href=\"";
// line 579
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("organizer", ["slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 579, $this->source); })()), "organizer", [], "any", false, false, false, 579), "slug", [], "any", false, false, false, 579)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 579, $this->source); })()), "organizer", [], "any", false, false, false, 579), "name", [], "any", false, false, false, 579), "html", null, true);
echo "</a></h4>
";
// line 580
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 580, $this->source); })()), "organizer", [], "any", false, false, false, 580), "logoName", [], "any", false, false, false, 580)) {
// line 581
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 581, $this->source); })()), "organizer", [], "any", false, false, false, 581), "getLogoPath", [], "any", false, false, false, 581)), "html", null, true);
echo "\" class=\"img-100-100 d-block mx-auto mb-3 img-thumbnail\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 581, $this->source); })()), "organizer", [], "any", false, false, false, 581), "name", [], "any", false, false, false, 581), "html", null, true);
echo "\" />
";
}
// line 583
echo " ";
if (( !$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ATTENDEE"))) {
// line 584
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 585
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 585, $this->source); })()), "organizer", [], "any", false, false, false, 585), "isFollowedBy", [0 => 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.', 585, $this->source); })()), "user", [], "any", false, false, false, 585)], "method", false, false, false, 585)) {
// line 586
echo " <button class=\"organizer-unfollow btn btn-primary btn-sm\" data-target=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard_attendee_following_remove", ["slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 586, $this->source); })()), "organizer", [], "any", false, false, false, 586), "slug", [], "any", false, false, false, 586)]), "html", null, true);
echo "\"><i class=\"fas fa-folder-minus\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Unfollow"), "html", null, true);
echo "</button>
";
} else {
// line 588
echo " <button class=\"organizer-follow btn btn-primary btn-sm\" data-target=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard_attendee_following_add", ["slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 588, $this->source); })()), "organizer", [], "any", false, false, false, 588), "slug", [], "any", false, false, false, 588)]), "html", null, true);
echo "\"><i class=\"fas fa-folder-plus\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Follow"), "html", null, true);
echo "</button>
";
}
// line 590
echo " ";
} else {
// line 591
echo " <a href=\"";
echo twig_escape_filter($this->env, (($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_security_login") . "?_target_path=") . 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.', 591, $this->source); })()), "request", [], "any", false, false, false, 591), "getPathInfo", [], "any", false, false, false, 591)), "html", null, true);
echo "\" class=\"btn btn-primary btn-sm\"><i class=\"fas fa-folder-plus\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Follow"), "html", null, true);
echo "</a>
";
}
// line 593
echo " ";
}
// line 594
echo " </article>
</div>
</dd>
</dl>
";
// line 598
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 598, $this->source); })()), "showattendees", [], "any", false, false, false, 598)) {
// line 599
echo " ";
$context["attendeescount"] = twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 599, $this->source); })()), "getTotalOrderElementsQuantitySum", [0 => 1, 1 => "all", 2 => "ROLE_ATTENDEE"], "method", false, false, false, 599);
// line 600
echo " ";
if ((isset($context["attendeescount"]) || array_key_exists("attendeescount", $context) ? $context["attendeescount"] : (function () { throw new RuntimeError('Variable "attendeescount" does not exist.', 600, $this->source); })())) {
// line 601
echo " <hr>
<dl class=\"mt-5\">
<dt class=\"text-muted mb-3\">
<span class=\"";
// line 604
if ((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.', 604, $this->source); })()), "request", [], "any", false, false, false, 604), "locale", [], "any", false, false, false, 604) == "ar")) {
echo "float-right";
} else {
echo "float-left";
}
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Attendees"), "html", null, true);
echo " <b>(";
echo twig_escape_filter($this->env, (isset($context["attendeescount"]) || array_key_exists("attendeescount", $context) ? $context["attendeescount"] : (function () { throw new RuntimeError('Variable "attendeescount" does not exist.', 604, $this->source); })()), "html", null, true);
echo ")</b></span>
<a href=\"#\" class=\"";
// line 605
if ((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.', 605, $this->source); })()), "request", [], "any", false, false, false, 605), "locale", [], "any", false, false, false, 605) == "ar")) {
echo "float-left";
} else {
echo "float-right";
}
echo " text-sm\" data-toggle=\"modal\" data-target=\"#attendees-modal\"><i class=\"fas fa-users\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("See all"), "html", null, true);
echo "</a>
<div class=\"modal fade\" id=\"attendees-modal\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<div class=\"modal-title h4\">";
// line 610
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Attendees"), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, (isset($context["attendeescount"]) || array_key_exists("attendeescount", $context) ? $context["attendeescount"] : (function () { throw new RuntimeError('Variable "attendeescount" does not exist.', 610, $this->source); })()), "html", null, true);
echo ")</div>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\">×</button>
</div>
<div class=\"modal-body\">
<div class=\"card border-0 card-body overflow-auto text-nowrap\">
<div class=\"avatar-list py-4\">
";
// line 616
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 616, $this->source); })()), "getUsers", [0 => ["hasboughtticketfor" => twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 616, $this->source); })()), "slug", [], "any", false, false, false, 616), "role" => "attendee"]], "method", false, false, false, 616), "getQuery", [], "method", false, false, false, 616), "getResult", [], "method", false, false, false, 616));
$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["user"]) {
// line 617
echo " ";
$this->loadTemplate("Global/user-avatar.html.twig", "Front/Event/event.html.twig", 617)->display(twig_array_merge($context, ["user" => $context["user"], "showusernametooltip" => true]));
// line 618
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['user'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 619
echo " </div>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-primary\" data-dismiss=\"modal\">";
// line 623
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Close"), "html", null, true);
echo "</button>
</div>
</div>
</div>
</div>
<div class=\"clearfix\"></div>
</dt>
<dd class=\"mr-0\">
<div class=\"card border-0 card-body\">
<div class=\"avatar-list avatar-list-stacked\">
";
// line 633
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 633, $this->source); })()), "getUsers", [0 => ["hasboughtticketfor" => twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 633, $this->source); })()), "slug", [], "any", false, false, false, 633), "limit" => 12, "role" => "attendee"]], "method", false, false, false, 633), "getQuery", [], "method", false, false, false, 633), "getResult", [], "method", false, false, false, 633));
$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["user"]) {
// line 634
echo " ";
$this->loadTemplate("Global/user-avatar.html.twig", "Front/Event/event.html.twig", 634)->display(twig_array_merge($context, ["user" => $context["user"], "showusernametooltip" => true]));
// line 635
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['user'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 636
echo " ";
if (((isset($context["attendeescount"]) || array_key_exists("attendeescount", $context) ? $context["attendeescount"] : (function () { throw new RuntimeError('Variable "attendeescount" does not exist.', 636, $this->source); })()) > 12)) {
// line 637
echo " <span class=\"avatar\">";
echo twig_escape_filter($this->env, ((isset($context["attendeescount"]) || array_key_exists("attendeescount", $context) ? $context["attendeescount"] : (function () { throw new RuntimeError('Variable "attendeescount" does not exist.', 637, $this->source); })()) - 12), "html", null, true);
echo "</span>
";
}
// line 639
echo " </div>
</div>
</dd>
</dl>
";
}
// line 644
echo " ";
}
// line 645
echo " ";
if ((((twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 645, $this->source); })()), "getSetting", [0 => "newsletter_enabled"], "method", false, false, false, 645) == "yes") && twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 645, $this->source); })()), "getSetting", [0 => "mailchimp_api_key"], "method", false, false, false, 645)) && twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 645, $this->source); })()), "getSetting", [0 => "mailchimp_list_id"], "method", false, false, false, 645))) {
// line 646
echo " <div class=\"mt-5\">
";
// line 647
$this->loadTemplate("Global/newsletter-box.html.twig", "Front/Event/event.html.twig", 647)->display($context);
// line 648
echo " </div>
";
}
// line 650
echo " </div>
</div>
</div>
</div>
";
// line 655
$context["othereventsbythisorganizer"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 655, $this->source); })()), "getEvents", [0 => ["organizer" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 655, $this->source); })()), "organizer", [], "any", false, false, false, 655), "slug", [], "any", false, false, false, 655), "limit" => 8, "otherthan" => twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 655, $this->source); })()), "slug", [], "any", false, false, false, 655)]], "method", false, false, false, 655), "getQuery", [], "method", false, false, false, 655), "getResult", [], "method", false, false, false, 655);
// line 656
echo " ";
if ((twig_length_filter($this->env, (isset($context["othereventsbythisorganizer"]) || array_key_exists("othereventsbythisorganizer", $context) ? $context["othereventsbythisorganizer"] : (function () { throw new RuntimeError('Variable "othereventsbythisorganizer" does not exist.', 656, $this->source); })())) > 0)) {
// line 657
echo " <div class=\"row\">
<div class=\"col-12\">
<h3 class=\"mt-5 mb-4 text-center\">";
// line 659
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Other events by %organizername%", ["%organizername%" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 659, $this->source); })()), "organizer", [], "any", false, false, false, 659), "name", [], "any", false, false, false, 659)]), "html", null, true);
echo "</h3>
<div class=\"owl-init owl-carousel\" data-margin=\"15\" data-items=\"4\" data-dots=\"false\" data-nav=\"true\" data-autoplay=\"true\" data-loop=\"false\">
";
// line 661
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["othereventsbythisorganizer"]) || array_key_exists("othereventsbythisorganizer", $context) ? $context["othereventsbythisorganizer"] : (function () { throw new RuntimeError('Variable "othereventsbythisorganizer" does not exist.', 661, $this->source); })()));
$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["event"]) {
// line 662
echo " ";
$this->loadTemplate("Global/event-card.html.twig", "Front/Event/event.html.twig", 662)->display(twig_array_merge($context, ["event" => $context["event"]]));
// line 663
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['event'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 664
echo " </div>
</div>
</div>
";
}
// line 668
echo "
";
// line 669
$context["similareventscriteria"] = ["category" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 669, $this->source); })()), "category", [], "any", false, false, false, 669), "slug", [], "any", false, false, false, 669), "limit" => 8, "otherthan" => twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 669, $this->source); })()), "slug", [], "any", false, false, false, 669)];
// line 670
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 670, $this->source); })()), "getFirstVenue", [], "any", false, false, false, 670)) {
// line 671
echo " ";
$context["similareventscriteria"] = twig_array_merge((isset($context["similareventscriteria"]) || array_key_exists("similareventscriteria", $context) ? $context["similareventscriteria"] : (function () { throw new RuntimeError('Variable "similareventscriteria" does not exist.', 671, $this->source); })()), ["country" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 671, $this->source); })()), "getFirstVenue", [], "any", false, false, false, 671), "country", [], "any", false, false, false, 671), "slug", [], "any", false, false, false, 671)]);
// line 672
echo " ";
}
// line 673
echo " ";
$context["similarevents"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["services"]) || array_key_exists("services", $context) ? $context["services"] : (function () { throw new RuntimeError('Variable "services" does not exist.', 673, $this->source); })()), "getEvents", [0 => (isset($context["similareventscriteria"]) || array_key_exists("similareventscriteria", $context) ? $context["similareventscriteria"] : (function () { throw new RuntimeError('Variable "similareventscriteria" does not exist.', 673, $this->source); })())], "method", false, false, false, 673), "getQuery", [], "method", false, false, false, 673), "getResult", [], "method", false, false, false, 673);
// line 674
echo "
";
// line 675
if ((twig_length_filter($this->env, (isset($context["similarevents"]) || array_key_exists("similarevents", $context) ? $context["similarevents"] : (function () { throw new RuntimeError('Variable "similarevents" does not exist.', 675, $this->source); })())) > 0)) {
// line 676
echo " <div class=\"row\">
<div class=\"col-12\">
<h3 class=\"mt-5 mb-4 text-center\">";
// line 678
echo "Similar events";
echo "</h3>
<div class=\"owl-init owl-carousel\" data-margin=\"15\" data-items=\"4\" data-dots=\"false\" data-nav=\"true\" data-autoplay=\"true\" data-loop=\"false\">
";
// line 680
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["similarevents"]) || array_key_exists("similarevents", $context) ? $context["similarevents"] : (function () { throw new RuntimeError('Variable "similarevents" does not exist.', 680, $this->source); })()));
$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["event"]) {
// line 681
echo " ";
$this->loadTemplate("Global/event-card.html.twig", "Front/Event/event.html.twig", 681)->display(twig_array_merge($context, ["event" => $context["event"]]));
// line 682
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['event'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 683
echo " </div>
</div>
</div>
";
}
// line 687
echo "
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 693
public function block_javascripts($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", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 694
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("event");
echo "
";
// line 696
if (((isset($context["chatbot_id"]) || array_key_exists("chatbot_id", $context) ? $context["chatbot_id"] : (function () { throw new RuntimeError('Variable "chatbot_id" does not exist.', 696, $this->source); })()) != null)) {
// line 697
echo " <script type=\"module\">
import Chatbot from \"";
// line 698
echo twig_escape_filter($this->env, (isset($context["chatbot_flowise"]) || array_key_exists("chatbot_flowise", $context) ? $context["chatbot_flowise"] : (function () { throw new RuntimeError('Variable "chatbot_flowise" does not exist.', 698, $this->source); })()), "html", null, true);
echo "\";
Chatbot.init({
chatflowid: \"";
// line 700
echo twig_escape_filter($this->env, (isset($context["chatbot_id"]) || array_key_exists("chatbot_id", $context) ? $context["chatbot_id"] : (function () { throw new RuntimeError('Variable "chatbot_id" does not exist.', 700, $this->source); })()), "html", null, true);
echo "\",
apiHost: \"";
// line 701
echo twig_escape_filter($this->env, (isset($context["api_host"]) || array_key_exists("api_host", $context) ? $context["api_host"] : (function () { throw new RuntimeError('Variable "api_host" does not exist.', 701, $this->source); })()), "html", null, true);
echo "\"
});
</script>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Front/Event/event.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 2046 => 701, 2042 => 700, 2037 => 698, 2034 => 697, 2032 => 696, 2026 => 694, 2016 => 693, 2002 => 687, 1996 => 683, 1982 => 682, 1979 => 681, 1962 => 680, 1957 => 678, 1953 => 676, 1951 => 675, 1948 => 674, 1945 => 673, 1942 => 672, 1939 => 671, 1936 => 670, 1934 => 669, 1931 => 668, 1925 => 664, 1911 => 663, 1908 => 662, 1891 => 661, 1886 => 659, 1882 => 657, 1879 => 656, 1877 => 655, 1870 => 650, 1866 => 648, 1864 => 647, 1861 => 646, 1858 => 645, 1855 => 644, 1848 => 639, 1842 => 637, 1839 => 636, 1825 => 635, 1822 => 634, 1805 => 633, 1792 => 623, 1786 => 619, 1772 => 618, 1769 => 617, 1752 => 616, 1741 => 610, 1727 => 605, 1715 => 604, 1710 => 601, 1707 => 600, 1704 => 599, 1702 => 598, 1696 => 594, 1693 => 593, 1685 => 591, 1682 => 590, 1674 => 588, 1666 => 586, 1663 => 585, 1660 => 584, 1657 => 583, 1649 => 581, 1647 => 580, 1641 => 579, 1630 => 577, 1611 => 572, 1601 => 571, 1585 => 566, 1575 => 565, 1569 => 561, 1566 => 560, 1563 => 559, 1559 => 557, 1556 => 556, 1548 => 554, 1545 => 553, 1537 => 551, 1529 => 549, 1526 => 548, 1523 => 547, 1521 => 546, 1517 => 544, 1503 => 539, 1500 => 538, 1492 => 536, 1489 => 535, 1487 => 534, 1480 => 533, 1477 => 532, 1475 => 531, 1470 => 528, 1464 => 527, 1460 => 525, 1457 => 524, 1451 => 522, 1449 => 521, 1444 => 520, 1436 => 518, 1434 => 517, 1428 => 514, 1424 => 512, 1421 => 511, 1417 => 510, 1409 => 505, 1405 => 503, 1398 => 499, 1384 => 494, 1380 => 492, 1371 => 488, 1361 => 485, 1353 => 484, 1345 => 483, 1337 => 482, 1331 => 479, 1327 => 478, 1321 => 474, 1307 => 472, 1305 => 471, 1295 => 470, 1291 => 468, 1289 => 467, 1276 => 457, 1267 => 451, 1249 => 446, 1246 => 445, 1243 => 444, 1240 => 443, 1234 => 440, 1229 => 438, 1225 => 437, 1219 => 434, 1215 => 432, 1212 => 431, 1209 => 430, 1206 => 429, 1204 => 428, 1199 => 425, 1196 => 424, 1190 => 422, 1187 => 421, 1185 => 420, 1181 => 419, 1174 => 415, 1170 => 414, 1164 => 411, 1160 => 409, 1157 => 408, 1154 => 407, 1151 => 406, 1148 => 405, 1145 => 404, 1142 => 403, 1139 => 402, 1136 => 401, 1133 => 400, 1126 => 395, 1120 => 392, 1117 => 391, 1106 => 390, 1102 => 389, 1099 => 388, 1095 => 386, 1089 => 384, 1087 => 383, 1083 => 382, 1080 => 381, 1077 => 380, 1070 => 379, 1067 => 378, 1061 => 377, 1058 => 376, 1055 => 375, 1052 => 373, 1049 => 372, 1041 => 369, 1023 => 354, 1019 => 352, 1017 => 351, 1013 => 350, 1006 => 348, 1001 => 345, 997 => 343, 992 => 340, 984 => 338, 981 => 337, 967 => 336, 964 => 335, 947 => 334, 943 => 332, 941 => 331, 933 => 326, 926 => 322, 919 => 318, 913 => 315, 906 => 311, 899 => 307, 893 => 304, 886 => 300, 879 => 296, 873 => 293, 866 => 289, 859 => 285, 853 => 282, 846 => 278, 839 => 274, 831 => 268, 823 => 266, 820 => 265, 817 => 264, 809 => 262, 801 => 260, 798 => 259, 795 => 258, 793 => 257, 784 => 253, 766 => 238, 758 => 235, 753 => 232, 751 => 231, 748 => 230, 743 => 227, 732 => 225, 728 => 224, 723 => 221, 721 => 220, 713 => 215, 710 => 214, 704 => 210, 693 => 208, 690 => 207, 679 => 205, 676 => 204, 665 => 202, 662 => 201, 651 => 199, 648 => 198, 637 => 196, 634 => 195, 626 => 193, 623 => 192, 615 => 190, 612 => 189, 601 => 187, 599 => 186, 593 => 183, 590 => 182, 587 => 181, 580 => 177, 575 => 175, 572 => 174, 569 => 173, 562 => 168, 546 => 163, 540 => 161, 530 => 159, 528 => 158, 525 => 157, 521 => 156, 515 => 153, 512 => 152, 510 => 151, 506 => 149, 500 => 145, 487 => 143, 483 => 142, 477 => 139, 474 => 138, 471 => 137, 465 => 134, 461 => 133, 458 => 132, 455 => 131, 449 => 128, 445 => 127, 442 => 126, 439 => 125, 433 => 122, 429 => 121, 426 => 120, 423 => 119, 417 => 116, 413 => 115, 410 => 114, 407 => 113, 399 => 110, 395 => 109, 392 => 108, 389 => 107, 383 => 104, 379 => 103, 376 => 102, 374 => 101, 370 => 99, 363 => 95, 358 => 93, 355 => 92, 352 => 91, 344 => 88, 326 => 73, 322 => 71, 319 => 70, 317 => 69, 313 => 68, 306 => 66, 300 => 63, 294 => 62, 285 => 56, 277 => 55, 269 => 49, 266 => 48, 264 => 47, 261 => 46, 258 => 45, 255 => 44, 252 => 43, 249 => 42, 246 => 41, 243 => 40, 240 => 39, 237 => 38, 234 => 37, 231 => 36, 228 => 35, 225 => 34, 223 => 33, 220 => 32, 210 => 31, 195 => 24, 185 => 23, 173 => 20, 169 => 19, 164 => 18, 160 => 17, 156 => 16, 151 => 15, 146 => 14, 140 => 12, 101 => 10, 99 => 9, 94 => 8, 84 => 7, 65 => 5, 54 => 1, 52 => 3, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"Global/layout.html.twig\" %}
{% set pagetitle = event.name %}
{% block title %}{{pagetitle}}{% endblock %}
{% block meta_dynamic_seo %}
<meta name=\"description\" content=\"{{ event.description|raw|nl2br|striptags|slice(0, 200)|raw }}...\" />
{% if event.tags %}
<meta name=\"keywords\" content=\"{{ event.name }}, {{ event.category.name }}, {% for tag in event.tags|split(',') %}{{ tag }}{{ not loop.last ? ', ' : '' }}{% endfor %}\" />
{% else %}
<meta name=\"keywords\" content=\"{{ services.getSetting(\"website_keywords_\" ~ app.request.get('_locale')) }}\" />
{% endif %}
<meta property=\"og:title\" content=\"{{ event.name }}\" />
<meta property=\"og:image\" content=\"{{ app.request.getSchemeAndHttpHost() }}{{ event.imageName ? asset(event.getImagePath) : event.getImagePlaceholder }}\" />
<meta property=\"og:description\" content=\"{{ event.description|raw|nl2br|striptags|slice(0, 200)|raw }}...\" />
<meta name=\"twitter:title\" content=\"{{ event.name }}\" />
<meta name=\"twitter:image\" content=\"{{ app.request.getSchemeAndHttpHost() }}{{ event.imageName ? asset(event.getImagePath) : event.getImagePlaceholder }}\" />
<meta name=\"twitter:image:alt\" content=\"{{ event.name }}\" />
<meta name=\"twitter:description\" content=\"{{ event.description|raw|nl2br|striptags|slice(0, 200)|raw }}...\" />
{% endblock %}
{% block stylesheets %}
<style>
.material-scrolltop.reveal {
bottom: 75px !important;
}
</style>
{% endblock %}
{% block content %}
{% if is_granted('ROLE_ADMINISTRATOR') %}
{% include \"Global/message.html.twig\" with { type: 'info', icon: 'fas fa-info-circle', message: ('<a href=\"'~ path('dashboard_administrator_event', {slug: event.slug}) ~'\">' ~ 'Click here'|trans ~ '</a> ' ~ 'to manage this event'|trans) } %}
{% endif %}
{% if is_granted('ROLE_ORGANIZER') %}
{% if event.organizer == app.user.organizer %}
{% include \"Global/message.html.twig\" with { type: 'info', icon: 'fas fa-info-circle', message: ('<a href=\"'~ path('dashboard_organizer_event', {slug: event.slug}) ~'\">' ~ 'Click here'|trans ~ '</a> ' ~ 'to manage your event'|trans) } %}
{% endif %}
{% endif %}
{% if is_granted('ROLE_ATTENDEE') %}
{% if app.user.hasBoughtATicketForEvent(event) %}
{% include \"Global/message.html.twig\" with { type: 'info', icon: 'fas fa-ticket-alt', message: ('You are going to this event'|trans ~ ' ' ~ '<a href=\"'~ path('dashboard_attendee_orders', {event: event.slug}) ~'\">' ~ 'My tickets'|trans ~ '</a>') } %}
{% endif %}
{% endif %}
{% set navigation = [{\"events\": \"Events\"|trans, \"current\" : (pagetitle)}] %}
{% include \"Global/navigation.html.twig\" with navigation %}
<div class=\"row no-gutters\">
<div class=\"col-12 p-0\">
<section class=\"section-main\">
<div class=\"owl-init slider-main owl-carousel\" data-items=\"1\" data-dots=\"false\" data-nav=\"false\" data-autoplay=\"false\">
<div class=\"item-slide d-flex\">
<img class=\"slider-img justify-content-center align-self-center img-lazy-load\" src=\"{{ asset('assets/img/loader.gif') }}\" data-src=\"{{ event.imageName ? asset(event.getImagePath) : event.getImagePlaceholder }}\" alt=\"{{ event.name }}\" />
<div class=\"slider-blured-background\" style=\"background-image: url('{{ event.imageName ? asset(event.getImagePath) : event.getImagePlaceholder }}');\"></div>
</div>
</div>
</section>
</div>
</div>
<section class=\"section-content padding-y bg-white {% if app.request.locale ==\"ar\" %}overflow-hidden{% endif %}\">
<div class=\"{{ services.getSetting(\"app_layout\") }}\">
<div class=\"card\">
<div class=\"row\">
<div class=\"col-12 col-lg-8 {% if app.request.locale !=\"ar\" %}border-right{% endif %} order-1 order-lg-0\">
<div class=\"card-body\">
<h1 class=\"card-title b d-none d-lg-block\">{{ event.name }}</h1>
{% set reviewscount = services.getReviews({\"count\": true, \"event\": event.slug}).getQuery().getSingleScalarResult() %}
{% if event.enablereviews %}
<div class=\"rating-wrap d-none d-lg-block\">
<ul class=\"rating-stars\">
<li style=\"width:{{event.getRatingPercentage}}%\" class=\"stars-active\">
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
</li>
<li>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
</li>
</ul>
<div class=\"label-rating\">{{ reviewscount }} {{\"Review(s)\"|trans|lower}}</div>
</div>
{% endif %}
{% if event.description %}
<dl class=\"mt-5 event-description\">
<dt class=\"text-muted\">{{\"Description\"|trans}}</dt>
<dd class=\"line-height-2 readmore\" data-collapsed-height=\"500\" data-height-margin=\"20\">
{{ event.description|raw|nl2br }}
</dd>
</dl>
{% endif %}
<ul class=\"list-group list-group-flush mt-5 mb-5 p-0\">
<li class=\"list-group-item pl-0 pr-0\">
{% if event.category %}
<dl class=\"dlist-align\">
<dt class=\"text-muted\">{{\"Category\"|trans}}</dt>
<dd class=\"text-right\">{{ event.category.name }}</dd>
</dl>
{% endif %}
{% if event.country %}
<dl class=\"dlist-align\">
<dt class=\"text-muted\">{{\"Country\"|trans}}</dt>
<dd class=\"text-right\"><span class=\"flag flag-{{event.country.code|lower}}\"></span> {{ event.country.name }}</dd>
</dl>
{% endif %}
{% if event.languages|length > 0 %}
<dl class=\"dlist-align\">
<dt class=\"text-muted\">{{\"Languages\"|trans}}</dt>
<dd class=\"text-right\">{{ event.displayLanguages }}</dd>
</dl>
{% endif %}
{% if event.subtitles|length > 0 %}
<dl class=\"dlist-align\">
<dt class=\"text-muted\">{{\"Subtitles\"|trans}}</dt>
<dd class=\"text-right\">{{ event.displaySubtitles }}</dd>
</dl>
{% endif %}
{% if event.artists %}
<dl class=\"dlist-align\">
<dt class=\"text-muted\">{{\"Artists\"|trans}}</dt>
<dd class=\"text-right\">{{ event.artists }}</dd>
</dl>
{% endif %}
{% if event.year %}
<dl class=\"dlist-align\">
<dt class=\"text-muted\">{{\"Year\"|trans}}</dt>
<dd class=\"text-right\">{{ event.year }}</dd>
</dl>
{% endif %}
{% if event.audiences|length > 0 %}
<dl class=\"dlist-align\">
<dt class=\"text-muted\">{{\"Audience\"|trans}}</dt>
<dd class=\"text-right\">
<ul class=\"list-inline\">
{% for audience in event.audiences %}
<li class=\"list-inline-item\" data-toggle=\"tooltip\" title=\"{{ audience.name }}\"><img src=\"{{ audience.imageName ? asset(audience.getImagePath) : audience.getImagePlaceholder }}\" class=\"img-xxs\" alt=\"{{ audience.name }}\" /></li>
{% endfor %}
</ul>
</dd>
</dl>
{% endif %}
</li>
</ul>
{% if event.images|length > 0 %}
<dl class=\"mt-5\">
<dt class=\"text-muted\">{{\"Photos\"|trans}}</dt>
<dd class=\"mr-0\">
<div class=\"gallery photos-gallery clearfix\">
{% for image in event.images %}
<figure>
{% if image.imageDimensions is defined and image.imageDimensions|length >= 2 %}
<a href=\"{{ asset(image.getImagePath) }}\" data-size=\"{{ image.imageDimensions[0] }}x{{ image.imageDimensions[1] }}\">
{% else %}
<a href=\"{{ asset(image.getImagePath) }}\" data-size=\"default-widthxdefault-height\">
{% endif %}
<img class=\"img-lazy-load\" src=\"{{ asset('assets/img/loader.gif') }}\" data-src=\"{{ image.getImagePath|imagine_filter('thumbnail') }}\" alt=\"{{ event.name }}\" />
</a>
</figure>
{% endfor %}
</div>
</dd>
</dl>
{% endif %}
{% if event.youtubeurl %}
<dl class=\"mt-5\">
<dt class=\"text-muted\">{{\"Video\"|trans}}</dt>
<dd class=\"mr-0\">
<iframe class=\"w-100 border-0\" height=\"400\" src=\"https://www.youtube.com/embed/{{event.youtubeurl|split('=')[1]}}\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>
</dd>
</dl>
{% endif %}
{% if event.hasContactAndSocialMedia %}
<dl class=\"mt-5\">
<dt class=\"text-muted\">{{\"Contact & Social media\"|trans}}</dt>
<dd class=\"mr-0\">
<ul class=\"list-icon row no-gutters\">
{% if event.externallink %}
<li class=\"col-md-6\"><a href=\"{% if 'http://' not in event.externallink and 'https://' not in event.externallink %}http://{% endif %}{{ event.externallink }}\" rel=\"noopener\" class=\"pl-4\" target=\"_blank\"><i class=\"icon fas fa-globe fa-fw\"></i><span>{{ event.externallink }}</span></a></li>
{% endif %}
{% if event.email %}
<li class=\"col-md-6\"><a href=\"mailto:{{ event.email }}\" class=\"pl-4\"><i class=\"icon fas fa-at fa-fw\"></i><span>{{ event.email }}</span></a></li>
{% endif %}
{% if event.phonenumber %}
<li class=\"col-md-6\"><a href=\"tel:{{ event.phonenumber }}\" class=\"pl-4\"><i class=\"icon fas fa-phone fa-fw\"></i><span>{{ event.phonenumber }}</span></a></li>
{% endif %}
{% if event.facebook %}
<li class=\"col-md-6\"><a href=\"{% if 'http://' not in event.facebook and 'https://' not in event.facebook %}http://{% endif %}{{ event.facebook }}\" class=\"pl-4\" rel=\"noopener\" target=\"_blank\"><i class=\"icon fab fa-facebook-f fa-fw\"></i><span>{{ event.facebook }}</span></a></li>
{% endif %}
{% if event.twitter %}
<li class=\"col-md-6\"><a href=\"{% if 'http://' not in event.twitter and 'https://' not in event.twitter %}http://{% endif %}{{ event.twitter }}\" class=\"pl-4\" rel=\"noopener\" target=\"_blank\"><i class=\"icon fab fa-twitter fa-fw\"></i><span>{{ event.twitter }}</span></a></li>
{% endif %}
{% if event.googleplus %}
<li class=\"col-md-6\"><a href=\"{% if 'http://' not in event.googleplus and 'https://' not in event.googleplus %}http://{% endif %}{{ event.googleplus }}\" rel=\"noopener\" class=\"pl-4\" target=\"_blank\"><i class=\"icon fab fa-google-plus fa-fw\"></i><span>{{ event.googleplus }}</span></a></li>
{% endif %}
{% if event.instagram %}
<li class=\"col-md-6\"><a href=\"{% if 'http://' not in event.instagram and 'https://' not in event.instagram %}http://{% endif %}{{ event.instagram }}\" rel=\"noopener\" class=\"pl-4\" target=\"_blank\"><i class=\"icon fab fa-instagram fa-fw\"></i><span>{{ event.instagram }}</span></a></li>
{% endif %}
{% if event.linkedin %}
<li class=\"col-md-6\"><a href=\"{% if 'http://' not in event.linkedin and 'https://' not in event.linkedin %}http://{% endif %}{{ event.linkedin }}\" rel=\"noopener\" class=\"pl-4\" target=\"_blank\"><i class=\"icon fab fa-linkedin fa-fw\"></i><span>{{ event.linkedin }}</span></a></li>
{% endif %}
</ul>
</dd>
</dl>
{% endif %}
<dl class=\"mt-5\">
<dt class=\"text-muted\">{{ \"Share\"|trans }}</dt>
<dd class=\"mr-0\">
<div class=\"sharer\"></div>
</dd>
</dl>
{% if event.tags %}
<hr class=\"mt-5\">
<div class=\"row\">
<div class=\"col\">
{% for tag in event.tags|split(',') %}
<a href=\"{{ path('events', { keyword : tag }) }}\" class=\"btn btn-sm btn-default mr-3 mb-3 mt-3\">{{ tag }}</a>
{% endfor %}
</div>
</div>
{% endif %}
{% if event.enablereviews %}
<hr class=\"mb-5\">
<div class=\"row\">
<div class=\"col-12 col-sm-6 mb-5\">
<h3 class=\"mb-1\">{{ reviewscount }} {{ \"review\"|trans|lower }}</h3>
<div class=\"rating-wrap\">
<ul class=\"rating-stars\">
<li style=\"width:{{event.getRatingPercentage}}%\" class=\"stars-active\">
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
</li>
<li>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
</li>
</ul>
<div class=\"label-rating\">{{ event.getRatingAvg }} {{\"out of 5 stars\"|trans|lower}}</div>
</div>
</div>
<div class=\"col-12 col-sm-6 text-sm-right\">
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
{% if is_granted('ROLE_ATTENDEE') %}
{% if event.isRatedBy(app.user) %}
<a href=\"{{ path('dashboard_attendee_reviews', { slug: event.isRatedBy(app.user).slug }) }}\" class=\"btn btn-outline-primary\"><i class=\"far fa-star\"></i> {{ \"My review\"|trans }}</a>
{% else %}
<a href=\"{{ path('dashboard_attendee_reviews_add', { slug: event.slug }) }}\" class=\"btn btn-outline-primary\"><i class=\"far fa-star\"></i> {{ \"Add your review\"|trans }}</a>
{% endif %}
{% endif %}
{% else %}
<a href=\"{{ path('fos_user_security_login')~'?_target_path='~app.request.getPathInfo }}\" rel=\"noopener\" class=\"btn btn-outline-primary\"><i class=\"far fa-star\"></i> {{ \"Add your review\"|trans }}</a>
{% endif %}
</div>
</div>
<div class=\"row mb-5 event-scorecard\">
<div class=\"col-12\">
<div class=\"side\">
<div>{{ \"5 stars\"|trans }}</div>
</div>
<div class=\"middle\">
<div class=\"bar-container\">
<div class=\"bar\" style=\"width: {{ event.getRatingsPercentageForRating(5) }}%;\"></div>
</div>
</div>
<div class=\"side right\">
<div class=\"text-muted\">{{ event.getRatingsPercentageForRating(5) }}%</div>
</div>
<div class=\"side\">
<div>{{ \"4 stars\"|trans }}</div>
</div>
<div class=\"middle\">
<div class=\"bar-container\">
<div class=\"bar\" style=\"width: {{ event.getRatingsPercentageForRating(4) }}%;\"></div>
</div>
</div>
<div class=\"side right\">
<div class=\"text-muted\">{{ event.getRatingsPercentageForRating(4) }}%</div>
</div>
<div class=\"side\">
<div>{{ \"3 stars\"|trans }}</div>
</div>
<div class=\"middle\">
<div class=\"bar-container\">
<div class=\"bar\" style=\"width: {{ event.getRatingsPercentageForRating(3) }}%;\"></div>
</div>
</div>
<div class=\"side right\">
<div class=\"text-muted\">{{ event.getRatingsPercentageForRating(3) }}%</div>
</div>
<div class=\"side\">
<div>{{ \"2 stars\"|trans }}</div>
</div>
<div class=\"middle\">
<div class=\"bar-container\">
<div class=\"bar\" style=\"width: {{ event.getRatingsPercentageForRating(2) }}%;\"></div>
</div>
</div>
<div class=\"side right\">
<div class=\"text-muted\">{{ event.getRatingsPercentageForRating(2) }}%</div>
</div>
<div class=\"side\">
<div>{{ \"1 star\"|trans }}</div>
</div>
<div class=\"middle\">
<div class=\"bar-container\">
<div class=\"bar\" style=\"width: {{ event.getRatingsPercentageForRating(1) }}%;\"></div>
</div>
</div>
<div class=\"side right\">
<div class=\"text-muted\">{{ event.getRatingsPercentageForRating(1) }}%</div>
</div>
</div>
</div>
{% if reviewscount|length %}
<div id=\"reviews\" class=\"row\">
<div class=\"col-12\">
{% for review in services.getReviews({\"event\": event.slug, \"limit\": 8}).getQuery().getResult() %}
{% include \"Global/user-review.html.twig\" with { review : review, showuser: 1 } %}
{% endfor %}
{% if reviewscount > 8 %}
<a href=\"{{ path('event_reviews') }}\" class=\"btn btn-outline-primary mx-auto\"><i class=\"far fa-star-half-full\"></i> {{ \"See all %reviewscount% reviews\"|trans({'%reviewscount%': reviewscount}) }}</a>
{% endif %}
</div>
</div>
{% endif %}
{% endif %}
</div>
</div>
<div class=\"col-12 col-lg-4 order-0 order-lg-1 {% if app.request.locale==\"ar\" %}border-right{% endif %}\">
<div class=\"card-body\">
<h1 class=\"card-title b d-lg-none text-center\">{{ event.name }}</h1>
{% if event.enablereviews %}
<div class=\"rating-wrap mb-5 d-lg-none text-center\">
<ul class=\"rating-stars\">
<li style=\"width:{{event.getRatingPercentage}}%\" class=\"stars-active\">
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
</li>
<li>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
<i class=\"fa fa-star\"></i>
</li>
</ul>
<div class=\"label-rating\">{{ reviewscount }} {{\"Reviews\"|trans|lower}}</div>
</div>
{% endif %}
{% if event.hasAnEventDateOnSale %}
{# Event Dates calendar used on multi date events #}
{% if event.hasTwoOrMoreEventDatesOnSale %}
{% set eventDatesCalendar = [] %}
{% for eventDate in event.eventdates if eventDate.isOnSale %}
{% set eventDatesCalendar = eventDatesCalendar|merge([{\"Date\": eventDate.startdate|date('Y-m-d'), \"Title\": eventDate.startdate|date('g:i A'), \"Link\": eventDate.reference}]) %}
{% endfor %}
{% include \"Global/message.html.twig\" with { type: 'info', icon: 'fas fa-info-circle', message: \"Click on a date to view tickets\"|trans } %}
<div id=\"event-dates-calendar\" class=\"mt-5\" data-event-dates=\"{{ eventDatesCalendar|json_encode() }}\"></div>
{% if is_granted('ROLE_ATTENDEE') %}
<button id=\"add-to-cart-button\" type=\"button\" class=\"btn btn-primary btn-block mt-3 mb-3\"><i class=\"fas fa-cart-plus\"></i> {{ \"Add to cart\"|trans }}</button>
{% endif %}
{% endif %}
<form id=\"add-to-cart-form\" action=\"{{ path('dashboard_attendee_cart_add') }}\" method=\"post\">
{% for eventDate in event.eventdates if eventDate.isOnSale %}
<div id=\"eventDate-{{eventDate.reference}}-wrapper\" class=\"event-eventDate-wrapper\">
<dl>
<dt class=\"text-muted\">
<span>{{ \"Dates\"|trans }}</span>
</dt>
<dd>
<div class=\"text-center\">
{# for the add to calendar link #}
{% set eventstartdate = \"\" %}
{% set eventenddate = \"\" %}
{% set eventlocation = \"\" %}
{% if eventDate.venue %}
{% set eventlocation = eventDate.venue.name ~ ': ' ~ eventDate.venue.stringifyAddress %}
{% else %}
{% set eventlocation = \"Online\"|trans %}
{% endif %}
{% if eventDate.startdate %}
<div class=\"display-inline-block\">
<div class=\"display-inline-block\">
<span class=\"font-size-3rem\">{{ eventDate.startdate|date('d') }}</span>
</div>
<div class=\"display-inline-block mr-3\">
<div><span class=\"font-size-1rem\">{{ eventDate.startdate|localizeddate('none', 'none', app.request.locale, null, \"MMMM\")|capitalize|slice(0, 3) }}</span></div>
<div><span>{{ eventDate.startdate|date('Y') }}</span></div>
</div>
<div class=\"mb-2\">
<span class=\"text-muted b\">
{{ eventDate.startdate|date('g:i a')|upper }}
{% if eventDate.enddate %}
{% if eventDate.enddate|date('Y-m-d') == eventDate.startdate|date('Y-m-d') %}
- {{ eventDate.enddate|date('g:i a')|upper }}
{% endif %}
{% endif %}
</span>
</div>
</div>
{% set eventstartdate = eventDate.startdate|date('F d, Y H:i') %}
{% endif %}
{% if eventDate.enddate %}
{% if eventDate.enddate|date('Y-m-d') != eventDate.startdate|date('Y-m-d') %}
<div class=\"display-inline-block\">
<div class=\"display-inline-block\">
<span class=\"font-size-3rem\">{{ eventDate.enddate|date('d') }}</span>
</div>
<div class=\"display-inline-block\">
<div><span class=\"font-size-1rem\">{{ eventDate.enddate|localizeddate('none', 'none', app.request.locale, null, \"MMMM\")|capitalize|slice(0, 3) }}</span></div>
<div><span>{{ eventDate.enddate|date('Y') }}</span></div>
</div>
<div class=\"mb-2\"><span class=\"text-muted b\">{{ eventDate.enddate|date('g:i a')|upper }}</span></div>
</div>
{% endif %}
{% set eventstartdate = eventDate.enddate|date('F d, Y H:i') %}
{% endif %}
<div class=\"clearfix\"></div>
<a id=\"add-to-calendar-link\" data-toggle=\"modal\" data-target=\"#add-to-calendar-modal\" href=\"javascript:void(0)\" data-title=\"{{ event.name }}\" data-start=\"{{ eventstartdate }}\" data-end=\"{{ eventenddate }}\" data-address=\"{{ eventlocation }}\" data-description=\"{{ event.description|striptags|slice(0, 250)|raw|nl2br }}\"><i class=\"fas fa-calendar-plus\"></i> {{ \"Add to calendar\"|trans }}</a>
<div class=\"modal fade\" id=\"add-to-calendar-modal\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h4 class=\"modal-title\"><i class=\"fas fa-calendar-plus\"></i> {{ \"Add to calendar\"|trans }}</h4>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\">×</button>
</div>
<div id=\"add-to-calendar\" class=\"modal-body\">
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-primary\" data-dismiss=\"modal\">{{ \"Close\"|trans }}</button>
</div>
</div>
</div>
</div>
</div>
</dd>
</dl>
<hr class=\"hr-md\">
{% if eventDate.venue %}
<dl>
<dt class=\"text-muted\">
<span class=\"{% if app.request.locale == \"ar\" %}float-right{% else %}float-left{% endif %}\">{{ \"Venue\"|trans }}</span>
{% if eventDate.venue.listedondirectory %}
<a href=\"{{ path('venue', { slug: eventDate.venue.slug }) }}\" class=\"{% if app.request.locale == \"ar\" %}float-left{% else %}float-right{% endif %} text-sm\"><i class=\"far fa-building\"></i> {{ \"Details\"|trans }}</a>
{% endif %}
<div class=\"clearfix\"></div>
</dt>
<dd class=\"mr-0\">
<h4 class=\"text-center\">{{ eventDate.venue.name }}</h4>
<p>{{ eventDate.venue.stringifyAddress }}</p>
<div class=\"d-flex mb-3\">
<ul class=\"list-inline mx-auto\">
<li class=\"list-inline-item\"><a href=\"https://www.google.com/maps/dir/?api=1&destination={{ eventDate.venue.lat }},{{ eventDate.venue.lng }}&travelmode=driving\" class=\"text-black-50\" data-toggle=\"tooltip\" title=\"{{ \"Display itinerary driving\"|trans }}\" rel=\"noopener\" target=\"_blank\"><i class=\"fas fa-car fa-fw\"></i></a></li>
<li class=\"list-inline-item\"><a href=\"https://www.google.com/maps/dir/?api=1&destination={{ eventDate.venue.lat }},{{ eventDate.venue.lng }}&travelmode=walking\" class=\"text-black-50\" data-toggle=\"tooltip\" title=\"{{ \"Display itinerary walking\"|trans }}\" rel=\"noopener\" target=\"_blank\"><i class=\"fas fa-walking fa-fw\"></i></a></li>
<li class=\"list-inline-item\"><a href=\"https://www.google.com/maps/dir/?api=1&destination={{ eventDate.venue.lat }},{{ eventDate.venue.lng }}&travelmode=transit\" class=\"text-black-50\" data-toggle=\"tooltip\" title=\"{{ \"Display itinerary on public transportation\"|trans }}\" rel=\"noopener\" target=\"_blank\"><i class=\"fas fa-bus fa-fw\"></i></a></li>
<li class=\"list-inline-item\"><a href=\"https://www.google.com/maps/dir/?api=1&destination={{ eventDate.venue.lat }},{{ eventDate.venue.lng }}&travelmode=bicycling\" class=\"text-black-50\" data-toggle=\"tooltip\" title=\"{{ \"Display itinerary bicycling\"|trans }}\" rel=\"noopener\" target=\"_blank\"><i class=\"fas fa-bicycle fa-fw\"></i></a></li>
</ul>
</div>
<iframe class=\"w-100 border-0 venue-map\" height=\"300\" src=\"{{ services.getCurrentRequestProtocol() }}://maps.google.com/maps?q={{ eventDate.venue.name|url_encode ~ '%20' ~ eventDate.venue.stringifyAddress|url_encode }}&t=&z=13&ie=UTF8&iwloc=&output=embed\"></iframe>
</dd>
</dl>
{% else %}
<dl>
<dt class=\"text-muted\">
<span class=\"{% if app.request.locale == \"ar\" %}float-right{% else %}float-left{% endif %}\">{{ \"Venue\" }}</span>
</dt>
<dd>
<br>
<h4 class=\"text-center\">{{ \"Online\"|trans }}</h4>
</dd>
</dl>
{% endif %}
<hr class=\"hr-md\">
<dl class=\"mt-5\">
<dt class=\"text-muted\">{{ \"Tickets\"|trans }}</dt>
<dd class=\"mr-0\">
<div class=\"table-responsive\">
<table class=\"table table-hover table-condensed\">
<tbody>
{% for ticket in eventDate.tickets %}
{% if ticket.active %}
<tr class=\"bg-gray\">
<td class=\"border-top-white\" style=\"width: 75%;\">
{{ ticket.name }}
</td>
<td class=\"border-top-white text-right\">
{% if not ticket.isOnSale %}
<span class=\"badge badge-{{ ticket.stringifyStatusClass }}\">{{ ticket.stringifyStatus|trans }}</span>
{% else %}
{{ ticket.free ? \"Free\"|trans : ((services.getSetting('currency_position') == 'left' ? services.getSetting('currency_symbol') : '') ~ ticket.getSalePrice() ~ (services.getSetting('currency_position') == 'right' ? services.getSetting('currency_symbol') : '')) }}
{% if ticket.promotionalprice and not ticket.free %}
<del class=\"price-old\">{{ (services.getSetting('currency_position') == 'left' ? services.getSetting('currency_symbol') : '') ~ ticket.getPrice() ~ (services.getSetting('currency_position') == 'right' ? services.getSetting('currency_symbol') : '') }}</del>
{% endif %}
{% endif %}
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
{% if not is_granted('IS_AUTHENTICATED_REMEMBERED') or is_granted('ROLE_ATTENDEE') %}
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<a href=\"#\" class=\"btn btn-primary btn-block mb-2 buy-tickets-modal-button\" data-toggle=\"modal\" data-target=\"#buy-tickets-modal-eventDate-{{ eventDate.reference }}\"><i class=\"fas fa-ticket-alt\"></i> {{ \"Tickets\"|trans }}</a>
{% include \"Dashboard/Attendee/Cart/add-to-cart-modal.html.twig\" with { eventdate: eventDate } %}
{% else %}
<a href=\"{{ path('fos_user_security_login')~'?_target_path='~app.request.getPathInfo }}\" class=\"btn btn-primary btn-block\"><i class=\"fas fa-ticket-alt\"></i> {{ \"Tickets\"|trans }}</a>
{% endif %}
{% endif %}
</dd>
</dl>
</div>
{% endfor %}
</form>
{% if not is_granted('IS_AUTHENTICATED_REMEMBERED') or is_granted('ROLE_ATTENDEE') %}
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
{% if event.isAddedToFavoritesBy(app.user) %}
<button class=\"event-favorites-remove btn btn-outline-primary btn-block\" data-target=\"{{ path('dashboard_attendee_favorites_remove', { slug : event.slug }) }}\" data-toggle=\"tooltip\" title=\"\" data-placement=\"bottom\"><i class=\"fas fa-heart\"></i> {{ \"Remove from favorites\"|trans }}</button>
{% else %}
<button class=\"event-favorites-add btn btn-outline-primary btn-block\" data-target=\"{{ path('dashboard_attendee_favorites_add', { slug : event.slug }) }}\" data-toggle=\"tooltip\" title=\"\" data-placement=\"bottom\"><i class=\"far fa-heart\"></i> {{ \"Add to favorites\"|trans }}</button>
{% endif %}
{% else %}
<a href=\"{{ path('fos_user_security_login')~'?_target_path='~app.request.getPathInfo }}\" class=\"btn btn-outline-primary btn-block\"><i class=\"far fa-heart\"></i> {{ \"Add to favorites\"|trans }}</a>
{% endif %}
{% endif %}
{% else %}
{% include \"Global/message.html.twig\" with { type: 'info', icon: 'fas fa-info-circle', message: \"No tickets on sale at this moment\" } %}
{% endif %}
<hr class=\"hr-md\">
<dl class=\"mt-5 mb-5\">
<dt class=\"text-muted\">
<span class=\"{% if app.request.locale == \"ar\" %}float-right{% else %}float-left{% endif %}\">{{ \"Organizer\"|trans }}</span>
<a href=\"{{ path('organizer', { slug : event.organizer.slug }) }}\" class=\"{% if app.request.locale == \"ar\" %}float-left{% else %}float-right{% endif %} text-sm\"><i class=\"far fa-id-card\"></i> {{ \"Details\"|trans }}</a>
<div class=\"clearfix\"></div>
</dt>
<dt class=\"text-muted\">
<span class=\"{% if app.request.locale == \"ar\" %}float-right{% else %}float-left{% endif %}\">{{ \"Organizer WhatsApp Number\"|trans }}</span>
<a target=\"_blank\" href=\"https://wa.me/{{ event.whatsappnumber }}?text=Hi,%20I%20want%20to%20know%20about%20your%20event:%20{{ app.request.schemeAndHttpHost }}{{ path('event', { slug: event.slug }) }}\" class=\"{% if app.request.locale == \"ar\" %}float-left{% else %}float-right{% endif %} text-sm\"><i class=\"fab fa-whatsapp\"></i> {{ event.whatsappnumber }}</a>
<div class=\"clearfix\"></div>
</dt>
<dd class=\"mr-0\">
<div class=\"card-banner {{ event.organizer.coverName ? '' : 'organizer-preview-no-cover' }}\"{% if event.organizer.coverName %} style=\"height:250px;background-image: url('{{asset(event.organizer.getCoverPath|imagine_filter('thumbnail', {\"thumbnail\": {\"size\": [400, 250] }}))}}');\" {% endif %}>
<article class=\"overlay bottom text-center\">
<h4 class=\"card-title\"><a href=\"{{ path('organizer', { slug : event.organizer.slug }) }}\">{{ event.organizer.name }}</a></h4>
{% if event.organizer.logoName %}
<img src=\"{{asset(event.organizer.getLogoPath)}}\" class=\"img-100-100 d-block mx-auto mb-3 img-thumbnail\" alt=\"{{ event.organizer.name }}\" />
{% endif %}
{% if not is_granted('IS_AUTHENTICATED_REMEMBERED') or is_granted('ROLE_ATTENDEE') %}
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
{% if event.organizer.isFollowedBy(app.user) %}
<button class=\"organizer-unfollow btn btn-primary btn-sm\" data-target=\"{{ path('dashboard_attendee_following_remove', { slug : event.organizer.slug }) }}\"><i class=\"fas fa-folder-minus\"></i> {{ \"Unfollow\"|trans }}</button>
{% else %}
<button class=\"organizer-follow btn btn-primary btn-sm\" data-target=\"{{ path('dashboard_attendee_following_add', { slug : event.organizer.slug }) }}\"><i class=\"fas fa-folder-plus\"></i> {{ \"Follow\"|trans }}</button>
{% endif %}
{% else %}
<a href=\"{{ path('fos_user_security_login')~'?_target_path='~app.request.getPathInfo }}\" class=\"btn btn-primary btn-sm\"><i class=\"fas fa-folder-plus\"></i> {{ \"Follow\"|trans }}</a>
{% endif %}
{% endif %}
</article>
</div>
</dd>
</dl>
{% if event.showattendees %}
{% set attendeescount = event.getTotalOrderElementsQuantitySum(1, 'all', 'ROLE_ATTENDEE') %}
{% if attendeescount %}
<hr>
<dl class=\"mt-5\">
<dt class=\"text-muted mb-3\">
<span class=\"{% if app.request.locale == \"ar\" %}float-right{% else %}float-left{% endif %}\">{{ \"Attendees\"|trans }} <b>({{attendeescount}})</b></span>
<a href=\"#\" class=\"{% if app.request.locale == \"ar\" %}float-left{% else %}float-right{% endif %} text-sm\" data-toggle=\"modal\" data-target=\"#attendees-modal\"><i class=\"fas fa-users\"></i> {{ \"See all\"|trans }}</a>
<div class=\"modal fade\" id=\"attendees-modal\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<div class=\"modal-title h4\">{{ \"Attendees\"|trans }} ({{attendeescount}})</div>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\">×</button>
</div>
<div class=\"modal-body\">
<div class=\"card border-0 card-body overflow-auto text-nowrap\">
<div class=\"avatar-list py-4\">
{% for user in services.getUsers({\"hasboughtticketfor\": event.slug, \"role\": \"attendee\"}).getQuery().getResult() %}
{% include \"Global/user-avatar.html.twig\" with { user: user, showusernametooltip: true } %}
{% endfor %}
</div>
</div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-primary\" data-dismiss=\"modal\">{{ \"Close\"|trans }}</button>
</div>
</div>
</div>
</div>
<div class=\"clearfix\"></div>
</dt>
<dd class=\"mr-0\">
<div class=\"card border-0 card-body\">
<div class=\"avatar-list avatar-list-stacked\">
{% for user in services.getUsers({\"hasboughtticketfor\": event.slug, \"limit\": 12, \"role\": \"attendee\"}).getQuery().getResult() %}
{% include \"Global/user-avatar.html.twig\" with { user: user, showusernametooltip: true } %}
{% endfor %}
{% if attendeescount > 12 %}
<span class=\"avatar\">{{ attendeescount - 12 }}</span>
{% endif %}
</div>
</div>
</dd>
</dl>
{% endif %}
{% endif %}
{% if services.getSetting(\"newsletter_enabled\") == \"yes\" and services.getSetting(\"mailchimp_api_key\") and services.getSetting(\"mailchimp_list_id\") %}
<div class=\"mt-5\">
{% include \"Global/newsletter-box.html.twig\" %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% set othereventsbythisorganizer = services.getEvents({\"organizer\" : event.organizer.slug, \"limit\" : 8, \"otherthan\": event.slug}).getQuery().getResult() %}
{% if othereventsbythisorganizer|length > 0 %}
<div class=\"row\">
<div class=\"col-12\">
<h3 class=\"mt-5 mb-4 text-center\">{{ \"Other events by %organizername%\"|trans({'%organizername%' : event.organizer.name}) }}</h3>
<div class=\"owl-init owl-carousel\" data-margin=\"15\" data-items=\"4\" data-dots=\"false\" data-nav=\"true\" data-autoplay=\"true\" data-loop=\"false\">
{% for event in othereventsbythisorganizer %}
{% include \"Global/event-card.html.twig\" with {event: event} %}
{% endfor %}
</div>
</div>
</div>
{% endif %}
{% set similareventscriteria = {\"category\" : event.category.slug, \"limit\" : 8, \"otherthan\": event.slug} %}
{% if event.getFirstVenue %}
{% set similareventscriteria = similareventscriteria|merge({\"country\" : event.getFirstVenue.country.slug}) %}
{% endif %}
{% set similarevents = services.getEvents(similareventscriteria).getQuery().getResult() %}
{% if similarevents|length > 0 %}
<div class=\"row\">
<div class=\"col-12\">
<h3 class=\"mt-5 mb-4 text-center\">{{ \"Similar events\" }}</h3>
<div class=\"owl-init owl-carousel\" data-margin=\"15\" data-items=\"4\" data-dots=\"false\" data-nav=\"true\" data-autoplay=\"true\" data-loop=\"false\">
{% for event in similarevents %}
{% include \"Global/event-card.html.twig\" with {event: event} %}
{% endfor %}
</div>
</div>
</div>
{% endif %}
</div>
</section>
{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('event') }}
{% if (chatbot_id != null) %}
<script type=\"module\">
import Chatbot from \"{{chatbot_flowise}}\";
Chatbot.init({
chatflowid: \"{{chatbot_id}}\",
apiHost: \"{{ api_host }}\"
});
</script>
{% endif %}
{% endblock %}
", "Front/Event/event.html.twig", "/www/wwwroot/eventos.keoscx.com/templates/Front/Event/event.html.twig");
}
}