var/cache/dev/fr/vpauto/twig/5f/5fa502a0e6e7bea3cecfdff43bed9f76.php line 41

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Live/Portal/next_sales.html.twig */
  14. class __TwigTemplate_8bad17af8479caec331c544c0accfc4b extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'meta_robot' => [$this'block_meta_robot'],
  24.             'meta_title' => [$this'block_meta_title'],
  25.             'meta_desc' => [$this'block_meta_desc'],
  26.             'body_content' => [$this'block_body_content'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "base_portal.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Live/Portal/next_sales.html.twig"));
  39.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  40.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Live/Portal/next_sales.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Live/Portal/next_sales.html.twig"));
  43.         $this->parent $this->loadTemplate("base_portal.html.twig""Live/Portal/next_sales.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 3
  53.     public function block_meta_robot($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_robot"));
  58.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  59.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_robot"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_robot"));
  62.         // line 4
  63.         echo "    ";
  64.         $this->displayParentBlock("meta_robot"$context$blocks);
  65.         echo "
  66.     <link rel=\"canonical\" href=\"";
  67.         // line 5
  68.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("live_portal_next_sales");
  69.         echo "\"/>
  70.     ";
  71.         // line 6
  72.         echo twig_source($this->env"stubs/seo/robots_noindex_nofollow.html.twig");
  73.         echo "
  74. ";
  75.         
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77.         
  78.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  79.         
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81.     }
  82.     // line 9
  83.     public function block_meta_title($context, array $blocks = [])
  84.     {
  85.         $macros $this->macros;
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_title"));
  88.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  89.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_title"));
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_title"));
  92.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.live.nextSales.title", [], "seo"), "html"nulltrue);
  93.         
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  95.         
  96.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  97.         
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  99.     }
  100.     // line 10
  101.     public function block_meta_desc($context, array $blocks = [])
  102.     {
  103.         $macros $this->macros;
  104.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  105.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_desc"));
  106.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  107.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_desc"));
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_desc"));
  110.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("seo.live.nextSales.desc", [], "seo"), "html"nulltrue);
  111.         
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  113.         
  114.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  115.         
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117.     }
  118.     // line 12
  119.     public function block_body_content($context, array $blocks = [])
  120.     {
  121.         $macros $this->macros;
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_content"));
  124.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  125.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_content"));
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  127.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_content"));
  128.         // line 13
  129.         echo "    <div class=\"live-prochaines-vente\">
  130.         <div class=\"landing-header\">
  131.             <h1 class=\"titre05\">
  132.             <span class=\"block\">
  133.                 ";
  134.         // line 17
  135.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'17$this->source); })()), "request", [], "any"falsefalsefalse17), "locale", [], "any"falsefalsefalse17) == twig_constant("App\\Twig\\Extension\\CountryExtension::LOCALE_PORTUGUESE"))) {
  136.             // line 18
  137.             echo "                    <img src=\"";
  138.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/vpauto/frontend/images/icones/icon-live-pt.webp"), "html"nulltrue);
  139.             echo "\" alt=\"\">
  140.                 ";
  141.         } else {
  142.             // line 20
  143.             echo "                    <img src=\"";
  144.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/vpauto/frontend/images/icones/icon-live-fr.webp"), "html"nulltrue);
  145.             echo "\" alt=\"\">
  146.                 ";
  147.         }
  148.         // line 22
  149.         echo "            </span>
  150.                 ";
  151.         // line 23
  152.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.header.subtitle"), "html"nulltrue);
  153.         echo "
  154.             </h1>
  155.         </div>
  156.         <div class=\"landing-content\">
  157.             <div>
  158.                 ";
  159.         // line 28
  160.         $context['_parent'] = $context;
  161.         $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); })()));
  162.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  163.             // line 29
  164.             echo "                    <div class=\"block01\">
  165.                         <p class=\"titre01\"><strong>";
  166.             // line 30
  167.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.sale_ended"), "html"nulltrue);
  168.             echo "</strong>
  169.                         </p>
  170.                         <p class=\"titre03 marginT10\"><strong>";
  171.             // line 32
  172.             echo twig_escape_filter($this->envtwig_upper_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "room", [], "any"falsefalsefalse32), "code", [], "any"falsefalsefalse32)), "html"nulltrue);
  173.             echo "
  174.                                 - ";
  175.             // line 33
  176.             echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->env$this->extensions['App\Twig\Extension\IntlExtension']->localeDateFilter(twig_get_attribute($this->env$this->source$context["item"], "startDate", [], "any"falsefalsefalse33), "medium""short"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'33$this->source); })()), "request", [], "any"falsefalsefalse33), "locale", [], "any"falsefalsefalse33), "EEEE d LLLL")), "html"nulltrue);
  177.             echo "</strong>
  178.                         </p>
  179.                     </div>
  180.                     <div class=\"separateur\"></div>
  181.                 ";
  182.         }
  183.         $_parent $context['_parent'];
  184.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  185.         $context array_intersect_key($context$_parent) + $_parent;
  186.         // line 38
  187.         echo "                <div>
  188.                     <div>
  189.                         ";
  190.         // line 40
  191.         $context['_parent'] = $context;
  192.         $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); })()));
  193.         $context['loop'] = [
  194.           'parent' => $context['_parent'],
  195.           'index0' => 0,
  196.           'index'  => 1,
  197.           'first'  => true,
  198.         ];
  199.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  200.             $length count($context['_seq']);
  201.             $context['loop']['revindex0'] = $length 1;
  202.             $context['loop']['revindex'] = $length;
  203.             $context['loop']['length'] = $length;
  204.             $context['loop']['last'] = === $length;
  205.         }
  206.         foreach ($context['_seq'] as $context["_key"] => $context["sale"]) {
  207.             // line 41
  208.             echo "                            ";
  209.             if (twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse41)) {
  210.                 // line 42
  211.                 echo "                                ";
  212.                 $context["firstDate"] = twig_get_attribute($this->env$this->source$context["sale"], "startDate", [], "any"falsefalsefalse42);
  213.                 // line 43
  214.                 echo "                            ";
  215.             }
  216.             // line 44
  217.             echo "                            <div class=\"txtcenter\">
  218.                                 <h2 class=\"titre01\">
  219.                                     <strong>";
  220.             // line 46
  221.             echo twig_escape_filter($this->envtwig_upper_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["sale"], "room", [], "any"falsefalsefalse46), "code", [], "any"falsefalsefalse46)), "html"nulltrue);
  222.             echo "
  223.                                         - ";
  224.             // line 47
  225.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["sale"], "activeVehicles", [], "any"falsefalsefalse47)), "html"nulltrue);
  226.             echo " ";
  227.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.vehicles"), "html"nulltrue);
  228.             echo "</strong>
  229.                                 </h2>
  230.                                 <h2 class=\"date\">";
  231.             // line 49
  232.             echo twig_escape_filter($this->env$this->extensions['App\Twig\Extension\IntlExtension']->localeDateFilter(twig_get_attribute($this->env$this->source$context["sale"], "startDate", [], "any"falsefalsefalse49), "medium""short"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'49$this->source); })()), "request", [], "any"falsefalsefalse49), "locale", [], "any"falsefalsefalse49), "EEEE d LLLL yyyy"), "html"nulltrue);
  233.             echo "</h2>
  234.                                 <div class=\"block01\">
  235.                                     <p class=\"titre04 opening-in\">";
  236.             // line 51
  237.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.open_in"), "html"nulltrue);
  238.             echo "</p>
  239.                                     <div class=\"counter must-fade fade-title clearfix\"
  240.                                          data-end=\"";
  241.             // line 53
  242.             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"nulltrue);
  243.             echo "\">
  244.                                         <ul class=\"counter-block\">
  245.                                             <li class=\"m-hide\"><i class=\"icon-chrono01\"></i></li>
  246.                                             <li>
  247.                                                 <span class=\"number days\">00</span>
  248.                                                 <span>";
  249.             // line 58
  250.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.timer.days"), "html"nulltrue);
  251.             echo "</span>
  252.                                             </li>
  253.                                             <li>
  254.                                                 <span class=\"number hours\">00</span>
  255.                                                 <span>";
  256.             // line 62
  257.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.timer.hours"), "html"nulltrue);
  258.             echo "</span>
  259.                                             </li>
  260.                                             <li>
  261.                                                 <span class=\"number minutes\">00</span>
  262.                                                 <span>";
  263.             // line 66
  264.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.timer.minutes"), "html"nulltrue);
  265.             echo "</span>
  266.                                             </li>
  267.                                         </ul>
  268.                                     </div>
  269.                                 </div>
  270.                                 <div class=\"marginT30\">
  271.                                     ";
  272.             // line 72
  273.             if ((twig_get_attribute($this->env$this->source$context["sale"], "noVehicles", [], "any"falsefalsefalse72) != true)) {
  274.                 // line 73
  275.                 echo "                                        <a href=\"";
  276.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_search_by_sale", ["sale" => twig_lower_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["sale"], "room", [], "any"falsefalsefalse73), "code", [], "any"falsefalsefalse73))]), "html"nulltrue);
  277.                 echo "\"
  278.                                            class=\"lien09\" title=\"\">
  279.                                             <i class=\"icon-liste\"></i> ";
  280.                 // line 75
  281.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.button.list"), "html"nulltrue);
  282.                 echo "
  283.                                         </a>
  284.                                     ";
  285.             }
  286.             // line 78
  287.             echo "                                    ";
  288.             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"falsefalsefalse78)))) {
  289.                 // line 79
  290.                 echo "                                        ";
  291.                 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"falsefalsefalse79), $context["sale"])) {
  292.                     // line 80
  293.                     echo "                                            <a href=\"";
  294.                     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"falsefalsefalse80)]), "html"nulltrue);
  295.                     echo "\"
  296.                                                class=\"lien09\" title=\"\">
  297.                                                 <i class=\"icon-sinscrire\"></i> ";
  298.                     // line 82
  299.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.button.already_registered"), "html"nulltrue);
  300.                     echo "
  301.                                             </a>
  302.                                         ";
  303.                 } else {
  304.                     // line 85
  305.                     echo "                                            <span data-o=\"";
  306.                     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"falsefalsefalse85)])), "html"nulltrue);
  307.                     echo "\" class=\"obflink lien09\" role=\"link\">
  308.                                                 <i class=\"icon-sinscrire\"></i> ";
  309.                     // line 86
  310.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.button.registration"), "html"nulltrue);
  311.                     echo "
  312.                                             </span>
  313.                                         ";
  314.                 }
  315.                 // line 89
  316.                 echo "                                    ";
  317.             }
  318.             // line 90
  319.             echo "                                    ";
  320.             if ((($this->extensions['App\Twig\Extension\IntlExtension']->dateFilter($this->envtwig_get_attribute($this->env$this->source$context["sale"], "endDate", [], "any"falsefalsefalse90), "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")))) {
  321.                 // line 91
  322.                 echo "                                        <a href=\"";
  323.                 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"falsefalsefalse91)]), "html"nulltrue);
  324.                 echo "\"
  325.                                            class=\"lien07\" title=\"\">
  326.                                             ";
  327.                 // line 93
  328.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'93$this->source); })()), "request", [], "any"falsefalsefalse93), "locale", [], "any"falsefalsefalse93) == twig_constant("App\\Twig\\Extension\\CountryExtension::LOCALE_PORTUGUESE"))) {
  329.                     // line 94
  330.                     echo "                                                <img
  331.                                                     src=\"";
  332.                     // line 95
  333.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/vpauto/frontend/images/icones/icon-live-pt.webp"), "html"nulltrue);
  334.                     echo "\"
  335.                                                     class=\"icon-live w-26\" alt=\"\">
  336.                                             ";
  337.                 } else {
  338.                     // line 98
  339.                     echo "                                                <img
  340.                                                     src=\"";
  341.                     // line 99
  342.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/vpauto/frontend/images/icones/icon-live-fr.webp"), "html"nulltrue);
  343.                     echo "\"
  344.                                                     class=\"icon-live w-26\" alt=\"\">
  345.                                             ";
  346.                 }
  347.                 // line 102
  348.                 echo "                                            ";
  349.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.button.running"), "html"nulltrue);
  350.                 echo "
  351.                                         </a>
  352.                                     ";
  353.             } else {
  354.                 // line 105
  355.                 echo "                                        <a href=\"";
  356.                 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"falsefalsefalse105)]), "html"nulltrue);
  357.                 echo "\"
  358.                                            class=\"lien09\" title=\"\">
  359.                                             <i class=\"icon-horaires-live\"></i> ";
  360.                 // line 107
  361.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.button.hours"), "html"nulltrue);
  362.                 echo "
  363.                                         </a>
  364.                                     ";
  365.             }
  366.             // line 110
  367.             echo "                                </div>
  368.                             </div>
  369.                             <div class=\"separateur\"></div>
  370.                         ";
  371.             ++$context['loop']['index0'];
  372.             ++$context['loop']['index'];
  373.             $context['loop']['first'] = false;
  374.             if (isset($context['loop']['length'])) {
  375.                 --$context['loop']['revindex0'];
  376.                 --$context['loop']['revindex'];
  377.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  378.             }
  379.         }
  380.         $_parent $context['_parent'];
  381.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sale'], $context['_parent'], $context['loop']);
  382.         $context array_intersect_key($context$_parent) + $_parent;
  383.         // line 114
  384.         echo "                    </div>
  385.                     <div>
  386.                         <div class=\"txtcenter\">
  387.                             ";
  388.         // line 117
  389.         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"falsefalsefalse117), $this->extensions['App\Twig\Extension\LiveExtension']->nextLive()) == false)) {
  390.             // line 118
  391.             echo "                                <a href=\"";
  392.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("live_portal_access");
  393.             echo "\" class=\"lien04\" title=\"\">
  394.                                     <i class=\"icon-asses-seconnecter\"></i> ";
  395.             // line 119
  396.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.button.choose_access"), "html"nulltrue);
  397.             echo "
  398.                                 </a>
  399.                             ";
  400.         }
  401.         // line 122
  402.         echo "                            <a href=\"";
  403.         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"nulltrue);
  404.         echo "\" target=\"_blank\" class=\"lien08\" title=\"\">
  405.                                 <i class=\"icon-mode-emploi\"></i> ";
  406.         // line 123
  407.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("frontend.live.next-sales.content.button.guide"), "html"nulltrue);
  408.         echo "
  409.                             </a>
  410.                         </div>
  411.                         <div class=\"txtcenter marginT20\">
  412.                             <img src=\"";
  413.         // line 127
  414.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/vpauto/frontend/images/logo_BNP.jpg"), "html"nulltrue);
  415.         echo "\" alt=\"BNP Paribas\">
  416.                         </div>
  417.                     </div>
  418.                     <div class=\"clearfix\"></div>
  419.                 </div>
  420.             </div>
  421.         </div>
  422.     </div>
  423.     <!--Footer -->
  424.     ";
  425.         // line 136
  426.         $this->loadTemplate("frontend/footer.html.twig""Live/Portal/next_sales.html.twig"136)->display($context);
  427.         // line 137
  428.         echo "    <!-- FIN Footer -->
  429. ";
  430.         
  431.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  432.         
  433.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  434.         
  435.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  436.     }
  437.     public function getTemplateName()
  438.     {
  439.         return "Live/Portal/next_sales.html.twig";
  440.     }
  441.     public function isTraitable()
  442.     {
  443.         return false;
  444.     }
  445.     public function getDebugInfo()
  446.     {
  447.         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,);
  448.     }
  449.     public function getSourceContext()
  450.     {
  451.         return new Source("{% extends 'base_portal.html.twig' %}
  452. {% block meta_robot %}
  453.     {{ parent() }}
  454.     <link rel=\"canonical\" href=\"{{ url('live_portal_next_sales') }}\"/>
  455.     {{ source('stubs/seo/robots_noindex_nofollow.html.twig') }}
  456. {% endblock %}
  457. {% block meta_title %}{{ 'seo.live.nextSales.title'|trans({}, \"seo\") }}{% endblock %}
  458. {% block meta_desc %}{{ 'seo.live.nextSales.desc'|trans({}, \"seo\") }}{% endblock %}
  459. {% block body_content %}
  460.     <div class=\"live-prochaines-vente\">
  461.         <div class=\"landing-header\">
  462.             <h1 class=\"titre05\">
  463.             <span class=\"block\">
  464.                 {% if app.request.locale == constant('App\\\\Twig\\\\Extension\\\\CountryExtension::LOCALE_PORTUGUESE') %}
  465.                     <img src=\"{{ asset('bundles/vpauto/frontend/images/icones/icon-live-pt.webp') }}\" alt=\"\">
  466.                 {% else %}
  467.                     <img src=\"{{ asset('bundles/vpauto/frontend/images/icones/icon-live-fr.webp') }}\" alt=\"\">
  468.                 {% endif %}
  469.             </span>
  470.                 {{ 'frontend.live.next-sales.header.subtitle'|trans }}
  471.             </h1>
  472.         </div>
  473.         <div class=\"landing-content\">
  474.             <div>
  475.                 {% for item in todaysLive %}
  476.                     <div class=\"block01\">
  477.                         <p class=\"titre01\"><strong>{{ 'frontend.live.next-sales.content.sale_ended'|trans }}</strong>
  478.                         </p>
  479.                         <p class=\"titre03 marginT10\"><strong>{{ item.room.code|upper }}
  480.                                 - {{ item.startDate|locale_date(pattern='EEEE d LLLL', locale=app.request.locale)|capitalize }}</strong>
  481.                         </p>
  482.                     </div>
  483.                     <div class=\"separateur\"></div>
  484.                 {% endfor %}
  485.                 <div>
  486.                     <div>
  487.                         {% for sale in sales %}
  488.                             {% if loop.first %}
  489.                                 {% set firstDate = sale.startDate %}
  490.                             {% endif %}
  491.                             <div class=\"txtcenter\">
  492.                                 <h2 class=\"titre01\">
  493.                                     <strong>{{ sale.room.code|upper }}
  494.                                         - {{ sale.activeVehicles|length }} {{ 'frontend.live.next-sales.content.vehicles'|trans }}</strong>
  495.                                 </h2>
  496.                                 <h2 class=\"date\">{{ sale.startDate|locale_date(pattern='EEEE d LLLL yyyy', locale=app.request.locale) }}</h2>
  497.                                 <div class=\"block01\">
  498.                                     <p class=\"titre04 opening-in\">{{ 'frontend.live.next-sales.content.open_in'|trans }}</p>
  499.                                     <div class=\"counter must-fade fade-title clearfix\"
  500.                                          data-end=\"{{ get_real_starting_hour(sale)|date('Y/m/d H:i:s') }}\">
  501.                                         <ul class=\"counter-block\">
  502.                                             <li class=\"m-hide\"><i class=\"icon-chrono01\"></i></li>
  503.                                             <li>
  504.                                                 <span class=\"number days\">00</span>
  505.                                                 <span>{{ 'frontend.live.next-sales.content.timer.days'|trans }}</span>
  506.                                             </li>
  507.                                             <li>
  508.                                                 <span class=\"number hours\">00</span>
  509.                                                 <span>{{ 'frontend.live.next-sales.content.timer.hours'|trans }}</span>
  510.                                             </li>
  511.                                             <li>
  512.                                                 <span class=\"number minutes\">00</span>
  513.                                                 <span>{{ 'frontend.live.next-sales.content.timer.minutes'|trans }}</span>
  514.                                             </li>
  515.                                         </ul>
  516.                                     </div>
  517.                                 </div>
  518.                                 <div class=\"marginT30\">
  519.                                     {% if sale.noVehicles != true %}
  520.                                         <a href=\"{{ path('frontend_search_by_sale', {'sale': sale.room.code|lower}) }}\"
  521.                                            class=\"lien09\" title=\"\">
  522.                                             <i class=\"icon-liste\"></i> {{ 'frontend.live.next-sales.content.button.list'|trans }}
  523.                                         </a>
  524.                                     {% endif %}
  525.                                     {% if todaysLive is null and firstDate == sale.startDate %}
  526.                                         {% if is_suscribed_to(app.user, sale) %}
  527.                                             <a href=\"{{ path('live_portal_sale_hours', {'saleId': sale.id}) }}\"
  528.                                                class=\"lien09\" title=\"\">
  529.                                                 <i class=\"icon-sinscrire\"></i> {{ 'frontend.live.next-sales.content.button.already_registered'|trans }}
  530.                                             </a>
  531.                                         {% else %}
  532.                                             <span data-o=\"{{ base64_encode(path('vpauto_frontend_live', {'saleId': sale.id})) }}\" class=\"obflink lien09\" role=\"link\">
  533.                                                 <i class=\"icon-sinscrire\"></i> {{ 'frontend.live.next-sales.content.button.registration'|trans }}
  534.                                             </span>
  535.                                         {% endif %}
  536.                                     {% endif %}
  537.                                     {% if sale.endDate|date('U') > 'now'|date('U') and get_real_starting_hour(sale)|date('U') < 'now'|date('U') %}
  538.                                         <a href=\"{{ path('live_portal_sale_hours', {'saleId': sale.id}) }}\"
  539.                                            class=\"lien07\" title=\"\">
  540.                                             {% if app.request.locale == constant('App\\\\Twig\\\\Extension\\\\CountryExtension::LOCALE_PORTUGUESE') %}
  541.                                                 <img
  542.                                                     src=\"{{ asset('bundles/vpauto/frontend/images/icones/icon-live-pt.webp') }}\"
  543.                                                     class=\"icon-live w-26\" alt=\"\">
  544.                                             {% else %}
  545.                                                 <img
  546.                                                     src=\"{{ asset('bundles/vpauto/frontend/images/icones/icon-live-fr.webp') }}\"
  547.                                                     class=\"icon-live w-26\" alt=\"\">
  548.                                             {% endif %}
  549.                                             {{ 'frontend.live.next-sales.content.button.running'|trans }}
  550.                                         </a>
  551.                                     {% else %}
  552.                                         <a href=\"{{ path('live_portal_sale_hours', {'saleId': sale.id}) }}\"
  553.                                            class=\"lien09\" title=\"\">
  554.                                             <i class=\"icon-horaires-live\"></i> {{ 'frontend.live.next-sales.content.button.hours'|trans }}
  555.                                         </a>
  556.                                     {% endif %}
  557.                                 </div>
  558.                             </div>
  559.                             <div class=\"separateur\"></div>
  560.                         {% endfor %}
  561.                     </div>
  562.                     <div>
  563.                         <div class=\"txtcenter\">
  564.                             {% if is_suscribed_to(app.user, next_live()) == false %}
  565.                                 <a href=\"{{ path('live_portal_access') }}\" class=\"lien04\" title=\"\">
  566.                                     <i class=\"icon-asses-seconnecter\"></i> {{ 'frontend.live.next-sales.content.button.choose_access'|trans }}
  567.                                 </a>
  568.                             {% endif %}
  569.                             <a href=\"{{ guideUrl }}\" target=\"_blank\" class=\"lien08\" title=\"\">
  570.                                 <i class=\"icon-mode-emploi\"></i> {{ 'frontend.live.next-sales.content.button.guide'|trans }}
  571.                             </a>
  572.                         </div>
  573.                         <div class=\"txtcenter marginT20\">
  574.                             <img src=\"{{ asset('bundles/vpauto/frontend/images/logo_BNP.jpg') }}\" alt=\"BNP Paribas\">
  575.                         </div>
  576.                     </div>
  577.                     <div class=\"clearfix\"></div>
  578.                 </div>
  579.             </div>
  580.         </div>
  581.     </div>
  582.     <!--Footer -->
  583.     {% include 'frontend/footer.html.twig' %}
  584.     <!-- FIN Footer -->
  585. {% endblock %}
  586. ""Live/Portal/next_sales.html.twig""/srv/src/Resources/views/Live/Portal/next_sales.html.twig");
  587.     }
  588. }