<?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;
/* Live/Portal/next_sales.html.twig */
class __TwigTemplate_8bad17af8479caec331c544c0accfc4b extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'meta_robot' => [$this, 'block_meta_robot'],
'meta_title' => [$this, 'block_meta_title'],
'meta_desc' => [$this, 'block_meta_desc'],
'body_content' => [$this, 'block_body_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base_portal.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Live/Portal/next_sales.html.twig"));
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Live/Portal/next_sales.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Live/Portal/next_sales.html.twig"));
$this->parent = $this->loadTemplate("base_portal.html.twig", "Live/Portal/next_sales.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_meta_robot($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_robot"));
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_robot"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_robot"));
// line 4
echo " ";
$this->displayParentBlock("meta_robot", $context, $blocks);
echo "
<link rel=\"canonical\" href=\"";
// line 5
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("live_portal_next_sales");
echo "\"/>
";
// line 6
echo twig_source($this->env, "stubs/seo/robots_noindex_nofollow.html.twig");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 9
public function block_meta_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_title"));
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_title"));
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.live.nextSales.title", [], "seo"), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 10
public function block_meta_desc($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_desc"));
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_desc"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_desc"));
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.live.nextSales.desc", [], "seo"), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 12
public function block_body_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_content"));
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_content"));
// line 13
echo " <div class=\"live-prochaines-vente\">
<div class=\"landing-header\">
<h1 class=\"titre05\">
<span class=\"block\">
";
// line 17
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.', 17, $this->source); })()), "request", [], "any", false, false, false, 17), "locale", [], "any", false, false, false, 17) == twig_constant("App\\Twig\\Extension\\CountryExtension::LOCALE_PORTUGUESE"))) {
// line 18
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/vpauto/frontend/images/icones/icon-live-pt.webp"), "html", null, true);
echo "\" alt=\"\">
";
} else {
// line 20
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/vpauto/frontend/images/icones/icon-live-fr.webp"), "html", null, true);
echo "\" alt=\"\">
";
}
// line 22
echo " </span>
";
// line 23
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.header.subtitle"), "html", null, true);
echo "
</h1>
</div>
<div class=\"landing-content\">
<div>
";
// line 28
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["todaysLive"]) || array_key_exists("todaysLive", $context) ? $context["todaysLive"] : (function () { throw new RuntimeError('Variable "todaysLive" does not exist.', 28, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 29
echo " <div class=\"block01\">
<p class=\"titre01\"><strong>";
// line 30
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.sale_ended"), "html", null, true);
echo "</strong>
</p>
<p class=\"titre03 marginT10\"><strong>";
// line 32
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "room", [], "any", false, false, false, 32), "code", [], "any", false, false, false, 32)), "html", null, true);
echo "
- ";
// line 33
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->extensions['App\Twig\Extension\IntlExtension']->localeDateFilter(twig_get_attribute($this->env, $this->source, $context["item"], "startDate", [], "any", false, false, false, 33), "medium", "short", 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.', 33, $this->source); })()), "request", [], "any", false, false, false, 33), "locale", [], "any", false, false, false, 33), "EEEE d LLLL")), "html", null, true);
echo "</strong>
</p>
</div>
<div class=\"separateur\"></div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 38
echo " <div>
<div>
";
// line 40
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["sales"]) || array_key_exists("sales", $context) ? $context["sales"] : (function () { throw new RuntimeError('Variable "sales" does not exist.', 40, $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["sale"]) {
// line 41
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 41)) {
// line 42
echo " ";
$context["firstDate"] = twig_get_attribute($this->env, $this->source, $context["sale"], "startDate", [], "any", false, false, false, 42);
// line 43
echo " ";
}
// line 44
echo " <div class=\"txtcenter\">
<h2 class=\"titre01\">
<strong>";
// line 46
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["sale"], "room", [], "any", false, false, false, 46), "code", [], "any", false, false, false, 46)), "html", null, true);
echo "
- ";
// line 47
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sale"], "activeVehicles", [], "any", false, false, false, 47)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.vehicles"), "html", null, true);
echo "</strong>
</h2>
<h2 class=\"date\">";
// line 49
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\IntlExtension']->localeDateFilter(twig_get_attribute($this->env, $this->source, $context["sale"], "startDate", [], "any", false, false, false, 49), "medium", "short", 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.', 49, $this->source); })()), "request", [], "any", false, false, false, 49), "locale", [], "any", false, false, false, 49), "EEEE d LLLL yyyy"), "html", null, true);
echo "</h2>
<div class=\"block01\">
<p class=\"titre04 opening-in\">";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.open_in"), "html", null, true);
echo "</p>
<div class=\"counter must-fade fade-title clearfix\"
data-end=\"";
// line 53
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\IntlExtension']->dateFilter($this->env, $this->extensions['App\Twig\Extension\LiveExtension']->getRealStartingHour($context["sale"]), "Y/m/d H:i:s"), "html", null, true);
echo "\">
<ul class=\"counter-block\">
<li class=\"m-hide\"><i class=\"icon-chrono01\"></i></li>
<li>
<span class=\"number days\">00</span>
<span>";
// line 58
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.timer.days"), "html", null, true);
echo "</span>
</li>
<li>
<span class=\"number hours\">00</span>
<span>";
// line 62
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.timer.hours"), "html", null, true);
echo "</span>
</li>
<li>
<span class=\"number minutes\">00</span>
<span>";
// line 66
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.timer.minutes"), "html", null, true);
echo "</span>
</li>
</ul>
</div>
</div>
<div class=\"marginT30\">
";
// line 72
if ((twig_get_attribute($this->env, $this->source, $context["sale"], "noVehicles", [], "any", false, false, false, 72) != true)) {
// line 73
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_search_by_sale", ["sale" => twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["sale"], "room", [], "any", false, false, false, 73), "code", [], "any", false, false, false, 73))]), "html", null, true);
echo "\"
class=\"lien09\" title=\"\">
<i class=\"icon-liste\"></i> ";
// line 75
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.button.list"), "html", null, true);
echo "
</a>
";
}
// line 78
echo " ";
if (((null === (isset($context["todaysLive"]) || array_key_exists("todaysLive", $context) ? $context["todaysLive"] : (function () { throw new RuntimeError('Variable "todaysLive" does not exist.', 78, $this->source); })())) && ((isset($context["firstDate"]) || array_key_exists("firstDate", $context) ? $context["firstDate"] : (function () { throw new RuntimeError('Variable "firstDate" does not exist.', 78, $this->source); })()) == twig_get_attribute($this->env, $this->source, $context["sale"], "startDate", [], "any", false, false, false, 78)))) {
// line 79
echo " ";
if ($this->extensions['App\Twig\Extension\LiveExtension']->isSuscribedTo(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.', 79, $this->source); })()), "user", [], "any", false, false, false, 79), $context["sale"])) {
// line 80
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("live_portal_sale_hours", ["saleId" => twig_get_attribute($this->env, $this->source, $context["sale"], "id", [], "any", false, false, false, 80)]), "html", null, true);
echo "\"
class=\"lien09\" title=\"\">
<i class=\"icon-sinscrire\"></i> ";
// line 82
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.button.already_registered"), "html", null, true);
echo "
</a>
";
} else {
// line 85
echo " <span data-o=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\UserExtension']->base64Encode($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("vpauto_frontend_live", ["saleId" => twig_get_attribute($this->env, $this->source, $context["sale"], "id", [], "any", false, false, false, 85)])), "html", null, true);
echo "\" class=\"obflink lien09\" role=\"link\">
<i class=\"icon-sinscrire\"></i> ";
// line 86
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.button.registration"), "html", null, true);
echo "
</span>
";
}
// line 89
echo " ";
}
// line 90
echo " ";
if ((($this->extensions['App\Twig\Extension\IntlExtension']->dateFilter($this->env, twig_get_attribute($this->env, $this->source, $context["sale"], "endDate", [], "any", false, false, false, 90), "U") > $this->extensions['App\Twig\Extension\IntlExtension']->dateFilter($this->env, "now", "U")) && ($this->extensions['App\Twig\Extension\IntlExtension']->dateFilter($this->env, $this->extensions['App\Twig\Extension\LiveExtension']->getRealStartingHour($context["sale"]), "U") < $this->extensions['App\Twig\Extension\IntlExtension']->dateFilter($this->env, "now", "U")))) {
// line 91
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("live_portal_sale_hours", ["saleId" => twig_get_attribute($this->env, $this->source, $context["sale"], "id", [], "any", false, false, false, 91)]), "html", null, true);
echo "\"
class=\"lien07\" title=\"\">
";
// line 93
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.', 93, $this->source); })()), "request", [], "any", false, false, false, 93), "locale", [], "any", false, false, false, 93) == twig_constant("App\\Twig\\Extension\\CountryExtension::LOCALE_PORTUGUESE"))) {
// line 94
echo " <img
src=\"";
// line 95
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/vpauto/frontend/images/icones/icon-live-pt.webp"), "html", null, true);
echo "\"
class=\"icon-live w-26\" alt=\"\">
";
} else {
// line 98
echo " <img
src=\"";
// line 99
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/vpauto/frontend/images/icones/icon-live-fr.webp"), "html", null, true);
echo "\"
class=\"icon-live w-26\" alt=\"\">
";
}
// line 102
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.button.running"), "html", null, true);
echo "
</a>
";
} else {
// line 105
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("live_portal_sale_hours", ["saleId" => twig_get_attribute($this->env, $this->source, $context["sale"], "id", [], "any", false, false, false, 105)]), "html", null, true);
echo "\"
class=\"lien09\" title=\"\">
<i class=\"icon-horaires-live\"></i> ";
// line 107
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.button.hours"), "html", null, true);
echo "
</a>
";
}
// line 110
echo " </div>
</div>
<div class=\"separateur\"></div>
";
++$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['sale'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 114
echo " </div>
<div>
<div class=\"txtcenter\">
";
// line 117
if (($this->extensions['App\Twig\Extension\LiveExtension']->isSuscribedTo(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.', 117, $this->source); })()), "user", [], "any", false, false, false, 117), $this->extensions['App\Twig\Extension\LiveExtension']->nextLive()) == false)) {
// line 118
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("live_portal_access");
echo "\" class=\"lien04\" title=\"\">
<i class=\"icon-asses-seconnecter\"></i> ";
// line 119
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.button.choose_access"), "html", null, true);
echo "
</a>
";
}
// line 122
echo " <a href=\"";
echo twig_escape_filter($this->env, (isset($context["guideUrl"]) || array_key_exists("guideUrl", $context) ? $context["guideUrl"] : (function () { throw new RuntimeError('Variable "guideUrl" does not exist.', 122, $this->source); })()), "html", null, true);
echo "\" target=\"_blank\" class=\"lien08\" title=\"\">
<i class=\"icon-mode-emploi\"></i> ";
// line 123
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.button.guide"), "html", null, true);
echo "
</a>
</div>
<div class=\"txtcenter marginT20\">
<img src=\"";
// line 127
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/vpauto/frontend/images/logo_BNP.jpg"), "html", null, true);
echo "\" alt=\"BNP Paribas\">
</div>
</div>
<div class=\"clearfix\"></div>
</div>
</div>
</div>
</div>
<!--Footer -->
";
// line 136
$this->loadTemplate("frontend/footer.html.twig", "Live/Portal/next_sales.html.twig", 136)->display($context);
// line 137
echo " <!-- FIN Footer -->
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Live/Portal/next_sales.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 466 => 137, 464 => 136, 452 => 127, 445 => 123, 440 => 122, 434 => 119, 429 => 118, 427 => 117, 422 => 114, 405 => 110, 399 => 107, 393 => 105, 386 => 102, 380 => 99, 377 => 98, 371 => 95, 368 => 94, 366 => 93, 360 => 91, 357 => 90, 354 => 89, 348 => 86, 343 => 85, 337 => 82, 331 => 80, 328 => 79, 325 => 78, 319 => 75, 313 => 73, 311 => 72, 302 => 66, 295 => 62, 288 => 58, 280 => 53, 275 => 51, 270 => 49, 263 => 47, 259 => 46, 255 => 44, 252 => 43, 249 => 42, 246 => 41, 229 => 40, 225 => 38, 214 => 33, 210 => 32, 205 => 30, 202 => 29, 198 => 28, 190 => 23, 187 => 22, 181 => 20, 175 => 18, 173 => 17, 167 => 13, 154 => 12, 129 => 10, 104 => 9, 89 => 6, 85 => 5, 80 => 4, 67 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base_portal.html.twig' %}
{% block meta_robot %}
{{ parent() }}
<link rel=\"canonical\" href=\"{{ url('live_portal_next_sales') }}\"/>
{{ source('stubs/seo/robots_noindex_nofollow.html.twig') }}
{% endblock %}
{% block meta_title %}{{ 'seo.live.nextSales.title'|trans({}, \"seo\") }}{% endblock %}
{% block meta_desc %}{{ 'seo.live.nextSales.desc'|trans({}, \"seo\") }}{% endblock %}
{% block body_content %}
<div class=\"live-prochaines-vente\">
<div class=\"landing-header\">
<h1 class=\"titre05\">
<span class=\"block\">
{% if app.request.locale == constant('App\\\\Twig\\\\Extension\\\\CountryExtension::LOCALE_PORTUGUESE') %}
<img src=\"{{ asset('bundles/vpauto/frontend/images/icones/icon-live-pt.webp') }}\" alt=\"\">
{% else %}
<img src=\"{{ asset('bundles/vpauto/frontend/images/icones/icon-live-fr.webp') }}\" alt=\"\">
{% endif %}
</span>
{{ 'frontend.live.next-sales.header.subtitle'|trans }}
</h1>
</div>
<div class=\"landing-content\">
<div>
{% for item in todaysLive %}
<div class=\"block01\">
<p class=\"titre01\"><strong>{{ 'frontend.live.next-sales.content.sale_ended'|trans }}</strong>
</p>
<p class=\"titre03 marginT10\"><strong>{{ item.room.code|upper }}
- {{ item.startDate|locale_date(pattern='EEEE d LLLL', locale=app.request.locale)|capitalize }}</strong>
</p>
</div>
<div class=\"separateur\"></div>
{% endfor %}
<div>
<div>
{% for sale in sales %}
{% if loop.first %}
{% set firstDate = sale.startDate %}
{% endif %}
<div class=\"txtcenter\">
<h2 class=\"titre01\">
<strong>{{ sale.room.code|upper }}
- {{ sale.activeVehicles|length }} {{ 'frontend.live.next-sales.content.vehicles'|trans }}</strong>
</h2>
<h2 class=\"date\">{{ sale.startDate|locale_date(pattern='EEEE d LLLL yyyy', locale=app.request.locale) }}</h2>
<div class=\"block01\">
<p class=\"titre04 opening-in\">{{ 'frontend.live.next-sales.content.open_in'|trans }}</p>
<div class=\"counter must-fade fade-title clearfix\"
data-end=\"{{ get_real_starting_hour(sale)|date('Y/m/d H:i:s') }}\">
<ul class=\"counter-block\">
<li class=\"m-hide\"><i class=\"icon-chrono01\"></i></li>
<li>
<span class=\"number days\">00</span>
<span>{{ 'frontend.live.next-sales.content.timer.days'|trans }}</span>
</li>
<li>
<span class=\"number hours\">00</span>
<span>{{ 'frontend.live.next-sales.content.timer.hours'|trans }}</span>
</li>
<li>
<span class=\"number minutes\">00</span>
<span>{{ 'frontend.live.next-sales.content.timer.minutes'|trans }}</span>
</li>
</ul>
</div>
</div>
<div class=\"marginT30\">
{% if sale.noVehicles != true %}
<a href=\"{{ path('frontend_search_by_sale', {'sale': sale.room.code|lower}) }}\"
class=\"lien09\" title=\"\">
<i class=\"icon-liste\"></i> {{ 'frontend.live.next-sales.content.button.list'|trans }}
</a>
{% endif %}
{% if todaysLive is null and firstDate == sale.startDate %}
{% if is_suscribed_to(app.user, sale) %}
<a href=\"{{ path('live_portal_sale_hours', {'saleId': sale.id}) }}\"
class=\"lien09\" title=\"\">
<i class=\"icon-sinscrire\"></i> {{ 'frontend.live.next-sales.content.button.already_registered'|trans }}
</a>
{% else %}
<span data-o=\"{{ base64_encode(path('vpauto_frontend_live', {'saleId': sale.id})) }}\" class=\"obflink lien09\" role=\"link\">
<i class=\"icon-sinscrire\"></i> {{ 'frontend.live.next-sales.content.button.registration'|trans }}
</span>
{% endif %}
{% endif %}
{% if sale.endDate|date('U') > 'now'|date('U') and get_real_starting_hour(sale)|date('U') < 'now'|date('U') %}
<a href=\"{{ path('live_portal_sale_hours', {'saleId': sale.id}) }}\"
class=\"lien07\" title=\"\">
{% if app.request.locale == constant('App\\\\Twig\\\\Extension\\\\CountryExtension::LOCALE_PORTUGUESE') %}
<img
src=\"{{ asset('bundles/vpauto/frontend/images/icones/icon-live-pt.webp') }}\"
class=\"icon-live w-26\" alt=\"\">
{% else %}
<img
src=\"{{ asset('bundles/vpauto/frontend/images/icones/icon-live-fr.webp') }}\"
class=\"icon-live w-26\" alt=\"\">
{% endif %}
{{ 'frontend.live.next-sales.content.button.running'|trans }}
</a>
{% else %}
<a href=\"{{ path('live_portal_sale_hours', {'saleId': sale.id}) }}\"
class=\"lien09\" title=\"\">
<i class=\"icon-horaires-live\"></i> {{ 'frontend.live.next-sales.content.button.hours'|trans }}
</a>
{% endif %}
</div>
</div>
<div class=\"separateur\"></div>
{% endfor %}
</div>
<div>
<div class=\"txtcenter\">
{% if is_suscribed_to(app.user, next_live()) == false %}
<a href=\"{{ path('live_portal_access') }}\" class=\"lien04\" title=\"\">
<i class=\"icon-asses-seconnecter\"></i> {{ 'frontend.live.next-sales.content.button.choose_access'|trans }}
</a>
{% endif %}
<a href=\"{{ guideUrl }}\" target=\"_blank\" class=\"lien08\" title=\"\">
<i class=\"icon-mode-emploi\"></i> {{ 'frontend.live.next-sales.content.button.guide'|trans }}
</a>
</div>
<div class=\"txtcenter marginT20\">
<img src=\"{{ asset('bundles/vpauto/frontend/images/logo_BNP.jpg') }}\" alt=\"BNP Paribas\">
</div>
</div>
<div class=\"clearfix\"></div>
</div>
</div>
</div>
</div>
<!--Footer -->
{% include 'frontend/footer.html.twig' %}
<!-- FIN Footer -->
{% endblock %}
", "Live/Portal/next_sales.html.twig", "/srv/src/Resources/views/Live/Portal/next_sales.html.twig");
}
}