var/cache/dev/twig/82/82d8ea09fbe8284754d3da3d7d80a79e.php line 52

  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. /* homepage/detailVehicle.html.twig */
  14. class __TwigTemplate_a890a2093426288cc9b6a51da8a3f4e2 extends 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.             'title' => [$this'block_title'],
  24.             'desc' => [$this'block_desc'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.             'mobileBranding' => [$this'block_mobileBranding'],
  27.             'body' => [$this'block_body'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "base.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""homepage/detailVehicle.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""homepage/detailVehicle.html.twig"));
  42.         $this->parent $this->loadTemplate("base.html.twig""homepage/detailVehicle.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 3
  50.     public function block_title($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleSeoExtension']->getVehicleSeoTitle((isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'3$this->source); })())), "html"nulltrue);
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.     }
  63.     // line 5
  64.     public function block_desc($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""desc"));
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""desc"));
  71.         echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleSeoExtension']->getVehicleSeoDescription((isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'5$this->source); })())), "html"nulltrue);
  72.         
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  74.         
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  76.     }
  77.     // line 7
  78.     public function block_javascripts($context, array $blocks = [])
  79.     {
  80.         $macros $this->macros;
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  85.         // line 8
  86.         echo "            ";
  87.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  88.         echo "
  89.             <script src=\"https://www.google.com/recaptcha/api.js?render=";
  90.         // line 9
  91.         echo twig_escape_filter($this->env, (isset($context["google_recaptcha_site_key"]) || array_key_exists("google_recaptcha_site_key"$context) ? $context["google_recaptcha_site_key"] : (function () { throw new RuntimeError('Variable "google_recaptcha_site_key" does not exist.'9$this->source); })()), "html"nulltrue);
  92.         echo "\"></script>
  93.         ";
  94.         
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  96.         
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  98.     }
  99.     // line 12
  100.     public function block_mobileBranding($context, array $blocks = [])
  101.     {
  102.         $macros $this->macros;
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  104.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mobileBranding"));
  105.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mobileBranding"));
  107.         echo " ";
  108.         
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110.         
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112.     }
  113.     // line 13
  114.     public function block_body($context, array $blocks = [])
  115.     {
  116.         $macros $this->macros;
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  121.         // line 14
  122.         echo "
  123.     <br>
  124.     <section class=\"container\">
  125.         <nav class=\"container__back\">
  126.             ";
  127.         // line 18
  128.         if (twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'18$this->source); })()), "kind", [], "any"falsefalsefalse18)) {
  129.             // line 19
  130.             echo "            <a class=\"container__back-link\" href=\"";
  131.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'19$this->source); })()), "request", [], "any"falsefalsefalse19), "headers", [], "any"falsefalsefalse19), "get", [=> "referer"], "method"falsefalsefalse19), "html"nulltrue);
  132.             echo "\">Zpět na seznam inzerátů</a>
  133.             ";
  134.         }
  135.         // line 21
  136.         echo "        </nav>
  137.         <section class=\"gallery js-gallery\">
  138.             ";
  139.         // line 23
  140.         $context['_parent'] = $context;
  141.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'23$this->source); })()), "vehicleImages", [], "any"falsefalsefalse23));
  142.         $context['loop'] = [
  143.           'parent' => $context['_parent'],
  144.           'index0' => 0,
  145.           'index'  => 1,
  146.           'first'  => true,
  147.         ];
  148.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  149.             $length count($context['_seq']);
  150.             $context['loop']['revindex0'] = $length 1;
  151.             $context['loop']['revindex'] = $length;
  152.             $context['loop']['length'] = $length;
  153.             $context['loop']['last'] = === $length;
  154.         }
  155.         foreach ($context['_seq'] as $context["_key"] => $context["img"]) {
  156.             // line 24
  157.             echo "
  158.               ";
  159.             // line 25
  160.             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse25) < 2)) {
  161.                 // line 26
  162.                 echo "            <a class=\"gallery__item gallery__item--large\" href=\"";
  163.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\VehicleImageExtension']->getImageUrl($context["img"])), "html"nulltrue);
  164.                 echo "\" title=\"";
  165.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleImageExtension']->getImageAlt($context["img"]), "html"nulltrue);
  166.                 echo "\">
  167.                 <img  src=\"";
  168.                 // line 27
  169.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\VehicleImageExtension']->getImageUrl($context["img"])), "html"nulltrue);
  170.                 echo "\"
  171.                         alt=\"";
  172.                 // line 28
  173.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleImageExtension']->getImageAlt($context["img"]), "html"nulltrue);
  174.                 echo "\"
  175.                         ";
  176.                 // line 29
  177.                 echo $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusController("symfony/ux-lazy-image/lazy-image", ["src" => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\VehicleImageExtension']->getImageUrl(                // line 30
  178. $context["img"]))]);
  179.                 // line 31
  180.                 echo " width=\"400\" >
  181.                 ";
  182.                 // line 37
  183.                 echo "            </a>
  184.              ";
  185.             } else {
  186.                 // line 39
  187.                 echo "            <a  ";
  188.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse39) > 5)) {
  189.                     echo "  style=\"display: none\" ";
  190.                 }
  191.                 echo " class=\"gallery__item   ";
  192.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse39) == 5)) {
  193.                     echo "  gallery__item--hidden-sm  ";
  194.                 }
  195.                 echo " \" href=\"";
  196.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\VehicleImageExtension']->getImageUrl($context["img"])), "html"nulltrue);
  197.                 echo "\" title=\"";
  198.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleImageExtension']->getImageAlt($context["img"]), "html"nulltrue);
  199.                 echo "\">
  200.                 <img src=\"";
  201.                 // line 40
  202.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\VehicleImageExtension']->getImageUrl($context["img"])), "html"nulltrue);
  203.                 echo "\"
  204.                         alt=\"";
  205.                 // line 41
  206.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleImageExtension']->getImageAlt($context["img"]), "html"nulltrue);
  207.                 echo "\"
  208.                         ";
  209.                 // line 42
  210.                 echo $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusController("symfony/ux-lazy-image/lazy-image", ["src" => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\VehicleImageExtension']->getImageUrl(                // line 43
  211. $context["img"]))]);
  212.                 // line 44
  213.                 echo " width=\"200\" > </a>
  214.             ";
  215.             }
  216.             // line 46
  217.             echo "
  218.             ";
  219.             ++$context['loop']['index0'];
  220.             ++$context['loop']['index'];
  221.             $context['loop']['first'] = false;
  222.             if (isset($context['loop']['length'])) {
  223.                 --$context['loop']['revindex0'];
  224.                 --$context['loop']['revindex'];
  225.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  226.             }
  227.         }
  228.         $_parent $context['_parent'];
  229.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['img'], $context['_parent'], $context['loop']);
  230.         $context array_intersect_key($context$_parent) + $_parent;
  231.         // line 48
  232.         echo "            ";
  233.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'48$this->source); })()), "vehicleImages", [], "any"falsefalsefalse48)) > 5)) {
  234.             // line 49
  235.             echo "            <div class=\"gallery__show\">
  236.                 <i class=\"icon icon-camera\"></i>
  237.                 +";
  238.             // line 51
  239.             echo twig_escape_filter($this->env, (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'51$this->source); })()), "vehicleImages", [], "any"falsefalsefalse51)) - 5), "html"nulltrue);
  240.             echo "
  241.             </div>
  242.             ";
  243.         }
  244.         // line 54
  245.         echo "        </section>
  246.     </section>
  247.     <div id=\"blueimp-gallery\" class=\"blueimp-gallery blueimp-gallery-controls\" aria-label=\"image gallery\"
  248.          aria-modal=\"true\" role=\"dialog\">
  249.         <div class=\"slides\" aria-live=\"polite\"></div>
  250.         <a class=\"prev\" aria-controls=\"blueimp-gallery\" aria-label=\"previous slide\" aria-keyshortcuts=\"ArrowLeft\"></a>
  251.         <a class=\"next\" aria-controls=\"blueimp-gallery\" aria-label=\"next slide\" aria-keyshortcuts=\"ArrowRight\"></a>
  252.         <a class=\"close\" aria-controls=\"blueimp-gallery\" aria-label=\"close\" aria-keyshortcuts=\"Escape\"></a>
  253.     </div>
  254.     <section class=\"grid grid--gap40 grid--row-gap20 grid--padding-top0\">
  255.         <div>
  256.             <section class=\"detail\">
  257.                 <h1 class=\"margin-bottom-0\">";
  258.         // line 72
  259.         echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleSeoExtension']->getVehicleSeoH1((isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'72$this->source); })())), "html"nulltrue);
  260.         echo "</h1>
  261.                 <div class=\"detail__price\">
  262.                     ";
  263.         // line 74
  264.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'74$this->source); })()), "price", [], "any"falsefalsefalse74)) ? (print (twig_escape_filter($this->env, (twig_number_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'74$this->source); })()), "price", [], "any"falsefalsefalse74), 0null" ") . " Kč"), "html"nulltrue))) : (print ("dohodou")));
  265.         echo "
  266.                     ";
  267.         // line 75
  268.         if (twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'75$this->source); })()), "vat", [], "any"falsefalsefalse75)) {
  269.             // line 76
  270.             echo "                    <div class=\"detail__price-label\">Odpočet DPH možný</div>
  271.                     ";
  272.         }
  273.         // line 78
  274.         echo "                </div>
  275.                 <div class=\"detail__info\">
  276.                     <div class=\"detail__info-item\">
  277.                         Rok výroby
  278.                         <strong class=\"detail__info-strong\">
  279.                             <i class=\"icon icon-calendar\"></i>
  280.                             ";
  281.         // line 84
  282.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'84$this->source); })()), "madeDate", [], "any"falsefalsefalse84)) ? (print (twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'84$this->source); })()), "madeDate", [], "any"falsefalsefalse84), 04), "html"nulltrue))) : (print ("neuvedeno")));
  283.         echo "
  284.                         </strong>
  285.                     </div>
  286.                     <div class=\"detail__info-item\">
  287.                         Tachometr
  288.                         <strong class=\"detail__info-strong\">
  289.                             <i class=\"icon icon-tachometer\"></i>
  290.                             ";
  291.         // line 91
  292.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'91$this->source); })()), "mileage", [], "any"falsefalsefalse91)) ? (print (twig_escape_filter($this->env, ((twig_number_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'91$this->source); })()), "mileage", [], "any"falsefalsefalse91), null" "" ") . " ") . twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'91$this->source); })()), "mileageUnit", [], "any"falsefalsefalse91)), "html"nulltrue))) : (print ("neuvedeno")));
  293.         echo "
  294.                         </strong>
  295.                     </div>
  296.                     <div class=\"detail__info-item\">
  297.                         Palivo
  298.                         <strong class=\"detail__info-strong\">
  299.                             <i class=\"icon icon-gas\"></i>
  300.                             ";
  301.         // line 98
  302.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'98$this->source); })()), "fuel", [], "any"falsefalsefalse98)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'98$this->source); })()), "fuel", [], "any"falsefalsefalse98), "name", [], "any"falsefalsefalse98), "html"nulltrue))) : (print ("neuvedeno")));
  303.         echo "
  304.                         </strong>
  305.                     </div>
  306.                     <div class=\"detail__info-item\">
  307.                         Převodovka
  308.                         <strong class=\"detail__info-strong\">
  309.                             <i class=\"icon icon-settings\"></i>
  310.                             ";
  311.         // line 105
  312.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'105$this->source); })()), "gearbox", [], "any"falsefalsefalse105)) ? (print (twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'105$this->source); })()), "gearbox", [], "any"falsefalsefalse105)), "html"nulltrue))) : (print ("neuvedeno")));
  313.         echo "
  314.                         </strong>
  315.                     </div>
  316.                     <div class=\"detail__info-item\">
  317.                         Výkon
  318.                         <strong class=\"detail__info-strong\">
  319.                             <i class=\"icon icon-power\"></i>
  320.                             ";
  321.         // line 112
  322.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'112$this->source); })()), "enginePower", [], "any"falsefalsefalse112)) ? (print (twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'112$this->source); })()), "enginePower", [], "any"falsefalsefalse112) . " kW"), "html"nulltrue))) : (print ("neuvedeno")));
  323.         echo "
  324.                         </strong>
  325.                     </div>
  326.                     <div class=\"detail__info-item\">
  327.                         Karoserie
  328.                         <strong class=\"detail__info-strong\">
  329.                             <i class=\"icon icon-car\"></i>
  330.                             ";
  331.         // line 119
  332.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'119$this->source); })()), "body", [], "any"falsefalsefalse119)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'119$this->source); })()), "body", [], "any"falsefalsefalse119), "name", [], "any"falsefalsefalse119), "html"nulltrue))) : (print ("neuvedeno")));
  333.         echo "
  334.                         </strong>
  335.                     </div>
  336.                 </div>
  337.                 <h2>Popis</h2>
  338.                 <div class=\"detail__more js-detail__more\">
  339.                     <div class=\"detail__more-content js-detail__more-content\">
  340.                         <p> ";
  341.         // line 127
  342.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'127$this->source); })()), "note", [], "any"falsefalsefalse127), "html"nulltrue);
  343.         echo " </p>
  344.                     </div>
  345.                     <div class=\"detail__more-control\">
  346.                         <button class=\"button detail__more-toggler js-detail__more-toggler\" type=\"button\">
  347.                             <span class=\"detail__more-toggler-show\">Zobrazit více</span>
  348.                             <span class=\"detail__more-toggler-hide\">Zobrazit méně</span>
  349.                         </button>
  350.                     </div>
  351.                 </div>
  352.                 <h2>Informace o vozu</h2>
  353.                 <div class=\"detail__columns detail__hidden--mobile\">
  354.                     <table>
  355.                         <tbody>
  356.                         <tr>
  357.                             <th>Prodejní cena</th>
  358.                             <td> ";
  359.         // line 144
  360.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'144$this->source); })()), "price", [], "any"falsefalsefalse144)) ? (print (twig_escape_filter($this->env, (twig_number_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'144$this->source); })()), "price", [], "any"falsefalsefalse144), 0null" ") . " Kč"), "html"nulltrue))) : (print ("dohodou")));
  361.         echo "</td>
  362.                         </tr>
  363.                         ";
  364.         // line 146
  365.         if (twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'146$this->source); })()), "vat", [], "any"falsefalsefalse146)) {
  366.             // line 147
  367.             echo "                        <tr>
  368.                             <th> Cena bez DPH</th>
  369.                             <td>
  370.                                 ";
  371.             // line 150
  372.             if (twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'150$this->source); })()), "price", [], "any"falsefalsefalse150)) {
  373.                 // line 151
  374.                 echo "                                    ";
  375.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->env, (twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'151$this->source); })()), "price", [], "any"falsefalsefalse151) / 1.21), 0null" "), "html"nulltrue);
  376.                 echo "  Kč
  377.                                 ";
  378.             } else {
  379.                 // line 153
  380.                 echo "                                    neuvedeno
  381.                                 ";
  382.             }
  383.             // line 154
  384.             echo " </td>
  385.                         </tr>
  386.                         ";
  387.         }
  388.         // line 157
  389.         echo "                        <tr>
  390.                             <th>Odpočet DPH  </th>
  391.                             <td>";
  392.         // line 159
  393.         echo ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'159$this->source); })()), "vat", [], "any"falsefalsefalse159)) ? ("ano") : ("ne"));
  394.         echo " </td>
  395.                         </tr>
  396.                         <tr>
  397.                             <th> VIN</th>
  398.                             <td> ";
  399.         // line 163
  400.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'163$this->source); })()), "vin", [], "any"falsefalsefalse163)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'163$this->source); })()), "vin", [], "any"falsefalsefalse163), "html"nulltrue))) : (print ("neuvedeno")));
  401.         echo "</td>
  402.                         </tr>
  403.                         ";
  404.         // line 165
  405.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'165$this->source); })()), "dealer", [], "any"falsefalsefalse165), "checkVin", [], "any"falsefalsefalse165)) {
  406.             // line 166
  407.             echo "                            <tr>
  408.                                 <th>Historie</th>
  409.                                 <td>
  410.                                     <a target=\"_blank\"
  411.                                        href=\"https://cz.cebia.com/?utm_source=affilbox&utm_medium=affiliate&utm_campaign=Autanet_2013&a_box=j49grgww&vin=";
  412.             // line 170
  413.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'170$this->source); })()), "vin", [], "any"falsefalsefalse170), "html"nulltrue);
  414.             echo "\"
  415.                                     >Zobrazit historii vozu</a>
  416.                                 </td>
  417.                             </tr>
  418.                         ";
  419.         }
  420.         // line 175
  421.         echo "                        <tr>
  422.                             <th>Tachometr</th>
  423.                             <td>  ";
  424.         // line 177
  425.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'177$this->source); })()), "mileage", [], "any"falsefalsefalse177)) ? (print (twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'177$this->source); })()), "mileage", [], "any"falsefalsefalse177) . " ") . twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'177$this->source); })()), "mileageUnit", [], "any"falsefalsefalse177)), "html"nulltrue))) : (print ("neuvedeno")));
  426.         echo "  </td>
  427.                         </tr>
  428.                         <tr>
  429.                             <th>Druh paliva</th>
  430.                             <td>          ";
  431.         // line 181
  432.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'181$this->source); })()), "fuel", [], "any"falsefalsefalse181)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'181$this->source); })()), "fuel", [], "any"falsefalsefalse181), "name", [], "any"falsefalsefalse181), "html"nulltrue))) : (print ("neuvedeno")));
  433.         echo "</td>
  434.                         </tr>
  435.                         <tr>
  436.                             <th>Objem</th>
  437.                             <td>
  438.                                 ";
  439.         // line 186
  440.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'186$this->source); })()), "engineVolume", [], "any"falsefalsefalse186)) ? (print (twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'186$this->source); })()), "engineVolume", [], "any"falsefalsefalse186) . " ccm"), "html"nulltrue))) : (print ("neuvedeno")));
  441.         echo " </td>
  442.                         </tr>
  443.                         </tbody>
  444.                     </table>
  445.                     <table>
  446.                         <tbody>
  447.                         <tr>
  448.                             <th>Karoserie</th>
  449.                             <td>  ";
  450.         // line 194
  451.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'194$this->source); })()), "body", [], "any"falsefalsefalse194)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'194$this->source); })()), "body", [], "any"falsefalsefalse194), "name", [], "any"falsefalsefalse194), "html"nulltrue))) : (print ("neuvedeno")));
  452.         echo "</td>
  453.                         </tr>
  454.                         <tr>
  455.                             <th>Počet dveří</th>
  456.                             <td> ";
  457.         // line 198
  458.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'198$this->source); })()), "doors", [], "any"falsefalsefalse198)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'198$this->source); })()), "doors", [], "any"falsefalsefalse198), "html"nulltrue))) : (print ("neuvedeno")));
  459.         echo "</td>
  460.                         </tr>
  461.                         <tr>
  462.                             <th>Počet míst</th>
  463.                             <td>   ";
  464.         // line 202
  465.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'202$this->source); })()), "places", [], "any"falsefalsefalse202)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'202$this->source); })()), "places", [], "any"falsefalsefalse202), "html"nulltrue))) : (print ("neuvedeno")));
  466.         echo " </td>
  467.                         </tr>
  468.                         <tr>
  469.                             <th>Barva</th>
  470.                             <td>";
  471.         // line 206
  472.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'206$this->source); })()), "color", [], "any"falsefalsefalse206), "name", [], "any"falsefalsefalse206), "html"nulltrue);
  473.         echo "   </td>
  474.                         </tr>
  475.                         <tr>
  476.                             <th>STK ";
  477.         // line 209
  478.         if ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'209$this->source); })()), "stkTo", [], "any"falsefalsefalse209) != 1)) {
  479.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'209$this->source); })()), "stkTo", [], "any"falsefalsefalse209), "html"nulltrue);
  480.         }
  481.         echo "</th>
  482.                             <td>";
  483.         // line 210
  484.         if ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'210$this->source); })()), "stkTo", [], "any"falsefalsefalse210) == 1)) {
  485.             echo "neuvedeno";
  486.         } else {
  487.             ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'210$this->source); })()), "stkTo", [], "any"falsefalsefalse210)) ? (print (twig_escape_filter($this->env, ((twig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'210$this->source); })()), "stkTo", [], "any"falsefalsefalse210), 46) . "/") . twig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'210$this->source); })()), "stkTo", [], "any"falsefalsefalse210), 04)), "html"nulltrue))) : (print ("neuvedeno")));
  488.         }
  489.         echo "  </td>
  490.                         </tr>
  491.                         <tr>
  492.                             <th>Země původu</th>
  493.                             <td>";
  494.         // line 214
  495.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'214$this->source); })()), "state", [], "any"falsefalsefalse214)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'214$this->source); })()), "state", [], "any"falsefalsefalse214), "html"nulltrue))) : (print ("neuvedeno")));
  496.         echo "  </td>
  497.                         </tr>
  498.                         <tr>
  499.                             <th>První majitel</th>
  500.                             <td>";
  501.         // line 218
  502.         echo ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'218$this->source); })()), "firstOwner", [], "any"falsefalsefalse218)) ? ("ano") : ("ne"));
  503.         echo "</td>
  504.                         </tr>
  505.                         </tbody>
  506.                     </table>
  507.                 </div>
  508.                 <div class=\"detail__hidden--desktop\">
  509.                     <table>
  510.                         <tbody>
  511.                         <tr>
  512.                             <th>Prodejní cena</th>
  513.                             <td> ";
  514.         // line 228
  515.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'228$this->source); })()), "price", [], "any"falsefalsefalse228)) ? (print (twig_escape_filter($this->env, (twig_number_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'228$this->source); })()), "price", [], "any"falsefalsefalse228), 0null" ") . " Kč"), "html"nulltrue))) : (print ("neuvedeno")));
  516.         echo "</td>
  517.                         </tr>
  518.                         ";
  519.         // line 230
  520.         if (twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'230$this->source); })()), "vat", [], "any"falsefalsefalse230)) {
  521.             // line 231
  522.             echo "                        <tr>
  523.                             <th> Cena bez DPH</th>
  524.                             <td>
  525.                                 ";
  526.             // line 234
  527.             if (twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'234$this->source); })()), "price", [], "any"falsefalsefalse234)) {
  528.                 // line 235
  529.                 echo "                                    ";
  530.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->env, (twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'235$this->source); })()), "price", [], "any"falsefalsefalse235) / 1.21), 0null" "), "html"nulltrue);
  531.                 echo "  Kč
  532.                                 ";
  533.             } else {
  534.                 // line 237
  535.                 echo "                                    neuvedeno
  536.                                 ";
  537.             }
  538.             // line 238
  539.             echo " </td>
  540.                         </tr>
  541.                         ";
  542.         }
  543.         // line 241
  544.         echo "                        <tr>
  545.                             <th>Odpočet DPH</th>
  546.                             <td>";
  547.         // line 243
  548.         echo ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'243$this->source); })()), "vat", [], "any"falsefalsefalse243)) ? ("ano") : ("ne"));
  549.         echo " </td>
  550.                         </tr>
  551.                         <tr>
  552.                             <th> VIN</th>
  553.                             <td> ";
  554.         // line 247
  555.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'247$this->source); })()), "vin", [], "any"falsefalsefalse247)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'247$this->source); })()), "vin", [], "any"falsefalsefalse247), "html"nulltrue))) : (print ("neuvedeno")));
  556.         echo "</td>
  557.                         </tr>
  558.                         ";
  559.         // line 249
  560.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'249$this->source); })()), "dealer", [], "any"falsefalsefalse249), "checkVin", [], "any"falsefalsefalse249)) {
  561.             // line 250
  562.             echo "                            <tr>
  563.                                 <th>Historie</th>
  564.                                 <td>
  565.                                     <a target=\"_blank\"
  566.                                        href=\"https://cz.cebia.com/?utm_source=affilbox&utm_medium=affiliate&utm_campaign=Autanet_2013&a_box=j49grgww&vin=";
  567.             // line 254
  568.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'254$this->source); })()), "vin", [], "any"falsefalsefalse254), "html"nulltrue);
  569.             echo "\"
  570.                                     >Zobrazit historii vozu</a>
  571.                                 </td>
  572.                             </tr>
  573.                         ";
  574.         }
  575.         // line 259
  576.         echo "                        <tr>
  577.                             <th>Tachometr</th>
  578.                             <td>  ";
  579.         // line 261
  580.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'261$this->source); })()), "mileage", [], "any"falsefalsefalse261)) ? (print (twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'261$this->source); })()), "mileage", [], "any"falsefalsefalse261) . " ") . twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'261$this->source); })()), "mileageUnit", [], "any"falsefalsefalse261)), "html"nulltrue))) : (print ("neuvedeno")));
  581.         echo "  </td>
  582.                         </tr>
  583.                         <tr>
  584.                             <th>Druh paliva</th>
  585.                             <td>          ";
  586.         // line 265
  587.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'265$this->source); })()), "fuel", [], "any"falsefalsefalse265)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'265$this->source); })()), "fuel", [], "any"falsefalsefalse265), "name", [], "any"falsefalsefalse265), "html"nulltrue))) : (print ("neuvedeno")));
  588.         echo "</td>
  589.                         </tr>
  590.                         <tr>
  591.                             <th>Objem</th>
  592.                             <td>
  593.                                 ";
  594.         // line 270
  595.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'270$this->source); })()), "engineVolume", [], "any"falsefalsefalse270)) ? (print (twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'270$this->source); })()), "engineVolume", [], "any"falsefalsefalse270) . " ccm"), "html"nulltrue))) : (print ("neuvedeno")));
  596.         echo " </td>
  597.                         </tr>
  598.                         <tr>
  599.                             <th>Karoserie</th>
  600.                             <td>  ";
  601.         // line 275
  602.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'275$this->source); })()), "body", [], "any"falsefalsefalse275)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'275$this->source); })()), "body", [], "any"falsefalsefalse275), "name", [], "any"falsefalsefalse275), "html"nulltrue))) : (print ("neuvedeno")));
  603.         echo "</td>
  604.                         </tr>
  605.                         <tr>
  606.                             <th>Počet dveří</th>
  607.                             <td> ";
  608.         // line 279
  609.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'279$this->source); })()), "doors", [], "any"falsefalsefalse279)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'279$this->source); })()), "doors", [], "any"falsefalsefalse279), "html"nulltrue))) : (print ("neuvedeno")));
  610.         echo "</td>
  611.                         </tr>
  612.                         <tr>
  613.                             <th>Počet míst</th>
  614.                             <td>   ";
  615.         // line 283
  616.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'283$this->source); })()), "places", [], "any"falsefalsefalse283)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'283$this->source); })()), "places", [], "any"falsefalsefalse283), "html"nulltrue))) : (print ("neuvedeno")));
  617.         echo " </td>
  618.                         </tr>
  619.                         <tr>
  620.                             <th>Barva</th>
  621.                             <td>";
  622.         // line 287
  623.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'287$this->source); })()), "color", [], "any"falsefalsefalse287), "name", [], "any"falsefalsefalse287), "html"nulltrue);
  624.         echo "   </td>
  625.                         </tr>
  626.                         <tr>
  627.                             <th>STK ";
  628.         // line 290
  629.         if ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'290$this->source); })()), "stkTo", [], "any"falsefalsefalse290) != 1)) {
  630.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'290$this->source); })()), "stkTo", [], "any"falsefalsefalse290), "html"nulltrue);
  631.         }
  632.         echo "</th>
  633.                             <td>";
  634.         // line 291
  635.         if ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'291$this->source); })()), "stkTo", [], "any"falsefalsefalse291) == 1)) {
  636.             echo "neuvedeno";
  637.         } else {
  638.             ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'291$this->source); })()), "stkTo", [], "any"falsefalsefalse291)) ? (print (twig_escape_filter($this->env, ((twig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'291$this->source); })()), "stkTo", [], "any"falsefalsefalse291), 46) . "/") . twig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'291$this->source); })()), "stkTo", [], "any"falsefalsefalse291), 04)), "html"nulltrue))) : (print ("neuvedeno")));
  639.         }
  640.         echo "  </td>
  641.                         </tr>
  642.                         <tr>
  643.                             <th>Země původu</th>
  644.                             <td>";
  645.         // line 295
  646.         ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'295$this->source); })()), "state", [], "any"falsefalsefalse295)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'295$this->source); })()), "state", [], "any"falsefalsefalse295), "html"nulltrue))) : (print ("neuvedeno")));
  647.         echo "  </td>
  648.                         </tr>
  649.                         <tr>
  650.                             <th>První majitel</th>
  651.                             <td>";
  652.         // line 299
  653.         echo ((twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'299$this->source); })()), "firstOwner", [], "any"falsefalsefalse299)) ? ("ano") : ("ne"));
  654.         echo "</td>
  655.                         </tr>
  656.                         </tbody>
  657.                     </table>
  658.                 </div>
  659.                 <h2>Výbava vozu</h2>
  660.                 <div class=\"detail__more js-detail__more\">
  661.                     <div class=\"detail__more-content js-detail__more-content\">
  662.                         <div class=\"detail__columns\">
  663.                             <ul>
  664.                             ";
  665.         // line 314
  666.         $context['_parent'] = $context;
  667.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'314$this->source); })()), "equipments", [], "any"falsefalsefalse314));
  668.         $context['loop'] = [
  669.           'parent' => $context['_parent'],
  670.           'index0' => 0,
  671.           'index'  => 1,
  672.           'first'  => true,
  673.         ];
  674.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  675.             $length count($context['_seq']);
  676.             $context['loop']['revindex0'] = $length 1;
  677.             $context['loop']['revindex'] = $length;
  678.             $context['loop']['length'] = $length;
  679.             $context['loop']['last'] = === $length;
  680.         }
  681.         foreach ($context['_seq'] as $context["_key"] => $context["e"]) {
  682.             // line 315
  683.             echo "                                <li>";
  684.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["e"], "name", [], "any"falsefalsefalse315), "html"nulltrue);
  685.             echo "</li>
  686.                                 ";
  687.             // line 316
  688.             if ((twig_round((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'316$this->source); })()), "equipments", [], "any"falsefalsefalse316)) / 2)) == twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse316))) {
  689.                 // line 317
  690.                 echo "                                    </ul>  <ul>
  691.                                 ";
  692.             }
  693.             // line 319
  694.             echo "                            ";
  695.             ++$context['loop']['index0'];
  696.             ++$context['loop']['index'];
  697.             $context['loop']['first'] = false;
  698.             if (isset($context['loop']['length'])) {
  699.                 --$context['loop']['revindex0'];
  700.                 --$context['loop']['revindex'];
  701.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  702.             }
  703.         }
  704.         $_parent $context['_parent'];
  705.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['e'], $context['_parent'], $context['loop']);
  706.         $context array_intersect_key($context$_parent) + $_parent;
  707.         // line 320
  708.         echo "                           </ul>
  709.                         </div>
  710.                     </div>
  711.                     <div class=\"detail__more-control\">
  712.                         <button class=\"button detail__more-toggler js-detail__more-toggler\" type=\"button\">
  713.                             <span class=\"detail__more-toggler-show\">Zobrazit více</span>
  714.                             <span class=\"detail__more-toggler-hide\">Zobrazit méně</span>
  715.                         </button>
  716.                     </div>
  717.                 </div>
  718.             </section>
  719.             
  720.             <!-- Mobile contact section -->
  721.             <div class=\"dealer dealer--mobile\" style=\"display: none;\">
  722.                 <h2>Kontakt na prodejce</h2>
  723.                 ";
  724.         // line 336
  725.         if ( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'336$this->source); })()), "dealer", [], "any"falsefalsefalse336), "basicAdvertising", [], "any"falsefalsefalse336)) {
  726.             // line 337
  727.             echo "                <figure class=\"dealer__logo\">
  728.                     ";
  729.             // line 338
  730.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'338$this->source); })()), "dealer", [], "any"falsefalsefalse338), "logo", [], "any"falsefalsefalse338)) {
  731.                 // line 339
  732.                 echo "                        <img
  733.                                 src=\"";
  734.                 // line 340
  735.                 echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img-dealer/") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'340$this->source); })()), "dealer", [], "any"falsefalsefalse340), "logo", [], "any"falsefalsefalse340)), "html"nulltrue);
  736.                 echo "\"
  737.                                 ";
  738.                 // line 341
  739.                 echo $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusController("symfony/ux-lazy-image/lazy-image", ["src" => ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img-dealer/") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 342
  740. (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'342$this->source); })()), "dealer", [], "any"falsefalsefalse342), "logo", [], "any"falsefalsefalse342))]);
  741.                 // line 343
  742.                 echo "
  743.                                 width=\"170\"
  744.                         >
  745.                     ";
  746.             }
  747.             // line 347
  748.             echo "                </figure>
  749.                 ";
  750.         }
  751.         // line 349
  752.         echo "                <h3>";
  753.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'349$this->source); })()), "dealer", [], "any"falsefalsefalse349), "name", [], "any"falsefalsefalse349), "html"nulltrue);
  754.         echo "</h3>
  755.                 <p>";
  756.         // line 350
  757.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'350$this->source); })()), "dealer", [], "any"falsefalsefalse350), "street", [], "any"falsefalsefalse350), "html"nulltrue);
  758.         echo ", ";
  759.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'350$this->source); })()), "dealer", [], "any"falsefalsefalse350), "city", [], "any"falsefalsefalse350), "html"nulltrue);
  760.         echo "<br>
  761.                     ";
  762.         // line 351
  763.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'351$this->source); })()), "dealer", [], "any"falsefalsefalse351), "district", [], "any"falsefalsefalse351), "name", [], "any"falsefalsefalse351), "html"nulltrue);
  764.         echo "</p>
  765.                 <a class=\"dealer__link\" href=\"https://www.google.com/maps/search/?api=1&query=";
  766.         // line 352
  767.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'352$this->source); })()), "dealer", [], "any"falsefalsefalse352), "lat", [], "any"falsefalsefalse352), "html"nulltrue);
  768.         echo ",";
  769.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'352$this->source); })()), "dealer", [], "any"falsefalsefalse352), "lng", [], "any"falsefalsefalse352), "html"nulltrue);
  770.         echo "\" target=\"_blank\">
  771.                     <i class=\"icon icon-map\"></i>
  772.                     Zobrazit na mapě</a>
  773.                 <div class=\"dealer__opening-hours\">
  774.                     <h4 class=\"detail__opening-hours-heading\">
  775.                         <i class=\"icon icon-hours\"></i>
  776.                         Provozní doba
  777.                     </h4>
  778.                     <div class=\"dealer__opening\">
  779.                         ";
  780.         // line 361
  781.         $context['_parent'] = $context;
  782.         $context['_seq'] = twig_ensure_traversable((isset($context["openTime"]) || array_key_exists("openTime"$context) ? $context["openTime"] : (function () { throw new RuntimeError('Variable "openTime" does not exist.'361$this->source); })()));
  783.         foreach ($context['_seq'] as $context["_key"] => $context["t"]) {
  784.             // line 362
  785.             echo "                            <div>";
  786.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["t"], "day", [], "any"falsefalsefalse362), "value", [], "any"falsefalsefalse362), "html"nulltrue);
  787.             echo "</div>
  788.                             <div>";
  789.             // line 363
  790.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["t"], "description", [], "any"falsefalsefalse363), "html"nulltrue);
  791.             echo "</div>
  792.                         ";
  793.         }
  794.         $_parent $context['_parent'];
  795.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['t'], $context['_parent'], $context['loop']);
  796.         $context array_intersect_key($context$_parent) + $_parent;
  797.         // line 365
  798.         echo "                    </div>
  799.                 </div>
  800.                 <a class=\"dealer__button dealer__button--green js-modal-show\" href=\"#modal--call\">
  801.                     <i class=\"icon icon-phone\"></i>
  802.                     Zavolat prodejci</a>
  803.                 <a class=\"dealer__button js-modal-show\" href=\"#modal--write\">
  804.                     <i class=\"icon icon-email\"></i>
  805.                     Napsat prodejci
  806.                 </a>
  807.             </div>
  808.             
  809.             ";
  810.         // line 376
  811.         if ((twig_length_filter($this->env, (isset($context["vehicleOthers"]) || array_key_exists("vehicleOthers"$context) ? $context["vehicleOthers"] : (function () { throw new RuntimeError('Variable "vehicleOthers" does not exist.'376$this->source); })())) > 0)) {
  812.             // line 377
  813.             echo "            <h4 class=\"detail__dealer-vehicles-heading\">Další inzeráty prodejce</h4>
  814.             ";
  815.             // line 379
  816.             $context['_parent'] = $context;
  817.             $context['_seq'] = twig_ensure_traversable((isset($context["vehicleOthers"]) || array_key_exists("vehicleOthers"$context) ? $context["vehicleOthers"] : (function () { throw new RuntimeError('Variable "vehicleOthers" does not exist.'379$this->source); })()));
  818.             $context['loop'] = [
  819.               'parent' => $context['_parent'],
  820.               'index0' => 0,
  821.               'index'  => 1,
  822.               'first'  => true,
  823.             ];
  824.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  825.                 $length count($context['_seq']);
  826.                 $context['loop']['revindex0'] = $length 1;
  827.                 $context['loop']['revindex'] = $length;
  828.                 $context['loop']['length'] = $length;
  829.                 $context['loop']['last'] = === $length;
  830.             }
  831.             foreach ($context['_seq'] as $context["_key"] => $context["v"]) {
  832.                 // line 380
  833.                 echo "                ";
  834.                 $this->loadTemplate("vehicle/_vehicle.html.twig""homepage/detailVehicle.html.twig"380)->display(twig_array_merge($context, ["vehicle" => $context["v"]]));
  835.                 // line 381
  836.                 echo "
  837.                 ";
  838.                 // line 382
  839.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse382) == 1)) {
  840.                     // line 383
  841.                     echo "                    <div id=\"banner-mobile-container\" class=\"banner-mobile\"></div>
  842.                 ";
  843.                 }
  844.                 // line 385
  845.                 echo "
  846.                 ";
  847.                 // line 386
  848.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse386) == 2)) {
  849.                     // line 387
  850.                     echo "                    <div id=\"adform_squarem\"></div>
  851.                 ";
  852.                 }
  853.                 // line 389
  854.                 echo "
  855.                 ";
  856.                 // line 390
  857.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse390) == 8)) {
  858.                     // line 391
  859.                     echo "                    <div id=\"adform_squarem2\"></div>
  860.                 ";
  861.                 }
  862.                 // line 393
  863.                 echo "
  864.             ";
  865.                 ++$context['loop']['index0'];
  866.                 ++$context['loop']['index'];
  867.                 $context['loop']['first'] = false;
  868.                 if (isset($context['loop']['length'])) {
  869.                     --$context['loop']['revindex0'];
  870.                     --$context['loop']['revindex'];
  871.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  872.                 }
  873.             }
  874.             $_parent $context['_parent'];
  875.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['v'], $context['_parent'], $context['loop']);
  876.             $context array_intersect_key($context$_parent) + $_parent;
  877.             // line 395
  878.             echo "
  879.             ";
  880.         }
  881.         // line 397
  882.         echo "
  883.             ";
  884.         // line 398
  885.         if ( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'398$this->source); })()), "dealer", [], "any"falsefalsefalse398), "basicAdvertising", [], "any"falsefalsefalse398)) {
  886.             // line 399
  887.             echo "            <footer class=\"grid__buttons\">
  888.                 <a class=\"button\" href=\"";
  889.             // line 400
  890.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_dealer_vehicle", ["url" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'400$this->source); })()), "dealer", [], "any"falsefalsefalse400), "url", [], "any"falsefalsefalse400)]), "html"nulltrue);
  891.             echo "\">
  892.                     Zobrazit všechny inzeráty prodejce
  893.                     <i class=\"icon icon-chevron-right\"></i>
  894.                 </a>
  895.             </footer>
  896.             ";
  897.         }
  898.         // line 406
  899.         echo "
  900.             <hr>
  901.         </div>
  902.         <div>
  903.             <div class=\"grid__buttons\">
  904.                 ";
  905.         // line 417
  906.         echo "
  907.                 <a class=\"button js-modal-show\" href=\"#modal--share\">
  908.                     Sdílet inzerát
  909.                     <i class=\"icon icon-forward\"></i>
  910.                 </a>
  911.             </div>
  912.             <div class=\"dealer\">
  913.                 <h2>Kontakt na prodejce</h2>
  914.                 ";
  915.         // line 427
  916.         if ( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'427$this->source); })()), "dealer", [], "any"falsefalsefalse427), "basicAdvertising", [], "any"falsefalsefalse427)) {
  917.             // line 428
  918.             echo "                <figure class=\"dealer__logo\">
  919.                     ";
  920.             // line 429
  921.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'429$this->source); })()), "dealer", [], "any"falsefalsefalse429), "logo", [], "any"falsefalsefalse429)) {
  922.                 // line 430
  923.                 echo "                        <img
  924.                                 src=\"";
  925.                 // line 431
  926.                 echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img-dealer/") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'431$this->source); })()), "dealer", [], "any"falsefalsefalse431), "logo", [], "any"falsefalsefalse431)), "html"nulltrue);
  927.                 echo "\"
  928.                                 ";
  929.                 // line 432
  930.                 echo $this->extensions['Symfony\UX\StimulusBundle\Twig\StimulusTwigExtension']->renderStimulusController("symfony/ux-lazy-image/lazy-image", ["src" => ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img-dealer/") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                 // line 433
  931. (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'433$this->source); })()), "dealer", [], "any"falsefalsefalse433), "logo", [], "any"falsefalsefalse433))]);
  932.                 // line 434
  933.                 echo "
  934.                                 width=\"170\"
  935.                         >
  936.                     ";
  937.             }
  938.             // line 438
  939.             echo "                </figure>
  940.                 ";
  941.         }
  942.         // line 440
  943.         echo "                <h3>";
  944.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'440$this->source); })()), "dealer", [], "any"falsefalsefalse440), "name", [], "any"falsefalsefalse440), "html"nulltrue);
  945.         echo "</h3>
  946.                 <p>";
  947.         // line 441
  948.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'441$this->source); })()), "dealer", [], "any"falsefalsefalse441), "street", [], "any"falsefalsefalse441), "html"nulltrue);
  949.         echo ", ";
  950.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'441$this->source); })()), "dealer", [], "any"falsefalsefalse441), "city", [], "any"falsefalsefalse441), "html"nulltrue);
  951.         echo "<br>
  952.                     ";
  953.         // line 442
  954.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'442$this->source); })()), "dealer", [], "any"falsefalsefalse442), "district", [], "any"falsefalsefalse442), "name", [], "any"falsefalsefalse442), "html"nulltrue);
  955.         echo "</p>
  956.                 <a class=\"dealer__link\" href=\"https://www.google.com/maps/search/?api=1&query=";
  957.         // line 443
  958.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'443$this->source); })()), "dealer", [], "any"falsefalsefalse443), "lat", [], "any"falsefalsefalse443), "html"nulltrue);
  959.         echo ",";
  960.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'443$this->source); })()), "dealer", [], "any"falsefalsefalse443), "lng", [], "any"falsefalsefalse443), "html"nulltrue);
  961.         echo "\" target=\"_blank\">
  962.                     <i class=\"icon icon-map\"></i>
  963.                     Zobrazit na mapě</a>
  964.                 <div class=\"dealer__opening-hours\">
  965.                     <h4 class=\"detail__opening-hours-heading\">
  966.                         <i class=\"icon icon-hours\"></i>
  967.                         Provozní doba
  968.                     </h4>
  969.                     <div class=\"dealer__opening\">
  970.                         ";
  971.         // line 452
  972.         $context['_parent'] = $context;
  973.         $context['_seq'] = twig_ensure_traversable((isset($context["openTime"]) || array_key_exists("openTime"$context) ? $context["openTime"] : (function () { throw new RuntimeError('Variable "openTime" does not exist.'452$this->source); })()));
  974.         foreach ($context['_seq'] as $context["_key"] => $context["t"]) {
  975.             // line 453
  976.             echo "                            <div>";
  977.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["t"], "day", [], "any"falsefalsefalse453), "value", [], "any"falsefalsefalse453), "html"nulltrue);
  978.             echo "</div>
  979.                             <div>";
  980.             // line 454
  981.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["t"], "description", [], "any"falsefalsefalse454), "html"nulltrue);
  982.             echo "</div>
  983.                         ";
  984.         }
  985.         $_parent $context['_parent'];
  986.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['t'], $context['_parent'], $context['loop']);
  987.         $context array_intersect_key($context$_parent) + $_parent;
  988.         // line 456
  989.         echo "                    </div>
  990.                 </div>
  991.                 <a class=\"dealer__button dealer__button--green js-modal-show\" href=\"#modal--call\">
  992.                     <i class=\"icon icon-phone\"></i>
  993.                     Zavolat prodejci</a>
  994.                 <a class=\"dealer__button js-modal-show\" href=\"#modal--write\">
  995.                     <i class=\"icon icon-email\"></i>
  996.                     Napsat prodejci
  997.                 </a>
  998.             </div>
  999.             <div id=\"banner-container\" class=\"banner\"></div>
  1000.             <div id=\"adform_halfpage\"></div>
  1001.         </div>
  1002.     </section>
  1003.     <div class=\"mobile-buttons\">
  1004.         <a class=\"mobile-buttons__item mobile-buttons__item--green js-modal-show\" href=\"#modal--call\">
  1005.             <i class=\"icon icon-phone\"></i>
  1006.             Zavolat</a>
  1007.         </a>
  1008.         <a class=\"mobile-buttons__item js-modal-show\" href=\"#modal--write\">
  1009.             <i class=\"icon icon-email\"></i>
  1010.             Napsat
  1011.         </a>
  1012.     </div>
  1013.     <div class=\"modal\" id=\"modal--share\">
  1014.         <div class=\"modal__overlay js-modal-close\"></div>
  1015.         <article class=\"modal__body\">
  1016.             <button class=\"modal__close js-modal-close\" type=\"button\"></button>
  1017.             <div class=\"modal__header\">
  1018.                 <h2>Sdílet inzerci</h2>
  1019.             </div>
  1020.             <div class=\"share\">
  1021.                 <a target=\"_blank\"  class=\"share__item\" href=\"https://www.facebook.com/sharer/sharer.php?u=";
  1022.         // line 498
  1023.         echo twig_escape_filter($this->envtwig_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.'498$this->source); })()), "request", [], "any"falsefalsefalse498), "uri", [], "any"falsefalsefalse498), "html"nulltrue);
  1024.         echo "\">
  1025.                     <img src=\"";
  1026.         // line 499
  1027.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--facebook.svg"), "html"nulltrue);
  1028.         echo "\" alt=\"\">
  1029.                     Facebook
  1030.                 </a>
  1031.                 <a target=\"_blank\"  class=\"share__item\" href=\"\">
  1032.                     <img src=\"";
  1033.         // line 504
  1034.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--messenger.svg"), "html"nulltrue);
  1035.         echo "\" alt=\"fb-messenger://share/?link=";
  1036.         echo twig_escape_filter($this->envtwig_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.'504$this->source); })()), "request", [], "any"falsefalsefalse504), "uri", [], "any"falsefalsefalse504), "html"nulltrue);
  1037.         echo "\">
  1038.                     Messenger
  1039.                 </a>
  1040.                 <a target=\"_blank\"  class=\"share__item\" href=\"whatsapp://send?text=";
  1041.         // line 509
  1042.         echo twig_escape_filter($this->envtwig_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.'509$this->source); })()), "request", [], "any"falsefalsefalse509), "uri", [], "any"falsefalsefalse509), "html"nulltrue);
  1043.         echo "\">
  1044.                     <img src=\"";
  1045.         // line 510
  1046.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--whatsapp.svg"), "html"nulltrue);
  1047.         echo "\" alt=\"\">
  1048.                     Whatsapp
  1049.                 </a>
  1050.                 <a target=\"_blank\" class=\"share__item\" href=\"https://twitter.com/intent/tweet?url=";
  1051.         // line 513
  1052.         echo twig_escape_filter($this->envtwig_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.'513$this->source); })()), "request", [], "any"falsefalsefalse513), "uri", [], "any"falsefalsefalse513), "html"nulltrue);
  1053.         echo "&text=";
  1054.         echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleSeoExtension']->getCleanVehicleName((isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'513$this->source); })())), "html"nulltrue);
  1055.         echo " - ";
  1056.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'513$this->source); })()), "madeDate", [], "any"falsefalsefalse513), 04), "html"nulltrue);
  1057.         echo ", ";
  1058.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'513$this->source); })()), "mileage", [], "any"falsefalsefalse513), "html"nulltrue);
  1059.         echo " ";
  1060.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'513$this->source); })()), "mileageUnit", [], "any"falsefalsefalse513), "html"nulltrue);
  1061.         echo "\">
  1062.                     <img src=\"";
  1063.         // line 514
  1064.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--twitter.svg"), "html"nulltrue);
  1065.         echo "\" alt=\"\">
  1066.                     Twitter
  1067.                 </a>
  1068.                 <a target=\"_blank\"  class=\"share__item\"
  1069.                    href=\"mailto:?subject=";
  1070.         // line 518
  1071.         echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleSeoExtension']->getCleanVehicleName((isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'518$this->source); })())), "html"nulltrue);
  1072.         echo " - ";
  1073.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'518$this->source); })()), "madeDate", [], "any"falsefalsefalse518), 04), "html"nulltrue);
  1074.         echo ", ";
  1075.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'518$this->source); })()), "mileage", [], "any"falsefalsefalse518), "html"nulltrue);
  1076.         echo " ";
  1077.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'518$this->source); })()), "mileageUnit", [], "any"falsefalsefalse518), "html"nulltrue);
  1078.         echo "&amp;body=Podívej se na ";
  1079.         echo twig_escape_filter($this->envtwig_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.'518$this->source); })()), "request", [], "any"falsefalsefalse518), "uri", [], "any"falsefalsefalse518), "html"nulltrue);
  1080.         echo "\">
  1081.                     <img src=\"";
  1082.         // line 519
  1083.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--envelope.svg"), "html"nulltrue);
  1084.         echo "\" alt=\"\">
  1085.                     E-mail
  1086.                 </a>
  1087.             </div>
  1088.             <footer class=\"modal__footer\">
  1089.                 <button class=\"modal__link js-modal-close\" type=\"button\">zavřít okno</button>
  1090.             </footer>
  1091.         </article>
  1092.     </div>
  1093.     <div class=\"modal\" id=\"modal--call\">
  1094.         <div class=\"modal__overlay js-modal-close\"></div>
  1095.         <article class=\"modal__body\">
  1096.             <button class=\"modal__close js-modal-close\" type=\"button\"></button>
  1097.             <div class=\"modal__header\">
  1098.                 <h2>Zavolat prodejci</h2>
  1099.             </div>
  1100.             <div class=\"share\">
  1101.                  ";
  1102.         // line 539
  1103.         $context['_parent'] = $context;
  1104.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'539$this->source); })()), "dealer", [], "any"falsefalsefalse539), "dealerPhones", [], "any"falsefalsefalse539));
  1105.         foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
  1106.             // line 540
  1107.             echo "                <a class=\"share__item\" href=\"tel:";
  1108.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["p"], "name", [], "any"falsefalsefalse540), "html"nulltrue);
  1109.             echo "\">
  1110.                     <img src=\"";
  1111.             // line 541
  1112.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/share__icon--phone.svg"), "html"nulltrue);
  1113.             echo "\" alt=\"telefon\">
  1114.                      ";
  1115.             // line 542
  1116.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["p"], "name", [], "any"falsefalsefalse542), "html"nulltrue);
  1117.             echo "
  1118.                 </a>
  1119.                 ";
  1120.         }
  1121.         $_parent $context['_parent'];
  1122.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
  1123.         $context array_intersect_key($context$_parent) + $_parent;
  1124.         // line 545
  1125.         echo "            </div>
  1126.             <footer class=\"modal__footer\">
  1127.                 <button class=\"modal__link js-modal-close\" type=\"button\">zavřít okno</button>
  1128.             </footer>
  1129.         </article>
  1130.     </div>
  1131.     <div class=\"modal\" id=\"modal--write\">
  1132.         <div class=\"modal__overlay js-modal-close\"></div>
  1133.         <article class=\"modal__body modal__body--large\">
  1134.             <button class=\"modal__close js-modal-close\" type=\"button\"></button>
  1135.             <div class=\"modal__header\">
  1136.                 <h2>Napsat prodejci</h2>
  1137.             </div>
  1138.             <section>
  1139.                     <article>
  1140.                         <form class=\"form\">
  1141.                             <input type=\"hidden\" value=\"";
  1142.         // line 564
  1143.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'564$this->source); })()), "id", [], "any"falsefalsefalse564), "html"nulltrue);
  1144.         echo "\" name=\"vehicleId\">
  1145.                             <div class=\"form__group form__group--strong\">
  1146.                                 <input placeholder=\"Vaše jméno\" name=\"name\" required>
  1147.                             </div>
  1148.                             <div class=\"form__group form__group--strong\">
  1149.                                 <input type=\"email\" placeholder=\"Váš e-mail\" name=\"email\" required>
  1150.                             </div>
  1151.                             <div class=\"form__group form__group--strong\">
  1152.                                 <input type=\"tel\" placeholder=\"Vaše telefonní číslo\"  name=\"phone\" required>
  1153.                             </div>
  1154.                             <div class=\"form__group form__group--strong\">
  1155.                 <textarea class=\"textarea_changer_target\" placeholder=\"Vaše zpráva\" rows=\"5\"  name=\"message\"
  1156.                           data-variants='{
  1157.                           \"1\":\"Dobrý den, mám zájem o vaši nabídku „";
  1158.         // line 578
  1159.         echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleSeoExtension']->getCleanVehicleName((isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'578$this->source); })())), "html"nulltrue);
  1160.         echo " - Rok ";
  1161.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'578$this->source); })()), "madeDate", [], "any"falsefalsefalse578), 04), "html"nulltrue);
  1162.         echo ", ";
  1163.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'578$this->source); })()), "mileage", [], "any"falsefalsefalse578), "html"nulltrue);
  1164.         echo " ";
  1165.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'578$this->source); })()), "mileageUnit", [], "any"falsefalsefalse578), "html"nulltrue);
  1166.         echo "\". Můžete mi prosím zavolat? Děkuji\",
  1167.                           \"2\":\"Dobrý den, je vozidlo „";
  1168.         // line 579
  1169.         echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleSeoExtension']->getCleanVehicleName((isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'579$this->source); })())), "html"nulltrue);
  1170.         echo " - Rok ";
  1171.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'579$this->source); })()), "madeDate", [], "any"falsefalsefalse579), 04), "html"nulltrue);
  1172.         echo ", ";
  1173.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'579$this->source); })()), "mileage", [], "any"falsefalsefalse579), "html"nulltrue);
  1174.         echo " ";
  1175.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'579$this->source); })()), "mileageUnit", [], "any"falsefalsefalse579), "html"nulltrue);
  1176.         echo "\" stále k dispozici? Kontaktujte mě prosím. Děkuji.\",
  1177.                           \"3\":\"Dobrý den, mám vážný zájem o vozidlo „";
  1178.         // line 580
  1179.         echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleSeoExtension']->getCleanVehicleName((isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'580$this->source); })())), "html"nulltrue);
  1180.         echo " - Rok ";
  1181.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'580$this->source); })()), "madeDate", [], "any"falsefalsefalse580), 04), "html"nulltrue);
  1182.         echo ", ";
  1183.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'580$this->source); })()), "mileage", [], "any"falsefalsefalse580), "html"nulltrue);
  1184.         echo " ";
  1185.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'580$this->source); })()), "mileageUnit", [], "any"falsefalsefalse580), "html"nulltrue);
  1186.         echo "\". Je možné jej zarezervovat? Děkuji.\",
  1187.                           \"4\":\"Dobrý den, mám vážný zájem o vozidlo „";
  1188.         // line 581
  1189.         echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleSeoExtension']->getCleanVehicleName((isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'581$this->source); })())), "html"nulltrue);
  1190.         echo " - Rok ";
  1191.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'581$this->source); })()), "madeDate", [], "any"falsefalsefalse581), 04), "html"nulltrue);
  1192.         echo ", ";
  1193.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'581$this->source); })()), "mileage", [], "any"falsefalsefalse581), "html"nulltrue);
  1194.         echo " ";
  1195.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'581$this->source); })()), "mileageUnit", [], "any"falsefalsefalse581), "html"nulltrue);
  1196.         echo "\". Můžeme se dohodnout na nižší ceně? Je to reálné? Děkuji za odpověď.\"}'>
  1197. Dobrý den, mám zájem o vaši nabídku „";
  1198.         // line 582
  1199.         echo twig_escape_filter($this->env$this->extensions['App\Twig\VehicleSeoExtension']->getCleanVehicleName((isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'582$this->source); })())), "html"nulltrue);
  1200.         echo " - Rok ";
  1201.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'582$this->source); })()), "madeDate", [], "any"falsefalsefalse582), 04), "html"nulltrue);
  1202.         echo ", ";
  1203.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'582$this->source); })()), "mileage", [], "any"falsefalsefalse582), "html"nulltrue);
  1204.         echo " ";
  1205.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'582$this->source); })()), "mileageUnit", [], "any"falsefalsefalse582), "html"nulltrue);
  1206.         echo "\". Můžete mi prosím zavolat? Děkuji
  1207.                 </textarea>
  1208.                             </div>
  1209.                             <p class=\"form__info\">Kliknutím na tlačítko Odeslat zprávu vyjadřujete svůj souhlas se zásadami
  1210.                                 <a  target=\"_blank\" href=\"/ochrana-osobnich-udaju\">Ochrany osobních údajů</a>.</p>
  1211.                             <button class=\"form__submit form__submit--block\" type=\"submit\">
  1212.                                 <i class=\"icon icon-email\"></i>
  1213.                                 Odeslat zprávu
  1214.                             </button>
  1215.                         </form>
  1216.                     </article>
  1217.             </section>
  1218.         </article>
  1219.     </div>
  1220.     <script>
  1221.         const forms  = document.querySelectorAll('form')
  1222.         forms.forEach((form)=> {
  1223.             form.addEventListener('submit', (e)=> {
  1224.                 e.preventDefault()
  1225.                 let formData =  new FormData(form);
  1226.                 grecaptcha.ready(function() {
  1227.                     grecaptcha.execute('";
  1228.         // line 609
  1229.         echo twig_escape_filter($this->env, (isset($context["google_recaptcha_site_key"]) || array_key_exists("google_recaptcha_site_key"$context) ? $context["google_recaptcha_site_key"] : (function () { throw new RuntimeError('Variable "google_recaptcha_site_key" does not exist.'609$this->source); })()), "html"nulltrue);
  1230.         echo "', { action: 'submit' }).then(function(token) {
  1231.                         formData.append('token', token)
  1232.                         const data = new URLSearchParams(formData);
  1233.                         (async () => {
  1234.                             const rawResponse = await fetch('";
  1235.         // line 616
  1236.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_vehicle_form_new");
  1237.         echo "', {
  1238.                                 method: 'POST',
  1239.                                 body:  data
  1240.                             });
  1241.                             const content = await rawResponse.json();
  1242.                             const button =   form.querySelector('button')
  1243.                             if(content.error === false) {
  1244.                                 form.reset()
  1245.                                 button.innerText = 'Odesláno, děkujeme za poptávku.'
  1246.                                 button.classList.add(\"back-green\")
  1247.                             } else {
  1248.                                 button.innerText = content.error
  1249.                                 button.classList.add(\"back-red\")
  1250.                             }
  1251.                         })();
  1252.                     });
  1253.                 });
  1254.             })
  1255.         })
  1256.     </script>
  1257.     ";
  1258.         // line 655
  1259.         echo "
  1260.     <script src=\"https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js\"></script>
  1261.     <script>
  1262.         \$(\".js-select2\").select2({
  1263.             language: \"cs\",
  1264.             minimumResultsForSearch: -1,
  1265.             width: \"100%\",
  1266.         });
  1267.         function handleMobileContact() {
  1268.             const isMobile = window.innerWidth <= 768;
  1269.             const mobileContact = document.querySelector('.dealer--mobile');
  1270.             const desktopContact = document.querySelector('.dealer:not(.dealer--mobile)');
  1271.             
  1272.             if (isMobile) {
  1273.                 mobileContact.style.display = 'block';
  1274.                 desktopContact.style.display = 'none';
  1275.             } else {
  1276.                 mobileContact.style.display = 'none';
  1277.                 desktopContact.style.display = 'block';
  1278.             }
  1279.         }
  1280.         handleMobileContact();
  1281.         window.addEventListener('resize', handleMobileContact);
  1282.         
  1283.         // === VEHICLE STATISTICS TRACKING ===
  1284.         // Trackování zobrazení stránky
  1285.         trackVehicleAction('view');
  1286.         
  1287.         // Trackování \"Zavolat prodejci\" tlačítek
  1288.         document.querySelectorAll('.js-modal-show[href=\"#modal--call\"]').forEach(button => {
  1289.             button.addEventListener('click', () => {
  1290.                 trackVehicleAction('call_dealer');
  1291.             });
  1292.         });
  1293.         
  1294.         // Trackování \"Napsat prodejci\" tlačítek
  1295.         document.querySelectorAll('.js-modal-show[href=\"#modal--write\"]').forEach(button => {
  1296.             button.addEventListener('click', () => {
  1297.                 trackVehicleAction('message_dealer');
  1298.             });
  1299.         });
  1300.         
  1301.         // Trackování kliků na tel. čísla
  1302.         setTimeout(() => {
  1303.             document.querySelectorAll('a[href^=\"tel:\"]').forEach(link => {
  1304.                 link.addEventListener('click', () => {
  1305.                     trackVehicleAction('phone_click');
  1306.                 });
  1307.             });
  1308.         }, 100);
  1309.         function trackVehicleAction(action) {
  1310.             const formData = new FormData();
  1311.             formData.append('vehicle_id', '";
  1312.         // line 715
  1313.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'715$this->source); })()), "id", [], "any"falsefalsefalse715), "html"nulltrue);
  1314.         echo "');
  1315.             formData.append('action', action);
  1316.             
  1317.             fetch('";
  1318.         // line 718
  1319.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_vehicle_statistics_track");
  1320.         echo "', {
  1321.                 method: 'POST',
  1322.                 body: formData
  1323.             }).catch(error => {
  1324.                 console.log('Tracking error:', error);
  1325.             });
  1326.         }
  1327.     </script>
  1328. ";
  1329.         
  1330.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1331.         
  1332.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1333.     }
  1334.     public function getTemplateName()
  1335.     {
  1336.         return "homepage/detailVehicle.html.twig";
  1337.     }
  1338.     public function isTraitable()
  1339.     {
  1340.         return false;
  1341.     }
  1342.     public function getDebugInfo()
  1343.     {
  1344.         return array (  1418 => 718,  1412 => 715,  1350 => 655,  1318 => 616,  1308 => 609,  1272 => 582,  1262 => 581,  1252 => 580,  1242 => 579,  1232 => 578,  1215 => 564,  1194 => 545,  1185 => 542,  1181 => 541,  1176 => 540,  1172 => 539,  1149 => 519,  1137 => 518,  1130 => 514,  1118 => 513,  1112 => 510,  1108 => 509,  1098 => 504,  1090 => 499,  1086 => 498,  1042 => 456,  1034 => 454,  1029 => 453,  1025 => 452,  1011 => 443,  1007 => 442,  1001 => 441,  996 => 440,  992 => 438,  986 => 434,  984 => 433,  983 => 432,  979 => 431,  976 => 430,  974 => 429,  971 => 428,  969 => 427,  957 => 417,  950 => 406,  941 => 400,  938 => 399,  936 => 398,  933 => 397,  929 => 395,  914 => 393,  910 => 391,  908 => 390,  905 => 389,  901 => 387,  899 => 386,  896 => 385,  892 => 383,  890 => 382,  887 => 381,  884 => 380,  867 => 379,  863 => 377,  861 => 376,  848 => 365,  840 => 363,  835 => 362,  831 => 361,  817 => 352,  813 => 351,  807 => 350,  802 => 349,  798 => 347,  792 => 343,  790 => 342,  789 => 341,  785 => 340,  782 => 339,  780 => 338,  777 => 337,  775 => 336,  757 => 320,  743 => 319,  739 => 317,  737 => 316,  732 => 315,  715 => 314,  697 => 299,  690 => 295,  679 => 291,  673 => 290,  667 => 287,  660 => 283,  653 => 279,  646 => 275,  638 => 270,  630 => 265,  623 => 261,  619 => 259,  611 => 254,  605 => 250,  603 => 249,  598 => 247,  591 => 243,  587 => 241,  582 => 238,  578 => 237,  572 => 235,  570 => 234,  565 => 231,  563 => 230,  558 => 228,  545 => 218,  538 => 214,  527 => 210,  521 => 209,  515 => 206,  508 => 202,  501 => 198,  494 => 194,  483 => 186,  475 => 181,  468 => 177,  464 => 175,  456 => 170,  450 => 166,  448 => 165,  443 => 163,  436 => 159,  432 => 157,  427 => 154,  423 => 153,  417 => 151,  415 => 150,  410 => 147,  408 => 146,  403 => 144,  383 => 127,  372 => 119,  362 => 112,  352 => 105,  342 => 98,  332 => 91,  322 => 84,  314 => 78,  310 => 76,  308 => 75,  304 => 74,  299 => 72,  279 => 54,  273 => 51,  269 => 49,  266 => 48,  251 => 46,  247 => 44,  245 => 43,  244 => 42,  240 => 41,  236 => 40,  221 => 39,  217 => 37,  214 => 31,  212 => 30,  211 => 29,  207 => 28,  203 => 27,  196 => 26,  194 => 25,  191 => 24,  174 => 23,  170 => 21,  164 => 19,  162 => 18,  156 => 14,  146 => 13,  127 => 12,  115 => 9,  110 => 8,  100 => 7,  81 => 5,  62 => 3,  39 => 1,);
  1345.     }
  1346.     public function getSourceContext()
  1347.     {
  1348.         return new Source("{% extends 'base.html.twig' %}
  1349. {% block title %}{{ vehicle_seo_title(vehicle) }}{% endblock %}
  1350. {% block desc %}{{ vehicle_seo_description(vehicle) }}{% endblock %}
  1351.         {% block javascripts %}
  1352.             {{ encore_entry_script_tags('app') }}
  1353.             <script src=\"https://www.google.com/recaptcha/api.js?render={{ google_recaptcha_site_key }}\"></script>
  1354.         {% endblock %}
  1355.     {% block mobileBranding %} {% endblock %}
  1356. {% block body %}
  1357.     <br>
  1358.     <section class=\"container\">
  1359.         <nav class=\"container__back\">
  1360.             {% if vehicle.kind %}
  1361.             <a class=\"container__back-link\" href=\"{{ app.request.headers.get('referer') }}\">Zpět na seznam inzerátů</a>
  1362.             {% endif %}
  1363.         </nav>
  1364.         <section class=\"gallery js-gallery\">
  1365.             {% for img in vehicle.vehicleImages %}
  1366.               {% if loop.index < 2 %}
  1367.             <a class=\"gallery__item gallery__item--large\" href=\"{{ asset(vehicle_image_url(img)) }}\" title=\"{{ vehicle_image_alt(img) }}\">
  1368.                 <img  src=\"{{ asset(vehicle_image_url(img)) }}\"
  1369.                         alt=\"{{ vehicle_image_alt(img) }}\"
  1370.                         {{ stimulus_controller('symfony/ux-lazy-image/lazy-image', {
  1371.                             src: asset(vehicle_image_url(img))
  1372.                         }) }} width=\"400\" >
  1373.                 {#
  1374.                 <div class=\"gallery__favorite\">
  1375.                     <i class=\"icon icon-heart\"></i>
  1376.                 </div>
  1377.                 #}
  1378.             </a>
  1379.              {% else  %}
  1380.             <a  {% if loop.index > 5 %}  style=\"display: none\" {% endif %} class=\"gallery__item   {% if loop.index == 5 %}  gallery__item--hidden-sm  {% endif %} \" href=\"{{ asset(vehicle_image_url(img)) }}\" title=\"{{ vehicle_image_alt(img) }}\">
  1381.                 <img src=\"{{ asset(vehicle_image_url(img)) }}\"
  1382.                         alt=\"{{ vehicle_image_alt(img) }}\"
  1383.                         {{ stimulus_controller('symfony/ux-lazy-image/lazy-image', {
  1384.                             src: asset(vehicle_image_url(img))
  1385.                         }) }} width=\"200\" > </a>
  1386.             {% endif  %}
  1387.             {% endfor %}
  1388.             {% if vehicle.vehicleImages|length > 5 %}
  1389.             <div class=\"gallery__show\">
  1390.                 <i class=\"icon icon-camera\"></i>
  1391.                 +{{ vehicle.vehicleImages|length - 5 }}
  1392.             </div>
  1393.             {% endif  %}
  1394.         </section>
  1395.     </section>
  1396.     <div id=\"blueimp-gallery\" class=\"blueimp-gallery blueimp-gallery-controls\" aria-label=\"image gallery\"
  1397.          aria-modal=\"true\" role=\"dialog\">
  1398.         <div class=\"slides\" aria-live=\"polite\"></div>
  1399.         <a class=\"prev\" aria-controls=\"blueimp-gallery\" aria-label=\"previous slide\" aria-keyshortcuts=\"ArrowLeft\"></a>
  1400.         <a class=\"next\" aria-controls=\"blueimp-gallery\" aria-label=\"next slide\" aria-keyshortcuts=\"ArrowRight\"></a>
  1401.         <a class=\"close\" aria-controls=\"blueimp-gallery\" aria-label=\"close\" aria-keyshortcuts=\"Escape\"></a>
  1402.     </div>
  1403.     <section class=\"grid grid--gap40 grid--row-gap20 grid--padding-top0\">
  1404.         <div>
  1405.             <section class=\"detail\">
  1406.                 <h1 class=\"margin-bottom-0\">{{ vehicle_seo_h1(vehicle) }}</h1>
  1407.                 <div class=\"detail__price\">
  1408.                     {{  vehicle.price ? vehicle.price|number_format(0, null, ' ')~' Kč' : 'dohodou' }}
  1409.                     {% if vehicle.vat %}
  1410.                     <div class=\"detail__price-label\">Odpočet DPH možný</div>
  1411.                     {% endif %}
  1412.                 </div>
  1413.                 <div class=\"detail__info\">
  1414.                     <div class=\"detail__info-item\">
  1415.                         Rok výroby
  1416.                         <strong class=\"detail__info-strong\">
  1417.                             <i class=\"icon icon-calendar\"></i>
  1418.                             {{ vehicle.madeDate ? vehicle.madeDate|slice(0,4) : 'neuvedeno' }}
  1419.                         </strong>
  1420.                     </div>
  1421.                     <div class=\"detail__info-item\">
  1422.                         Tachometr
  1423.                         <strong class=\"detail__info-strong\">
  1424.                             <i class=\"icon icon-tachometer\"></i>
  1425.                             {{ vehicle.mileage ? vehicle.mileage|number_format(null, ' ', ' ') ~' '~vehicle.mileageUnit  : 'neuvedeno' }}
  1426.                         </strong>
  1427.                     </div>
  1428.                     <div class=\"detail__info-item\">
  1429.                         Palivo
  1430.                         <strong class=\"detail__info-strong\">
  1431.                             <i class=\"icon icon-gas\"></i>
  1432.                             {{ vehicle.fuel ? vehicle.fuel.name : 'neuvedeno' }}
  1433.                         </strong>
  1434.                     </div>
  1435.                     <div class=\"detail__info-item\">
  1436.                         Převodovka
  1437.                         <strong class=\"detail__info-strong\">
  1438.                             <i class=\"icon icon-settings\"></i>
  1439.                             {{  vehicle.gearbox  ?  vehicle.gearbox|trans  : 'neuvedeno' }}
  1440.                         </strong>
  1441.                     </div>
  1442.                     <div class=\"detail__info-item\">
  1443.                         Výkon
  1444.                         <strong class=\"detail__info-strong\">
  1445.                             <i class=\"icon icon-power\"></i>
  1446.                             {{ vehicle.enginePower ? vehicle.enginePower ~' kW' : 'neuvedeno' }}
  1447.                         </strong>
  1448.                     </div>
  1449.                     <div class=\"detail__info-item\">
  1450.                         Karoserie
  1451.                         <strong class=\"detail__info-strong\">
  1452.                             <i class=\"icon icon-car\"></i>
  1453.                             {{ vehicle.body ? vehicle.body.name : 'neuvedeno' }}
  1454.                         </strong>
  1455.                     </div>
  1456.                 </div>
  1457.                 <h2>Popis</h2>
  1458.                 <div class=\"detail__more js-detail__more\">
  1459.                     <div class=\"detail__more-content js-detail__more-content\">
  1460.                         <p> {{ vehicle.note }} </p>
  1461.                     </div>
  1462.                     <div class=\"detail__more-control\">
  1463.                         <button class=\"button detail__more-toggler js-detail__more-toggler\" type=\"button\">
  1464.                             <span class=\"detail__more-toggler-show\">Zobrazit více</span>
  1465.                             <span class=\"detail__more-toggler-hide\">Zobrazit méně</span>
  1466.                         </button>
  1467.                     </div>
  1468.                 </div>
  1469.                 <h2>Informace o vozu</h2>
  1470.                 <div class=\"detail__columns detail__hidden--mobile\">
  1471.                     <table>
  1472.                         <tbody>
  1473.                         <tr>
  1474.                             <th>Prodejní cena</th>
  1475.                             <td> {{ vehicle.price ? vehicle.price|number_format(0, null, ' ')~' Kč' : 'dohodou' }}</td>
  1476.                         </tr>
  1477.                         {% if  vehicle.vat %}
  1478.                         <tr>
  1479.                             <th> Cena bez DPH</th>
  1480.                             <td>
  1481.                                 {% if  vehicle.price %}
  1482.                                     {{ (vehicle.price / 1.21)|number_format(0, null, ' ')  }}  Kč
  1483.                                 {% else %}
  1484.                                     neuvedeno
  1485.                                 {% endif  %} </td>
  1486.                         </tr>
  1487.                         {% endif %}
  1488.                         <tr>
  1489.                             <th>Odpočet DPH  </th>
  1490.                             <td>{{ vehicle.vat ? 'ano' : 'ne' }} </td>
  1491.                         </tr>
  1492.                         <tr>
  1493.                             <th> VIN</th>
  1494.                             <td> {{ vehicle.vin ? vehicle.vin : 'neuvedeno' }}</td>
  1495.                         </tr>
  1496.                         {% if vehicle.dealer.checkVin %}
  1497.                             <tr>
  1498.                                 <th>Historie</th>
  1499.                                 <td>
  1500.                                     <a target=\"_blank\"
  1501.                                        href=\"https://cz.cebia.com/?utm_source=affilbox&utm_medium=affiliate&utm_campaign=Autanet_2013&a_box=j49grgww&vin={{ vehicle.vin }}\"
  1502.                                     >Zobrazit historii vozu</a>
  1503.                                 </td>
  1504.                             </tr>
  1505.                         {% endif %}
  1506.                         <tr>
  1507.                             <th>Tachometr</th>
  1508.                             <td>  {{ vehicle.mileage ? vehicle.mileage~' '~vehicle.mileageUnit : 'neuvedeno' }}  </td>
  1509.                         </tr>
  1510.                         <tr>
  1511.                             <th>Druh paliva</th>
  1512.                             <td>          {{ vehicle.fuel ? vehicle.fuel.name : 'neuvedeno' }}</td>
  1513.                         </tr>
  1514.                         <tr>
  1515.                             <th>Objem</th>
  1516.                             <td>
  1517.                                 {{ vehicle.engineVolume ? vehicle.engineVolume~' ccm'  : 'neuvedeno' }} </td>
  1518.                         </tr>
  1519.                         </tbody>
  1520.                     </table>
  1521.                     <table>
  1522.                         <tbody>
  1523.                         <tr>
  1524.                             <th>Karoserie</th>
  1525.                             <td>  {{ vehicle.body  ? vehicle.body.name   : 'neuvedeno' }}</td>
  1526.                         </tr>
  1527.                         <tr>
  1528.                             <th>Počet dveří</th>
  1529.                             <td> {{ vehicle.doors  ? vehicle.doors  : 'neuvedeno' }}</td>
  1530.                         </tr>
  1531.                         <tr>
  1532.                             <th>Počet míst</th>
  1533.                             <td>   {{ vehicle.places  ? vehicle.places  : 'neuvedeno' }} </td>
  1534.                         </tr>
  1535.                         <tr>
  1536.                             <th>Barva</th>
  1537.                             <td>{{  vehicle.color.name }}   </td>
  1538.                         </tr>
  1539.                         <tr>
  1540.                             <th>STK {% if vehicle.stkTo != 1 %}{{ vehicle.stkTo }}{% endif %}</th>
  1541.                             <td>{% if vehicle.stkTo == 1 %}neuvedeno{% else %}{{  vehicle.stkTo ? vehicle.stkTo|slice(4,6)~'/'~vehicle.stkTo|slice(0,4)  : 'neuvedeno' }}{% endif %}  </td>
  1542.                         </tr>
  1543.                         <tr>
  1544.                             <th>Země původu</th>
  1545.                             <td>{{ vehicle.state ? vehicle.state : 'neuvedeno' }}  </td>
  1546.                         </tr>
  1547.                         <tr>
  1548.                             <th>První majitel</th>
  1549.                             <td>{{ vehicle.firstOwner ? 'ano' : 'ne' }}</td>
  1550.                         </tr>
  1551.                         </tbody>
  1552.                     </table>
  1553.                 </div>
  1554.                 <div class=\"detail__hidden--desktop\">
  1555.                     <table>
  1556.                         <tbody>
  1557.                         <tr>
  1558.                             <th>Prodejní cena</th>
  1559.                             <td> {{ vehicle.price ? vehicle.price|number_format(0, null, ' ')~' Kč' : 'neuvedeno' }}</td>
  1560.                         </tr>
  1561.                         {% if  vehicle.vat %}
  1562.                         <tr>
  1563.                             <th> Cena bez DPH</th>
  1564.                             <td>
  1565.                                 {% if  vehicle.price %}
  1566.                                     {{ (vehicle.price / 1.21)|number_format(0, null, ' ')  }}  Kč
  1567.                                 {% else %}
  1568.                                     neuvedeno
  1569.                                 {% endif  %} </td>
  1570.                         </tr>
  1571.                         {% endif %}
  1572.                         <tr>
  1573.                             <th>Odpočet DPH</th>
  1574.                             <td>{{ vehicle.vat ? 'ano' : 'ne' }} </td>
  1575.                         </tr>
  1576.                         <tr>
  1577.                             <th> VIN</th>
  1578.                             <td> {{ vehicle.vin ? vehicle.vin : 'neuvedeno' }}</td>
  1579.                         </tr>
  1580.                         {% if vehicle.dealer.checkVin %}
  1581.                             <tr>
  1582.                                 <th>Historie</th>
  1583.                                 <td>
  1584.                                     <a target=\"_blank\"
  1585.                                        href=\"https://cz.cebia.com/?utm_source=affilbox&utm_medium=affiliate&utm_campaign=Autanet_2013&a_box=j49grgww&vin={{ vehicle.vin }}\"
  1586.                                     >Zobrazit historii vozu</a>
  1587.                                 </td>
  1588.                             </tr>
  1589.                         {% endif %}
  1590.                         <tr>
  1591.                             <th>Tachometr</th>
  1592.                             <td>  {{ vehicle.mileage ? vehicle.mileage~' '~vehicle.mileageUnit : 'neuvedeno' }}  </td>
  1593.                         </tr>
  1594.                         <tr>
  1595.                             <th>Druh paliva</th>
  1596.                             <td>          {{ vehicle.fuel ? vehicle.fuel.name : 'neuvedeno' }}</td>
  1597.                         </tr>
  1598.                         <tr>
  1599.                             <th>Objem</th>
  1600.                             <td>
  1601.                                 {{ vehicle.engineVolume ? vehicle.engineVolume~' ccm'  : 'neuvedeno' }} </td>
  1602.                         </tr>
  1603.                         <tr>
  1604.                             <th>Karoserie</th>
  1605.                             <td>  {{ vehicle.body  ? vehicle.body.name   : 'neuvedeno' }}</td>
  1606.                         </tr>
  1607.                         <tr>
  1608.                             <th>Počet dveří</th>
  1609.                             <td> {{ vehicle.doors  ? vehicle.doors  : 'neuvedeno' }}</td>
  1610.                         </tr>
  1611.                         <tr>
  1612.                             <th>Počet míst</th>
  1613.                             <td>   {{ vehicle.places  ? vehicle.places  : 'neuvedeno' }} </td>
  1614.                         </tr>
  1615.                         <tr>
  1616.                             <th>Barva</th>
  1617.                             <td>{{  vehicle.color.name }}   </td>
  1618.                         </tr>
  1619.                         <tr>
  1620.                             <th>STK {% if vehicle.stkTo != 1 %}{{ vehicle.stkTo }}{% endif %}</th>
  1621.                             <td>{% if vehicle.stkTo == 1 %}neuvedeno{% else %}{{  vehicle.stkTo ? vehicle.stkTo|slice(4,6)~'/'~vehicle.stkTo|slice(0,4)  : 'neuvedeno' }}{% endif %}  </td>
  1622.                         </tr>
  1623.                         <tr>
  1624.                             <th>Země původu</th>
  1625.                             <td>{{ vehicle.state ? vehicle.state : 'neuvedeno' }}  </td>
  1626.                         </tr>
  1627.                         <tr>
  1628.                             <th>První majitel</th>
  1629.                             <td>{{ vehicle.firstOwner ? 'ano' : 'ne' }}</td>
  1630.                         </tr>
  1631.                         </tbody>
  1632.                     </table>
  1633.                 </div>
  1634.                 <h2>Výbava vozu</h2>
  1635.                 <div class=\"detail__more js-detail__more\">
  1636.                     <div class=\"detail__more-content js-detail__more-content\">
  1637.                         <div class=\"detail__columns\">
  1638.                             <ul>
  1639.                             {% for e in vehicle.equipments %}
  1640.                                 <li>{{ e.name }}</li>
  1641.                                 {% if (vehicle.equipments|length / 2)|round == loop.index  %}
  1642.                                     </ul>  <ul>
  1643.                                 {% endif %}
  1644.                             {% endfor  %}
  1645.                            </ul>
  1646.                         </div>
  1647.                     </div>
  1648.                     <div class=\"detail__more-control\">
  1649.                         <button class=\"button detail__more-toggler js-detail__more-toggler\" type=\"button\">
  1650.                             <span class=\"detail__more-toggler-show\">Zobrazit více</span>
  1651.                             <span class=\"detail__more-toggler-hide\">Zobrazit méně</span>
  1652.                         </button>
  1653.                     </div>
  1654.                 </div>
  1655.             </section>
  1656.             
  1657.             <!-- Mobile contact section -->
  1658.             <div class=\"dealer dealer--mobile\" style=\"display: none;\">
  1659.                 <h2>Kontakt na prodejce</h2>
  1660.                 {% if not vehicle.dealer.basicAdvertising %}
  1661.                 <figure class=\"dealer__logo\">
  1662.                     {% if vehicle.dealer.logo %}
  1663.                         <img
  1664.                                 src=\"{{ asset('img-dealer/')~vehicle.dealer.logo    }}\"
  1665.                                 {{ stimulus_controller('symfony/ux-lazy-image/lazy-image', {
  1666.                                     src: asset('img-dealer/')~vehicle.dealer.logo
  1667.                                 }) }}
  1668.                                 width=\"170\"
  1669.                         >
  1670.                     {% endif  %}
  1671.                 </figure>
  1672.                 {% endif %}
  1673.                 <h3>{{ vehicle.dealer.name }}</h3>
  1674.                 <p>{{ vehicle.dealer.street }}, {{ vehicle.dealer.city }}<br>
  1675.                     {{ vehicle.dealer.district.name }}</p>
  1676.                 <a class=\"dealer__link\" href=\"https://www.google.com/maps/search/?api=1&query={{ vehicle.dealer.lat }},{{ vehicle.dealer.lng }}\" target=\"_blank\">
  1677.                     <i class=\"icon icon-map\"></i>
  1678.                     Zobrazit na mapě</a>
  1679.                 <div class=\"dealer__opening-hours\">
  1680.                     <h4 class=\"detail__opening-hours-heading\">
  1681.                         <i class=\"icon icon-hours\"></i>
  1682.                         Provozní doba
  1683.                     </h4>
  1684.                     <div class=\"dealer__opening\">
  1685.                         {% for t in  openTime %}
  1686.                             <div>{{ t.day.value }}</div>
  1687.                             <div>{{ t.description }}</div>
  1688.                         {% endfor %}
  1689.                     </div>
  1690.                 </div>
  1691.                 <a class=\"dealer__button dealer__button--green js-modal-show\" href=\"#modal--call\">
  1692.                     <i class=\"icon icon-phone\"></i>
  1693.                     Zavolat prodejci</a>
  1694.                 <a class=\"dealer__button js-modal-show\" href=\"#modal--write\">
  1695.                     <i class=\"icon icon-email\"></i>
  1696.                     Napsat prodejci
  1697.                 </a>
  1698.             </div>
  1699.             
  1700.             {% if vehicleOthers|length >  0 %}
  1701.             <h4 class=\"detail__dealer-vehicles-heading\">Další inzeráty prodejce</h4>
  1702.             {% for v in vehicleOthers %}
  1703.                 {% include 'vehicle/_vehicle.html.twig' with { vehicle: v } %}
  1704.                 {% if loop.index == 1 %}
  1705.                     <div id=\"banner-mobile-container\" class=\"banner-mobile\"></div>
  1706.                 {%  endif %}
  1707.                 {% if loop.index == 2 %}
  1708.                     <div id=\"adform_squarem\"></div>
  1709.                 {%  endif %}
  1710.                 {% if loop.index == 8 %}
  1711.                     <div id=\"adform_squarem2\"></div>
  1712.                 {%  endif %}
  1713.             {% endfor  %}
  1714.             {%  endif  %}
  1715.             {% if not vehicle.dealer.basicAdvertising %}
  1716.             <footer class=\"grid__buttons\">
  1717.                 <a class=\"button\" href=\"{{ path('page_dealer_vehicle', { url: vehicle.dealer.url }) }}\">
  1718.                     Zobrazit všechny inzeráty prodejce
  1719.                     <i class=\"icon icon-chevron-right\"></i>
  1720.                 </a>
  1721.             </footer>
  1722.             {% endif %}
  1723.             <hr>
  1724.         </div>
  1725.         <div>
  1726.             <div class=\"grid__buttons\">
  1727.                 {#
  1728.                 <a class=\"button\" href=\"\">
  1729.                     Přidat k oblíbeným
  1730.                     <i class=\"icon icon-heart\"></i>
  1731.                 </a>
  1732.                 #}
  1733.                 <a class=\"button js-modal-show\" href=\"#modal--share\">
  1734.                     Sdílet inzerát
  1735.                     <i class=\"icon icon-forward\"></i>
  1736.                 </a>
  1737.             </div>
  1738.             <div class=\"dealer\">
  1739.                 <h2>Kontakt na prodejce</h2>
  1740.                 {% if not vehicle.dealer.basicAdvertising %}
  1741.                 <figure class=\"dealer__logo\">
  1742.                     {% if vehicle.dealer.logo %}
  1743.                         <img
  1744.                                 src=\"{{ asset('img-dealer/')~vehicle.dealer.logo    }}\"
  1745.                                 {{ stimulus_controller('symfony/ux-lazy-image/lazy-image', {
  1746.                                     src: asset('img-dealer/')~vehicle.dealer.logo
  1747.                                 }) }}
  1748.                                 width=\"170\"
  1749.                         >
  1750.                     {% endif  %}
  1751.                 </figure>
  1752.                 {% endif %}
  1753.                 <h3>{{ vehicle.dealer.name }}</h3>
  1754.                 <p>{{ vehicle.dealer.street }}, {{ vehicle.dealer.city }}<br>
  1755.                     {{ vehicle.dealer.district.name }}</p>
  1756.                 <a class=\"dealer__link\" href=\"https://www.google.com/maps/search/?api=1&query={{ vehicle.dealer.lat }},{{ vehicle.dealer.lng }}\" target=\"_blank\">
  1757.                     <i class=\"icon icon-map\"></i>
  1758.                     Zobrazit na mapě</a>
  1759.                 <div class=\"dealer__opening-hours\">
  1760.                     <h4 class=\"detail__opening-hours-heading\">
  1761.                         <i class=\"icon icon-hours\"></i>
  1762.                         Provozní doba
  1763.                     </h4>
  1764.                     <div class=\"dealer__opening\">
  1765.                         {% for t in  openTime %}
  1766.                             <div>{{ t.day.value }}</div>
  1767.                             <div>{{ t.description }}</div>
  1768.                         {% endfor %}
  1769.                     </div>
  1770.                 </div>
  1771.                 <a class=\"dealer__button dealer__button--green js-modal-show\" href=\"#modal--call\">
  1772.                     <i class=\"icon icon-phone\"></i>
  1773.                     Zavolat prodejci</a>
  1774.                 <a class=\"dealer__button js-modal-show\" href=\"#modal--write\">
  1775.                     <i class=\"icon icon-email\"></i>
  1776.                     Napsat prodejci
  1777.                 </a>
  1778.             </div>
  1779.             <div id=\"banner-container\" class=\"banner\"></div>
  1780.             <div id=\"adform_halfpage\"></div>
  1781.         </div>
  1782.     </section>
  1783.     <div class=\"mobile-buttons\">
  1784.         <a class=\"mobile-buttons__item mobile-buttons__item--green js-modal-show\" href=\"#modal--call\">
  1785.             <i class=\"icon icon-phone\"></i>
  1786.             Zavolat</a>
  1787.         </a>
  1788.         <a class=\"mobile-buttons__item js-modal-show\" href=\"#modal--write\">
  1789.             <i class=\"icon icon-email\"></i>
  1790.             Napsat
  1791.         </a>
  1792.     </div>
  1793.     <div class=\"modal\" id=\"modal--share\">
  1794.         <div class=\"modal__overlay js-modal-close\"></div>
  1795.         <article class=\"modal__body\">
  1796.             <button class=\"modal__close js-modal-close\" type=\"button\"></button>
  1797.             <div class=\"modal__header\">
  1798.                 <h2>Sdílet inzerci</h2>
  1799.             </div>
  1800.             <div class=\"share\">
  1801.                 <a target=\"_blank\"  class=\"share__item\" href=\"https://www.facebook.com/sharer/sharer.php?u={{ app.request.uri }}\">
  1802.                     <img src=\"{{ asset('img/share__icon--facebook.svg') }}\" alt=\"\">
  1803.                     Facebook
  1804.                 </a>
  1805.                 <a target=\"_blank\"  class=\"share__item\" href=\"\">
  1806.                     <img src=\"{{ asset('img/share__icon--messenger.svg') }}\" alt=\"fb-messenger://share/?link={{ app.request.uri }}\">
  1807.                     Messenger
  1808.                 </a>
  1809.                 <a target=\"_blank\"  class=\"share__item\" href=\"whatsapp://send?text={{ app.request.uri }}\">
  1810.                     <img src=\"{{ asset('img/share__icon--whatsapp.svg') }}\" alt=\"\">
  1811.                     Whatsapp
  1812.                 </a>
  1813.                 <a target=\"_blank\" class=\"share__item\" href=\"https://twitter.com/intent/tweet?url={{ app.request.uri }}&text={{ vehicle_clean_name(vehicle) }} - {{  vehicle.madeDate|slice(0,4) }}, {{  vehicle.mileage }} {{  vehicle.mileageUnit }}\">
  1814.                     <img src=\"{{ asset('img/share__icon--twitter.svg') }}\" alt=\"\">
  1815.                     Twitter
  1816.                 </a>
  1817.                 <a target=\"_blank\"  class=\"share__item\"
  1818.                    href=\"mailto:?subject={{ vehicle_clean_name(vehicle) }} - {{ vehicle.madeDate|slice(0,4) }}, {{ vehicle.mileage }} {{ vehicle.mileageUnit }}&amp;body=Podívej se na {{ app.request.uri }}\">
  1819.                     <img src=\"{{ asset('img/share__icon--envelope.svg') }}\" alt=\"\">
  1820.                     E-mail
  1821.                 </a>
  1822.             </div>
  1823.             <footer class=\"modal__footer\">
  1824.                 <button class=\"modal__link js-modal-close\" type=\"button\">zavřít okno</button>
  1825.             </footer>
  1826.         </article>
  1827.     </div>
  1828.     <div class=\"modal\" id=\"modal--call\">
  1829.         <div class=\"modal__overlay js-modal-close\"></div>
  1830.         <article class=\"modal__body\">
  1831.             <button class=\"modal__close js-modal-close\" type=\"button\"></button>
  1832.             <div class=\"modal__header\">
  1833.                 <h2>Zavolat prodejci</h2>
  1834.             </div>
  1835.             <div class=\"share\">
  1836.                  {% for p in  vehicle.dealer.dealerPhones %}
  1837.                 <a class=\"share__item\" href=\"tel:{{ p.name }}\">
  1838.                     <img src=\"{{ asset('img/share__icon--phone.svg') }}\" alt=\"telefon\">
  1839.                      {{ p.name }}
  1840.                 </a>
  1841.                 {% endfor %}
  1842.             </div>
  1843.             <footer class=\"modal__footer\">
  1844.                 <button class=\"modal__link js-modal-close\" type=\"button\">zavřít okno</button>
  1845.             </footer>
  1846.         </article>
  1847.     </div>
  1848.     <div class=\"modal\" id=\"modal--write\">
  1849.         <div class=\"modal__overlay js-modal-close\"></div>
  1850.         <article class=\"modal__body modal__body--large\">
  1851.             <button class=\"modal__close js-modal-close\" type=\"button\"></button>
  1852.             <div class=\"modal__header\">
  1853.                 <h2>Napsat prodejci</h2>
  1854.             </div>
  1855.             <section>
  1856.                     <article>
  1857.                         <form class=\"form\">
  1858.                             <input type=\"hidden\" value=\"{{ vehicle.id }}\" name=\"vehicleId\">
  1859.                             <div class=\"form__group form__group--strong\">
  1860.                                 <input placeholder=\"Vaše jméno\" name=\"name\" required>
  1861.                             </div>
  1862.                             <div class=\"form__group form__group--strong\">
  1863.                                 <input type=\"email\" placeholder=\"Váš e-mail\" name=\"email\" required>
  1864.                             </div>
  1865.                             <div class=\"form__group form__group--strong\">
  1866.                                 <input type=\"tel\" placeholder=\"Vaše telefonní číslo\"  name=\"phone\" required>
  1867.                             </div>
  1868.                             <div class=\"form__group form__group--strong\">
  1869.                 <textarea class=\"textarea_changer_target\" placeholder=\"Vaše zpráva\" rows=\"5\"  name=\"message\"
  1870.                           data-variants='{
  1871.                           \"1\":\"Dobrý den, mám zájem o vaši nabídku „{{ vehicle_clean_name(vehicle) }} - Rok {{ vehicle.madeDate|slice(0,4) }}, {{ vehicle.mileage }} {{ vehicle.mileageUnit }}\". Můžete mi prosím zavolat? Děkuji\",
  1872.                           \"2\":\"Dobrý den, je vozidlo „{{ vehicle_clean_name(vehicle) }} - Rok {{ vehicle.madeDate|slice(0,4) }}, {{ vehicle.mileage }} {{ vehicle.mileageUnit }}\" stále k dispozici? Kontaktujte mě prosím. Děkuji.\",
  1873.                           \"3\":\"Dobrý den, mám vážný zájem o vozidlo „{{ vehicle_clean_name(vehicle) }} - Rok {{ vehicle.madeDate|slice(0,4) }}, {{ vehicle.mileage }} {{ vehicle.mileageUnit }}\". Je možné jej zarezervovat? Děkuji.\",
  1874.                           \"4\":\"Dobrý den, mám vážný zájem o vozidlo „{{ vehicle_clean_name(vehicle) }} - Rok {{ vehicle.madeDate|slice(0,4) }}, {{ vehicle.mileage }} {{ vehicle.mileageUnit }}\". Můžeme se dohodnout na nižší ceně? Je to reálné? Děkuji za odpověď.\"}'>
  1875. Dobrý den, mám zájem o vaši nabídku „{{ vehicle_clean_name(vehicle) }} - Rok {{ vehicle.madeDate|slice(0,4) }}, {{ vehicle.mileage }} {{ vehicle.mileageUnit }}\". Můžete mi prosím zavolat? Děkuji
  1876.                 </textarea>
  1877.                             </div>
  1878.                             <p class=\"form__info\">Kliknutím na tlačítko Odeslat zprávu vyjadřujete svůj souhlas se zásadami
  1879.                                 <a  target=\"_blank\" href=\"/ochrana-osobnich-udaju\">Ochrany osobních údajů</a>.</p>
  1880.                             <button class=\"form__submit form__submit--block\" type=\"submit\">
  1881.                                 <i class=\"icon icon-email\"></i>
  1882.                                 Odeslat zprávu
  1883.                             </button>
  1884.                         </form>
  1885.                     </article>
  1886.             </section>
  1887.         </article>
  1888.     </div>
  1889.     <script>
  1890.         const forms  = document.querySelectorAll('form')
  1891.         forms.forEach((form)=> {
  1892.             form.addEventListener('submit', (e)=> {
  1893.                 e.preventDefault()
  1894.                 let formData =  new FormData(form);
  1895.                 grecaptcha.ready(function() {
  1896.                     grecaptcha.execute('{{ google_recaptcha_site_key }}', { action: 'submit' }).then(function(token) {
  1897.                         formData.append('token', token)
  1898.                         const data = new URLSearchParams(formData);
  1899.                         (async () => {
  1900.                             const rawResponse = await fetch('{{ path('app_vehicle_form_new') }}', {
  1901.                                 method: 'POST',
  1902.                                 body:  data
  1903.                             });
  1904.                             const content = await rawResponse.json();
  1905.                             const button =   form.querySelector('button')
  1906.                             if(content.error === false) {
  1907.                                 form.reset()
  1908.                                 button.innerText = 'Odesláno, děkujeme za poptávku.'
  1909.                                 button.classList.add(\"back-green\")
  1910.                             } else {
  1911.                                 button.innerText = content.error
  1912.                                 button.classList.add(\"back-red\")
  1913.                             }
  1914.                         })();
  1915.                     });
  1916.                 });
  1917.             })
  1918.         })
  1919.     </script>
  1920.     {#
  1921.     <div class=\"modal\" id=\"modal--map\">
  1922.         <div class=\"modal__overlay js-modal-close\"></div>
  1923.         <article class=\"modal__body\" style=\"padding: 5px; max-width: none; height: 75%;\">
  1924.             <iframe
  1925.                     src=\"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1318529.0090685813!2d14.353945871812089!3d49.80013041918973!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x470b948fd7dd8243%3A0xf8661c75d3db586f!2sCzechia!5e0!3m2!1sen!2ses!4v1677857037662!5m2!1sen!2ses\"
  1926.                     style=\"border:0; width: 100%; height: 100%;\" allowfullscreen=\"\" loading=\"lazy\" referrerpolicy=\"no-referrer-when-downgrade\"></iframe>
  1927.         </article>
  1928.     </div>
  1929.     #}
  1930.     <script src=\"https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js\"></script>
  1931.     <script>
  1932.         \$(\".js-select2\").select2({
  1933.             language: \"cs\",
  1934.             minimumResultsForSearch: -1,
  1935.             width: \"100%\",
  1936.         });
  1937.         function handleMobileContact() {
  1938.             const isMobile = window.innerWidth <= 768;
  1939.             const mobileContact = document.querySelector('.dealer--mobile');
  1940.             const desktopContact = document.querySelector('.dealer:not(.dealer--mobile)');
  1941.             
  1942.             if (isMobile) {
  1943.                 mobileContact.style.display = 'block';
  1944.                 desktopContact.style.display = 'none';
  1945.             } else {
  1946.                 mobileContact.style.display = 'none';
  1947.                 desktopContact.style.display = 'block';
  1948.             }
  1949.         }
  1950.         handleMobileContact();
  1951.         window.addEventListener('resize', handleMobileContact);
  1952.         
  1953.         // === VEHICLE STATISTICS TRACKING ===
  1954.         // Trackování zobrazení stránky
  1955.         trackVehicleAction('view');
  1956.         
  1957.         // Trackování \"Zavolat prodejci\" tlačítek
  1958.         document.querySelectorAll('.js-modal-show[href=\"#modal--call\"]').forEach(button => {
  1959.             button.addEventListener('click', () => {
  1960.                 trackVehicleAction('call_dealer');
  1961.             });
  1962.         });
  1963.         
  1964.         // Trackování \"Napsat prodejci\" tlačítek
  1965.         document.querySelectorAll('.js-modal-show[href=\"#modal--write\"]').forEach(button => {
  1966.             button.addEventListener('click', () => {
  1967.                 trackVehicleAction('message_dealer');
  1968.             });
  1969.         });
  1970.         
  1971.         // Trackování kliků na tel. čísla
  1972.         setTimeout(() => {
  1973.             document.querySelectorAll('a[href^=\"tel:\"]').forEach(link => {
  1974.                 link.addEventListener('click', () => {
  1975.                     trackVehicleAction('phone_click');
  1976.                 });
  1977.             });
  1978.         }, 100);
  1979.         function trackVehicleAction(action) {
  1980.             const formData = new FormData();
  1981.             formData.append('vehicle_id', '{{ vehicle.id }}');
  1982.             formData.append('action', action);
  1983.             
  1984.             fetch('{{ path('app_vehicle_statistics_track') }}', {
  1985.                 method: 'POST',
  1986.                 body: formData
  1987.             }).catch(error => {
  1988.                 console.log('Tracking error:', error);
  1989.             });
  1990.         }
  1991.     </script>
  1992. {% endblock %}
  1993. ""homepage/detailVehicle.html.twig""/www/hosting/autanet.cz/test/templates/homepage/detailVehicle.html.twig");
  1994.     }
  1995. }