var/cache/dev/twig/15/15638911acd3c08d6ea9ae6c349380d4.php line 320

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @Portal/Catalog/catalog-vehicle.html.twig */
  16. class __TwigTemplate_82a5822cd8ab5f110e7fbc7ef30b567a extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = []): iterable
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Portal/Catalog/catalog-vehicle.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Portal/Catalog/catalog-vehicle.html.twig"));
  38.         // line 1
  39.         yield "<section class=\"selected__positions\">
  40.     <div class=\"container\">
  41.         <div class=\"selected__positions__wrapper\">
  42.             <div class=\"positions-counter__wrapper\">
  43.                 <div class=\"counter__wrapper\">
  44.                     <p class=\"selected__positions-counter\">";
  45.         // line 6
  46.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.you_chose", [], "portal_base"), "html"nulltrue);
  47.         yield " <span v-html=\"count\"></span> ";
  48.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.proposals", [], "portal_base"), "html"nulltrue);
  49.         yield ":</p>
  50.                     <button class=\"counter-clear-btn\" v-if=\"Object.keys(searchFilters).length\" @click=\"clearAll\">";
  51.         // line 7
  52.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.cancel_all", [], "portal_base"), "html"nulltrue);
  53.         yield "</button>
  54.                 </div>
  55.                 <div class=\"counter-box\">
  56.                     <template v-if=\"searchFilters\" v-for=\"(items, index) in searchFilters\">
  57.                         <div class=\"choose_item\" v-if=\"index != 'dynamic'\" v-for=\"(filter, url) in items\">
  58.                             <span class=\"choose_item-title\" v-html=\"filter\"></span>
  59.                             <button class=\"choose_item-del\" @click=\"deleteFilter(index, url)\">
  60.                                 <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\"
  61.                                      xmlns=\"http://www.w3.org/2000/svg\">
  62.                                     <path d=\"M1 9L4.84501 5.079M1.15499 1L5 4.921L8.84501 1M9 9L5.15499 5.079\"
  63.                                           stroke=\"#E40C25\" stroke-linecap=\"round\"/>
  64.                                 </svg>
  65.                             </button>
  66.                         </div>
  67.                         <template v-if=\"index == 'dynamic'\" v-for=\"(characteristics, key) in items\">
  68.                             <div class=\"choose_item\" v-for=\"(char, url) in characteristics\">
  69.                                 <span class=\"choose_item-title\" v-html=\"char\"></span>
  70.                                 <button class=\"choose_item-del\" @click=\"deleteFilter(key, url, true)\">
  71.                                     <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\"
  72.                                          xmlns=\"http://www.w3.org/2000/svg\">
  73.                                         <path d=\"M1 9L4.84501 5.079M1.15499 1L5 4.921L8.84501 1M9 9L5.15499 5.079\"
  74.                                               stroke=\"#E40C25\" stroke-linecap=\"round\"/>
  75.                                     </svg>
  76.                                 </button>
  77.                             </div>
  78.                         </template>
  79.                     </template>
  80.                 </div>
  81.             </div>
  82.             <div class=\"sorting__box sorting__box__mob__none\">
  83.                 <p class=\"sorting__text\">";
  84.         // line 40
  85.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.sort", [], "portal_base"), "html"nulltrue);
  86.         yield ":</p>
  87.                 <select class=\"filters_result-sort-select sorting__select\" v-model=\"selected.sortOrder\">
  88.                     <option :value=\"'price-ASC'\">";
  89.         // line 42
  90.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.from_cheap", [], "portal_base"), "html"nulltrue);
  91.         yield "</option>
  92.                     <option :value=\"'price-DESC'\">";
  93.         // line 43
  94.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.from_expensive", [], "portal_base"), "html"nulltrue);
  95.         yield "</option>
  96.                     <option :value=\"'year-ASC'\">";
  97.         // line 44
  98.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.issue_year_up", [], "portal_base"), "html"nulltrue);
  99.         yield "</option>
  100.                     <option :value=\"'year-DESC'\">";
  101.         // line 45
  102.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.issue_year_down", [], "portal_base"), "html"nulltrue);
  103.         yield "</option>
  104.                     <option :value=\"'mileage-ASC'\">";
  105.         // line 46
  106.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.mileage_up", [], "portal_base"), "html"nulltrue);
  107.         yield "</option>
  108.                     <option :value=\"'mileage-DESC'\">";
  109.         // line 47
  110.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.mileage_down", [], "portal_base"), "html"nulltrue);
  111.         yield "</option>
  112.                 </select>
  113.             </div>
  114.         </div>
  115.     </div>
  116. </section>
  117. <div class=\"filter__and__sort__wrapper__desc-none\">
  118.     <div class=\"container\">
  119.         <div class=\"filter__and__sort__wrapper\">
  120.             <div class=\"filter__and__sort__box touch-filter\" @click=\"onClickFilter\">
  121.                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"14\" viewBox=\"0 0 16 14\" fill=\"none\">
  122.                     <path d=\"M0.5 3.05039H8.64103C8.86559 3.9577 9.68634 4.63248 10.6621 4.63248C11.6378 4.63248 12.4585 3.9577 12.6831 3.05039H15.5C15.7761 3.05039 16 2.82651 16 2.55039C16 2.27426 15.7761 2.05039 15.5 2.05039H12.6831C12.4585 1.14307 11.6378 0.468262 10.662 0.468262C9.68628 0.468262 8.86553 1.14307 8.641 2.05039H0.5C0.223875 2.05039 0 2.27426 0 2.55039C0 2.82651 0.223875 3.05039 0.5 3.05039ZM10.6621 1.46826C11.2587 1.46826 11.7442 1.9537 11.7442 2.55036C11.7442 3.14704 11.2587 3.63248 10.6621 3.63248C10.0654 3.63248 9.57994 3.14704 9.57994 2.55036C9.57994 1.9537 10.0654 1.46826 10.6621 1.46826ZM0.5 7.37501H3.31694C3.5415 8.28232 4.36222 8.95711 5.33797 8.95711C6.31372 8.95711 7.13444 8.28232 7.359 7.37501H15.5C15.7761 7.37501 16 7.15114 16 6.87501C16 6.59889 15.7761 6.37501 15.5 6.37501H7.35897C7.13441 5.4677 6.31369 4.79289 5.33794 4.79289C4.36219 4.79289 3.54147 5.4677 3.31691 6.37501H0.5C0.223875 6.37501 0 6.59889 0 6.87501C0 7.15114 0.223844 7.37501 0.5 7.37501ZM5.33794 5.79289C5.93462 5.79289 6.42006 6.27832 6.42006 6.87501C6.42006 7.47167 5.93462 7.95711 5.33794 7.95711C4.74125 7.95711 4.25581 7.47167 4.25581 6.87501C4.25581 6.27832 4.74125 5.79289 5.33794 5.79289ZM15.5 10.6996H12.6831C12.4585 9.79232 11.6378 9.11751 10.662 9.11751C9.68628 9.11751 8.86556 9.79232 8.641 10.6996H0.5C0.223875 10.6996 0 10.9235 0 11.1996C0 11.4758 0.223875 11.6996 0.5 11.6996H8.64103C8.86559 12.6069 9.68631 13.2818 10.6621 13.2818C11.6378 13.2818 12.4585 12.6069 12.6831 11.6996H15.5C15.7761 11.6996 16 11.4758 16 11.1996C16 10.9235 15.7762 10.6996 15.5 10.6996ZM10.6621 12.2818C10.0654 12.2818 9.57994 11.7963 9.57994 11.1996C9.57994 10.6029 10.0654 10.1175 10.6621 10.1175C11.2587 10.1175 11.7442 10.6029 11.7442 11.1996C11.7442 11.7963 11.2587 12.2818 10.6621 12.2818Z\"
  123.                           fill=\"#E40C25\"/>
  124.                 </svg>
  125.                 ";
  126.         // line 62
  127.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.filter", [], "portal_base"), "html"nulltrue);
  128.         yield "
  129.             </div>
  130.             <div class=\"sorting__box filter__and__sort__box\">
  131.                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"13\" height=\"16\" viewBox=\"0 0 13 16\" fill=\"none\">
  132.                     <path d=\"M12.2229 6.37518L9.82287 0.615184C9.74831 0.436304 9.57359 0.319824 9.37999 0.319824C9.18639 0.319824 9.01151 0.436304 8.93695 0.615184L6.53695 6.37518C6.43471 6.61982 6.55055 6.90094 6.79519 7.00286C7.04031 7.1051 7.32063 6.98958 7.42287 6.74462L8.29999 4.63982H10.46L11.337 6.74446C11.4138 6.92862 11.592 7.03998 11.78 7.03998C11.8419 7.03998 11.9042 7.02798 11.9646 7.0027C12.2093 6.90078 12.3251 6.61982 12.2229 6.37518ZM8.69999 3.67982L9.37999 2.04782L10.06 3.67982H8.69999ZM11.78 15.1998C11.78 15.4649 11.5653 15.6798 11.3 15.6798H7.45999C7.27535 15.6798 7.10751 15.5741 7.02735 15.4077C6.94767 15.2414 6.96975 15.044 7.08495 14.9L10.3011 10.8798H7.45999C7.19471 10.8798 6.97999 10.6649 6.97999 10.3998C6.97999 10.1347 7.19471 9.91982 7.45999 9.91982H11.3C11.4846 9.91982 11.6525 10.0256 11.7326 10.192C11.8123 10.3582 11.7902 10.5557 11.675 10.6997L8.45887 14.7198H11.3C11.5653 14.7198 11.78 14.9347 11.78 15.1998ZM4.43935 12.9405C4.62687 13.128 4.62687 13.4317 4.43935 13.6192L2.99935 15.0592C2.90559 15.1529 2.78271 15.1998 2.65999 15.1998C2.53727 15.1998 2.41439 15.1529 2.32063 15.0592L0.88063 13.6192C0.69311 13.4317 0.69311 13.128 0.88063 12.9405C1.06815 12.7529 1.37183 12.7529 1.55935 12.9405L2.17999 13.5611V1.27982C2.17999 1.0147 2.39471 0.799824 2.65999 0.799824C2.92527 0.799824 3.13999 1.0147 3.13999 1.27982V13.5611L3.76063 12.9405C3.94799 12.7529 4.25183 12.7529 4.43935 12.9405Z\"
  133.                           fill=\"#E40C25\"/>
  134.                 </svg>
  135.                 <select class=\"filters_result-sort-select sorting__select\" v-model=\"selected.sortOrder\">
  136.                     <option :value=\"'price-ASC'\">";
  137.         // line 70
  138.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.from_cheap", [], "portal_base"), "html"nulltrue);
  139.         yield "</option>
  140.                     <option :value=\"'price-DESC'\">";
  141.         // line 71
  142.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.from_expensive", [], "portal_base"), "html"nulltrue);
  143.         yield "</option>
  144.                     <option :value=\"'year-ASC'\">";
  145.         // line 72
  146.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.issue_year_up", [], "portal_base"), "html"nulltrue);
  147.         yield "</option>
  148.                     <option :value=\"'year-DESC'\">";
  149.         // line 73
  150.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.issue_year_down", [], "portal_base"), "html"nulltrue);
  151.         yield "</option>
  152.                     <option :value=\"'mileage-ASC'\">";
  153.         // line 74
  154.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.mileage_up", [], "portal_base"), "html"nulltrue);
  155.         yield "</option>
  156.                     <option :value=\"'mileage-DESC'\">";
  157.         // line 75
  158.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.mileage_down", [], "portal_base"), "html"nulltrue);
  159.         yield "</option>
  160.                 </select>
  161.             </div>
  162.         </div>
  163.     </div>
  164. </div>
  165. <section class=\"catalog__main\">
  166.     <div class=\"container\">
  167.         <div class=\"catalog__main__wrapper\">
  168.             <div class=\"filtr__wrapper\">
  169.                 <div class=\"filtr\">
  170.                     ";
  171.         // line 89
  172.         yield from $this->load("@Portal/Modules/catalog-filter.html.twig"89)->unwrap()->yield($context);
  173.         // line 90
  174.         yield "                </div>
  175.                 ";
  176.         // line 92
  177.         if (array_key_exists("vehicleTopViews"$context)) {
  178.             // line 93
  179.             yield "                    <div class=\"top__five__auto\">
  180.                         <p class=\"top__five__auto__title\">ТОП 5 ";
  181.             // line 94
  182.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['DcSiteBundle\Twig\TwigDcExtension']->vehicleType((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'94$this->source); })())), "html"nulltrue);
  183.             yield " ";
  184.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now""Y"), "html"nulltrue);
  185.             yield " ";
  186.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.year", [], "portal_base"), "html"nulltrue);
  187.             yield "</p>
  188.                         <div class=\"top__five__auto__wrapper\">
  189.                             ";
  190.             // line 96
  191.             $context['_parent'] = $context;
  192.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["vehicleTopViews"]) || array_key_exists("vehicleTopViews"$context) ? $context["vehicleTopViews"] : (function () { throw new RuntimeError('Variable "vehicleTopViews" does not exist.'96$this->source); })()));
  193.             foreach ($context['_seq'] as $context["_key"] => $context["vehicle"]) {
  194.                 // line 97
  195.                 yield "                                ";
  196.                 if ((($tmp CoreExtension::getAttribute($this->env$this->source$context["vehicle"], "isUsed", [], "any"falsefalsefalse97)) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  197.                     // line 98
  198.                     yield "                                    <a href=\"";
  199.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_used_car", ["url" => CoreExtension::getAttribute($this->env$this->source$context["vehicle"], "url", [], "any"falsefalsefalse98)]), "html"nulltrue);
  200.                     yield "\"
  201.                                        class=\"top__five__auto__box\">
  202.                                         <div class=\"top__five__auto-img\"
  203.                                              style=\"background-image: url('";
  204.                     // line 101
  205.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->path(CoreExtension::getAttribute($this->env$this->source$context["vehicle"], "preview", [], "any"falsefalsefalse101), "reference"), "html"nulltrue);
  206.                     yield "')\"></div>
  207.                                         <div class=\"top__five__auto__name__box\">
  208.                                             <p class=\"top__five__auto__name\">";
  209.                     // line 103
  210.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["vehicle"], "fullName", [], "any"falsefalsefalse103), "html"nulltrue);
  211.                     yield "</p>
  212.                                             <span class=\"top__five__auto__charac\">";
  213.                     // line 104
  214.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["vehicle"], "year", [], "any"falsefalsefalse104), "html"nulltrue);
  215.                     yield ", ";
  216.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["vehicle"], "enginePower", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'104$this->source); })()), "request", [], "any"falsefalsefalse104), "locale", [], "any"falsefalsefalse104)], "method"falsefalsefalse104), "html"nulltrue);
  217.                     yield " ";
  218.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.k_s", [], "portal_base"), "html"nulltrue);
  219.                     yield "</span>
  220.                                         </div>
  221.                                     </a>
  222.                                 ";
  223.                 } else {
  224.                     // line 108
  225.                     yield "                                    <a href=\"";
  226.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_new_car", ["dealer" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["vehicle"], "dealer", [], "any"falsefalsefalse108), "url", [], "any"falsefalsefalse108), "url" => CoreExtension::getAttribute($this->env$this->source$context["vehicle"], "url", [], "any"falsefalsefalse108), "variation" => CoreExtension::getAttribute($this->env$this->source$context["vehicle"], "vehicleItemId", [], "any"falsefalsefalse108)]), "html"nulltrue);
  227.                     yield "\"
  228.                                        class=\"top__five__auto__box\">
  229.                                         <div class=\"top__five__auto-img\"
  230.                                              style=\"background-image: url('";
  231.                     // line 111
  232.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->path(CoreExtension::getAttribute($this->env$this->source$context["vehicle"], "preview", [], "any"falsefalsefalse111), "reference"), "html"nulltrue);
  233.                     yield "')\"></div>
  234.                                         <div class=\"top__five__auto__name__box\">
  235.                                             <p class=\"top__five__auto__name\">";
  236.                     // line 113
  237.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["vehicle"], "fullName", [], "any"falsefalsefalse113), "html"nulltrue);
  238.                     yield "</p>
  239.                                             <span class=\"top__five__auto__charac\">";
  240.                     // line 114
  241.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["vehicle"], "equipment", [], "any"falsefalsefalse114), "title", [], "any"falsefalsefalse114), "html"nulltrue);
  242.                     yield ", ";
  243.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["vehicle"], "enginePower", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'114$this->source); })()), "request", [], "any"falsefalsefalse114), "locale", [], "any"falsefalsefalse114)], "method"falsefalsefalse114), "html"nulltrue);
  244.                     yield " ";
  245.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.k_s", [], "portal_base"), "html"nulltrue);
  246.                     yield "</span>
  247.                                         </div>
  248.                                     </a>
  249.                                 ";
  250.                 }
  251.                 // line 118
  252.                 yield "                            ";
  253.             }
  254.             $_parent $context['_parent'];
  255.             unset($context['_seq'], $context['_key'], $context['vehicle'], $context['_parent']);
  256.             $context array_intersect_key($context$_parent) + $_parent;
  257.             // line 119
  258.             yield "                        </div>
  259.                     </div>
  260.                 ";
  261.         }
  262.         // line 122
  263.         yield "
  264.             </div>
  265.             <div class=\"catalog__main__card__container\" v-if=\"!isFilter\">
  266.                 <template v-if=\"count === 0\">
  267.                     <div class=\"no__cars__found__wrapper\">
  268.                         <p  class=\"no__cars__found__title\">";
  269.         // line 130
  270.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.not_found", [], "portal_base"), "html"nulltrue);
  271.         yield "</p>
  272.                         <p class=\"no__cars__found__sub__title\">";
  273.         // line 131
  274.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.similar_options", [], "portal_base"), "html"nulltrue);
  275.         yield "</p>
  276.                     </div>
  277.                 </template>
  278.                 <div class=\"catalog__main__card__wrapper\">
  279.                     ";
  280.         // line 136
  281.         $context['_parent'] = $context;
  282.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["vehicles"]) || array_key_exists("vehicles"$context) ? $context["vehicles"] : (function () { throw new RuntimeError('Variable "vehicles" does not exist.'136$this->source); })()));
  283.         $context['loop'] = [
  284.           'parent' => $context['_parent'],
  285.           'index0' => 0,
  286.           'index'  => 1,
  287.           'first'  => true,
  288.         ];
  289.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  290.             $length count($context['_seq']);
  291.             $context['loop']['revindex0'] = $length 1;
  292.             $context['loop']['revindex'] = $length;
  293.             $context['loop']['length'] = $length;
  294.             $context['loop']['last'] = === $length;
  295.         }
  296.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  297.             // line 137
  298.             yield "                        ";
  299.             yield from $this->load((("@Portal/Catalog/catalog-card-" . (isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'137$this->source); })())) . ".html.twig"), 137)->unwrap()->yield($context);
  300.             // line 138
  301.             yield "                        ";
  302.             if ((CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse138) == 5)) {
  303.                 // line 139
  304.                 yield "                            ";
  305.                 yield from $this->load("@Portal/Catalog/catalog-support-box.html.twig"139)->unwrap()->yield($context);
  306.                 // line 140
  307.                 yield "                        ";
  308.             }
  309.             // line 141
  310.             yield "                    ";
  311.             ++$context['loop']['index0'];
  312.             ++$context['loop']['index'];
  313.             $context['loop']['first'] = false;
  314.             if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  315.                 --$context['loop']['revindex0'];
  316.                 --$context['loop']['revindex'];
  317.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  318.             }
  319.         }
  320.         $_parent $context['_parent'];
  321.         unset($context['_seq'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  322.         $context array_intersect_key($context$_parent) + $_parent;
  323.         // line 142
  324.         yield "                </div>
  325.                 <div class=\"pagination\">
  326.                     ";
  327.         // line 144
  328.         yield from $this->load("@DcSite/Modules/pagination/pagination.html.twig"144)->unwrap()->yield($context);
  329.         // line 145
  330.         yield "                </div>
  331.             </div>
  332.             <div class=\"catalog__main__card__container\" v-if=\"isFilter\" id=\"catalog__main__card__preloader\">
  333.                 <template v-if=\"count === 0\">
  334.                     <div class=\"no__cars__found__wrapper\">
  335.                         <p  class=\"no__cars__found__title\">";
  336.         // line 153
  337.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.not_found", [], "portal_base"), "html"nulltrue);
  338.         yield "</p>
  339.                         <p class=\"no__cars__found__sub__title\">";
  340.         // line 154
  341.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.similar_options", [], "portal_base"), "html"nulltrue);
  342.         yield "</p>
  343.                     </div>
  344.                 </template>
  345.                 <div class=\"catalog__main__card__wrapper\">
  346.                     ";
  347.         // line 160
  348.         yield from $this->load((("@Portal/Catalog/catalog-card-" . (isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'160$this->source); })())) . "-vue.html.twig"), 160)->unwrap()->yield($context);
  349.         // line 161
  350.         yield "                </div>
  351.                 <div class=\"pagination\">
  352.                     ";
  353.         // line 163
  354.         yield from $this->load("@Portal/Modules/pagination.html.twig"163)->unwrap()->yield($context);
  355.         // line 164
  356.         yield "                </div>
  357.             </div>
  358.         </div>
  359.     </div>
  360. </section>
  361. ";
  362.         
  363.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  364.         
  365.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  366.         yield from [];
  367.     }
  368.     /**
  369.      * @codeCoverageIgnore
  370.      */
  371.     public function getTemplateName(): string
  372.     {
  373.         return "@Portal/Catalog/catalog-vehicle.html.twig";
  374.     }
  375.     /**
  376.      * @codeCoverageIgnore
  377.      */
  378.     public function isTraitable(): bool
  379.     {
  380.         return false;
  381.     }
  382.     /**
  383.      * @codeCoverageIgnore
  384.      */
  385.     public function getDebugInfo(): array
  386.     {
  387.         return array (  382 => 164,  380 => 163,  376 => 161,  374 => 160,  365 => 154,  361 => 153,  351 => 145,  349 => 144,  345 => 142,  331 => 141,  328 => 140,  325 => 139,  322 => 138,  319 => 137,  302 => 136,  294 => 131,  290 => 130,  280 => 122,  275 => 119,  269 => 118,  258 => 114,  254 => 113,  249 => 111,  242 => 108,  231 => 104,  227 => 103,  222 => 101,  215 => 98,  212 => 97,  208 => 96,  199 => 94,  196 => 93,  194 => 92,  190 => 90,  188 => 89,  171 => 75,  167 => 74,  163 => 73,  159 => 72,  155 => 71,  151 => 70,  140 => 62,  122 => 47,  118 => 46,  114 => 45,  110 => 44,  106 => 43,  102 => 42,  97 => 40,  61 => 7,  55 => 6,  48 => 1,);
  388.     }
  389.     public function getSourceContext(): Source
  390.     {
  391.         return new Source("<section class=\"selected__positions\">
  392.     <div class=\"container\">
  393.         <div class=\"selected__positions__wrapper\">
  394.             <div class=\"positions-counter__wrapper\">
  395.                 <div class=\"counter__wrapper\">
  396.                     <p class=\"selected__positions-counter\">{{ 'catalog.you_chose'|trans({}, 'portal_base') }} <span v-html=\"count\"></span> {{ 'catalog.proposals'|trans({}, 'portal_base') }}:</p>
  397.                     <button class=\"counter-clear-btn\" v-if=\"Object.keys(searchFilters).length\" @click=\"clearAll\">{{ 'catalog.cancel_all'|trans({}, 'portal_base') }}</button>
  398.                 </div>
  399.                 <div class=\"counter-box\">
  400.                     <template v-if=\"searchFilters\" v-for=\"(items, index) in searchFilters\">
  401.                         <div class=\"choose_item\" v-if=\"index != 'dynamic'\" v-for=\"(filter, url) in items\">
  402.                             <span class=\"choose_item-title\" v-html=\"filter\"></span>
  403.                             <button class=\"choose_item-del\" @click=\"deleteFilter(index, url)\">
  404.                                 <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\"
  405.                                      xmlns=\"http://www.w3.org/2000/svg\">
  406.                                     <path d=\"M1 9L4.84501 5.079M1.15499 1L5 4.921L8.84501 1M9 9L5.15499 5.079\"
  407.                                           stroke=\"#E40C25\" stroke-linecap=\"round\"/>
  408.                                 </svg>
  409.                             </button>
  410.                         </div>
  411.                         <template v-if=\"index == 'dynamic'\" v-for=\"(characteristics, key) in items\">
  412.                             <div class=\"choose_item\" v-for=\"(char, url) in characteristics\">
  413.                                 <span class=\"choose_item-title\" v-html=\"char\"></span>
  414.                                 <button class=\"choose_item-del\" @click=\"deleteFilter(key, url, true)\">
  415.                                     <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\"
  416.                                          xmlns=\"http://www.w3.org/2000/svg\">
  417.                                         <path d=\"M1 9L4.84501 5.079M1.15499 1L5 4.921L8.84501 1M9 9L5.15499 5.079\"
  418.                                               stroke=\"#E40C25\" stroke-linecap=\"round\"/>
  419.                                     </svg>
  420.                                 </button>
  421.                             </div>
  422.                         </template>
  423.                     </template>
  424.                 </div>
  425.             </div>
  426.             <div class=\"sorting__box sorting__box__mob__none\">
  427.                 <p class=\"sorting__text\">{{ 'catalog.sort'|trans({}, 'portal_base') }}:</p>
  428.                 <select class=\"filters_result-sort-select sorting__select\" v-model=\"selected.sortOrder\">
  429.                     <option :value=\"'price-ASC'\">{{ 'catalog.from_cheap'|trans({}, 'portal_base') }}</option>
  430.                     <option :value=\"'price-DESC'\">{{ 'catalog.from_expensive'|trans({}, 'portal_base') }}</option>
  431.                     <option :value=\"'year-ASC'\">{{ 'catalog.issue_year_up'|trans({}, 'portal_base') }}</option>
  432.                     <option :value=\"'year-DESC'\">{{ 'catalog.issue_year_down'|trans({}, 'portal_base') }}</option>
  433.                     <option :value=\"'mileage-ASC'\">{{ 'catalog.mileage_up'|trans({}, 'portal_base') }}</option>
  434.                     <option :value=\"'mileage-DESC'\">{{ 'catalog.mileage_down'|trans({}, 'portal_base') }}</option>
  435.                 </select>
  436.             </div>
  437.         </div>
  438.     </div>
  439. </section>
  440. <div class=\"filter__and__sort__wrapper__desc-none\">
  441.     <div class=\"container\">
  442.         <div class=\"filter__and__sort__wrapper\">
  443.             <div class=\"filter__and__sort__box touch-filter\" @click=\"onClickFilter\">
  444.                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"14\" viewBox=\"0 0 16 14\" fill=\"none\">
  445.                     <path d=\"M0.5 3.05039H8.64103C8.86559 3.9577 9.68634 4.63248 10.6621 4.63248C11.6378 4.63248 12.4585 3.9577 12.6831 3.05039H15.5C15.7761 3.05039 16 2.82651 16 2.55039C16 2.27426 15.7761 2.05039 15.5 2.05039H12.6831C12.4585 1.14307 11.6378 0.468262 10.662 0.468262C9.68628 0.468262 8.86553 1.14307 8.641 2.05039H0.5C0.223875 2.05039 0 2.27426 0 2.55039C0 2.82651 0.223875 3.05039 0.5 3.05039ZM10.6621 1.46826C11.2587 1.46826 11.7442 1.9537 11.7442 2.55036C11.7442 3.14704 11.2587 3.63248 10.6621 3.63248C10.0654 3.63248 9.57994 3.14704 9.57994 2.55036C9.57994 1.9537 10.0654 1.46826 10.6621 1.46826ZM0.5 7.37501H3.31694C3.5415 8.28232 4.36222 8.95711 5.33797 8.95711C6.31372 8.95711 7.13444 8.28232 7.359 7.37501H15.5C15.7761 7.37501 16 7.15114 16 6.87501C16 6.59889 15.7761 6.37501 15.5 6.37501H7.35897C7.13441 5.4677 6.31369 4.79289 5.33794 4.79289C4.36219 4.79289 3.54147 5.4677 3.31691 6.37501H0.5C0.223875 6.37501 0 6.59889 0 6.87501C0 7.15114 0.223844 7.37501 0.5 7.37501ZM5.33794 5.79289C5.93462 5.79289 6.42006 6.27832 6.42006 6.87501C6.42006 7.47167 5.93462 7.95711 5.33794 7.95711C4.74125 7.95711 4.25581 7.47167 4.25581 6.87501C4.25581 6.27832 4.74125 5.79289 5.33794 5.79289ZM15.5 10.6996H12.6831C12.4585 9.79232 11.6378 9.11751 10.662 9.11751C9.68628 9.11751 8.86556 9.79232 8.641 10.6996H0.5C0.223875 10.6996 0 10.9235 0 11.1996C0 11.4758 0.223875 11.6996 0.5 11.6996H8.64103C8.86559 12.6069 9.68631 13.2818 10.6621 13.2818C11.6378 13.2818 12.4585 12.6069 12.6831 11.6996H15.5C15.7761 11.6996 16 11.4758 16 11.1996C16 10.9235 15.7762 10.6996 15.5 10.6996ZM10.6621 12.2818C10.0654 12.2818 9.57994 11.7963 9.57994 11.1996C9.57994 10.6029 10.0654 10.1175 10.6621 10.1175C11.2587 10.1175 11.7442 10.6029 11.7442 11.1996C11.7442 11.7963 11.2587 12.2818 10.6621 12.2818Z\"
  446.                           fill=\"#E40C25\"/>
  447.                 </svg>
  448.                 {{ 'catalog.filter'|trans({}, 'portal_base') }}
  449.             </div>
  450.             <div class=\"sorting__box filter__and__sort__box\">
  451.                 <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"13\" height=\"16\" viewBox=\"0 0 13 16\" fill=\"none\">
  452.                     <path d=\"M12.2229 6.37518L9.82287 0.615184C9.74831 0.436304 9.57359 0.319824 9.37999 0.319824C9.18639 0.319824 9.01151 0.436304 8.93695 0.615184L6.53695 6.37518C6.43471 6.61982 6.55055 6.90094 6.79519 7.00286C7.04031 7.1051 7.32063 6.98958 7.42287 6.74462L8.29999 4.63982H10.46L11.337 6.74446C11.4138 6.92862 11.592 7.03998 11.78 7.03998C11.8419 7.03998 11.9042 7.02798 11.9646 7.0027C12.2093 6.90078 12.3251 6.61982 12.2229 6.37518ZM8.69999 3.67982L9.37999 2.04782L10.06 3.67982H8.69999ZM11.78 15.1998C11.78 15.4649 11.5653 15.6798 11.3 15.6798H7.45999C7.27535 15.6798 7.10751 15.5741 7.02735 15.4077C6.94767 15.2414 6.96975 15.044 7.08495 14.9L10.3011 10.8798H7.45999C7.19471 10.8798 6.97999 10.6649 6.97999 10.3998C6.97999 10.1347 7.19471 9.91982 7.45999 9.91982H11.3C11.4846 9.91982 11.6525 10.0256 11.7326 10.192C11.8123 10.3582 11.7902 10.5557 11.675 10.6997L8.45887 14.7198H11.3C11.5653 14.7198 11.78 14.9347 11.78 15.1998ZM4.43935 12.9405C4.62687 13.128 4.62687 13.4317 4.43935 13.6192L2.99935 15.0592C2.90559 15.1529 2.78271 15.1998 2.65999 15.1998C2.53727 15.1998 2.41439 15.1529 2.32063 15.0592L0.88063 13.6192C0.69311 13.4317 0.69311 13.128 0.88063 12.9405C1.06815 12.7529 1.37183 12.7529 1.55935 12.9405L2.17999 13.5611V1.27982C2.17999 1.0147 2.39471 0.799824 2.65999 0.799824C2.92527 0.799824 3.13999 1.0147 3.13999 1.27982V13.5611L3.76063 12.9405C3.94799 12.7529 4.25183 12.7529 4.43935 12.9405Z\"
  453.                           fill=\"#E40C25\"/>
  454.                 </svg>
  455.                 <select class=\"filters_result-sort-select sorting__select\" v-model=\"selected.sortOrder\">
  456.                     <option :value=\"'price-ASC'\">{{ 'catalog.from_cheap'|trans({}, 'portal_base') }}</option>
  457.                     <option :value=\"'price-DESC'\">{{ 'catalog.from_expensive'|trans({}, 'portal_base') }}</option>
  458.                     <option :value=\"'year-ASC'\">{{ 'catalog.issue_year_up'|trans({}, 'portal_base') }}</option>
  459.                     <option :value=\"'year-DESC'\">{{ 'catalog.issue_year_down'|trans({}, 'portal_base') }}</option>
  460.                     <option :value=\"'mileage-ASC'\">{{ 'catalog.mileage_up'|trans({}, 'portal_base') }}</option>
  461.                     <option :value=\"'mileage-DESC'\">{{ 'catalog.mileage_down'|trans({}, 'portal_base') }}</option>
  462.                 </select>
  463.             </div>
  464.         </div>
  465.     </div>
  466. </div>
  467. <section class=\"catalog__main\">
  468.     <div class=\"container\">
  469.         <div class=\"catalog__main__wrapper\">
  470.             <div class=\"filtr__wrapper\">
  471.                 <div class=\"filtr\">
  472.                     {% include '@Portal/Modules/catalog-filter.html.twig' %}
  473.                 </div>
  474.                 {% if vehicleTopViews is defined %}
  475.                     <div class=\"top__five__auto\">
  476.                         <p class=\"top__five__auto__title\">ТОП 5 {{ getType(type) }} {{ \"now\"|date(\"Y\") }} {{ 'catalog.year'|trans({}, 'portal_base') }}</p>
  477.                         <div class=\"top__five__auto__wrapper\">
  478.                             {% for vehicle in vehicleTopViews %}
  479.                                 {% if vehicle.isUsed %}
  480.                                     <a href=\"{{ path('portal_used_car',{url:vehicle.url}) }}\"
  481.                                        class=\"top__five__auto__box\">
  482.                                         <div class=\"top__five__auto-img\"
  483.                                              style=\"background-image: url('{{ sonata_path(vehicle.preview, 'reference') }}')\"></div>
  484.                                         <div class=\"top__five__auto__name__box\">
  485.                                             <p class=\"top__five__auto__name\">{{ vehicle.fullName }}</p>
  486.                                             <span class=\"top__five__auto__charac\">{{ vehicle.year }}, {{ vehicle.enginePower(app.request.locale) }} {{ 'catalog.k_s'|trans({}, 'portal_base') }}</span>
  487.                                         </div>
  488.                                     </a>
  489.                                 {% else %}
  490.                                     <a href=\"{{ path('portal_new_car',{dealer: vehicle.dealer.url, url:vehicle.url, variation: vehicle.vehicleItemId }) }}\"
  491.                                        class=\"top__five__auto__box\">
  492.                                         <div class=\"top__five__auto-img\"
  493.                                              style=\"background-image: url('{{ sonata_path(vehicle.preview, 'reference') }}')\"></div>
  494.                                         <div class=\"top__five__auto__name__box\">
  495.                                             <p class=\"top__five__auto__name\">{{ vehicle.fullName }}</p>
  496.                                             <span class=\"top__five__auto__charac\">{{ vehicle.equipment.title }}, {{ vehicle.enginePower(app.request.locale) }} {{ 'catalog.k_s'|trans({}, 'portal_base') }}</span>
  497.                                         </div>
  498.                                     </a>
  499.                                 {% endif %}
  500.                             {% endfor %}
  501.                         </div>
  502.                     </div>
  503.                 {% endif %}
  504.             </div>
  505.             <div class=\"catalog__main__card__container\" v-if=\"!isFilter\">
  506.                 <template v-if=\"count === 0\">
  507.                     <div class=\"no__cars__found__wrapper\">
  508.                         <p  class=\"no__cars__found__title\">{{ 'catalog.not_found'|trans({}, 'portal_base') }}</p>
  509.                         <p class=\"no__cars__found__sub__title\">{{ 'catalog.similar_options'|trans({}, 'portal_base') }}</p>
  510.                     </div>
  511.                 </template>
  512.                 <div class=\"catalog__main__card__wrapper\">
  513.                     {% for item in vehicles %}
  514.                         {% include '@Portal/Catalog/catalog-card-'~type~'.html.twig' %}
  515.                         {% if loop.index == 5 %}
  516.                             {% include '@Portal/Catalog/catalog-support-box.html.twig' %}
  517.                         {% endif %}
  518.                     {% endfor %}
  519.                 </div>
  520.                 <div class=\"pagination\">
  521.                     {% include '@DcSite/Modules/pagination/pagination.html.twig' %}
  522.                 </div>
  523.             </div>
  524.             <div class=\"catalog__main__card__container\" v-if=\"isFilter\" id=\"catalog__main__card__preloader\">
  525.                 <template v-if=\"count === 0\">
  526.                     <div class=\"no__cars__found__wrapper\">
  527.                         <p  class=\"no__cars__found__title\">{{ 'catalog.not_found'|trans({}, 'portal_base') }}</p>
  528.                         <p class=\"no__cars__found__sub__title\">{{ 'catalog.similar_options'|trans({}, 'portal_base') }}</p>
  529.                     </div>
  530.                 </template>
  531.                 <div class=\"catalog__main__card__wrapper\">
  532.                     {% include '@Portal/Catalog/catalog-card-'~type~'-vue.html.twig' %}
  533.                 </div>
  534.                 <div class=\"pagination\">
  535.                     {% include '@Portal/Modules/pagination.html.twig' %}
  536.                 </div>
  537.             </div>
  538.         </div>
  539.     </div>
  540. </section>
  541. ""@Portal/Catalog/catalog-vehicle.html.twig""/var/www/vidi.ua/releases/251029-a7dd1390/src/PortalBundle/Resources/views/Catalog/catalog-vehicle.html.twig");
  542.     }
  543. }