var/cache/dev/twig/24/24c9fd930e4d3200574d30f7dd19b720fd65986c581dc5df76e4c8e28d9b431a.php line 63

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Slivki/offers/details.html.twig */
  14. class __TwigTemplate_671d188d41c559f3e4b20d04dd0901420d5734d6d8780fb2ae46a6d677382c91 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.             'messenger' => [$this'block_messenger'],
  25.             'stylesheets' => [$this'block_stylesheets'],
  26.             'ogimage' => [$this'block_ogimage'],
  27.             'header' => [$this'block_header'],
  28.             'mainColumnClass' => [$this'block_mainColumnClass'],
  29.             'main_content' => [$this'block_main_content'],
  30.             'popups' => [$this'block_popups'],
  31.             'javascripts' => [$this'block_javascripts'],
  32.             'assetsBottom' => [$this'block_assetsBottom'],
  33.             'RTBHouse' => [$this'block_RTBHouse'],
  34.         ];
  35.     }
  36.     protected function doGetParent(array $context)
  37.     {
  38.         // line 1
  39.         return "base.html.twig";
  40.     }
  41.     protected function doDisplay(array $context, array $blocks = [])
  42.     {
  43.         $macros $this->macros;
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/offers/details.html.twig"));
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/offers/details.html.twig"));
  48.         // line 25
  49.         $context["isOfferFavourite"] = ((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'25$this->source); })()), "user", [], "any"falsefalsefalse25)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'25$this->source); })()), "user", [], "any"falsefalsefalse25), "isOfferFavourite", [=> (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'25$this->source); })())], "method"falsefalsefalse25)) : (false));
  50.         // line 27
  51.         $context["subscribed"] = (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'27$this->source); })()), "user", [], "any"falsefalsefalse27) && $this->env->getRuntime('Slivki\Twig\SubscriptionTwigRuntime')->isSubscriber(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'27$this->source); })()), "user", [], "any"falsefalsefalse27)));
  52.         // line 1
  53.         $this->parent $this->loadTemplate("base.html.twig""Slivki/offers/details.html.twig"1);
  54.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  55.         
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.     }
  60.     // line 3
  61.     public function block_title($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  68.         $this->displayParentBlock("title"$context$blocks);
  69.         (((array_key_exists("currentPage"$context) && (!== twig_compare((isset($context["currentPage"]) || array_key_exists("currentPage"$context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.'3$this->source); })()), 1)))) ? (print (twig_escape_filter($this->env, (" - Страница №" . (isset($context["currentPage"]) || array_key_exists("currentPage"$context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.'3$this->source); })())), "html"nulltrue))) : (print ("")));
  70.         
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  72.         
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  74.     }
  75.     // line 5
  76.     public function block_messenger($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""messenger"));
  81.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""messenger"));
  83.         
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  85.         
  86.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  87.     }
  88.     // line 7
  89.     public function block_stylesheets($context, array $blocks = [])
  90.     {
  91.         $macros $this->macros;
  92.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  93.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  94.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  96.         // line 8
  97.         echo "    <link rel=\"stylesheet\" href=\"/css/statistics_modal.css?v=4\"/>
  98.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\"/>
  99.     <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css\">
  100.     <link rel=\"stylesheet\" href=\"/admin/plugins/datetimepicker/css/bootstrap-datetimepicker.min.css\">
  101.     <link rel=\"stylesheet\" href=\"/admin/plugins/datatables/jquery.dataTables.min.css\"/>
  102.     <link rel=\"stylesheet\" href=\"/admin/plugins/colorpicker/bootstrap-colorpicker.min.css\"/>
  103.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.css\">
  104.     <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\"/>
  105.     <link href=\"//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css\" type=\"text/css\" rel=\"stylesheet\">
  106.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker-standalone.min.css\" integrity=\"sha512-L0/PNISezIYAoqFXBGP9EJ4qLH8XF356+Lo92vzloQqk7HUpZ4FN1x1dUOnsUAUjHTSxXxeaD0HXfrANhtJOEA==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\" />
  107.     ";
  108.         // line 18
  109.         $this->displayParentBlock("stylesheets"$context$blocks);
  110.         echo "
  111.     <link href=\"/css/offers.css?v=";
  112.         // line 19
  113.         echo twig_escape_filter($this->env, (isset($context["offers_css"]) || array_key_exists("offers_css"$context) ? $context["offers_css"] : (function () { throw new RuntimeError('Variable "offers_css" does not exist.'19$this->source); })()), "html"nulltrue);
  114.         echo "\" rel=\"stylesheet\" type=\"text/css\"/>
  115.     <link href=\"/css/foodForGift.css?v=";
  116.         // line 20
  117.         echo twig_escape_filter($this->env, (isset($context["food_for_gift_css"]) || array_key_exists("food_for_gift_css"$context) ? $context["food_for_gift_css"] : (function () { throw new RuntimeError('Variable "food_for_gift_css" does not exist.'20$this->source); })()), "html"nulltrue);
  118.         echo "\" rel=\"stylesheet\" type=\"text/css\"/>
  119.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css\"
  120.           integrity=\"sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw==\"
  121.           crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
  122. ";
  123.         
  124.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  125.         
  126.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  127.     }
  128.     // line 28
  129.     public function block_ogimage($context, array $blocks = [])
  130.     {
  131.         $macros $this->macros;
  132.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  133.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogimage"));
  134.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  135.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogimage"));
  136.         // line 29
  137.         echo "        ";
  138.         if ((=== twig_compare(twig_length_filter($this->env, (isset($context["detailMediaList"]) || array_key_exists("detailMediaList"$context) ? $context["detailMediaList"] : (function () { throw new RuntimeError('Variable "detailMediaList" does not exist.'29$this->source); })())), 0))) {
  139.             // line 30
  140.             echo "            <meta property=\"og:image\"
  141.                   content=\"";
  142.             // line 31
  143.             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.'31$this->source); })()), "request", [], "any"falsefalsefalse31), "getSchemeAndHttpHost", [], "method"falsefalsefalse31), "html"nulltrue);
  144.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL(twig_first($this->env, (isset($context["detailMediaList"]) || array_key_exists("detailMediaList"$context) ? $context["detailMediaList"] : (function () { throw new RuntimeError('Variable "detailMediaList" does not exist.'31$this->source); })())), 522322), "html"nulltrue);
  145.             echo "\"/>
  146.             <meta property=\"og:image:width\" content=\"522\"/>
  147.             <meta property=\"og:image:height\" content=\"322\"/>
  148.         ";
  149.         } else {
  150.             // line 35
  151.             echo "            ";
  152.             $this->displayParentBlock("ogimage"$context$blocks);
  153.             echo "
  154.         ";
  155.         }
  156.         // line 37
  157.         echo "    ";
  158.         
  159.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  160.         
  161.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  162.     }
  163.     // line 39
  164.     public function block_header($context, array $blocks = [])
  165.     {
  166.         $macros $this->macros;
  167.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  168.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  169.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  170.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  171.         // line 40
  172.         echo "    ";
  173.         $this->loadTemplate("Slivki/offers/details.html.twig""Slivki/offers/details.html.twig"40"931492230")->display($context);
  174.         
  175.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  176.         
  177.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  178.     }
  179.     // line 47
  180.     public function block_mainColumnClass($context, array $blocks = [])
  181.     {
  182.         $macros $this->macros;
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  184.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainColumnClass"));
  185.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  186.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainColumnClass"));
  187.         echo " one-column bg-white";
  188.         
  189.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  190.         
  191.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  192.     }
  193.     // line 48
  194.     public function block_main_content($context, array $blocks = [])
  195.     {
  196.         $macros $this->macros;
  197.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  198.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  199.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  200.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  201.         // line 49
  202.         echo "    ";
  203.         $context["isPickupEnabled"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["offer"] ?? null), "getOnlineOrderSettings", [], "method"falsetruefalse49), "isPickupEnabled", [], "method"truetruefalse49)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'49$this->source); })()), "getOnlineOrderSettings", [], "method"falsefalsefalse49), "isPickupEnabled", [], "method"falsefalsefalse49)) : (""));
  204.         // line 50
  205.         echo "    ";
  206.         $context["isDeliveryEnabled"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["offer"] ?? null), "getOnlineOrderSettings", [], "method"falsetruefalse50), "isDeliveryEnabled", [], "method"truetruefalse50)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'50$this->source); })()), "getOnlineOrderSettings", [], "method"falsefalsefalse50), "isDeliveryEnabled", [], "method"falsefalsefalse50)) : (""));
  207.         // line 51
  208.         echo "    ";
  209.         $context["ratingWithCount"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getEntityRatingWithCount(twig_constant("Slivki\\Entity\\Category::OFFER_CATEGORY_ID"), twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'51$this->source); })()), "getID", [], "method"falsefalsefalse51));
  210.         // line 52
  211.         echo "    ";
  212.         if (((isset($context["isPickupEnabled"]) || array_key_exists("isPickupEnabled"$context) ? $context["isPickupEnabled"] : (function () { throw new RuntimeError('Variable "isPickupEnabled" does not exist.'52$this->source); })()) || (isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled"$context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.'52$this->source); })()))) {
  213.             // line 53
  214.             echo "        <input id=\"deliveryMethodEnabled\" type=\"hidden\" value=\"";
  215.             echo (((=== twig_compare((isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled"$context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.'53$this->source); })()), ""))) ? ("2") : ("1"));
  216.             echo "\">
  217.     ";
  218.         }
  219.         // line 55
  220.         echo "    <input id=\"offerID\" type=\"hidden\" value=\"";
  221.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'55$this->source); })()), "getID", [], "method"falsefalsefalse55), "html"nulltrue);
  222.         echo "\">
  223.     <input type=\"hidden\" id=\"stock-id\" value=\"";
  224.         // line 56
  225.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'56$this->source); })()), "getID", [], "method"falsefalsefalse56), "html"nulltrue);
  226.         echo "\">
  227.     <input type=\"hidden\" id=\"stock-link\" value=\"";
  228.         // line 57
  229.         echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'57$this->source); })()), "request", [], "any"falsefalsefalse57), "getSchemeAndHttpHost", [], "method"falsefalsefalse57) . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'57$this->source); })()), "request", [], "any"falsefalsefalse57), "getRequestUri", [], "method"falsefalsefalse57)), "html"nulltrue);
  230.         echo "\">
  231.     ";
  232.         // line 59
  233.         if ((isset($context["subscribed"]) || array_key_exists("subscribed"$context) ? $context["subscribed"] : (function () { throw new RuntimeError('Variable "subscribed" does not exist.'59$this->source); })())) {
  234.             // line 60
  235.             echo "        <input id=\"allowedCodesCountBySubscription\" type=\"hidden\" value=\"";
  236.             echo twig_escape_filter($this->env, (isset($context["allowedCodesCountBySubscription"]) || array_key_exists("allowedCodesCountBySubscription"$context) ? $context["allowedCodesCountBySubscription"] : (function () { throw new RuntimeError('Variable "allowedCodesCountBySubscription" does not exist.'60$this->source); })()), "html"nulltrue);
  237.             echo "\">
  238.     ";
  239.         }
  240.         // line 62
  241.         echo "    ";
  242.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'62$this->source); })()), "user", [], "any"falsefalsefalse62)) {
  243.             // line 63
  244.             echo "        <input type=\"hidden\" id=\"customerID\" value=\"";
  245.             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.'63$this->source); })()), "user", [], "any"falsefalsefalse63), "getID", [], "method"falsefalsefalse63), "html"nulltrue);
  246.             echo "\"/>
  247.     ";
  248.         }
  249.         // line 65
  250.         echo "    <input type=\"hidden\" id=\"codeCost\" value=\"";
  251.         echo twig_escape_filter($this->env, (isset($context["codeCost"]) || array_key_exists("codeCost"$context) ? $context["codeCost"] : (function () { throw new RuntimeError('Variable "codeCost" does not exist.'65$this->source); })()), "html"nulltrue);
  252.         echo "\">
  253.     <input type=\"hidden\" class=\"buyOrderAmount form-element\" type=\"text\"
  254.            value=\"";
  255.         // line 67
  256.         echo twig_escape_filter($this->env, (isset($context["codeCost"]) || array_key_exists("codeCost"$context) ? $context["codeCost"] : (function () { throw new RuntimeError('Variable "codeCost" does not exist.'67$this->source); })()), "html"nulltrue);
  257.         echo "\"/>
  258.     <div class=\"content-wrapper\">
  259.         <div class=\"content-wrapper-offers\" itemscope itemtype=\"https://schema.org/Product\">
  260.             <div class=\"d-flex pb-2\" style=\"padding: 10px 34px;\">
  261.                 <div class=\"col-6\">
  262.                     ";
  263.         // line 72
  264.         $this->loadTemplate("Slivki/breadcrumbs.html.twig""Slivki/offers/details.html.twig"72)->display(twig_to_array(["parentCategoryList" => (isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList"$context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.'72$this->source); })()), "supplierCategoryData" => twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'72$this->source); })()), "getSupplierCategoryData", [], "method"falsefalsefalse72)]));
  265.         // line 73
  266.         echo "                </div>
  267.             </div>
  268.             <h3 class=\"offers-tittle\" style=\"color: ";
  269.         // line 75
  270.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'75$this->source); })()), "getTitleFontColor", [], "method"falsefalsefalse75), "html"nulltrue);
  271.         echo ";\">";
  272.         echo twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'75$this->source); })()), "getTitle", [], "method"falsefalsefalse75);
  273.         echo "</h3>
  274.             <div class=\"content-offers-top\">
  275.                 <div class=\"left-top-block\">
  276.                     <div class=\"content-wrapper-carousel position-relative\" style=\"margin-bottom: 28px\">
  277.                         <div class=\"stock-image\">
  278.                             <div id=\"carousel-example-generic\" class=\"carousel slide\" data-ride=\"carousel\" data-interval=\"3000\">
  279.                                 <div class=\"background-opacity\"></div>
  280.                                 ";
  281.         // line 82
  282.         if ((=== twig_compare(twig_length_filter($this->env, (isset($context["detailMediaList"]) || array_key_exists("detailMediaList"$context) ? $context["detailMediaList"] : (function () { throw new RuntimeError('Variable "detailMediaList" does not exist.'82$this->source); })())), 1))) {
  283.             // line 83
  284.             echo "                                    <ol class=\"carousel-indicators\">
  285.                                         ";
  286.             // line 84
  287.             $context['_parent'] = $context;
  288.             $context['_seq'] = twig_ensure_traversable((isset($context["detailMediaList"]) || array_key_exists("detailMediaList"$context) ? $context["detailMediaList"] : (function () { throw new RuntimeError('Variable "detailMediaList" does not exist.'84$this->source); })()));
  289.             $context['loop'] = [
  290.               'parent' => $context['_parent'],
  291.               'index0' => 0,
  292.               'index'  => 1,
  293.               'first'  => true,
  294.             ];
  295.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  296.                 $length count($context['_seq']);
  297.                 $context['loop']['revindex0'] = $length 1;
  298.                 $context['loop']['revindex'] = $length;
  299.                 $context['loop']['length'] = $length;
  300.                 $context['loop']['last'] = === $length;
  301.             }
  302.             foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  303.                 // line 85
  304.                 echo "                                            ";
  305.                 $context["active"] = "";
  306.                 // line 86
  307.                 echo "                                            ";
  308.                 if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse86), 0))) {
  309.                     // line 87
  310.                     echo "                                                ";
  311.                     $context["active"] = "active";
  312.                     // line 88
  313.                     echo "                                            ";
  314.                 }
  315.                 // line 89
  316.                 echo "                                            <li data-target=\"#carousel-example-generic\"
  317.                                                 data-slide-to=\"";
  318.                 // line 90
  319.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse90), "html"nulltrue);
  320.                 echo "\" class=\"";
  321.                 echo twig_escape_filter($this->env, (isset($context["active"]) || array_key_exists("active"$context) ? $context["active"] : (function () { throw new RuntimeError('Variable "active" does not exist.'90$this->source); })()), "html"nulltrue);
  322.                 echo "\"></li>
  323.                                         ";
  324.                 ++$context['loop']['index0'];
  325.                 ++$context['loop']['index'];
  326.                 $context['loop']['first'] = false;
  327.                 if (isset($context['loop']['length'])) {
  328.                     --$context['loop']['revindex0'];
  329.                     --$context['loop']['revindex'];
  330.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  331.                 }
  332.             }
  333.             $_parent $context['_parent'];
  334.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  335.             $context array_intersect_key($context$_parent) + $_parent;
  336.             // line 92
  337.             echo "                                    </ol>
  338.                                 ";
  339.         }
  340.         // line 94
  341.         echo "                                <div class=\"carousel-inner\" role=\"listbox\">
  342.                                     ";
  343.         // line 95
  344.         $context['_parent'] = $context;
  345.         $context['_seq'] = twig_ensure_traversable((isset($context["detailMediaList"]) || array_key_exists("detailMediaList"$context) ? $context["detailMediaList"] : (function () { throw new RuntimeError('Variable "detailMediaList" does not exist.'95$this->source); })()));
  346.         $context['loop'] = [
  347.           'parent' => $context['_parent'],
  348.           'index0' => 0,
  349.           'index'  => 1,
  350.           'first'  => true,
  351.         ];
  352.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  353.             $length count($context['_seq']);
  354.             $context['loop']['revindex0'] = $length 1;
  355.             $context['loop']['revindex'] = $length;
  356.             $context['loop']['length'] = $length;
  357.             $context['loop']['last'] = === $length;
  358.         }
  359.         foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  360.             // line 96
  361.             echo "                                        ";
  362.             $context["active"] = "";
  363.             // line 97
  364.             echo "                                        ";
  365.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse97), 0))) {
  366.                 // line 98
  367.                 echo "                                            ";
  368.                 $context["active"] = "active";
  369.                 // line 99
  370.                 echo "                                        ";
  371.             }
  372.             // line 100
  373.             echo "                                        <div class=\"item ";
  374.             echo twig_escape_filter($this->env, (isset($context["active"]) || array_key_exists("active"$context) ? $context["active"] : (function () { throw new RuntimeError('Variable "active" does not exist.'100$this->source); })()), "html"nulltrue);
  375.             echo "\">
  376.                                             <img itemprop=\"image\" class=\"w-100 br-14 lazyload\" loading=\"lazy\"
  377.                                                  src=\"";
  378.             // line 102
  379.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 1180728), "html"nulltrue);
  380.             echo "\"
  381.                                                  alt=\"";
  382.             // line 103
  383.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getDescription", [], "method"falsefalsefalse103), "html"nulltrue);
  384.             echo "\"/>
  385.                                             <div class=\"carousel-caption \">
  386.                                                 ";
  387.             // line 105
  388.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getDescription", [], "method"falsefalsefalse105), "html"nulltrue);
  389.             echo "
  390.                                             </div>
  391.                                         </div>
  392.                                     ";
  393.             ++$context['loop']['index0'];
  394.             ++$context['loop']['index'];
  395.             $context['loop']['first'] = false;
  396.             if (isset($context['loop']['length'])) {
  397.                 --$context['loop']['revindex0'];
  398.                 --$context['loop']['revindex'];
  399.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  400.             }
  401.         }
  402.         $_parent $context['_parent'];
  403.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  404.         $context array_intersect_key($context$_parent) + $_parent;
  405.         // line 109
  406.         echo "                                </div>
  407.                                 ";
  408.         // line 110
  409.         if ((=== twig_compare(twig_length_filter($this->env, (isset($context["detailMediaList"]) || array_key_exists("detailMediaList"$context) ? $context["detailMediaList"] : (function () { throw new RuntimeError('Variable "detailMediaList" does not exist.'110$this->source); })())), 1))) {
  410.             // line 111
  411.             echo "                                    <a class=\"left carousel-control\" href=\"#carousel-example-generic\" role=\"button\"
  412.                                        data-slide=\"prev\">
  413.                                         <div class=\"sr-only\">Назад</div>
  414.                                     </a>
  415.                                     <a class=\"right carousel-control\" href=\"#carousel-example-generic\" role=\"button\"
  416.                                        data-slide=\"next\">
  417.                                         <div class=\"sr-only\">Далее</div>
  418.                                     </a>
  419.                                 ";
  420.         }
  421.         // line 120
  422.         echo "                            </div>
  423.                         </div>
  424.                         <div class=\"discount-block\">
  425.                             ";
  426.         // line 123
  427.         ((twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'123$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse123)) ? (print ("пока без скидки")) : (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'123$this->source); })()), "getDiscount", [], "method"falsefalsefalse123), "html"nulltrue))));
  428.         echo "
  429.                         </div>
  430.                         ";
  431.         // line 125
  432.         if (twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'125$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse125)) {
  433.             // line 126
  434.             echo "                            <div class=\"button-add-follow button-add-follow-teaser fovoutite-block\"
  435.                                  onclick=\"onFavouriteClickOffer(";
  436.             // line 127
  437.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'127$this->source); })()), "getID", [], "method"falsefalsefalse127), "html"nulltrue);
  438.             echo ", ";
  439.             echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite"$context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.'127$this->source); })())) ? ("true") : ("false"));
  440.             echo ")\"
  441.                                  data-html=\"true\"
  442.                                  data-toggle=\"tooltip\"
  443.                                  data-placement=\"top\"
  444.                                  data-original-title=\"Добавить в <br> избранное\"
  445.                             >
  446.                                 <img src=\"";
  447.             // line 133
  448.             echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite"$context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.'133$this->source); })())) ? ("/images/heart_active.svg") : ("/images/offers/follow.svg"));
  449.             echo "\">
  450.                             </div>
  451.                         ";
  452.         }
  453.         // line 136
  454.         echo "                    </div>
  455.                 </div>
  456.                 <div class=\"right-top-block\">
  457.                     <div class=\"offers-description\">
  458.                         ";
  459.         // line 140
  460.         if (((isset($context["pastOffer"]) || array_key_exists("pastOffer"$context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.'140$this->source); })()) || (=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'140$this->source); })()), "getFreeCodesCount", [], "method"falsefalsefalse140), 0)))) {
  461.             // line 141
  462.             echo "                            <div class=\"past-offer mt-5 pt-5\">
  463.                                 <i class=\"slivki-icon-minus-circled\"></i>
  464.                                 <p>Упс, акция завершена!</p>
  465.                                 <a href=\"#offersConditions\" class=\"buttons-link-offers\">
  466.                                     Условия
  467.                                 </a>
  468.                                 <a href=\"#conditionAddress\" class=\"buttons-link-offers\">
  469.                                     Адрес, телефоны
  470.                                 </a>
  471.                                 <a href=\"#offersReview\" class=\"buttons-link-offers\">
  472.                                     Отзывы
  473.                                 </a>
  474.                             </div>
  475.                         ";
  476.         } else {
  477.             // line 156
  478.             echo "                            ";
  479.             if (( !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'156$this->source); })()), "isInFreeCodesCategory", [], "method"falsefalsefalse156) &&  !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'156$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse156))) {
  480.                 // line 157
  481.                 echo "                                <div class=\"d-flex statistic-block ";
  482.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  483.                     echo "justify-content-between";
  484.                 }
  485.                 echo " col px-2 my-0\">
  486.                                     ";
  487.                 // line 158
  488.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  489.                     // line 159
  490.                     echo "                                        <div id=\"statisticsButton\" data-toggle=\"modal\"
  491.                                              data-target=\"#statisticOffersPopup\">
  492.                                             Расширенная статистика →
  493.                                         </div>
  494.                                     ";
  495.                 }
  496.                 // line 164
  497.                 echo "                                    <p class=\"text-dark-violet font-size-0750 text-end w-auto\"
  498.                                        data-toggle=\"tooltip\"
  499.                                        data-html=\"true\" data-placement=\"top\"
  500.                                        data-original-title=\"Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней\">
  501.                                         Конверсия ";
  502.                 // line 168
  503.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getOfferConversion(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'168$this->source); })()), "getID", [], "method"falsefalsefalse168)), "html"nulltrue);
  504.                 echo "%</p>
  505.                                 </div>
  506.                             ";
  507.             }
  508.             // line 171
  509.             echo "                        ";
  510.             if ( !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'171$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse171)) {
  511.                 // line 172
  512.                 echo "                                <div class=\"d-flex offers-description--item\">
  513.                                     <div class=\"col\">
  514.                                         <p class=\"color-dark-gray px-0 mb-0\">Взято всего:</p>
  515.                                     </div>
  516.                                     <div class=\"col font-bold text-end\">
  517.                                         <p> ";
  518.                 // line 177
  519.                 echo twig_escape_filter($this->env, ((array_key_exists("multiplePoolOfferUsedCodesCount"$context)) ? ((isset($context["multiplePoolOfferUsedCodesCount"]) || array_key_exists("multiplePoolOfferUsedCodesCount"$context) ? $context["multiplePoolOfferUsedCodesCount"] : (function () { throw new RuntimeError('Variable "multiplePoolOfferUsedCodesCount" does not exist.'177$this->source); })())) : ((isset($context["usedCodesCount"]) || array_key_exists("usedCodesCount"$context) ? $context["usedCodesCount"] : (function () { throw new RuntimeError('Variable "usedCodesCount" does not exist.'177$this->source); })()))), "html"nulltrue);
  520.                 echo "
  521.                                             ";
  522.                 // line 178
  523.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([=> "промокод"=> "промокода"=> "промокодов"], (isset($context["usedCodesCount"]) || array_key_exists("usedCodesCount"$context) ? $context["usedCodesCount"] : (function () { throw new RuntimeError('Variable "usedCodesCount" does not exist.'178$this->source); })())), "html"nulltrue);
  524.                 echo " из ";
  525.                 echo twig_escape_filter($this->env, (isset($context["allCodesCount"]) || array_key_exists("allCodesCount"$context) ? $context["allCodesCount"] : (function () { throw new RuntimeError('Variable "allCodesCount" does not exist.'178$this->source); })()), "html"nulltrue);
  526.                 echo "</p>
  527.                                     </div>
  528.                                 </div>
  529.                                 <div class=\"d-flex px-2 my-0\">
  530.                                     <div class=\"col\">
  531.                                         <p class=\"color-dark-gray mb-0\">Взято за сутки (за месяц):</p>
  532.                                     </div>
  533.                                     <div class=\"col font-bold text-end pl-2\">
  534.                                         <p>";
  535.                 // line 186
  536.                 echo twig_escape_filter($this->env, (isset($context["todayPurchaseCount"]) || array_key_exists("todayPurchaseCount"$context) ? $context["todayPurchaseCount"] : (function () { throw new RuntimeError('Variable "todayPurchaseCount" does not exist.'186$this->source); })()), "html"nulltrue);
  537.                 echo " ";
  538.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([=> "промокод"=> "промокода"=> "промокодов"], (isset($context["todayPurchaseCount"]) || array_key_exists("todayPurchaseCount"$context) ? $context["todayPurchaseCount"] : (function () { throw new RuntimeError('Variable "todayPurchaseCount" does not exist.'186$this->source); })())), "html"nulltrue);
  539.                 echo " (";
  540.                 (((=== twig_compare($this->extensions['Slivki\Twig\SlivkiTwigExtension']->getOfferMonthlyPurchaseCount(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'186$this->source); })()), "getID", [], "method"falsefalsefalse186), 30), 0))) ? (print (twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getOfferMonthlyPurchaseCount(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'186$this->source); })()), "getID", [], "method"falsefalsefalse186), 30), "html"nulltrue))) : (print (0)));
  541.                 echo ")</p>
  542.                                     </div>
  543.                                 </div>
  544.                         ";
  545.             }
  546.             // line 190
  547.             echo "                                <div class=\"d-flex ";
  548.             echo ((twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'190$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse190)) ? ("pl-2") : ("offers-description--item"));
  549.             echo "\">
  550.                                     <div class=\"col\">
  551.                                         <p class=\"color-dark-gray\">Просмотров:</p>
  552.                                     </div>
  553.                                     <div class=\"col font-bold text-end\">
  554.                                         <p>";
  555.             // line 195
  556.             echo twig_escape_filter($this->env, (isset($context["visitCount"]) || array_key_exists("visitCount"$context) ? $context["visitCount"] : (function () { throw new RuntimeError('Variable "visitCount" does not exist.'195$this->source); })()), "html"nulltrue);
  557.             echo " (";
  558.             echo twig_escape_filter($this->env, (isset($context["todayVisitCount"]) || array_key_exists("todayVisitCount"$context) ? $context["todayVisitCount"] : (function () { throw new RuntimeError('Variable "todayVisitCount" does not exist.'195$this->source); })()), "html"nulltrue);
  559.             echo " за сутки)</p>
  560.                                     </div>
  561.                                 </div>
  562.                         ";
  563.             // line 198
  564.             if ( !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'198$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse198)) {
  565.                 // line 199
  566.                 echo "                                <div class=\"d-flex px-2 my-0\">
  567.                                 <div class=\"col\">
  568.                                     <p class=\"color-dark-gray\">До завершения:&nbsp;</p>
  569.                                 </div>
  570.                                 <div class=\"col text-end\">
  571.                                     ";
  572.                 // line 204
  573.                 if ((=== twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount"$context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.'204$this->source); })()), 0))) {
  574.                     // line 205
  575.                     echo "                                        <input type=\"hidden\" id=\"daysLeft\" value=\"";
  576.                     echo twig_escape_filter($this->env, (isset($context["daysLeft"]) || array_key_exists("daysLeft"$context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.'205$this->source); })()), "html"nulltrue);
  577.                     echo " &nbsp;\"/>
  578.                                         <input type=\"hidden\" id=\"hoursLeft\" value=\"";
  579.                     // line 206
  580.                     echo twig_escape_filter($this->env, (isset($context["hoursLeft"]) || array_key_exists("hoursLeft"$context) ? $context["hoursLeft"] : (function () { throw new RuntimeError('Variable "hoursLeft" does not exist.'206$this->source); })()), "html"nulltrue);
  581.                     echo " &nbsp;\"/>
  582.                                         <input type=\"hidden\" id=\"minutesLeft\" value=\"";
  583.                     // line 207
  584.                     echo twig_escape_filter($this->env, (isset($context["minutesLeft"]) || array_key_exists("minutesLeft"$context) ? $context["minutesLeft"] : (function () { throw new RuntimeError('Variable "minutesLeft" does not exist.'207$this->source); })()), "html"nulltrue);
  585.                     echo " &nbsp;\"/>
  586.                                         <input type=\"hidden\" id=\"secondsLeft\"
  587.                                                value=\"";
  588.                     // line 209
  589.                     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["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'209$this->source); })()), "getActiveTill", [], "method"falsefalsefalse209), "diff", [=> twig_date_converter($this->env)], "method"falsefalsefalse209), "format", [=> "%s"], "method"falsefalsefalse209), "html"nulltrue);
  590.                     echo "\"/>
  591.                                         <span id=\"days\">";
  592.                     // line 210
  593.                     echo twig_escape_filter($this->env, (isset($context["daysLeft"]) || array_key_exists("daysLeft"$context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.'210$this->source); })()), "html"nulltrue);
  594.                     echo "
  595.                                         &nbsp</span>";
  596.                     // line 211
  597.                     echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([=> "день"=> "дня"=> "дней"], (isset($context["daysLeft"]) || array_key_exists("daysLeft"$context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.'211$this->source); })())), "html"nulltrue);
  598.                     echo ",&nbsp;
  599.                                         <span id=\"hours\">";
  600.                     // line 212
  601.                     echo twig_escape_filter($this->env, (isset($context["hoursLeft"]) || array_key_exists("hoursLeft"$context) ? $context["hoursLeft"] : (function () { throw new RuntimeError('Variable "hoursLeft" does not exist.'212$this->source); })()), "html"nulltrue);
  602.                     echo "&nbsp</span>час";
  603.                     echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([=> ""=> "а"=> "ов"], (isset($context["hoursLeft"]) || array_key_exists("hoursLeft"$context) ? $context["hoursLeft"] : (function () { throw new RuntimeError('Variable "hoursLeft" does not exist.'212$this->source); })())), "html"nulltrue);
  604.                     echo "&nbsp;
  605.                                     ";
  606.                 }
  607.                 // line 214
  608.                 echo "                                </div>
  609.                             </div>
  610.                         ";
  611.             }
  612.             // line 217
  613.             echo "                            <div class=\"d-flex offers-description--item js-to-review-block\">
  614.                                 <div class=\"col\">
  615.                                     <p class=\"color-dark-gray\">Отзывов:</p>
  616.                                 </div>
  617.                                 <div class=\"col font-bold text-end\">
  618.                                     <p>";
  619.             // line 222
  620.             echo twig_escape_filter($this->env, (isset($context["commentsAmount"]) || array_key_exists("commentsAmount"$context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.'222$this->source); })()), "html"nulltrue);
  621.             echo " (<r data-html=\"true\"
  622.                                                                 data-toggle=\"tooltip\"
  623.                                                                 data-placement=\"top\"
  624.                                                                 data-original-title=\"Рейтинг компании <br> за 90 дней\">
  625.                                             <span class=\"yellow-span\">★</span>";
  626.             // line 226
  627.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'226$this->source); })()), "getRating", [], "method"falsefalsefalse226), "html"nulltrue);
  628.             echo "</r>)</p>
  629.                                 </div>
  630.                             </div>
  631.                             <div class=\"d-flex offer-price-block\">
  632.                                 <div class=\"col px-2\">
  633.                                     <p class=\"color-dark-gray\">Стоимость:</p>
  634.                                 </div>
  635.                                 <div class=\"col text-end\">
  636.                                     <span id=\"offerRegularPrice\"
  637.                                           class=\"regular-price\">";
  638.             // line 235
  639.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'235$this->source); })()), "getRegularPrice", [], "method"falsefalsefalse235), "html"nulltrue);
  640.             echo "</span>
  641.                                     <span class=\"discount-price\">&nbsp;&nbsp;";
  642.             // line 236
  643.             echo twig_replace_filter(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'236$this->source); })()), "getOfferPrice", [], "method"falsefalsefalse236), ["(" => "<span id=\"details-offer-price\">("")" => ")</span>"]);
  644.             echo "</span>
  645.                                 </div>
  646.                             </div>
  647.                             ";
  648.             // line 239
  649.             if (twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'239$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse239)) {
  650.                 // line 240
  651.                 echo "                                <a href=\"/moya_akciya\" target=\"_blank\">
  652.                                     <img class=\"mt-3\" src=\"/images/without_codes.png\"/>
  653.                                 </a>
  654.                             ";
  655.             }
  656.             // line 244
  657.             echo "                        ";
  658.         }
  659.         // line 245
  660.         echo "                    </div>
  661.                     ";
  662.         // line 246
  663.         if (((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'246$this->source); })()), "getFreeCodesCount", [], "method"falsefalsefalse246), 0)) &&  !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'246$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse246))) {
  664.             // line 247
  665.             echo "                        <div class=\"buttons-wrapper-offers\">
  666.                         ";
  667.             // line 248
  668.             if (array_key_exists("hasDelivery"$context)) {
  669.                 // line 249
  670.                 echo "                            ";
  671.                 if ( !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'249$this->source); })()), "isBuyCodeDisable", [], "method"falsefalsefalse249)) {
  672.                     // line 250
  673.                     echo "                                ";
  674.                     $this->loadTemplate("Slivki/offers/buy_button.html.twig""Slivki/offers/details.html.twig"250)->display($context);
  675.                     // line 251
  676.                     echo "                            ";
  677.                 }
  678.                 // line 252
  679.                 echo "                            ";
  680.                 if (twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'252$this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method"falsefalsefalse252)) {
  681.                     // line 253
  682.                     echo "                                <a id=\"deliveryBtn\" href=\"";
  683.                     echo twig_escape_filter($this->env$this->env->getRuntime('Slivki\Twig\GetLinkOnlineOrderRuntime')->getLinkFoodOnlineOrder((isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'253$this->source); })())), "html"nulltrue);
  684.                     echo "\"
  685.                                    class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  686.                                     Заказать онлайн ";
  687.                     // line 255
  688.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'255$this->source); })()), "getDiscount", [], "method"falsefalsefalse255), "html"nulltrue);
  689.                     echo "
  690.                                 </a>
  691.                             ";
  692.                 }
  693.                 // line 258
  694.                 echo "                            ";
  695.                 if (twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'258$this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method"falsefalsefalse258)) {
  696.                     // line 259
  697.                     echo "                                ";
  698.                     if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'259$this->source); })()), "getID", [], "method"falsefalsefalse259), twig_constant("Slivki\\Entity\\Offer::MINSK_WORLD_CERTIFICATE_OFFER_ID")))) {
  699.                         // line 260
  700.                         echo "                                    <a id=\"deliveryBtn\" href=\"";
  701.                         echo twig_escape_filter($this->env$this->env->getRuntime('Slivki\Twig\GetLinkOnlineOrderRuntime')->getLinkGiftCertificateOnlineOrder((isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'260$this->source); })())), "html"nulltrue);
  702.                         echo "\"
  703.                                        class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  704.                                         Получить скидку ";
  705.                         // line 262
  706.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'262$this->source); })()), "getDiscount", [], "method"falsefalsefalse262), "html"nulltrue);
  707.                         echo "
  708.                                     </a>
  709.                                 ";
  710.                     } elseif (twig_in_filter(twig_get_attribute($this->env$this->source,                     // line 264
  711. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'264$this->source); })()), "getID", [], "method"falsefalsefalse264), twig_constant("Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS"))) {
  712.                         // line 265
  713.                         echo "                                    <a id=\"deliveryBtn2\" href=\"";
  714.                         echo twig_escape_filter($this->env$this->env->getRuntime('Slivki\Twig\GetLinkOnlineOrderRuntime')->getLinkGiftCertificateOnlineOrderByOnlyCode((isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'265$this->source); })())), "html"nulltrue);
  715.                         echo "\"
  716.                                        class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  717.                                         ПОЛУЧИТЬ СКИДКУ ";
  718.                         // line 267
  719.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'267$this->source); })()), "getDiscount", [], "method"falsefalsefalse267), "html"nulltrue);
  720.                         echo "
  721.                                     </a>
  722.                                 ";
  723.                     } elseif ( !twig_get_attribute($this->env$this->source,                     // line 269
  724. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'269$this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method"falsefalsefalse269)) {
  725.                         // line 270
  726.                         echo "                                    <a id=\"deliveryBtn\" href=\"";
  727.                         echo twig_escape_filter($this->env$this->env->getRuntime('Slivki\Twig\GetLinkOnlineOrderRuntime')->getLinkGiftCertificateOnlineOrder((isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'270$this->source); })())), "html"nulltrue);
  728.                         echo "\"
  729.                                        class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  730.                                         Оплатить онлайн ";
  731.                         // line 272
  732.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'272$this->source); })()), "getDiscount", [], "method"falsefalsefalse272), "html"nulltrue);
  733.                         echo "
  734.                                     </a>
  735.                                 ";
  736.                     }
  737.                     // line 275
  738.                     echo "                            ";
  739.                 }
  740.                 // line 276
  741.                 echo "                            ";
  742.                 if (twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'276$this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method"falsefalsefalse276)) {
  743.                     // line 277
  744.                     echo "                                <a id=\"deliveryBtn\" href=\"/online-zapis/";
  745.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'277$this->source); })()), "getID", [], "method"falsefalsefalse277), "html"nulltrue);
  746.                     echo "\"
  747.                                    class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  748.                                     Онлайн-запись
  749.                                 </a>
  750.                             ";
  751.                 }
  752.                 // line 282
  753.                 echo "                        ";
  754.             } elseif ((isset($context["isAllowedByOnlyCode"]) || array_key_exists("isAllowedByOnlyCode"$context) ? $context["isAllowedByOnlyCode"] : (function () { throw new RuntimeError('Variable "isAllowedByOnlyCode" does not exist.'282$this->source); })())) {
  755.                 // line 283
  756.                 echo "                            <div class=\"col\">
  757.                                 ";
  758.                 // line 284
  759.                 $this->loadTemplate("Slivki/offers/buy_button.html.twig""Slivki/offers/details.html.twig"284)->display($context);
  760.                 // line 285
  761.                 echo "                            </div>
  762.                         ";
  763.             }
  764.             // line 287
  765.             echo "                           ";
  766.             if (((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer"$context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.'287$this->source); })()) && (=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'287$this->source); })()), "getFreeCodesCount", [], "method"falsefalsefalse287), 0))) && twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'287$this->source); })()), "isOnlineOrderGiftEnabled", [], "method"falsefalsefalse287)) && twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'287$this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method"falsefalsefalse287))) {
  767.                 // line 288
  768.                 echo "                                <div class=\"col\">
  769.                                     <a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
  770.                                         <div class=\"button-gift-text\">
  771.                                             <p>ЕДА В ПОДАРОК 😋</p>
  772.                                             <p>Подарю сам или подарят мне</p>
  773.                                         </div>
  774.                                         <div class=\"button-gift-item-button\">
  775.                                             <div class=\"new\">NEW</div>
  776.                                         </div>
  777.                                     </a>
  778.                                 </div>
  779.                            ";
  780.             }
  781.             // line 300
  782.             echo "                        ";
  783.             if ((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'300$this->source); })()), "user", [], "method"falsefalsefalse300) &&  !(isset($context["pastOffer"]) || array_key_exists("pastOffer"$context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.'300$this->source); })()))) {
  784.                 // line 301
  785.                 echo "                            <div class=\"button-add-follow fovoutite-block\"
  786.                                  onclick=\"onFavouriteClickOffer(";
  787.                 // line 302
  788.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'302$this->source); })()), "getID", [], "method"falsefalsefalse302), "html"nulltrue);
  789.                 echo ", ";
  790.                 echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite"$context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.'302$this->source); })())) ? ("true") : ("false"));
  791.                 echo ")\"
  792.                                  data-html=\"true\"
  793.                                  data-toggle=\"tooltip\"
  794.                                  data-placement=\"top\"
  795.                                  data-original-title=\"Добавить в <br> избранное\"
  796.                             >
  797.                                 <img src=\"";
  798.                 // line 308
  799.                 echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite"$context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.'308$this->source); })())) ? ("/images/heart_active.svg") : ("/images/offers/follow.svg"));
  800.                 echo "\">
  801.                             </div>
  802.                         ";
  803.             }
  804.             // line 311
  805.             echo "                    </div>
  806.                     ";
  807.         }
  808.         // line 313
  809.         echo "                </div>
  810.             </div>
  811.             <div id=\"conditions_offers\" class=\"d-flex\" style=\"";
  812.         // line 315
  813.         echo (((isset($context["pastOffer"]) || array_key_exists("pastOffer"$context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.'315$this->source); })())) ? ("display: none!important") : (""));
  814.         echo "\">
  815.                 <div class=\"content-wrapper-col-left\">
  816.                     <div id=\"offersConditions\" class=\"offers-conditions active\" style=\"max-height: fit-content;\">
  817.                         <div class=\"offer-titles mb-2 mt-0\"><h2>Условия</h2></div>
  818.                         ";
  819.         // line 319
  820.         $context["isOfferFavourite"] = ((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'319$this->source); })()), "user", [], "any"falsefalsefalse319)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'319$this->source); })()), "user", [], "any"falsefalsefalse319), "isOfferFavourite", [=> (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'319$this->source); })())], "method"falsefalsefalse319)) : (false));
  821.         // line 320
  822.         echo "                        <div id=\"startOfOfferCondition\"></div>
  823.                         ";
  824.         // line 321
  825.         if ((!== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'321$this->source); })()), "getID", [], "method"falsefalsefalse321), 239232))) {
  826.             // line 322
  827.             echo "                        ";
  828.         }
  829.         // line 323
  830.         echo "
  831.                         ";
  832.         // line 324
  833.         if (( !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'324$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse324) && (!== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'324$this->source); })()), "getID", [], "method"falsefalsefalse324), 140553)))) {
  834.             // line 325
  835.             echo "                            <p>
  836.                                 ";
  837.             // line 326
  838.             $context["codeTill"] = twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'326$this->source); })()), "getCodeActiveTill", [], "method"falsefalsefalse326);
  839.             // line 327
  840.             echo "                                ";
  841.             $context["codeFrom"] = twig_date_modify_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'327$this->source); })()), "getActiveTill", [], "method"falsefalsefalse327), "-1 day");
  842.             // line 328
  843.             echo "                                ";
  844.             $context["codeFrom"] = (((=== twig_compare((isset($context["codeFrom"]) || array_key_exists("codeFrom"$context) ? $context["codeFrom"] : (function () { throw new RuntimeError('Variable "codeFrom" does not exist.'328$this->source); })()), (isset($context["codeTill"]) || array_key_exists("codeTill"$context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.'328$this->source); })())))) ? ((isset($context["codeTill"]) || array_key_exists("codeTill"$context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.'328$this->source); })())) : ((isset($context["codeFrom"]) || array_key_exists("codeFrom"$context) ? $context["codeFrom"] : (function () { throw new RuntimeError('Variable "codeFrom" does not exist.'328$this->source); })())));
  845.             // line 329
  846.             echo "                                ";
  847.             if ( !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'329$this->source); })()), "isHideFeatures", [], "method"falsefalsefalse329)) {
  848.                 // line 330
  849.                 echo "                                    - Получить промокод можно до ";
  850.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->env, (isset($context["codeFrom"]) || array_key_exists("codeFrom"$context) ? $context["codeFrom"] : (function () { throw new RuntimeError('Variable "codeFrom" does not exist.'330$this->source); })()), "d.m"), "html"nulltrue);
  851.                 echo ", воспользоваться ";
  852.                 echo (((!== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'330$this->source); })()), "getID", [], "method"falsefalsefalse330), 134390))) ? ("до") : (""));
  853.                 echo " ";
  854.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->env, (isset($context["codeTill"]) || array_key_exists("codeTill"$context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.'330$this->source); })()), "d.m.y"), "html"nulltrue);
  855.                 echo "
  856.                                     <br/>
  857.                                 ";
  858.             }
  859.             // line 333
  860.             echo "                                ";
  861.             if ((twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'333$this->source); })()), "isShowPriceInConditions", [], "method"falsefalsefalse333) &&  !(isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser"$context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.'333$this->source); })()))) {
  862.                 // line 334
  863.                 echo "                                    - Стоимость промокода: ";
  864.                 echo twig_escape_filter($this->env, (isset($context["codeCost"]) || array_key_exists("codeCost"$context) ? $context["codeCost"] : (function () { throw new RuntimeError('Variable "codeCost" does not exist.'334$this->source); })()), "html"nulltrue);
  865.                 echo " руб.
  866.                                 ";
  867.             }
  868.             // line 336
  869.             echo "                            </p>
  870.                         ";
  871.         }
  872.         // line 338
  873.         echo "
  874.                         <div class=\"offer-details-conditions offers-conditions p-0\">
  875.                             ";
  876.         // line 340
  877.         echo twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'340$this->source); })()), "getConditions", [], "method"falsefalsefalse340);
  878.         echo "
  879.                             ";
  880.         // line 342
  881.         echo "                            ";
  882.         if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'342$this->source); })()), "getID", [], "method"falsefalsefalse342), 143528))) {
  883.             // line 343
  884.             echo "                                ";
  885.             $this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer2.html.twig""Slivki/offers/details.html.twig"343)->display($context);
  886.             // line 344
  887.             echo "                            ";
  888.         } elseif ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'344$this->source); })()), "getID", [], "method"falsefalsefalse344), 282234))) {
  889.             // line 345
  890.             echo "                                ";
  891.             $this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer4.html.twig""Slivki/offers/details.html.twig"345)->display($context);
  892.             // line 346
  893.             echo "                            ";
  894.         }
  895.         // line 347
  896.         echo "                            ";
  897.         if ( !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'347$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse347)) {
  898.             // line 348
  899.             echo "                                ";
  900.             $this->loadTemplate((("Slivki" . (isset($context["regional_template_path"]) || array_key_exists("regional_template_path"$context) ? $context["regional_template_path"] : (function () { throw new RuntimeError('Variable "regional_template_path" does not exist.'348$this->source); })())) . "/phrase_subscription_in_offer_page.html.twig"), "Slivki/offers/details.html.twig"348)->display($context);
  901.             // line 349
  902.             echo "                            ";
  903.         }
  904.         // line 350
  905.         echo "                            ";
  906.         if ( !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'350$this->source); })()), "isHideFeatures", [], "method"falsefalsefalse350)) {
  907.             // line 351
  908.             echo "                                </br>
  909.                                 <div class=\"offer-titles mb-2 mt-0\"><h2>Особенности</h2></div>
  910.                                 <div class=\"offer-details-conditions\">
  911.                                     ";
  912.             // line 354
  913.             if ( !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'354$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse354)) {
  914.                 // line 355
  915.                 echo "                                        - Скидка предоставляется только при наличии промокода.
  916.                                     ";
  917.             }
  918.             // line 357
  919.             echo "                                    ";
  920.             echo twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'357$this->source); })()), "getFeatures", [], "method"falsefalsefalse357);
  921.             echo "
  922.                                 </div>
  923.                                 - Поставщик несет полную ответственность перед потребителем за достоверность информации.
  924.                             ";
  925.         }
  926.         // line 361
  927.         echo "                        </div>
  928.                         <div id=\"endOfOfferCondition\"></div>
  929.                         <div class=\"clear\"></div>
  930.                     </div>
  931.                     ";
  932.         // line 365
  933.         if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'365$this->source); })()), "getShopMedias", [], "method"falsefalsefalse365)), 0))) {
  934.             // line 366
  935.             echo "                    <div class=\"offer-titles mb-2 mt-0\"><h2>Галерея</h2></div>
  936.                     ";
  937.         }
  938.         // line 368
  939.         echo "                    <div id=\"offerConditionsSlider\" class=\"my-4 screenshots ";
  940.         echo ((((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'368$this->source); })()), "getShopMedias", [], "method"falsefalsefalse368)), 0)) || (=== twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount"$context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.'368$this->source); })()), 0)))) ? ("empty") : (""));
  941.         echo "\">
  942.                         ";
  943.         // line 369
  944.         if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'369$this->source); })()), "getShopMedias", [], "method"falsefalsefalse369)), 0))) {
  945.             // line 370
  946.             echo "                            <div class=\"screenshot-container\">
  947.                                 ";
  948.             // line 371
  949.             if ((twig_get_attribute($this->env$this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method"truetruefalse371) && (=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["galleryVideos"]) || array_key_exists("galleryVideos"$context) ? $context["galleryVideos"] : (function () { throw new RuntimeError('Variable "galleryVideos" does not exist.'371$this->source); })()), "getVideos", [], "method"falsefalsefalse371)), 0)))) {
  950.                 // line 372
  951.                 echo "                                    <div class=\"screenshot screenshot-story\" data-toggle=\"modal\" data-target=\"#detailsStoryPopup\">
  952.                                         <img src=\"";
  953.                 // line 373
  954.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["galleryVideos"]) || array_key_exists("galleryVideos"$context) ? $context["galleryVideos"] : (function () { throw new RuntimeError('Variable "galleryVideos" does not exist.'373$this->source); })()), "getImageUrl", [], "method"falsefalsefalse373), "html"nulltrue);
  955.                 echo "\" width=\"300\"
  956.                                              alt=\"Видео\" border=\"0\"/>
  957.                                         <div class=\"screenshot-story-btn\"></div>
  958.                                         <div class=\"screenshot-story-tittle\">";
  959.                 // line 376
  960.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["galleryVideos"]) || array_key_exists("galleryVideos"$context) ? $context["galleryVideos"] : (function () { throw new RuntimeError('Variable "galleryVideos" does not exist.'376$this->source); })()), "getTitle", [], "method"falsefalsefalse376), "html"nulltrue);
  961.                 echo "</div>
  962.                                     </div>
  963.                                 ";
  964.             }
  965.             // line 379
  966.             echo "                                ";
  967.             $context['_parent'] = $context;
  968.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'379$this->source); })()), "getShopMedias", [], "method"falsefalsefalse379));
  969.             foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  970.                 // line 380
  971.                 echo "                                    <div class=\"screenshot\">
  972.                                         <a href=\"";
  973.                 // line 381
  974.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 00), "html"nulltrue);
  975.                 echo "\" title=\"";
  976.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getDescription", [], "method"falsefalsefalse381), "html"nulltrue);
  977.                 echo "\"
  978.                                            data-lightbox=\"image\">
  979.                                             <img src=\"";
  980.                 // line 383
  981.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 3000), "html"nulltrue);
  982.                 echo "\" width=\"300\"
  983.                                                  alt=\"";
  984.                 // line 384
  985.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getDescription", [], "method"falsefalsefalse384), "html"nulltrue);
  986.                 echo "\" border=\"0\"/>
  987.                                         </a>
  988.                                     </div>
  989.                                 ";
  990.             }
  991.             $_parent $context['_parent'];
  992.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  993.             $context array_intersect_key($context$_parent) + $_parent;
  994.             // line 388
  995.             echo "                            </div>
  996.                         ";
  997.         }
  998.         // line 390
  999.         echo "                    </div>
  1000.                     <div id=\"examplesOfWorksBlock\" class=\"\">
  1001.                         <div class=\"headerBlockCategory examples d-none bg-white px-0 pb-0 bg-transpanent examples-block-offer-header\">
  1002.                             <div class=\"offer-titles\"><h5 class=\"m-0\">Примеры работ";
  1003.         // line 393
  1004.         echo "</h5></div>
  1005.                             <div class=\"examples-works-tooltip-filter\">
  1006.                                 <div class=\"tooltip-content\">
  1007.                                     <div class=\"tooltip-title border-bottom-f d-flex\">Показать сначала:</div>
  1008.                                     <div class=\"radio\">
  1009.                                         <input id=\"dateFilter\" type=\"radio\" name=\"filter\" checked data-direction=\"DESC\" value=\"workExample.createdAt\">
  1010.                                         <label for=\"dateFilter\" class=\"cursor-pointer\">По дате добавления</label>
  1011.                                     </div>
  1012.                                     <div class=\"radio\">
  1013.                                         <input id=\"locationFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"distance\">
  1014.                                         <label for=\"locationFilter\" class=\"cursor-pointer\">Поблизости</label>
  1015.                                     </div>
  1016.                                     <div class=\"radio\">
  1017.                                         <input id=\"priceUpFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"workExample.price\">
  1018.                                         <label for=\"priceUpFilter\" class=\"cursor-pointer\">По возврастанию цены</label>
  1019.                                     </div>
  1020.                                     <div class=\"radio\">
  1021.                                         <input id=\"priceDownFilter\" type=\"radio\" name=\"filter\" data-direction=\"DESC\" value=\"workExample.price\">
  1022.                                         <label for=\"priceDownFilter\" class=\"cursor-pointer\">По убыванию цены</label>
  1023.                                     </div>
  1024.                                     <div class=\"tooltip-title border-top-f d-flex\">Диапазон цены:</div>
  1025.                                     <div id=\"workExamplePriceRangeInputs\" class=\"price-range-inputs d-flex\">
  1026.                                         <div class=\"price-range-input\"><input type=\"number\" placeholder=\"Цена от\" id=\"priceFrom\" name=\"priceFrom\" min=\"0\" max=\"199\" step=\"1\"></div>
  1027.                                         <div class=\"price-range-input\"><input type=\"number\" placeholder=\"Цена до\" id=\"priceTo\" name=\"priceTo\" min=\"0\" max=\"200\" step=\"1\"></div>
  1028.                                     </div>
  1029.                                     <div id=\"workExampleRangeSlider\" class=\"range-slider\">
  1030.                                         <div class=\"range-labels\">
  1031.                                             <span id=\"workSimplesRangeLableStart\" class=\"range-label range-label-start\"></span>
  1032.                                             <span>-</span>
  1033.                                             <span id=\"workSimplesRangeLableEnd\" class=\"range-label range-label-end\"></span>
  1034.                                         </div>
  1035.                                         <input class=\"work-simples-input\" type=\"range\" name=\"startRange\" id=\"startRange\">
  1036.                                         <input class=\"work-simples-input\" type=\"range\" name=\"finishRange\" id=\"finishRange\">
  1037.                                         <div class=\"track-wrapper\">
  1038.                                             <div class=\"track\"></div>
  1039.                                             <div id=\"workSimplesSliderBetween\" class=\"range-between\"></div>
  1040.                                             <div id=\"workSimplesTumbLeft\"  class=\"thumb left\"></div>
  1041.                                             <div id=\"workSimplesTumbRight\" class=\"thumb right\"></div>
  1042.                                         </div>
  1043.                                     </div>
  1044.                                     <div id=\"buttonFilterBoxExamplesWork\" class=\"buttonFilterBox\">Показать</div>
  1045.                                 </div>
  1046.                                 <div id=\"buttonFilterBoxExamplesWork\" class=\"examples-works-filter\"></div>
  1047.                             </div>
  1048.                         </div>
  1049.                         ";
  1050.         // line 439
  1051.         $this->loadTemplate("Slivki/works-examples/examples_of_works_gallery.html.twig""Slivki/offers/details.html.twig"439)->display($context);
  1052.         // line 440
  1053.         echo "                    </div>
  1054.                     <div id=\"beautyMastersBlock\" class=\"beauty-masters-container beauty-masters-offer desk\">
  1055.                         <div id=\"beautyMastersHeader\" class=\"tittleBlockCategory position-relative offer-titles mb-2 mt-0 d-none\"><h2>Мастера</h2></div>
  1056.                         ";
  1057.         // line 443
  1058.         $this->loadTemplate("Slivki/beauty/beauty_masters.html.twig""Slivki/offers/details.html.twig"443)->display($context);
  1059.         // line 444
  1060.         echo "                    </div>
  1061.                     <div id=\"offersDescription\" class=\"offers-conditions mt-3\">
  1062.                         ";
  1063.         // line 446
  1064.         if (twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'446$this->source); })()), "isShowProductsInOfferDescription", [], "method"falsefalsefalse446)) {
  1065.             // line 447
  1066.             echo "                            <div id=\"foodItemsBlock\">
  1067.                             <div class=\"offer-titles mb-2 mt-0\"><h2>Описание</h2></div>
  1068.                             ";
  1069.             // line 449
  1070.             if (((isset($context["isPickupEnabled"]) || array_key_exists("isPickupEnabled"$context) ? $context["isPickupEnabled"] : (function () { throw new RuntimeError('Variable "isPickupEnabled" does not exist.'449$this->source); })()) && (isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled"$context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.'449$this->source); })()))) {
  1071.                 // line 450
  1072.                 echo "                                <div id=\"fixedFiltersOffer\" class=\"w-auto px-2 d-flex\" style=\"position: relative;background: linear-gradient(180deg, #A839FF 0%, #6747e5 100%), #6747E5;border-radius: 8px;padding: 10px 0;\">
  1073.                                     <div class=\"col d-flex align-items-center text-white justify-content-end px-0\"></div>
  1074.                                     <div class=\"switch-delivery-pickup-block px-0 \">
  1075.                                         <a data-type-delivery=\"1\" class=\"switch-delivery-pickup-item button-tab-delivery delivery-type active\">
  1076.                                             <p class=\"m-0\">Доставка</p>
  1077.                                             <small>удобно👌</small>
  1078.                                         </a>
  1079.                                         <a data-type-delivery=\"2\" class=\"switch-delivery-pickup-item pickup-type button-tab-pickup\">
  1080.                                             <p class=\"m-0\"> Самовывоз</p>
  1081.                                             <small>еще дешевле🔥</small>
  1082.                                         </a>
  1083.                                     </div>
  1084.                                 </div>
  1085.                             ";
  1086.             }
  1087.             // line 464
  1088.             echo "
  1089.                             <div id=\"foodBlock\"></div>
  1090.                             <div id=\"foodOptionsBlock\"></div>
  1091.                         </div>
  1092.                         ";
  1093.         }
  1094.         // line 469
  1095.         echo "                        <div class=\"description\" id=\"descriptionText\">
  1096.                             ";
  1097.         // line 470
  1098.         $context['_parent'] = $context;
  1099.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'470$this->source); })()), "getDescriptionList", [], "method"falsefalsefalse470));
  1100.         foreach ($context['_seq'] as $context["_key"] => $context["offerDescription"]) {
  1101.             // line 471
  1102.             echo "
  1103.                                 ";
  1104.             // line 472
  1105.             $context["offerDescriptionSliderImages"] = twig_get_attribute($this->env$this->source$context["offerDescription"], "getEntityDescriptionSliderImages", [], "method"falsefalsefalse472);
  1106.             // line 473
  1107.             echo "                                ";
  1108.             if ((=== twig_compare(twig_length_filter($this->env, (isset($context["offerDescriptionSliderImages"]) || array_key_exists("offerDescriptionSliderImages"$context) ? $context["offerDescriptionSliderImages"] : (function () { throw new RuntimeError('Variable "offerDescriptionSliderImages" does not exist.'473$this->source); })())), 0))) {
  1109.                 // line 474
  1110.                 echo "                                    <div class=\"sale-description-carousel\">
  1111.                                         <div id=\"saleDescriptionSliderFor";
  1112.                 // line 475
  1113.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["offerDescription"], "getID", [], "method"falsefalsefalse475), "html"nulltrue);
  1114.                 echo "\"
  1115.                                              class=\"sale-description-slider-for\">
  1116.                                             ";
  1117.                 // line 477
  1118.                 $context['_parent'] = $context;
  1119.                 $context['_seq'] = twig_ensure_traversable((isset($context["offerDescriptionSliderImages"]) || array_key_exists("offerDescriptionSliderImages"$context) ? $context["offerDescriptionSliderImages"] : (function () { throw new RuntimeError('Variable "offerDescriptionSliderImages" does not exist.'477$this->source); })()));
  1120.                 foreach ($context['_seq'] as $context["_key"] => $context["offerDescriptionSliderImage"]) {
  1121.                     // line 478
  1122.                     echo "                                                <div><img data-lazy=\"";
  1123.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["offerDescriptionSliderImage"], "getImageUrl", [], "method"falsefalsefalse478), "html"nulltrue);
  1124.                     echo "\"/>
  1125.                                                 </div>
  1126.                                             ";
  1127.                 }
  1128.                 $_parent $context['_parent'];
  1129.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['offerDescriptionSliderImage'], $context['_parent'], $context['loop']);
  1130.                 $context array_intersect_key($context$_parent) + $_parent;
  1131.                 // line 481
  1132.                 echo "                                        </div>
  1133.                                     </div>
  1134.                                 ";
  1135.             }
  1136.             // line 484
  1137.             echo "                                ";
  1138.             echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->addLazyAndLightboxImagesInDescription(twig_get_attribute($this->env$this->source$context["offerDescription"], "getDescription", [], "method"falsefalsefalse484));
  1139.             echo "
  1140.                                 ";
  1141.             // line 486
  1142.             echo "                                ";
  1143.             // line 487
  1144.             echo "                                ";
  1145.             // line 488
  1146.             echo "                                ";
  1147.             // line 489
  1148.             echo "                                ";
  1149.             // line 490
  1150.             echo "                                ";
  1151.             // line 491
  1152.             echo "                            ";
  1153.         }
  1154.         $_parent $context['_parent'];
  1155.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['offerDescription'], $context['_parent'], $context['loop']);
  1156.         $context array_intersect_key($context$_parent) + $_parent;
  1157.         // line 492
  1158.         echo "                        </div>
  1159.                     </div>
  1160.                     <div class=\"tab-pane fade\" id=\"offerLocationTab\">
  1161.                         <i class=\"fa fa-spinner fa-spin\"></i>
  1162.                     </div>
  1163.                     <div id=\"offersReview\" class=\"offers-review\">
  1164.                         ";
  1165.         // line 499
  1166.         echo (isset($context["comments"]) || array_key_exists("comments"$context) ? $context["comments"] : (function () { throw new RuntimeError('Variable "comments" does not exist.'499$this->source); })());
  1167.         echo "
  1168.                     </div>
  1169.                 </div>
  1170.                 <div class=\"content-wrapper-col-right\">
  1171.                     <div id=\"conditionAddress\">
  1172.                         <div class=\"offer-titles mb-2 mt-0\"><h2>Контакты</h2></div>
  1173.                         <div style=\"display:none\">";
  1174.         // line 505
  1175.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'505$this->source); })()), "getAddress", [], "method"falsefalsefalse505), "html"nulltrue);
  1176.         echo "</div>
  1177.                         <div id=\"offerConditionLogo\">
  1178.                             ";
  1179.         // line 507
  1180.         echo twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'507$this->source); })()), "getLogo", [], "method"falsefalsefalse507);
  1181.         echo "
  1182.                         </div>
  1183.                         <div id=\"dataFromLocation\">
  1184.                             <div class=\"move-data\">
  1185.                                 ";
  1186.         // line 511
  1187.         if ((=== twig_compare(twig_length_filter($this->env, (isset($context["geoLocations"]) || array_key_exists("geoLocations"$context) ? $context["geoLocations"] : (function () { throw new RuntimeError('Variable "geoLocations" does not exist.'511$this->source); })())), 0))) {
  1188.             // line 512
  1189.             echo "                                    <div class=\"geo-location-block\" style=\"display: block\">
  1190.                                         ";
  1191.             // line 513
  1192.             $this->loadTemplate("Slivki/offers/geo_location_data.html.twig""Slivki/offers/details.html.twig"513)->display(twig_to_array(["offer" => (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'513$this->source); })())]));
  1193.             // line 514
  1194.             echo "                                        <div id=\"offerGeoLocationData\" data-json=\"";
  1195.             echo twig_escape_filter($this->env, (isset($context["offerGeoLocationData"]) || array_key_exists("offerGeoLocationData"$context) ? $context["offerGeoLocationData"] : (function () { throw new RuntimeError('Variable "offerGeoLocationData" does not exist.'514$this->source); })()), "html"nulltrue);
  1196.             echo "\"></div>
  1197.                                         <div class=\"distance\">
  1198.                                             <i class=\"slivki-icon slivki-icon-direction\"></i> <img class='ajaxLoader'
  1199.                                                                                                    src='/images/ajax-loader-16x16.gif'
  1200.                                                                                                    alt='Загрузка...'/><span></span>
  1201.                                         </div>
  1202.                                         <div class=\"offer-details-map category-map-wrapper category-map\"
  1203.                                              id=\"offerMapCanvas\">
  1204.                                             <div id=\"mapCollapseBtn\" class=\"button button--map-collapse capsuled\"
  1205.                                                  onclick=\"offerMapToggleSize();\">Развернуть
  1206.                                             </div>
  1207.                                             <a id=\"setUserLocationBtn\" href=\"#\" class=\"capsuled\">Указать
  1208.                                                 местоположение</a>
  1209.                                             <div id=\"zoomIn\"></div>
  1210.                                             <div id=\"zoomOut\"></div>
  1211.                                         </div>
  1212.                                     </div>
  1213.                                 ";
  1214.         }
  1215.         // line 532
  1216.         echo "                                <div class=\"before-map\" style=\"clear:both;\"></div>
  1217.                             </div>
  1218.                         </div>
  1219.                         ";
  1220.         // line 535
  1221.         if ((!== twig_compare(twig_replace_filter($this->extensions['Slivki\Twig\SlivkiTwigExtension']->pregReplaceFilter(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'535$this->source); })()), "getLocation", [], "method"falsefalsefalse535), "/<[^>]*>/"""), ["
  1222. => """ " => """&nbsp;" => """ " => ""]), ""))) {
  1223.             // line 536
  1224.             echo "                            ";
  1225.             echo twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'536$this->source); })()), "getLocation", [], "method"falsefalsefalse536);
  1226.             echo "
  1227.                             ";
  1228.             // line 537
  1229.             $context["phoneNumbers"] = twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'537$this->source); })()), "getPhoneNumbers", [], "method"falsefalsefalse537);
  1230.             // line 538
  1231.             echo "                            ";
  1232.             if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["phoneNumbers"]) || array_key_exists("phoneNumbers"$context) ? $context["phoneNumbers"] : (function () { throw new RuntimeError('Variable "phoneNumbers" does not exist.'538$this->source); })()), "count", [], "method"falsefalsefalse538), 0))) {
  1233.                 // line 539
  1234.                 echo "                                <div class=\"text-bold\">Телефон";
  1235.                 echo (((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["phoneNumbers"]) || array_key_exists("phoneNumbers"$context) ? $context["phoneNumbers"] : (function () { throw new RuntimeError('Variable "phoneNumbers" does not exist.'539$this->source); })()), "count", [], "method"falsefalsefalse539), 1))) ? ("ы") : (""));
  1236.                 echo ":</div>
  1237.                             ";
  1238.             }
  1239.             // line 541
  1240.             echo "                            ";
  1241.             $context['_parent'] = $context;
  1242.             $context['_seq'] = twig_ensure_traversable((isset($context["phoneNumbers"]) || array_key_exists("phoneNumbers"$context) ? $context["phoneNumbers"] : (function () { throw new RuntimeError('Variable "phoneNumbers" does not exist.'541$this->source); })()));
  1243.             foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
  1244.                 // line 542
  1245.                 echo "                                ";
  1246.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["phoneNumber"], "getNumber", [], "method"falsefalsefalse542), "html"nulltrue);
  1247.                 echo " ";
  1248.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["phoneNumber"], "getLabel", [], "method"falsefalsefalse542), "html"nulltrue);
  1249.                 echo "<br/>
  1250.                             ";
  1251.             }
  1252.             $_parent $context['_parent'];
  1253.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phoneNumber'], $context['_parent'], $context['loop']);
  1254.             $context array_intersect_key($context$_parent) + $_parent;
  1255.             // line 544
  1256.             echo "                        ";
  1257.         } else {
  1258.             // line 545
  1259.             echo "                            ";
  1260.             $context["geoLocationsCount"] = twig_get_attribute($this->env$this->source, (isset($context["geoLocations"]) || array_key_exists("geoLocations"$context) ? $context["geoLocations"] : (function () { throw new RuntimeError('Variable "geoLocations" does not exist.'545$this->source); })()), "count", [], "method"falsefalsefalse545);
  1261.             // line 546
  1262.             echo "                            ";
  1263.             $context["commonWoringHours"] = twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'546$this->source); })()), "getCommonWorkingHours", [], "method"falsefalsefalse546);
  1264.             // line 547
  1265.             echo "                            ";
  1266.             if ((!== twig_compare((isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours"$context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.'547$this->source); })()), ""))) {
  1267.                 // line 548
  1268.                 echo "                                <br>
  1269.                                 <div class=\"text-bold\">Время работы:</div>
  1270.                                 ";
  1271.                 // line 550
  1272.                 echo (isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours"$context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.'550$this->source); })());
  1273.                 echo "
  1274.                             ";
  1275.             }
  1276.             // line 552
  1277.             echo "                            ";
  1278.             $context['_parent'] = $context;
  1279.             $context['_seq'] = twig_ensure_traversable((isset($context["geoLocations"]) || array_key_exists("geoLocations"$context) ? $context["geoLocations"] : (function () { throw new RuntimeError('Variable "geoLocations" does not exist.'552$this->source); })()));
  1280.             foreach ($context['_seq'] as $context["_key"] => $context["geoLocation"]) {
  1281.                 // line 553
  1282.                 echo "                                ";
  1283.                 $context["margin"] = false;
  1284.                 // line 554
  1285.                 echo "                                <div class=\"offer-details-geolocation-item my-3\">
  1286.                                     <div class=\"font-bold font-size-17\">г. ";
  1287.                 // line 555
  1288.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["geoLocation"], "getCity", [], "method"falsefalsefalse555), "html"nulltrue);
  1289.                 echo ", ";
  1290.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["geoLocation"], "getStreet", [], "method"falsefalsefalse555), "html"nulltrue);
  1291.                 echo ", ";
  1292.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["geoLocation"], "getHouse", [], "method"falsefalsefalse555), "html"nulltrue);
  1293.                 echo "<br>";
  1294.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["geoLocation"], "getLabel", [], "method"falsefalsefalse555), "html"nulltrue);
  1295.                 echo "</div>
  1296.                                     <div class=\"location-more-info ";
  1297.                 // line 556
  1298.                 echo (((=== twig_compare((isset($context["geoLocationsCount"]) || array_key_exists("geoLocationsCount"$context) ? $context["geoLocationsCount"] : (function () { throw new RuntimeError('Variable "geoLocationsCount" does not exist.'556$this->source); })()), 2))) ? ("hidden") : (""));
  1299.                 echo "\">
  1300.                                         ";
  1301.                 // line 557
  1302.                 if ((!== twig_compare(twig_trim_filter(twig_get_attribute($this->env$this->source$context["geoLocation"], "getWorkingHours", [], "method"falsefalsefalse557)), ""))) {
  1303.                     // line 558
  1304.                     echo "                                            ";
  1305.                     $context["margin"] = true;
  1306.                     // line 559
  1307.                     echo "                                            <div class=\"offer-details-work-hours\">Время работы:
  1308.                                             </div> ";
  1309.                     // line 560
  1310.                     echo twig_nl2br(twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["geoLocation"], "getWorkingHours", [], "method"falsefalsefalse560), "html"nulltrue));
  1311.                     echo "
  1312.                                         ";
  1313.                 }
  1314.                 // line 562
  1315.                 echo "                                        ";
  1316.                 $context["phoneNumbers"] = twig_get_attribute($this->env$this->source$context["geoLocation"], "getPhoneNumbers", [], "method"falsefalsefalse562);
  1317.                 // line 563
  1318.                 echo "                                        ";
  1319.                 if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["phoneNumbers"]) || array_key_exists("phoneNumbers"$context) ? $context["phoneNumbers"] : (function () { throw new RuntimeError('Variable "phoneNumbers" does not exist.'563$this->source); })()), "count", [], "method"falsefalsefalse563), 0))) {
  1320.                     // line 564
  1321.                     echo "                                        ";
  1322.                     $context["margin"] = true;
  1323.                     // line 565
  1324.                     echo "                                        <span>
  1325.                                             <div class=\"offer-details-phone-item\">
  1326.                                                 <div class=\"short-phone-item\" style=\"display: inline-block\">
  1327.                                                     ";
  1328.                     // line 568
  1329.                     if ((=== twig_compare(twig_length_filter($this->env, (isset($context["phoneNumbers"]) || array_key_exists("phoneNumbers"$context) ? $context["phoneNumbers"] : (function () { throw new RuntimeError('Variable "phoneNumbers" does not exist.'568$this->source); })())), 0))) {
  1330.                         // line 569
  1331.                         echo "                                                        ";
  1332.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["phoneNumbers"]) || array_key_exists("phoneNumbers"$context) ? $context["phoneNumbers"] : (function () { throw new RuntimeError('Variable "phoneNumbers" does not exist.'569$this->source); })()), 0, [], "array"falsefalsefalse569), "getShortPhoneNumber", [], "method"falsefalsefalse569), "html"nulltrue);
  1333.                         echo "...
  1334.                                                     ";
  1335.                     }
  1336.                     // line 571
  1337.                     echo "                                                </div>
  1338.                                                 <div class=\"full-phone-item\" style=\"display: none\">
  1339.                                                     ";
  1340.                     // line 573
  1341.                     $context['_parent'] = $context;
  1342.                     $context['_seq'] = twig_ensure_traversable((isset($context["phoneNumbers"]) || array_key_exists("phoneNumbers"$context) ? $context["phoneNumbers"] : (function () { throw new RuntimeError('Variable "phoneNumbers" does not exist.'573$this->source); })()));
  1343.                     foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
  1344.                         // line 574
  1345.                         echo "                                                        ";
  1346.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["phoneNumber"], "getNumber", [], "method"falsefalsefalse574), "html"nulltrue);
  1347.                         echo " ";
  1348.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["phoneNumber"], "getLabel", [], "method"falsefalsefalse574), "html"nulltrue);
  1349.                         echo "<br/>
  1350.                                                     ";
  1351.                     }
  1352.                     $_parent $context['_parent'];
  1353.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phoneNumber'], $context['_parent'], $context['loop']);
  1354.                     $context array_intersect_key($context$_parent) + $_parent;
  1355.                     // line 576
  1356.                     echo "                                                </div>
  1357.                                                 <a data-offer-id=\"";
  1358.                     // line 577
  1359.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'577$this->source); })()), "getID", [], "method"falsefalsefalse577), "html"nulltrue);
  1360.                     echo "\"
  1361.                                                    class=\"text-slivki location-more-info-toggle\">Показать номер</a>
  1362.                                             </div>
  1363.                                         ";
  1364.                 }
  1365.                 // line 581
  1366.                 echo "                                            ";
  1367.                 if ((isset($context["margin"]) || array_key_exists("margin"$context) ? $context["margin"] : (function () { throw new RuntimeError('Variable "margin" does not exist.'581$this->source); })())) {
  1368.                     // line 582
  1369.                     echo "                                                <br>
  1370.                                             ";
  1371.                 }
  1372.                 // line 584
  1373.                 echo "                                            </span>
  1374.                                     </div>
  1375.                                     ";
  1376.                 // line 586
  1377.                 if ((=== twig_compare((isset($context["geoLocationsCount"]) || array_key_exists("geoLocationsCount"$context) ? $context["geoLocationsCount"] : (function () { throw new RuntimeError('Variable "geoLocationsCount" does not exist.'586$this->source); })()), 2))) {
  1378.                     // line 587
  1379.                     echo "                                        <a data-id=\"";
  1380.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["geoLocation"], "getID", [], "method"falsefalsefalse587), "html"nulltrue);
  1381.                     echo "\"
  1382.                                            class=\"text-slivki location-more-info-toggle\">Подробнее</a>
  1383.                                     ";
  1384.                 }
  1385.                 // line 590
  1386.                 echo "                                </div>
  1387.                             ";
  1388.             }
  1389.             $_parent $context['_parent'];
  1390.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['geoLocation'], $context['_parent'], $context['loop']);
  1391.             $context array_intersect_key($context$_parent) + $_parent;
  1392.             // line 592
  1393.             echo "                            ";
  1394.             // line 593
  1395.             echo "                            ";
  1396.             // line 594
  1397.             echo "                            ";
  1398.             // line 595
  1399.             echo "                            ";
  1400.             // line 596
  1401.             echo "                            ";
  1402.             // line 597
  1403.             echo "
  1404.                             ";
  1405.             // line 598
  1406.             $context["phoneNumbersWithoutGeoLocations"] = twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'598$this->source); })()), "getPhoneNumbersWithoutGeoLocations", [], "method"falsefalsefalse598);
  1407.             // line 599
  1408.             echo "                            ";
  1409.             if ((=== twig_compare(twig_length_filter($this->env, (isset($context["phoneNumbersWithoutGeoLocations"]) || array_key_exists("phoneNumbersWithoutGeoLocations"$context) ? $context["phoneNumbersWithoutGeoLocations"] : (function () { throw new RuntimeError('Variable "phoneNumbersWithoutGeoLocations" does not exist.'599$this->source); })())), 0))) {
  1410.                 // line 600
  1411.                 echo "                                <div class=\"text-bold\">Телефон";
  1412.                 echo (((=== twig_compare(twig_length_filter($this->env, (isset($context["phoneNumbersWithoutGeoLocations"]) || array_key_exists("phoneNumbersWithoutGeoLocations"$context) ? $context["phoneNumbersWithoutGeoLocations"] : (function () { throw new RuntimeError('Variable "phoneNumbersWithoutGeoLocations" does not exist.'600$this->source); })())), 1))) ? ("ы") : (""));
  1413.                 echo ":
  1414.                                 </div>
  1415.                                 <div class=\"offer-details-phone-item\">
  1416.                                     <div class=\"short-phone-item\" style=\"display: inline-block\">
  1417.                                         ";
  1418.                 // line 604
  1419.                 if ((=== twig_compare(twig_length_filter($this->env, (isset($context["phoneNumbersWithoutGeoLocations"]) || array_key_exists("phoneNumbersWithoutGeoLocations"$context) ? $context["phoneNumbersWithoutGeoLocations"] : (function () { throw new RuntimeError('Variable "phoneNumbersWithoutGeoLocations" does not exist.'604$this->source); })())), 0))) {
  1420.                     // line 605
  1421.                     echo "                                            ";
  1422.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["phoneNumbersWithoutGeoLocations"]) || array_key_exists("phoneNumbersWithoutGeoLocations"$context) ? $context["phoneNumbersWithoutGeoLocations"] : (function () { throw new RuntimeError('Variable "phoneNumbersWithoutGeoLocations" does not exist.'605$this->source); })()), 0, [], "array"falsefalsefalse605), "getShortPhoneNumber", [], "method"falsefalsefalse605), "html"nulltrue);
  1423.                     echo "...
  1424.                                         ";
  1425.                 }
  1426.                 // line 607
  1427.                 echo "                                    </div>
  1428.                                     <div class=\"full-phone-item\" style=\"display: none\">
  1429.                                         ";
  1430.                 // line 609
  1431.                 $context['_parent'] = $context;
  1432.                 $context['_seq'] = twig_ensure_traversable((isset($context["phoneNumbersWithoutGeoLocations"]) || array_key_exists("phoneNumbersWithoutGeoLocations"$context) ? $context["phoneNumbersWithoutGeoLocations"] : (function () { throw new RuntimeError('Variable "phoneNumbersWithoutGeoLocations" does not exist.'609$this->source); })()));
  1433.                 foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
  1434.                     // line 610
  1435.                     echo "                                            ";
  1436.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["phoneNumber"], "getNumber", [], "method"falsefalsefalse610), "html"nulltrue);
  1437.                     echo " ";
  1438.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["phoneNumber"], "getLabel", [], "method"falsefalsefalse610), "html"nulltrue);
  1439.                     echo "<br/>
  1440.                                         ";
  1441.                 }
  1442.                 $_parent $context['_parent'];
  1443.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phoneNumber'], $context['_parent'], $context['loop']);
  1444.                 $context array_intersect_key($context$_parent) + $_parent;
  1445.                 // line 612
  1446.                 echo "                                    </div>
  1447.                                     <a data-offer-id=\"";
  1448.                 // line 613
  1449.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'613$this->source); })()), "getID", [], "method"falsefalsefalse613), "html"nulltrue);
  1450.                 echo "\"
  1451.                                        class=\"text-slivki location-more-info-toggle\">Показать номер</a>
  1452.                                 </div>
  1453.                             ";
  1454.             }
  1455.             // line 617
  1456.             echo "
  1457.                         ";
  1458.         }
  1459.         // line 619
  1460.         echo "                        <div class=\"offer-details-legal-info\">";
  1461.         echo twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'619$this->source); })()), "getLegal", [], "method"falsefalsefalse619);
  1462.         echo "</div>
  1463.                         ";
  1464.         // line 620
  1465.         if (((!== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'620$this->source); })()), "getTelegram", [], "method"falsefalsefalse620), null)) || (!== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'620$this->source); })()), "getViber", [], "method"falsefalsefalse620), null)))) {
  1466.             // line 621
  1467.             echo "                            <div class=\"contact-container d-flex py-2 px-1\">
  1468.                                 ";
  1469.             // line 622
  1470.             if ((!== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'622$this->source); })()), "getTelegram", [], "method"falsefalsefalse622), null))) {
  1471.                 // line 623
  1472.                 echo "                                    <a href=\"https://t.me/";
  1473.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'623$this->source); })()), "getTelegram", [], "method"falsefalsefalse623), "html"nulltrue);
  1474.                 echo "\" target=\"_blank\">
  1475.                                         <img alt=\"Telegram\" src=\"/images/telegram-icon-stretch.png\"/>
  1476.                                         <p>Написать в Telegram</p>
  1477.                                     </a>
  1478.                                 ";
  1479.             }
  1480.             // line 628
  1481.             echo "                                ";
  1482.             if ((!== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'628$this->source); })()), "getViber", [], "method"falsefalsefalse628), null))) {
  1483.                 // line 629
  1484.                 echo "                                    <a href=\"viber://chat?number=";
  1485.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'629$this->source); })()), "getViber", [], "method"falsefalsefalse629), "html"nulltrue);
  1486.                 echo "\" target=\"_blank\">
  1487.                                         <img alt=\"Viber\" src=\"/images/viber-icon-stretch.png\"/>
  1488.                                         <p>Написать в Viber</p>
  1489.                                     </a>
  1490.                                 ";
  1491.             }
  1492.             // line 634
  1493.             echo "                            </div>
  1494.                         ";
  1495.         }
  1496.         // line 636
  1497.         echo "                    </div>
  1498.                     ";
  1499.         // line 637
  1500.         $this->loadTemplate("Slivki/offers/share.html.twig""Slivki/offers/details.html.twig"637)->display($context);
  1501.         // line 638
  1502.         echo "                    ";
  1503.         $this->loadTemplate((("Slivki" . (isset($context["regional_template_path"]) || array_key_exists("regional_template_path"$context) ? $context["regional_template_path"] : (function () { throw new RuntimeError('Variable "regional_template_path" does not exist.'638$this->source); })())) . "/jivosite/button_offers_page.html.twig"), "Slivki/offers/details.html.twig"638)->display($context);
  1504.         // line 639
  1505.         echo "                    <p class=\"tittle-messenger-offers d-none\">Мы всегда рады помочь: служба поддержки Slivki.by ответит на
  1506.                         любой
  1507.                         ваш вопрос</p>
  1508.                 </div>
  1509.             </div>
  1510.         </div>
  1511.         ";
  1512.         // line 646
  1513.         if ((((isset($context["pastOffer"]) || array_key_exists("pastOffer"$context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.'646$this->source); })()) || (=== twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount"$context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.'646$this->source); })()), 0))) && array_key_exists("relatedOfferListHtml"$context))) {
  1514.             // line 647
  1515.             echo "            <div class=\"col px-3\">
  1516.                 <div class=\"related-offers-title\">Другие похожие предложения:</div>
  1517.                 <div class=\"related-offers-list stock-group-list\">
  1518.                     ";
  1519.             // line 650
  1520.             echo (isset($context["relatedOfferListHtml"]) || array_key_exists("relatedOfferListHtml"$context) ? $context["relatedOfferListHtml"] : (function () { throw new RuntimeError('Variable "relatedOfferListHtml" does not exist.'650$this->source); })());
  1521.             echo "
  1522.                 </div>
  1523.             </div>
  1524.         ";
  1525.         }
  1526.         // line 654
  1527.         echo "    </div>
  1528.     ";
  1529.         // line 655
  1530.         if (array_key_exists("lastPurchaseText"$context)) {
  1531.             // line 656
  1532.             echo "        <div id=\"lastPurchaseNofify\"><a href=\"#\"><i class=\"slivki-icon-close-thin\"></i></a>Последний раз промокод<br>получен ";
  1533.             echo twig_escape_filter($this->env, (isset($context["lastPurchaseText"]) || array_key_exists("lastPurchaseText"$context) ? $context["lastPurchaseText"] : (function () { throw new RuntimeError('Variable "lastPurchaseText" does not exist.'656$this->source); })()), "html"nulltrue);
  1534.             echo "
  1535.         </div>
  1536.     ";
  1537.         }
  1538.         
  1539.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1540.         
  1541.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1542.     }
  1543.     // line 661
  1544.     public function block_popups($context, array $blocks = [])
  1545.     {
  1546.         $macros $this->macros;
  1547.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1548.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popups"));
  1549.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1550.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popups"));
  1551.         // line 662
  1552.         echo "    ";
  1553.         $this->displayParentBlock("popups"$context$blocks);
  1554.         echo "
  1555.     ";
  1556.         // line 663
  1557.         if ( !(isset($context["pastOffer"]) || array_key_exists("pastOffer"$context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.'663$this->source); })())) {
  1558.             // line 664
  1559.             echo "        ";
  1560.             $this->loadTemplate("Slivki/popups/header_offers.html.twig""Slivki/offers/details.html.twig"664)->display($context);
  1561.             // line 665
  1562.             echo "    ";
  1563.         }
  1564.         // line 666
  1565.         echo "    ";
  1566.         $this->loadTemplate("Slivki/share_block.html.twig""Slivki/offers/details.html.twig"666)->display($context);
  1567.         // line 667
  1568.         echo "    ";
  1569.         $this->loadTemplate("Slivki/orderAsGift/foodForGift.html.twig""Slivki/offers/details.html.twig"667)->display($context);
  1570.         // line 668
  1571.         echo "    ";
  1572.         if ((twig_get_attribute($this->env$this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method"truetruefalse668) && (=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["galleryVideos"]) || array_key_exists("galleryVideos"$context) ? $context["galleryVideos"] : (function () { throw new RuntimeError('Variable "galleryVideos" does not exist.'668$this->source); })()), "getVideos", [], "method"falsefalsefalse668)), 0)))) {
  1573.             // line 669
  1574.             echo "        ";
  1575.             $this->loadTemplate("Slivki/popups/details-story-popup.html.twig""Slivki/offers/details.html.twig"669)->display($context);
  1576.             // line 670
  1577.             echo "    ";
  1578.         }
  1579.         // line 671
  1580.         echo "    ";
  1581.         $this->loadTemplate("Slivki/popups/comment_media_block_popup.html.twig""Slivki/offers/details.html.twig"671)->display($context);
  1582.         // line 672
  1583.         echo "    ";
  1584.         $this->loadTemplate("Slivki/popups/statistics_popup.html.twig""Slivki/offers/details.html.twig"672)->display($context);
  1585.         // line 673
  1586.         echo "    ";
  1587.         $this->loadTemplate("Slivki/mobile/popup/buy_codes_avways_app.html.twig""Slivki/offers/details.html.twig"673)->display($context);
  1588.         // line 674
  1589.         echo "    ";
  1590.         $this->loadTemplate("Slivki/delivery/modal/details.html.twig""Slivki/offers/details.html.twig"674)->display(twig_array_merge($context, ["isOfferPage" => true]));
  1591.         // line 675
  1592.         echo "    ";
  1593.         if (twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'675$this->source); })()), "isGiftCertificateOffer", [], "method"falsefalsefalse675)) {
  1594.             // line 676
  1595.             echo "        ";
  1596.             $this->loadTemplate("Slivki/popups/step_buy_certificate.twig""Slivki/offers/details.html.twig"676)->display(twig_array_merge($context, ["deliveryLink" => (isset($context["deliveryLink"]) || array_key_exists("deliveryLink"$context) ? $context["deliveryLink"] : (function () { throw new RuntimeError('Variable "deliveryLink" does not exist.'676$this->source); })())]));
  1597.             // line 677
  1598.             echo "    ";
  1599.         }
  1600.         // line 678
  1601.         echo "    ";
  1602.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'678$this->source); })()), "user", [], "any"falsefalsefalse678)) {
  1603.             // line 679
  1604.             echo "        ";
  1605.             $this->loadTemplate("Slivki/popups/mail_offers.html.twig""Slivki/offers/details.html.twig"679)->display($context);
  1606.             // line 680
  1607.             echo "        ";
  1608.             $this->loadTemplate("Slivki/popups/rating_edit_popup.html.twig""Slivki/offers/details.html.twig"680)->display($context);
  1609.             // line 681
  1610.             echo "        ";
  1611.             $this->loadTemplate("Slivki/popups/popup_subscription_limited.html.twig""Slivki/offers/details.html.twig"681)->display($context);
  1612.             // line 682
  1613.             echo "        ";
  1614.             if (( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice() || (isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser"$context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.'682$this->source); })()))) {
  1615.                 // line 683
  1616.                 echo "            ";
  1617.                 if (( !array_key_exists("codeCostInCurrency"$context) &&  !(null === (isset($context["codeCostInCurrency"]) || array_key_exists("codeCostInCurrency"$context) ? $context["codeCostInCurrency"] : (function () { throw new RuntimeError('Variable "codeCostInCurrency" does not exist.'683$this->source); })())))) {
  1618.                     // line 684
  1619.                     echo "                ";
  1620.                     $context["codeCostInCurrency"] = null;
  1621.                     // line 685
  1622.                     echo "            ";
  1623.                 }
  1624.                 // line 686
  1625.                 echo "            ";
  1626.                 $this->loadTemplate("Slivki/popups/confirm_box.html.twig""Slivki/offers/details.html.twig"686)->display(twig_array_merge($context, ["codeCost" => (isset($context["codeCost"]) || array_key_exists("codeCost"$context) ? $context["codeCost"] : (function () { throw new RuntimeError('Variable "codeCost" does not exist.'686$this->source); })()), "offerID" => twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'686$this->source); })()), "getID", [], "method"falsefalsefalse686), "codeCostInCurrency" => (isset($context["codeCostInCurrency"]) || array_key_exists("codeCostInCurrency"$context) ? $context["codeCostInCurrency"] : (function () { throw new RuntimeError('Variable "codeCostInCurrency" does not exist.'686$this->source); })())]));
  1627.                 // line 687
  1628.                 echo "            ";
  1629.                 $this->loadTemplate("Slivki/popups/confirm_subscription_card_popup.html.twig""Slivki/offers/details.html.twig"687)->display(twig_array_merge($context, ["creditCards" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'687$this->source); })()), "user", [], "any"falsefalsefalse687), "getActiveCreditCards", [], "method"falsefalsefalse687)]));
  1630.                 // line 688
  1631.                 echo "        ";
  1632.             }
  1633.             // line 689
  1634.             echo "
  1635.         ";
  1636.             // line 690
  1637.             if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
  1638.                 // line 691
  1639.                 echo "            ";
  1640.                 $this->loadTemplate("Slivki/popups/add_comment_popup.html.twig""Slivki/offers/details.html.twig"691)->display(twig_array_merge($context, ["id" => "addVoteBox"]));
  1641.                 // line 692
  1642.                 echo "            ";
  1643.                 $this->loadTemplate("Slivki/popups/edit_comment_popup.html.twig""Slivki/offers/details.html.twig"692)->display(twig_array_merge($context, ["id" => "editVoteBox"]));
  1644.                 // line 693
  1645.                 echo "            ";
  1646.                 $this->loadTemplate("Slivki/popups/comment_censor_message.html.twig""Slivki/offers/details.html.twig"693)->display(twig_array_merge($context, ["id" => "commentCensorMessage"]));
  1647.                 // line 694
  1648.                 echo "        ";
  1649.             }
  1650.             // line 695
  1651.             echo "    ";
  1652.         } else {
  1653.             // line 696
  1654.             echo "        ";
  1655.             if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
  1656.                 // line 697
  1657.                 echo "            ";
  1658.                 $this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig""Slivki/offers/details.html.twig"697)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
  1659.                 // line 698
  1660.                 echo "        ";
  1661.             }
  1662.             // line 699
  1663.             echo "    ";
  1664.         }
  1665.         
  1666.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1667.         
  1668.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1669.     }
  1670.     // line 702
  1671.     public function block_javascripts($context, array $blocks = [])
  1672.     {
  1673.         $macros $this->macros;
  1674.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1675.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  1676.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1677.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  1678.         // line 703
  1679.         echo "    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js\"
  1680.             integrity=\"sha512-jNDtFf7qgU0eH/+Z42FG4fw3w7DM/9zbgNPe3wfJlCylVDTT3IgKW5r92Vy9IHa6U50vyMz5gRByIu4YIXFtaQ==\"
  1681.             crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  1682.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
  1683.     <script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>
  1684.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js\"></script>
  1685.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/locale/ru.min.js\" integrity=\"sha512-QezkC2mljFGA2zQBPe+FrNA7i2RVFaYOfdQHk6icEap1TZX/Q6MNx+0AOTr9msSec0LsMrpURxfgJSbodYoiLg==\" crossorigin=\"anonymous\"></script>
  1686.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/fecha/2.3.3/fecha.min.js\"></script>
  1687.     <script src=\"/js/hotel-datepicker-3.6.5/hotel-datepicker.min.js\"></script>
  1688.     <script src=\"/js/swiper-js/swiper.min.js\"></script>
  1689.     <script src=\"/js/story-slider/story-slider-js.js?v=";
  1690.         // line 713
  1691.         echo twig_escape_filter($this->env, (isset($context["story_slider_js_version"]) || array_key_exists("story_slider_js_version"$context) ? $context["story_slider_js_version"] : (function () { throw new RuntimeError('Variable "story_slider_js_version" does not exist.'713$this->source); })()), "html"nulltrue);
  1692.         echo "\"></script>
  1693.     ";
  1694.         // line 714
  1695.         $this->displayParentBlock("javascripts"$context$blocks);
  1696.         echo "
  1697.     <script src=\"/js/offer.js?v=";
  1698.         // line 715
  1699.         echo twig_escape_filter($this->env, (isset($context["offer_js_version"]) || array_key_exists("offer_js_version"$context) ? $context["offer_js_version"] : (function () { throw new RuntimeError('Variable "offer_js_version" does not exist.'715$this->source); })()), "html"nulltrue);
  1700.         echo "\"></script>
  1701.     <script src=\"/js/offer/offerDescriptionItems.js?v=";
  1702.         // line 716
  1703.         echo twig_escape_filter($this->env, (isset($context["offer_description_items_js_version"]) || array_key_exists("offer_description_items_js_version"$context) ? $context["offer_description_items_js_version"] : (function () { throw new RuntimeError('Variable "offer_description_items_js_version" does not exist.'716$this->source); })()), "html"nulltrue);
  1704.         echo "\"></script>
  1705.     <script src=\"/js/common-old.js?v=";
  1706.         // line 717
  1707.         echo twig_escape_filter($this->env, (isset($context["common_old_js_version"]) || array_key_exists("common_old_js_version"$context) ? $context["common_old_js_version"] : (function () { throw new RuntimeError('Variable "common_old_js_version" does not exist.'717$this->source); })()), "html"nulltrue);
  1708.         echo "\"></script>
  1709.     <script type=\"text/javascript\">
  1710.         ";
  1711.         // line 719
  1712.         if ((array_key_exists("preview"$context) && (isset($context["preview"]) || array_key_exists("preview"$context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.'719$this->source); })()))) {
  1713.             // line 720
  1714.             echo "        var offerPreview = 1;
  1715.         ";
  1716.         } else {
  1717.             // line 722
  1718.             echo "        var offerPreview = 0;
  1719.         ";
  1720.         }
  1721.         // line 724
  1722.         echo "        ";
  1723.         if (twig_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.'724$this->source); })()), "request", [], "any"falsefalsefalse724), "query", [], "any"falsefalsefalse724), "has", [=> "checkOrder"], "method"falsefalsefalse724)) {
  1724.             // line 725
  1725.             echo "        initCheckOfferOrderStatus(";
  1726.             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.'725$this->source); })()), "request", [], "any"falsefalsefalse725), "get", [=> "checkOrder"], "method"falsefalsefalse725), "html"nulltrue);
  1727.             echo ");
  1728.         ";
  1729.         }
  1730.         // line 727
  1731.         echo "    </script>
  1732.     <script src=\"/js/offer-new.js?v=";
  1733.         // line 728
  1734.         echo twig_escape_filter($this->env, (isset($context["offer_new_js_version"]) || array_key_exists("offer_new_js_version"$context) ? $context["offer_new_js_version"] : (function () { throw new RuntimeError('Variable "offer_new_js_version" does not exist.'728$this->source); })()), "html"nulltrue);
  1735.         echo "\"/>
  1736. ";
  1737.         
  1738.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1739.         
  1740.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1741.     }
  1742.     // line 730
  1743.     public function block_assetsBottom($context, array $blocks = [])
  1744.     {
  1745.         $macros $this->macros;
  1746.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1747.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""assetsBottom"));
  1748.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1749.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""assetsBottom"));
  1750.         // line 731
  1751.         echo "    ";
  1752.         $this->displayParentBlock("assetsBottom"$context$blocks);
  1753.         echo "
  1754.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js\" integrity=\"sha512-Y+0b10RbVUTf3Mi0EgJue0FoheNzentTMMIE2OreNbqnUPNbQj8zmjK3fs5D2WhQeGWIem2G2UkKjAL/bJ/UXQ==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  1755.     <script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script>
  1756.     <script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
  1757.     <script async src=\"//embedr.flickr.com/assets/client-code.js\" charset=\"utf-8\"></script>
  1758.     <script type=\"text/javascript\" src=\"/js/statistics_offer/statistics_offer.js?v=";
  1759.         // line 737
  1760.         echo twig_escape_filter($this->env, (isset($context["statistics_offer_js_version"]) || array_key_exists("statistics_offer_js_version"$context) ? $context["statistics_offer_js_version"] : (function () { throw new RuntimeError('Variable "statistics_offer_js_version" does not exist.'737$this->source); })()), "html"nulltrue);
  1761.         echo "\" charset=\"utf-8\"></script>
  1762.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/jquery.easypiechart.min.js\" integrity=\"sha512-DHNepbIus9t4e6YoMBSJLwl+nnm0tIwMBonsQQ+W9NKN6gVVVbomJs9Ii3mQ+HzGZiU5FyJLdnAz9a63ZgZvTQ==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  1763.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/easypiechart.min.js\" integrity=\"sha512-1yldf7W5suy0ko2u4OGU1qyeGrzh9+A3uyWGH4ws8MbndaWxZsgnzy6uqqBq7NUU/ImI1Js5kqDbunovCN1JqA==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  1764.     <script src=\"https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js\"></script>
  1765.     <script type=\"module\" src=\"/js/work_examples/work_examples.js?v=";
  1766.         // line 741
  1767.         echo twig_escape_filter($this->env, (isset($context["work_examples_js_version"]) || array_key_exists("work_examples_js_version"$context) ? $context["work_examples_js_version"] : (function () { throw new RuntimeError('Variable "work_examples_js_version" does not exist.'741$this->source); })()), "html"nulltrue);
  1768.         echo "\"></script>
  1769.     <script type=\"module\" src=\"/js/beauty/masters.js?v=";
  1770.         // line 742
  1771.         echo twig_escape_filter($this->env, (isset($context["beauty_masters_js_version"]) || array_key_exists("beauty_masters_js_version"$context) ? $context["beauty_masters_js_version"] : (function () { throw new RuntimeError('Variable "beauty_masters_js_version" does not exist.'742$this->source); })()), "html"nulltrue);
  1772.         echo "\"></script>
  1773. ";
  1774.         
  1775.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1776.         
  1777.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1778.     }
  1779.     // line 745
  1780.     public function block_RTBHouse($context, array $blocks = [])
  1781.     {
  1782.         $macros $this->macros;
  1783.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1784.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  1785.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1786.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  1787.         // line 746
  1788.         echo "    <script>
  1789.         try {
  1790.             (function () {
  1791.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = [];
  1792.                 rtbhTags.push(\"pr_\" + hash + \"_offer_\" + document.getElementById('offerID').value);
  1793.                 rtbhTags.push(\"pr_\" + hash + \"_uid_\" + document.getElementById('rtbhUID').value);
  1794.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key);
  1795.                 if (!lid) {
  1796.                     lid = \"\";
  1797.                     var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  1798.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length));
  1799.                     window.localStorage.setItem(key, lid);
  1800.                 }
  1801.                 rtbhTags.push(\"pr_\" + hash + \"_lid_\" + lid);
  1802.                 var ifr = document.createElement(\"iframe\"),
  1803.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  1804.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  1805.                     ifrSrc = \"https://\" + prefix + \"creativecdn.com/tags?type=iframe\",
  1806.                     tmstmp = encodeURIComponent(\"\" + Date.now());
  1807.                 for (var i = 0; i < rtbhTags.length; i++) {
  1808.                     ifrSrc += \"&id=\" + encodeURIComponent(rtbhTags[i]);
  1809.                 }
  1810.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  1811.                 ifr.setAttribute(\"src\", ifrSrc);
  1812.                 ifr.setAttribute(\"width\", \"1\");
  1813.                 ifr.setAttribute(\"height\", \"1\");
  1814.                 ifr.setAttribute(\"scrolling\", \"no\");
  1815.                 ifr.setAttribute(\"frameBorder\", \"0\");
  1816.                 ifr.setAttribute(\"style\", \"display:none\");
  1817.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\");
  1818.                 if (document.body) {
  1819.                     document.body.appendChild(ifr);
  1820.                 } else {
  1821.                     window.addEventListener('DOMContentLoaded', function () {
  1822.                         document.body.appendChild(ifr);
  1823.                     });
  1824.                 }
  1825.             })();
  1826.         } catch (e) {
  1827.         } </script>
  1828. ";
  1829.         
  1830.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1831.         
  1832.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1833.     }
  1834.     public function getTemplateName()
  1835.     {
  1836.         return "Slivki/offers/details.html.twig";
  1837.     }
  1838.     public function isTraitable()
  1839.     {
  1840.         return false;
  1841.     }
  1842.     public function getDebugInfo()
  1843.     {
  1844.         return array (  1858 => 746,  1848 => 745,  1836 => 742,  1832 => 741,  1825 => 737,  1815 => 731,  1805 => 730,  1793 => 728,  1790 => 727,  1784 => 725,  1781 => 724,  1777 => 722,  1773 => 720,  1771 => 719,  1766 => 717,  1762 => 716,  1758 => 715,  1754 => 714,  1750 => 713,  1738 => 703,  1728 => 702,  1717 => 699,  1714 => 698,  1711 => 697,  1708 => 696,  1705 => 695,  1702 => 694,  1699 => 693,  1696 => 692,  1693 => 691,  1691 => 690,  1688 => 689,  1685 => 688,  1682 => 687,  1679 => 686,  1676 => 685,  1673 => 684,  1670 => 683,  1667 => 682,  1664 => 681,  1661 => 680,  1658 => 679,  1655 => 678,  1652 => 677,  1649 => 676,  1646 => 675,  1643 => 674,  1640 => 673,  1637 => 672,  1634 => 671,  1631 => 670,  1628 => 669,  1625 => 668,  1622 => 667,  1619 => 666,  1616 => 665,  1613 => 664,  1611 => 663,  1606 => 662,  1596 => 661,  1581 => 656,  1579 => 655,  1576 => 654,  1569 => 650,  1564 => 647,  1562 => 646,  1553 => 639,  1550 => 638,  1548 => 637,  1545 => 636,  1541 => 634,  1532 => 629,  1529 => 628,  1520 => 623,  1518 => 622,  1515 => 621,  1513 => 620,  1508 => 619,  1504 => 617,  1497 => 613,  1494 => 612,  1483 => 610,  1479 => 609,  1475 => 607,  1469 => 605,  1467 => 604,  1459 => 600,  1456 => 599,  1454 => 598,  1451 => 597,  1449 => 596,  1447 => 595,  1445 => 594,  1443 => 593,  1441 => 592,  1434 => 590,  1427 => 587,  1425 => 586,  1421 => 584,  1417 => 582,  1414 => 581,  1407 => 577,  1404 => 576,  1393 => 574,  1389 => 573,  1385 => 571,  1379 => 569,  1377 => 568,  1372 => 565,  1369 => 564,  1366 => 563,  1363 => 562,  1358 => 560,  1355 => 559,  1352 => 558,  1350 => 557,  1346 => 556,  1336 => 555,  1333 => 554,  1330 => 553,  1325 => 552,  1320 => 550,  1316 => 548,  1313 => 547,  1310 => 546,  1307 => 545,  1304 => 544,  1293 => 542,  1288 => 541,  1282 => 539,  1279 => 538,  1277 => 537,  1272 => 536,  1269 => 535,  1264 => 532,  1242 => 514,  1240 => 513,  1237 => 512,  1235 => 511,  1228 => 507,  1223 => 505,  1214 => 499,  1205 => 492,  1199 => 491,  1197 => 490,  1195 => 489,  1193 => 488,  1191 => 487,  1189 => 486,  1184 => 484,  1179 => 481,  1169 => 478,  1165 => 477,  1160 => 475,  1157 => 474,  1154 => 473,  1152 => 472,  1149 => 471,  1145 => 470,  1142 => 469,  1135 => 464,  1119 => 450,  1117 => 449,  1113 => 447,  1111 => 446,  1107 => 444,  1105 => 443,  1100 => 440,  1098 => 439,  1050 => 393,  1045 => 390,  1041 => 388,  1031 => 384,  1027 => 383,  1020 => 381,  1017 => 380,  1012 => 379,  1006 => 376,  1000 => 373,  997 => 372,  995 => 371,  992 => 370,  990 => 369,  985 => 368,  981 => 366,  979 => 365,  973 => 361,  965 => 357,  961 => 355,  959 => 354,  954 => 351,  951 => 350,  948 => 349,  945 => 348,  942 => 347,  939 => 346,  936 => 345,  933 => 344,  930 => 343,  927 => 342,  923 => 340,  919 => 338,  915 => 336,  909 => 334,  906 => 333,  895 => 330,  892 => 329,  889 => 328,  886 => 327,  884 => 326,  881 => 325,  879 => 324,  876 => 323,  873 => 322,  871 => 321,  868 => 320,  866 => 319,  859 => 315,  855 => 313,  851 => 311,  845 => 308,  834 => 302,  831 => 301,  828 => 300,  814 => 288,  811 => 287,  807 => 285,  805 => 284,  802 => 283,  799 => 282,  790 => 277,  787 => 276,  784 => 275,  778 => 272,  772 => 270,  770 => 269,  765 => 267,  759 => 265,  757 => 264,  752 => 262,  746 => 260,  743 => 259,  740 => 258,  734 => 255,  728 => 253,  725 => 252,  722 => 251,  719 => 250,  716 => 249,  714 => 248,  711 => 247,  709 => 246,  706 => 245,  703 => 244,  697 => 240,  695 => 239,  689 => 236,  685 => 235,  673 => 226,  666 => 222,  659 => 217,  654 => 214,  647 => 212,  643 => 211,  639 => 210,  635 => 209,  630 => 207,  626 => 206,  621 => 205,  619 => 204,  612 => 199,  610 => 198,  602 => 195,  593 => 190,  582 => 186,  569 => 178,  565 => 177,  558 => 172,  555 => 171,  549 => 168,  543 => 164,  536 => 159,  534 => 158,  527 => 157,  524 => 156,  507 => 141,  505 => 140,  499 => 136,  493 => 133,  482 => 127,  479 => 126,  477 => 125,  472 => 123,  467 => 120,  456 => 111,  454 => 110,  451 => 109,  433 => 105,  428 => 103,  424 => 102,  418 => 100,  415 => 99,  412 => 98,  409 => 97,  406 => 96,  389 => 95,  386 => 94,  382 => 92,  364 => 90,  361 => 89,  358 => 88,  355 => 87,  352 => 86,  349 => 85,  332 => 84,  329 => 83,  327 => 82,  315 => 75,  311 => 73,  309 => 72,  301 => 67,  295 => 65,  289 => 63,  286 => 62,  280 => 60,  278 => 59,  273 => 57,  269 => 56,  264 => 55,  258 => 53,  255 => 52,  252 => 51,  249 => 50,  246 => 49,  236 => 48,  217 => 47,  206 => 40,  196 => 39,  186 => 37,  180 => 35,  172 => 31,  169 => 30,  166 => 29,  156 => 28,  141 => 20,  137 => 19,  133 => 18,  121 => 8,  111 => 7,  93 => 5,  73 => 3,  62 => 1,  60 => 27,  58 => 25,  45 => 1,);
  1845.     }
  1846.     public function getSourceContext()
  1847.     {
  1848.         return new Source("{% extends 'base.html.twig' %}
  1849. {% block title %}{{ parent() }}{{ currentPage is defined and currentPage != 1 ? ' - Страница №' ~ currentPage }}{% endblock %}
  1850. {% block messenger %}{% endblock %}
  1851. {% block stylesheets %}
  1852.     <link rel=\"stylesheet\" href=\"/css/statistics_modal.css?v=4\"/>
  1853.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\"/>
  1854.     <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css\">
  1855.     <link rel=\"stylesheet\" href=\"/admin/plugins/datetimepicker/css/bootstrap-datetimepicker.min.css\">
  1856.     <link rel=\"stylesheet\" href=\"/admin/plugins/datatables/jquery.dataTables.min.css\"/>
  1857.     <link rel=\"stylesheet\" href=\"/admin/plugins/colorpicker/bootstrap-colorpicker.min.css\"/>
  1858.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.css\">
  1859.     <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\"/>
  1860.     <link href=\"//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css\" type=\"text/css\" rel=\"stylesheet\">
  1861.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker-standalone.min.css\" integrity=\"sha512-L0/PNISezIYAoqFXBGP9EJ4qLH8XF356+Lo92vzloQqk7HUpZ4FN1x1dUOnsUAUjHTSxXxeaD0HXfrANhtJOEA==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\" />
  1862.     {{ parent() }}
  1863.     <link href=\"/css/offers.css?v={{ offers_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
  1864.     <link href=\"/css/foodForGift.css?v={{ food_for_gift_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
  1865.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css\"
  1866.           integrity=\"sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw==\"
  1867.           crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
  1868. {% endblock %}
  1869. {% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
  1870. {% set subscribed = app.user and isSubscriber(app.user) %}
  1871.     {% block ogimage %}
  1872.         {% if detailMediaList|length > 0 %}
  1873.             <meta property=\"og:image\"
  1874.                   content=\"{{ app.request.getSchemeAndHttpHost() }}{{ getImageURL(detailMediaList|first, 522, 322) }}\"/>
  1875.             <meta property=\"og:image:width\" content=\"522\"/>
  1876.             <meta property=\"og:image:height\" content=\"322\"/>
  1877.         {% else %}
  1878.             {{ parent() }}
  1879.         {% endif %}
  1880.     {% endblock %}
  1881. {% block header %}
  1882.     {% embed 'header.html.twig' %}
  1883.         {% block headerTopMenu %}
  1884.             {{ parent() }}
  1885.         {% endblock %}
  1886.     {% endembed %}
  1887. {% endblock %}
  1888. {% block mainColumnClass %} one-column bg-white{% endblock %}
  1889. {% block main_content %}
  1890.     {% set isPickupEnabled = offer.getOnlineOrderSettings().isPickupEnabled() is defined ? offer.getOnlineOrderSettings().isPickupEnabled() %}
  1891.     {% set isDeliveryEnabled = offer.getOnlineOrderSettings().isDeliveryEnabled() is defined ? offer.getOnlineOrderSettings().isDeliveryEnabled() %}
  1892.     {% set ratingWithCount = getEntityRatingWithCount(constant('Slivki\\\\Entity\\\\Category::OFFER_CATEGORY_ID'), offer.getID()) %}
  1893.     {% if isPickupEnabled or isDeliveryEnabled %}
  1894.         <input id=\"deliveryMethodEnabled\" type=\"hidden\" value=\"{{ isDeliveryEnabled == '' ? '2' : '1' }}\">
  1895.     {% endif %}
  1896.     <input id=\"offerID\" type=\"hidden\" value=\"{{ offer.getID() }}\">
  1897.     <input type=\"hidden\" id=\"stock-id\" value=\"{{ offer.getID() }}\">
  1898.     <input type=\"hidden\" id=\"stock-link\" value=\"{{ app.request.getSchemeAndHttpHost() ~ app.request.getRequestUri() }}\">
  1899.     {% if subscribed %}
  1900.         <input id=\"allowedCodesCountBySubscription\" type=\"hidden\" value=\"{{ allowedCodesCountBySubscription }}\">
  1901.     {% endif %}
  1902.     {% if app.user %}
  1903.         <input type=\"hidden\" id=\"customerID\" value=\"{{ app.user.getID() }}\"/>
  1904.     {% endif %}
  1905.     <input type=\"hidden\" id=\"codeCost\" value=\"{{ codeCost }}\">
  1906.     <input type=\"hidden\" class=\"buyOrderAmount form-element\" type=\"text\"
  1907.            value=\"{{ codeCost }}\"/>
  1908.     <div class=\"content-wrapper\">
  1909.         <div class=\"content-wrapper-offers\" itemscope itemtype=\"https://schema.org/Product\">
  1910.             <div class=\"d-flex pb-2\" style=\"padding: 10px 34px;\">
  1911.                 <div class=\"col-6\">
  1912.                     {% include 'Slivki/breadcrumbs.html.twig' with { 'parentCategoryList': parentCategoryList, 'supplierCategoryData': offer.getSupplierCategoryData() } only %}
  1913.                 </div>
  1914.             </div>
  1915.             <h3 class=\"offers-tittle\" style=\"color: {{ offer.getTitleFontColor() }};\">{{ offer.getTitle()|raw }}</h3>
  1916.             <div class=\"content-offers-top\">
  1917.                 <div class=\"left-top-block\">
  1918.                     <div class=\"content-wrapper-carousel position-relative\" style=\"margin-bottom: 28px\">
  1919.                         <div class=\"stock-image\">
  1920.                             <div id=\"carousel-example-generic\" class=\"carousel slide\" data-ride=\"carousel\" data-interval=\"3000\">
  1921.                                 <div class=\"background-opacity\"></div>
  1922.                                 {% if detailMediaList|length > 1 %}
  1923.                                     <ol class=\"carousel-indicators\">
  1924.                                         {% for media in detailMediaList %}
  1925.                                             {% set active = \"\" %}
  1926.                                             {% if loop.index0 == 0 %}
  1927.                                                 {% set active = \"active\" %}
  1928.                                             {% endif %}
  1929.                                             <li data-target=\"#carousel-example-generic\"
  1930.                                                 data-slide-to=\"{{ loop.index0 }}\" class=\"{{ active }}\"></li>
  1931.                                         {% endfor %}
  1932.                                     </ol>
  1933.                                 {% endif %}
  1934.                                 <div class=\"carousel-inner\" role=\"listbox\">
  1935.                                     {% for media in detailMediaList %}
  1936.                                         {% set active = \"\" %}
  1937.                                         {% if loop.index0 == 0 %}
  1938.                                             {% set active = \"active\" %}
  1939.                                         {% endif %}
  1940.                                         <div class=\"item {{ active }}\">
  1941.                                             <img itemprop=\"image\" class=\"w-100 br-14 lazyload\" loading=\"lazy\"
  1942.                                                  src=\"{{ getImageURL(media, 1180, 728) }}\"
  1943.                                                  alt=\"{{ media.getDescription() }}\"/>
  1944.                                             <div class=\"carousel-caption \">
  1945.                                                 {{ media.getDescription() }}
  1946.                                             </div>
  1947.                                         </div>
  1948.                                     {% endfor %}
  1949.                                 </div>
  1950.                                 {% if detailMediaList|length > 1 %}
  1951.                                     <a class=\"left carousel-control\" href=\"#carousel-example-generic\" role=\"button\"
  1952.                                        data-slide=\"prev\">
  1953.                                         <div class=\"sr-only\">Назад</div>
  1954.                                     </a>
  1955.                                     <a class=\"right carousel-control\" href=\"#carousel-example-generic\" role=\"button\"
  1956.                                        data-slide=\"next\">
  1957.                                         <div class=\"sr-only\">Далее</div>
  1958.                                     </a>
  1959.                                 {% endif %}
  1960.                             </div>
  1961.                         </div>
  1962.                         <div class=\"discount-block\">
  1963.                             {{ offer.isWithoutCodes() ? 'пока без скидки' : offer.getDiscount() }}
  1964.                         </div>
  1965.                         {% if offer.isWithoutCodes() %}
  1966.                             <div class=\"button-add-follow button-add-follow-teaser fovoutite-block\"
  1967.                                  onclick=\"onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})\"
  1968.                                  data-html=\"true\"
  1969.                                  data-toggle=\"tooltip\"
  1970.                                  data-placement=\"top\"
  1971.                                  data-original-title=\"Добавить в <br> избранное\"
  1972.                             >
  1973.                                 <img src=\"{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/offers/follow.svg' }}\">
  1974.                             </div>
  1975.                         {% endif %}
  1976.                     </div>
  1977.                 </div>
  1978.                 <div class=\"right-top-block\">
  1979.                     <div class=\"offers-description\">
  1980.                         {% if pastOffer or offer.getFreeCodesCount() == 0 %}
  1981.                             <div class=\"past-offer mt-5 pt-5\">
  1982.                                 <i class=\"slivki-icon-minus-circled\"></i>
  1983.                                 <p>Упс, акция завершена!</p>
  1984.                                 <a href=\"#offersConditions\" class=\"buttons-link-offers\">
  1985.                                     Условия
  1986.                                 </a>
  1987.                                 <a href=\"#conditionAddress\" class=\"buttons-link-offers\">
  1988.                                     Адрес, телефоны
  1989.                                 </a>
  1990.                                 <a href=\"#offersReview\" class=\"buttons-link-offers\">
  1991.                                     Отзывы
  1992.                                 </a>
  1993.                             </div>
  1994.                         {% else %}
  1995.                             {% if not offer.isInFreeCodesCategory() and not offer.isWithoutCodes() %}
  1996.                                 <div class=\"d-flex statistic-block {% if is_granted('ROLE_ADMIN') %}justify-content-between{% endif %} col px-2 my-0\">
  1997.                                     {% if is_granted('ROLE_ADMIN') %}
  1998.                                         <div id=\"statisticsButton\" data-toggle=\"modal\"
  1999.                                              data-target=\"#statisticOffersPopup\">
  2000.                                             Расширенная статистика →
  2001.                                         </div>
  2002.                                     {% endif %}
  2003.                                     <p class=\"text-dark-violet font-size-0750 text-end w-auto\"
  2004.                                        data-toggle=\"tooltip\"
  2005.                                        data-html=\"true\" data-placement=\"top\"
  2006.                                        data-original-title=\"Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней\">
  2007.                                         Конверсия {{ getOfferConversion(offer.getID()) }}%</p>
  2008.                                 </div>
  2009.                             {% endif %}
  2010.                         {% if not offer.isWithoutCodes() %}
  2011.                                 <div class=\"d-flex offers-description--item\">
  2012.                                     <div class=\"col\">
  2013.                                         <p class=\"color-dark-gray px-0 mb-0\">Взято всего:</p>
  2014.                                     </div>
  2015.                                     <div class=\"col font-bold text-end\">
  2016.                                         <p> {{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }}
  2017.                                             {{ ['промокод', 'промокода', 'промокодов']|plural(usedCodesCount) }} из {{ allCodesCount }}</p>
  2018.                                     </div>
  2019.                                 </div>
  2020.                                 <div class=\"d-flex px-2 my-0\">
  2021.                                     <div class=\"col\">
  2022.                                         <p class=\"color-dark-gray mb-0\">Взято за сутки (за месяц):</p>
  2023.                                     </div>
  2024.                                     <div class=\"col font-bold text-end pl-2\">
  2025.                                         <p>{{ todayPurchaseCount }} {{ ['промокод', 'промокода', 'промокодов']|plural(todayPurchaseCount) }} ({{ getOfferMonthlyPurchaseCount(offer.getID(), 30) > 0 ? getOfferMonthlyPurchaseCount(offer.getID(), 30) : 0  }})</p>
  2026.                                     </div>
  2027.                                 </div>
  2028.                         {% endif %}
  2029.                                 <div class=\"d-flex {{ offer.isWithoutCodes() ? 'pl-2' : 'offers-description--item' }}\">
  2030.                                     <div class=\"col\">
  2031.                                         <p class=\"color-dark-gray\">Просмотров:</p>
  2032.                                     </div>
  2033.                                     <div class=\"col font-bold text-end\">
  2034.                                         <p>{{ visitCount }} ({{ todayVisitCount }} за сутки)</p>
  2035.                                     </div>
  2036.                                 </div>
  2037.                         {% if not offer.isWithoutCodes() %}
  2038.                                 <div class=\"d-flex px-2 my-0\">
  2039.                                 <div class=\"col\">
  2040.                                     <p class=\"color-dark-gray\">До завершения:&nbsp;</p>
  2041.                                 </div>
  2042.                                 <div class=\"col text-end\">
  2043.                                     {% if freeCodesCount > 0 %}
  2044.                                         <input type=\"hidden\" id=\"daysLeft\" value=\"{{ daysLeft }} &nbsp;\"/>
  2045.                                         <input type=\"hidden\" id=\"hoursLeft\" value=\"{{ hoursLeft }} &nbsp;\"/>
  2046.                                         <input type=\"hidden\" id=\"minutesLeft\" value=\"{{ minutesLeft }} &nbsp;\"/>
  2047.                                         <input type=\"hidden\" id=\"secondsLeft\"
  2048.                                                value=\"{{ offer.getActiveTill().diff(date()).format('%s') }}\"/>
  2049.                                         <span id=\"days\">{{ daysLeft }}
  2050.                                         &nbsp</span>{{ ['день', 'дня', 'дней']|plural(daysLeft) }},&nbsp;
  2051.                                         <span id=\"hours\">{{ hoursLeft }}&nbsp</span>час{{ ['', 'а', 'ов']|plural(hoursLeft) }}&nbsp;
  2052.                                     {% endif %}
  2053.                                 </div>
  2054.                             </div>
  2055.                         {% endif %}
  2056.                             <div class=\"d-flex offers-description--item js-to-review-block\">
  2057.                                 <div class=\"col\">
  2058.                                     <p class=\"color-dark-gray\">Отзывов:</p>
  2059.                                 </div>
  2060.                                 <div class=\"col font-bold text-end\">
  2061.                                     <p>{{ commentsAmount }} (<r data-html=\"true\"
  2062.                                                                 data-toggle=\"tooltip\"
  2063.                                                                 data-placement=\"top\"
  2064.                                                                 data-original-title=\"Рейтинг компании <br> за 90 дней\">
  2065.                                             <span class=\"yellow-span\">★</span>{{ offer.getRating() }}</r>)</p>
  2066.                                 </div>
  2067.                             </div>
  2068.                             <div class=\"d-flex offer-price-block\">
  2069.                                 <div class=\"col px-2\">
  2070.                                     <p class=\"color-dark-gray\">Стоимость:</p>
  2071.                                 </div>
  2072.                                 <div class=\"col text-end\">
  2073.                                     <span id=\"offerRegularPrice\"
  2074.                                           class=\"regular-price\">{{ offer.getRegularPrice() }}</span>
  2075.                                     <span class=\"discount-price\">&nbsp;&nbsp;{{ offer.getOfferPrice()|replace({'(': '<span id=\"details-offer-price\">(', ')': ')</span>'})|raw }}</span>
  2076.                                 </div>
  2077.                             </div>
  2078.                             {% if offer.isWithoutCodes() %}
  2079.                                 <a href=\"/moya_akciya\" target=\"_blank\">
  2080.                                     <img class=\"mt-3\" src=\"/images/without_codes.png\"/>
  2081.                                 </a>
  2082.                             {% endif %}
  2083.                         {% endif %}
  2084.                     </div>
  2085.                     {% if offer.getFreeCodesCount() > 0 and not offer.isWithoutCodes() %}
  2086.                         <div class=\"buttons-wrapper-offers\">
  2087.                         {% if hasDelivery is defined %}
  2088.                             {% if not offer.isBuyCodeDisable() %}
  2089.                                 {% include 'Slivki/offers/buy_button.html.twig' %}
  2090.                             {% endif %}
  2091.                             {% if offer.isFoodOnlineOrderAllowedOnSite() %}
  2092.                                 <a id=\"deliveryBtn\" href=\"{{ getLinkFoodOnlineOrder(offer) }}\"
  2093.                                    class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  2094.                                     Заказать онлайн {{ offer.getDiscount() }}
  2095.                                 </a>
  2096.                             {% endif %}
  2097.                             {% if offer.isGiftCertificateOnlineOrderAllowedOnSite() %}
  2098.                                 {% if offer.getID() == constant('Slivki\\\\Entity\\\\Offer::MINSK_WORLD_CERTIFICATE_OFFER_ID') %}
  2099.                                     <a id=\"deliveryBtn\" href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
  2100.                                        class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  2101.                                         Получить скидку {{ offer.getDiscount() }}
  2102.                                     </a>
  2103.                                 {% elseif offer.getID() in constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_OFFER_IDS') %}
  2104.                                     <a id=\"deliveryBtn2\" href=\"{{ getLinkGiftCertificateOnlineOrderByOnlyCode(offer) }}\"
  2105.                                        class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  2106.                                         ПОЛУЧИТЬ СКИДКУ {{ offer.getDiscount() }}
  2107.                                     </a>
  2108.                                 {% elseif not offer.isFoodOnlineOrderAllowedOnSite() %}
  2109.                                     <a id=\"deliveryBtn\" href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
  2110.                                        class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  2111.                                         Оплатить онлайн {{ offer.getDiscount() }}
  2112.                                     </a>
  2113.                                 {% endif %}
  2114.                             {% endif %}
  2115.                             {% if offer.isTireOnlineOrderAllowedOnSite() %}
  2116.                                 <a id=\"deliveryBtn\" href=\"/online-zapis/{{ offer.getID() }}\"
  2117.                                    class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  2118.                                     Онлайн-запись
  2119.                                 </a>
  2120.                             {% endif %}
  2121.                         {% elseif isAllowedByOnlyCode %}
  2122.                             <div class=\"col\">
  2123.                                 {% include 'Slivki/offers/buy_button.html.twig' %}
  2124.                             </div>
  2125.                         {% endif %}
  2126.                            {% if not pastOffer and offer.getFreeCodesCount() > 0 and offer.isOnlineOrderGiftEnabled() and offer.isFoodOnlineOrderAllowedOnSite()  %}
  2127.                                 <div class=\"col\">
  2128.                                     <a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
  2129.                                         <div class=\"button-gift-text\">
  2130.                                             <p>ЕДА В ПОДАРОК 😋</p>
  2131.                                             <p>Подарю сам или подарят мне</p>
  2132.                                         </div>
  2133.                                         <div class=\"button-gift-item-button\">
  2134.                                             <div class=\"new\">NEW</div>
  2135.                                         </div>
  2136.                                     </a>
  2137.                                 </div>
  2138.                            {% endif %}
  2139.                         {% if app.user() and not pastOffer %}
  2140.                             <div class=\"button-add-follow fovoutite-block\"
  2141.                                  onclick=\"onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})\"
  2142.                                  data-html=\"true\"
  2143.                                  data-toggle=\"tooltip\"
  2144.                                  data-placement=\"top\"
  2145.                                  data-original-title=\"Добавить в <br> избранное\"
  2146.                             >
  2147.                                 <img src=\"{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/offers/follow.svg' }}\">
  2148.                             </div>
  2149.                         {% endif %}
  2150.                     </div>
  2151.                     {% endif %}
  2152.                 </div>
  2153.             </div>
  2154.             <div id=\"conditions_offers\" class=\"d-flex\" style=\"{{ pastOffer ? 'display: none!important' : '' }}\">
  2155.                 <div class=\"content-wrapper-col-left\">
  2156.                     <div id=\"offersConditions\" class=\"offers-conditions active\" style=\"max-height: fit-content;\">
  2157.                         <div class=\"offer-titles mb-2 mt-0\"><h2>Условия</h2></div>
  2158.                         {% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
  2159.                         <div id=\"startOfOfferCondition\"></div>
  2160.                         {% if offer.getID() != 239232 %}
  2161.                         {% endif %}
  2162.                         {% if not offer.isWithoutCodes() and offer.getID() != 140553 %}
  2163.                             <p>
  2164.                                 {% set codeTill = offer.getCodeActiveTill() %}
  2165.                                 {% set codeFrom = offer.getActiveTill()|date_modify('-1 day') %}
  2166.                                 {% set codeFrom = codeFrom > codeTill ? codeTill : codeFrom %}
  2167.                                 {% if not offer.isHideFeatures() %}
  2168.                                     - Получить промокод можно до {{ codeFrom|date('d.m') }}, воспользоваться {{ offer.getID() != 134390 ? 'до' }} {{ codeTill|date('d.m.y') }}
  2169.                                     <br/>
  2170.                                 {% endif %}
  2171.                                 {% if offer.isShowPriceInConditions() and not offerIsFreeForUser %}
  2172.                                     - Стоимость промокода: {{ codeCost }} руб.
  2173.                                 {% endif %}
  2174.                             </p>
  2175.                         {% endif %}
  2176.                         <div class=\"offer-details-conditions offers-conditions p-0\">
  2177.                             {{ offer.getConditions()|raw }}
  2178.                             {# Таблица с прейскурантом для акции с квестами \"Ящик Пандоры\" #}
  2179.                             {% if offer.getID() == 143528 %}
  2180.                                 {% include 'Slivki/offers/table_for_pandorra_box_offer2.html.twig' %}
  2181.                             {% elseif offer.getID() == 282234 %}
  2182.                                 {% include 'Slivki/offers/table_for_pandorra_box_offer4.html.twig' %}
  2183.                             {% endif %}
  2184.                             {% if not offer.isWithoutCodes() %}
  2185.                                 {% include \"Slivki#{regional_template_path}/phrase_subscription_in_offer_page.html.twig\" %}
  2186.                             {% endif %}
  2187.                             {% if not offer.isHideFeatures() %}
  2188.                                 </br>
  2189.                                 <div class=\"offer-titles mb-2 mt-0\"><h2>Особенности</h2></div>
  2190.                                 <div class=\"offer-details-conditions\">
  2191.                                     {% if not offer.isWithoutCodes() %}
  2192.                                         - Скидка предоставляется только при наличии промокода.
  2193.                                     {% endif %}
  2194.                                     {{ offer.getFeatures()|raw }}
  2195.                                 </div>
  2196.                                 - Поставщик несет полную ответственность перед потребителем за достоверность информации.
  2197.                             {% endif %}
  2198.                         </div>
  2199.                         <div id=\"endOfOfferCondition\"></div>
  2200.                         <div class=\"clear\"></div>
  2201.                     </div>
  2202.                     {% if offer.getShopMedias()|length > 0 %}
  2203.                     <div class=\"offer-titles mb-2 mt-0\"><h2>Галерея</h2></div>
  2204.                     {% endif %}
  2205.                     <div id=\"offerConditionsSlider\" class=\"my-4 screenshots {{ offer.getShopMedias()|length == 0 or freeCodesCount == 0 ? 'empty' }}\">
  2206.                         {% if offer.getShopMedias()|length > 0 %}
  2207.                             <div class=\"screenshot-container\">
  2208.                                 {% if  galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
  2209.                                     <div class=\"screenshot screenshot-story\" data-toggle=\"modal\" data-target=\"#detailsStoryPopup\">
  2210.                                         <img src=\"{{ galleryVideos.getImageUrl() }}\" width=\"300\"
  2211.                                              alt=\"Видео\" border=\"0\"/>
  2212.                                         <div class=\"screenshot-story-btn\"></div>
  2213.                                         <div class=\"screenshot-story-tittle\">{{ galleryVideos.getTitle() }}</div>
  2214.                                     </div>
  2215.                                 {% endif %}
  2216.                                 {% for media in offer.getShopMedias() %}
  2217.                                     <div class=\"screenshot\">
  2218.                                         <a href=\"{{ getImageURL(media, 0, 0) }}\" title=\"{{ media.getDescription() }}\"
  2219.                                            data-lightbox=\"image\">
  2220.                                             <img src=\"{{ getImageURL(media, 300, 0) }}\" width=\"300\"
  2221.                                                  alt=\"{{ media.getDescription() }}\" border=\"0\"/>
  2222.                                         </a>
  2223.                                     </div>
  2224.                                 {% endfor %}
  2225.                             </div>
  2226.                         {% endif %}
  2227.                     </div>
  2228.                     <div id=\"examplesOfWorksBlock\" class=\"\">
  2229.                         <div class=\"headerBlockCategory examples d-none bg-white px-0 pb-0 bg-transpanent examples-block-offer-header\">
  2230.                             <div class=\"offer-titles\"><h5 class=\"m-0\">Примеры работ{#<div class=\"example-of-works-count-container\"><span>1234</span></div>#}</h5></div>
  2231.                             <div class=\"examples-works-tooltip-filter\">
  2232.                                 <div class=\"tooltip-content\">
  2233.                                     <div class=\"tooltip-title border-bottom-f d-flex\">Показать сначала:</div>
  2234.                                     <div class=\"radio\">
  2235.                                         <input id=\"dateFilter\" type=\"radio\" name=\"filter\" checked data-direction=\"DESC\" value=\"workExample.createdAt\">
  2236.                                         <label for=\"dateFilter\" class=\"cursor-pointer\">По дате добавления</label>
  2237.                                     </div>
  2238.                                     <div class=\"radio\">
  2239.                                         <input id=\"locationFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"distance\">
  2240.                                         <label for=\"locationFilter\" class=\"cursor-pointer\">Поблизости</label>
  2241.                                     </div>
  2242.                                     <div class=\"radio\">
  2243.                                         <input id=\"priceUpFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"workExample.price\">
  2244.                                         <label for=\"priceUpFilter\" class=\"cursor-pointer\">По возврастанию цены</label>
  2245.                                     </div>
  2246.                                     <div class=\"radio\">
  2247.                                         <input id=\"priceDownFilter\" type=\"radio\" name=\"filter\" data-direction=\"DESC\" value=\"workExample.price\">
  2248.                                         <label for=\"priceDownFilter\" class=\"cursor-pointer\">По убыванию цены</label>
  2249.                                     </div>
  2250.                                     <div class=\"tooltip-title border-top-f d-flex\">Диапазон цены:</div>
  2251.                                     <div id=\"workExamplePriceRangeInputs\" class=\"price-range-inputs d-flex\">
  2252.                                         <div class=\"price-range-input\"><input type=\"number\" placeholder=\"Цена от\" id=\"priceFrom\" name=\"priceFrom\" min=\"0\" max=\"199\" step=\"1\"></div>
  2253.                                         <div class=\"price-range-input\"><input type=\"number\" placeholder=\"Цена до\" id=\"priceTo\" name=\"priceTo\" min=\"0\" max=\"200\" step=\"1\"></div>
  2254.                                     </div>
  2255.                                     <div id=\"workExampleRangeSlider\" class=\"range-slider\">
  2256.                                         <div class=\"range-labels\">
  2257.                                             <span id=\"workSimplesRangeLableStart\" class=\"range-label range-label-start\"></span>
  2258.                                             <span>-</span>
  2259.                                             <span id=\"workSimplesRangeLableEnd\" class=\"range-label range-label-end\"></span>
  2260.                                         </div>
  2261.                                         <input class=\"work-simples-input\" type=\"range\" name=\"startRange\" id=\"startRange\">
  2262.                                         <input class=\"work-simples-input\" type=\"range\" name=\"finishRange\" id=\"finishRange\">
  2263.                                         <div class=\"track-wrapper\">
  2264.                                             <div class=\"track\"></div>
  2265.                                             <div id=\"workSimplesSliderBetween\" class=\"range-between\"></div>
  2266.                                             <div id=\"workSimplesTumbLeft\"  class=\"thumb left\"></div>
  2267.                                             <div id=\"workSimplesTumbRight\" class=\"thumb right\"></div>
  2268.                                         </div>
  2269.                                     </div>
  2270.                                     <div id=\"buttonFilterBoxExamplesWork\" class=\"buttonFilterBox\">Показать</div>
  2271.                                 </div>
  2272.                                 <div id=\"buttonFilterBoxExamplesWork\" class=\"examples-works-filter\"></div>
  2273.                             </div>
  2274.                         </div>
  2275.                         {% include 'Slivki/works-examples/examples_of_works_gallery.html.twig' %}
  2276.                     </div>
  2277.                     <div id=\"beautyMastersBlock\" class=\"beauty-masters-container beauty-masters-offer desk\">
  2278.                         <div id=\"beautyMastersHeader\" class=\"tittleBlockCategory position-relative offer-titles mb-2 mt-0 d-none\"><h2>Мастера</h2></div>
  2279.                         {% include 'Slivki/beauty/beauty_masters.html.twig' %}
  2280.                     </div>
  2281.                     <div id=\"offersDescription\" class=\"offers-conditions mt-3\">
  2282.                         {% if offer.isShowProductsInOfferDescription() %}
  2283.                             <div id=\"foodItemsBlock\">
  2284.                             <div class=\"offer-titles mb-2 mt-0\"><h2>Описание</h2></div>
  2285.                             {% if isPickupEnabled and isDeliveryEnabled %}
  2286.                                 <div id=\"fixedFiltersOffer\" class=\"w-auto px-2 d-flex\" style=\"position: relative;background: linear-gradient(180deg, #A839FF 0%, #6747e5 100%), #6747E5;border-radius: 8px;padding: 10px 0;\">
  2287.                                     <div class=\"col d-flex align-items-center text-white justify-content-end px-0\"></div>
  2288.                                     <div class=\"switch-delivery-pickup-block px-0 \">
  2289.                                         <a data-type-delivery=\"1\" class=\"switch-delivery-pickup-item button-tab-delivery delivery-type active\">
  2290.                                             <p class=\"m-0\">Доставка</p>
  2291.                                             <small>удобно👌</small>
  2292.                                         </a>
  2293.                                         <a data-type-delivery=\"2\" class=\"switch-delivery-pickup-item pickup-type button-tab-pickup\">
  2294.                                             <p class=\"m-0\"> Самовывоз</p>
  2295.                                             <small>еще дешевле🔥</small>
  2296.                                         </a>
  2297.                                     </div>
  2298.                                 </div>
  2299.                             {% endif %}
  2300.                             <div id=\"foodBlock\"></div>
  2301.                             <div id=\"foodOptionsBlock\"></div>
  2302.                         </div>
  2303.                         {% endif %}
  2304.                         <div class=\"description\" id=\"descriptionText\">
  2305.                             {% for offerDescription in offer.getDescriptionList() %}
  2306.                                 {% set offerDescriptionSliderImages = offerDescription.getEntityDescriptionSliderImages() %}
  2307.                                 {% if offerDescriptionSliderImages|length > 0 %}
  2308.                                     <div class=\"sale-description-carousel\">
  2309.                                         <div id=\"saleDescriptionSliderFor{{ offerDescription.getID() }}\"
  2310.                                              class=\"sale-description-slider-for\">
  2311.                                             {% for offerDescriptionSliderImage in offerDescriptionSliderImages %}
  2312.                                                 <div><img data-lazy=\"{{ offerDescriptionSliderImage.getImageUrl() }}\"/>
  2313.                                                 </div>
  2314.                                             {% endfor %}
  2315.                                         </div>
  2316.                                     </div>
  2317.                                 {% endif %}
  2318.                                 {{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw }}
  2319.                                 {#                                <div id=\"showMoreDescription\"#}
  2320.                                 {#                                     class=\"{{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw == \"\" or addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw == '<p><span style=\"color: #ecf0f1;\">.</span></p>' ? 'd-none' : \"\" }}\">#}
  2321.                                 {#                                    <div class=\"w-100 position-absolute bottom-0\"#}
  2322.                                 {#                                         style=\"background: linear-gradient(360deg, #FFFFFF 15.15%, rgba(255, 255, 255, 0) 206.06%);\"></div>#}
  2323.                                 {#                                    <p class=\"w-100 position-absolute bottom-0\">Подробнее</p>#}
  2324.                                 {#                                </div>#}
  2325.                             {% endfor %}
  2326.                         </div>
  2327.                     </div>
  2328.                     <div class=\"tab-pane fade\" id=\"offerLocationTab\">
  2329.                         <i class=\"fa fa-spinner fa-spin\"></i>
  2330.                     </div>
  2331.                     <div id=\"offersReview\" class=\"offers-review\">
  2332.                         {{ comments|raw }}
  2333.                     </div>
  2334.                 </div>
  2335.                 <div class=\"content-wrapper-col-right\">
  2336.                     <div id=\"conditionAddress\">
  2337.                         <div class=\"offer-titles mb-2 mt-0\"><h2>Контакты</h2></div>
  2338.                         <div style=\"display:none\">{{ offer.getAddress() }}</div>
  2339.                         <div id=\"offerConditionLogo\">
  2340.                             {{ offer.getLogo()|raw }}
  2341.                         </div>
  2342.                         <div id=\"dataFromLocation\">
  2343.                             <div class=\"move-data\">
  2344.                                 {% if geoLocations|length > 0 %}
  2345.                                     <div class=\"geo-location-block\" style=\"display: block\">
  2346.                                         {% include 'Slivki/offers/geo_location_data.html.twig' with {'offer': offer} only %}
  2347.                                         <div id=\"offerGeoLocationData\" data-json=\"{{ offerGeoLocationData }}\"></div>
  2348.                                         <div class=\"distance\">
  2349.                                             <i class=\"slivki-icon slivki-icon-direction\"></i> <img class='ajaxLoader'
  2350.                                                                                                    src='/images/ajax-loader-16x16.gif'
  2351.                                                                                                    alt='Загрузка...'/><span></span>
  2352.                                         </div>
  2353.                                         <div class=\"offer-details-map category-map-wrapper category-map\"
  2354.                                              id=\"offerMapCanvas\">
  2355.                                             <div id=\"mapCollapseBtn\" class=\"button button--map-collapse capsuled\"
  2356.                                                  onclick=\"offerMapToggleSize();\">Развернуть
  2357.                                             </div>
  2358.                                             <a id=\"setUserLocationBtn\" href=\"#\" class=\"capsuled\">Указать
  2359.                                                 местоположение</a>
  2360.                                             <div id=\"zoomIn\"></div>
  2361.                                             <div id=\"zoomOut\"></div>
  2362.                                         </div>
  2363.                                     </div>
  2364.                                 {% endif %}
  2365.                                 <div class=\"before-map\" style=\"clear:both;\"></div>
  2366.                             </div>
  2367.                         </div>
  2368.                         {% if (offer.getLocation()|preg_replace(\"/<[^>]*>/\", '')|replace({\"\\n\": '', \"\\r\": '', '&nbsp;': '', ' ': ''}) != '') %}
  2369.                             {{ offer.getLocation()|raw }}
  2370.                             {% set phoneNumbers = offer.getPhoneNumbers() %}
  2371.                             {% if phoneNumbers.count() > 0 %}
  2372.                                 <div class=\"text-bold\">Телефон{{ phoneNumbers.count() > 1 ? 'ы' }}:</div>
  2373.                             {% endif %}
  2374.                             {% for phoneNumber in phoneNumbers %}
  2375.                                 {{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
  2376.                             {% endfor %}
  2377.                         {% else %}
  2378.                             {% set geoLocationsCount = geoLocations.count() %}
  2379.                             {% set commonWoringHours = offer.getCommonWorkingHours() %}
  2380.                             {% if commonWoringHours != '' %}
  2381.                                 <br>
  2382.                                 <div class=\"text-bold\">Время работы:</div>
  2383.                                 {{ commonWoringHours|raw }}
  2384.                             {% endif %}
  2385.                             {% for geoLocation in geoLocations %}
  2386.                                 {% set margin = false %}
  2387.                                 <div class=\"offer-details-geolocation-item my-3\">
  2388.                                     <div class=\"font-bold font-size-17\">г. {{ geoLocation.getCity() }}, {{ geoLocation.getStreet() }}, {{ geoLocation.getHouse() }}<br>{{ geoLocation.getLabel() }}</div>
  2389.                                     <div class=\"location-more-info {{ geoLocationsCount > 2 ? 'hidden' }}\">
  2390.                                         {% if geoLocation.getWorkingHours()|trim != '' %}
  2391.                                             {% set margin = true %}
  2392.                                             <div class=\"offer-details-work-hours\">Время работы:
  2393.                                             </div> {{ geoLocation.getWorkingHours()|nl2br|raw }}
  2394.                                         {% endif %}
  2395.                                         {% set phoneNumbers = geoLocation.getPhoneNumbers() %}
  2396.                                         {% if phoneNumbers.count() > 0 %}
  2397.                                         {% set margin = true %}
  2398.                                         <span>
  2399.                                             <div class=\"offer-details-phone-item\">
  2400.                                                 <div class=\"short-phone-item\" style=\"display: inline-block\">
  2401.                                                     {% if phoneNumbers|length > 0 %}
  2402.                                                         {{ phoneNumbers[0].getShortPhoneNumber() }}...
  2403.                                                     {% endif %}
  2404.                                                 </div>
  2405.                                                 <div class=\"full-phone-item\" style=\"display: none\">
  2406.                                                     {% for phoneNumber  in phoneNumbers %}
  2407.                                                         {{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
  2408.                                                     {% endfor %}
  2409.                                                 </div>
  2410.                                                 <a data-offer-id=\"{{ offer.getID() }}\"
  2411.                                                    class=\"text-slivki location-more-info-toggle\">Показать номер</a>
  2412.                                             </div>
  2413.                                         {% endif %}
  2414.                                             {% if margin %}
  2415.                                                 <br>
  2416.                                             {% endif %}
  2417.                                             </span>
  2418.                                     </div>
  2419.                                     {% if geoLocationsCount > 2 %}
  2420.                                         <a data-id=\"{{ geoLocation.getID() }}\"
  2421.                                            class=\"text-slivki location-more-info-toggle\">Подробнее</a>
  2422.                                     {% endif %}
  2423.                                 </div>
  2424.                             {% endfor %}
  2425.                             {# {% if geoLocationsCount > 4 %} #}
  2426.                             {# <div class=\"text-center\"> #}
  2427.                             {# <a id=\"showMoreAddressInDetailsLink\" class=\"button\" href=\"#\">Еще адреса</a> #}
  2428.                             {# </div> #}
  2429.                             {# {% endif %} #}
  2430.                             {% set phoneNumbersWithoutGeoLocations = offer.getPhoneNumbersWithoutGeoLocations() %}
  2431.                             {% if phoneNumbersWithoutGeoLocations|length > 0 %}
  2432.                                 <div class=\"text-bold\">Телефон{{ phoneNumbersWithoutGeoLocations|length > 1 ? 'ы' }}:
  2433.                                 </div>
  2434.                                 <div class=\"offer-details-phone-item\">
  2435.                                     <div class=\"short-phone-item\" style=\"display: inline-block\">
  2436.                                         {% if phoneNumbersWithoutGeoLocations|length > 0 %}
  2437.                                             {{ phoneNumbersWithoutGeoLocations[0].getShortPhoneNumber() }}...
  2438.                                         {% endif %}
  2439.                                     </div>
  2440.                                     <div class=\"full-phone-item\" style=\"display: none\">
  2441.                                         {% for phoneNumber  in phoneNumbersWithoutGeoLocations %}
  2442.                                             {{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
  2443.                                         {% endfor %}
  2444.                                     </div>
  2445.                                     <a data-offer-id=\"{{ offer.getID() }}\"
  2446.                                        class=\"text-slivki location-more-info-toggle\">Показать номер</a>
  2447.                                 </div>
  2448.                             {% endif %}
  2449.                         {% endif %}
  2450.                         <div class=\"offer-details-legal-info\">{{ offer.getLegal()|raw }}</div>
  2451.                         {% if offer.getTelegram() != null or offer.getViber() != null %}
  2452.                             <div class=\"contact-container d-flex py-2 px-1\">
  2453.                                 {% if offer.getTelegram() != null %}
  2454.                                     <a href=\"https://t.me/{{ offer.getTelegram() }}\" target=\"_blank\">
  2455.                                         <img alt=\"Telegram\" src=\"/images/telegram-icon-stretch.png\"/>
  2456.                                         <p>Написать в Telegram</p>
  2457.                                     </a>
  2458.                                 {% endif %}
  2459.                                 {% if offer.getViber() != null %}
  2460.                                     <a href=\"viber://chat?number={{ offer.getViber() }}\" target=\"_blank\">
  2461.                                         <img alt=\"Viber\" src=\"/images/viber-icon-stretch.png\"/>
  2462.                                         <p>Написать в Viber</p>
  2463.                                     </a>
  2464.                                 {% endif %}
  2465.                             </div>
  2466.                         {% endif %}
  2467.                     </div>
  2468.                     {% include 'Slivki/offers/share.html.twig' %}
  2469.                     {% include \"Slivki#{regional_template_path}/jivosite/button_offers_page.html.twig\" %}
  2470.                     <p class=\"tittle-messenger-offers d-none\">Мы всегда рады помочь: служба поддержки Slivki.by ответит на
  2471.                         любой
  2472.                         ваш вопрос</p>
  2473.                 </div>
  2474.             </div>
  2475.         </div>
  2476.         {% if (pastOffer or freeCodesCount == 0) and relatedOfferListHtml is defined %}
  2477.             <div class=\"col px-3\">
  2478.                 <div class=\"related-offers-title\">Другие похожие предложения:</div>
  2479.                 <div class=\"related-offers-list stock-group-list\">
  2480.                     {{ relatedOfferListHtml|raw }}
  2481.                 </div>
  2482.             </div>
  2483.         {% endif %}
  2484.     </div>
  2485.     {% if lastPurchaseText is defined %}
  2486.         <div id=\"lastPurchaseNofify\"><a href=\"#\"><i class=\"slivki-icon-close-thin\"></i></a>Последний раз промокод<br>получен {{ lastPurchaseText }}
  2487.         </div>
  2488.     {% endif %}
  2489. {% endblock %}
  2490. {% block popups %}
  2491.     {{ parent() }}
  2492.     {% if not pastOffer %}
  2493.         {% include 'Slivki/popups/header_offers.html.twig' %}
  2494.     {% endif %}
  2495.     {% include 'Slivki/share_block.html.twig' %}
  2496.     {% include 'Slivki/orderAsGift/foodForGift.html.twig' %}
  2497.     {% if  galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
  2498.         {% include 'Slivki/popups/details-story-popup.html.twig' %}
  2499.     {% endif %}
  2500.     {% include 'Slivki/popups/comment_media_block_popup.html.twig' %}
  2501.     {% include 'Slivki/popups/statistics_popup.html.twig' %}
  2502.     {% include 'Slivki/mobile/popup/buy_codes_avways_app.html.twig' %}
  2503.     {% include 'Slivki/delivery/modal/details.html.twig' with {'isOfferPage': true} %}
  2504.     {% if offer.isGiftCertificateOffer() %}
  2505.         {% include 'Slivki/popups/step_buy_certificate.twig' with {'deliveryLink': deliveryLink} %}
  2506.     {% endif %}
  2507.     {% if app.user %}
  2508.         {% include 'Slivki/popups/mail_offers.html.twig' %}
  2509.         {% include 'Slivki/popups/rating_edit_popup.html.twig' %}
  2510.         {% include 'Slivki/popups/popup_subscription_limited.html.twig' %}
  2511.         {% if not isMobileDevice() or offerIsFreeForUser %}
  2512.             {% if not codeCostInCurrency is defined and codeCostInCurrency is not null  %}
  2513.                 {% set codeCostInCurrency = null %}
  2514.             {% endif %}
  2515.             {% include 'Slivki/popups/confirm_box.html.twig' with {'codeCost': codeCost, 'offerID': offer.getID(), 'codeCostInCurrency': codeCostInCurrency} %}
  2516.             {% include 'Slivki/popups/confirm_subscription_card_popup.html.twig' with {'creditCards': app.user.getActiveCreditCards()} %}
  2517.         {% endif %}
  2518.         {% if not isMobileDevice() %}
  2519.             {% include 'Slivki/popups/add_comment_popup.html.twig' with {'id': 'addVoteBox'} %}
  2520.             {% include 'Slivki/popups/edit_comment_popup.html.twig' with {'id': 'editVoteBox'} %}
  2521.             {% include 'Slivki/popups/comment_censor_message.html.twig' with {'id': 'commentCensorMessage'} %}
  2522.         {% endif %}
  2523.     {% else %}
  2524.         {% if not isMobileDevice() %}
  2525.             {% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
  2526.         {% endif %}
  2527.     {% endif %}
  2528. {% endblock %}
  2529. {% block javascripts %}
  2530.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js\"
  2531.             integrity=\"sha512-jNDtFf7qgU0eH/+Z42FG4fw3w7DM/9zbgNPe3wfJlCylVDTT3IgKW5r92Vy9IHa6U50vyMz5gRByIu4YIXFtaQ==\"
  2532.             crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  2533.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
  2534.     <script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>
  2535.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js\"></script>
  2536.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/locale/ru.min.js\" integrity=\"sha512-QezkC2mljFGA2zQBPe+FrNA7i2RVFaYOfdQHk6icEap1TZX/Q6MNx+0AOTr9msSec0LsMrpURxfgJSbodYoiLg==\" crossorigin=\"anonymous\"></script>
  2537.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/fecha/2.3.3/fecha.min.js\"></script>
  2538.     <script src=\"/js/hotel-datepicker-3.6.5/hotel-datepicker.min.js\"></script>
  2539.     <script src=\"/js/swiper-js/swiper.min.js\"></script>
  2540.     <script src=\"/js/story-slider/story-slider-js.js?v={{ story_slider_js_version }}\"></script>
  2541.     {{ parent() }}
  2542.     <script src=\"/js/offer.js?v={{ offer_js_version }}\"></script>
  2543.     <script src=\"/js/offer/offerDescriptionItems.js?v={{ offer_description_items_js_version }}\"></script>
  2544.     <script src=\"/js/common-old.js?v={{ common_old_js_version }}\"></script>
  2545.     <script type=\"text/javascript\">
  2546.         {% if preview is defined and preview %}
  2547.         var offerPreview = 1;
  2548.         {% else %}
  2549.         var offerPreview = 0;
  2550.         {% endif %}
  2551.         {% if app.request.query.has('checkOrder') %}
  2552.         initCheckOfferOrderStatus({{ app.request.get('checkOrder') }});
  2553.         {% endif %}
  2554.     </script>
  2555.     <script src=\"/js/offer-new.js?v={{ offer_new_js_version }}\"/>
  2556. {% endblock %}
  2557. {% block assetsBottom %}
  2558.     {{ parent() }}
  2559.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js\" integrity=\"sha512-Y+0b10RbVUTf3Mi0EgJue0FoheNzentTMMIE2OreNbqnUPNbQj8zmjK3fs5D2WhQeGWIem2G2UkKjAL/bJ/UXQ==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  2560.     <script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script>
  2561.     <script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
  2562.     <script async src=\"//embedr.flickr.com/assets/client-code.js\" charset=\"utf-8\"></script>
  2563.     <script type=\"text/javascript\" src=\"/js/statistics_offer/statistics_offer.js?v={{ statistics_offer_js_version }}\" charset=\"utf-8\"></script>
  2564.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/jquery.easypiechart.min.js\" integrity=\"sha512-DHNepbIus9t4e6YoMBSJLwl+nnm0tIwMBonsQQ+W9NKN6gVVVbomJs9Ii3mQ+HzGZiU5FyJLdnAz9a63ZgZvTQ==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  2565.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/easypiechart.min.js\" integrity=\"sha512-1yldf7W5suy0ko2u4OGU1qyeGrzh9+A3uyWGH4ws8MbndaWxZsgnzy6uqqBq7NUU/ImI1Js5kqDbunovCN1JqA==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  2566.     <script src=\"https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js\"></script>
  2567.     <script type=\"module\" src=\"/js/work_examples/work_examples.js?v={{ work_examples_js_version }}\"></script>
  2568.     <script type=\"module\" src=\"/js/beauty/masters.js?v={{ beauty_masters_js_version }}\"></script>
  2569. {% endblock %}
  2570. {% block RTBHouse %}
  2571.     <script>
  2572.         try {
  2573.             (function () {
  2574.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = [];
  2575.                 rtbhTags.push(\"pr_\" + hash + \"_offer_\" + document.getElementById('offerID').value);
  2576.                 rtbhTags.push(\"pr_\" + hash + \"_uid_\" + document.getElementById('rtbhUID').value);
  2577.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key);
  2578.                 if (!lid) {
  2579.                     lid = \"\";
  2580.                     var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  2581.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length));
  2582.                     window.localStorage.setItem(key, lid);
  2583.                 }
  2584.                 rtbhTags.push(\"pr_\" + hash + \"_lid_\" + lid);
  2585.                 var ifr = document.createElement(\"iframe\"),
  2586.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  2587.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  2588.                     ifrSrc = \"https://\" + prefix + \"creativecdn.com/tags?type=iframe\",
  2589.                     tmstmp = encodeURIComponent(\"\" + Date.now());
  2590.                 for (var i = 0; i < rtbhTags.length; i++) {
  2591.                     ifrSrc += \"&id=\" + encodeURIComponent(rtbhTags[i]);
  2592.                 }
  2593.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  2594.                 ifr.setAttribute(\"src\", ifrSrc);
  2595.                 ifr.setAttribute(\"width\", \"1\");
  2596.                 ifr.setAttribute(\"height\", \"1\");
  2597.                 ifr.setAttribute(\"scrolling\", \"no\");
  2598.                 ifr.setAttribute(\"frameBorder\", \"0\");
  2599.                 ifr.setAttribute(\"style\", \"display:none\");
  2600.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\");
  2601.                 if (document.body) {
  2602.                     document.body.appendChild(ifr);
  2603.                 } else {
  2604.                     window.addEventListener('DOMContentLoaded', function () {
  2605.                         document.body.appendChild(ifr);
  2606.                     });
  2607.                 }
  2608.             })();
  2609.         } catch (e) {
  2610.         } </script>
  2611. {% endblock %}""Slivki/offers/details.html.twig""/mnt/data/virtwww/vlad-slivki/templates/Slivki/offers/details.html.twig");
  2612.     }
  2613. }
  2614. /* Slivki/offers/details.html.twig */
  2615. class __TwigTemplate_671d188d41c559f3e4b20d04dd0901420d5734d6d8780fb2ae46a6d677382c91___931492230 extends Template
  2616. {
  2617.     private $source;
  2618.     private $macros = [];
  2619.     public function __construct(Environment $env)
  2620.     {
  2621.         parent::__construct($env);
  2622.         $this->source $this->getSourceContext();
  2623.         $this->blocks = [
  2624.             'headerTopMenu' => [$this'block_headerTopMenu'],
  2625.         ];
  2626.     }
  2627.     protected function doGetParent(array $context)
  2628.     {
  2629.         // line 40
  2630.         return "header.html.twig";
  2631.     }
  2632.     protected function doDisplay(array $context, array $blocks = [])
  2633.     {
  2634.         $macros $this->macros;
  2635.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  2636.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/offers/details.html.twig"));
  2637.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2638.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/offers/details.html.twig"));
  2639.         $this->parent $this->loadTemplate("header.html.twig""Slivki/offers/details.html.twig"40);
  2640.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  2641.         
  2642.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  2643.         
  2644.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  2645.     }
  2646.     // line 41
  2647.     public function block_headerTopMenu($context, array $blocks = [])
  2648.     {
  2649.         $macros $this->macros;
  2650.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  2651.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headerTopMenu"));
  2652.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2653.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headerTopMenu"));
  2654.         // line 42
  2655.         echo "            ";
  2656.         $this->displayParentBlock("headerTopMenu"$context$blocks);
  2657.         echo "
  2658.         ";
  2659.         
  2660.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  2661.         
  2662.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  2663.     }
  2664.     public function getTemplateName()
  2665.     {
  2666.         return "Slivki/offers/details.html.twig";
  2667.     }
  2668.     public function isTraitable()
  2669.     {
  2670.         return false;
  2671.     }
  2672.     public function getDebugInfo()
  2673.     {
  2674.         return array (  2767 => 42,  2757 => 41,  2734 => 40,  1858 => 746,  1848 => 745,  1836 => 742,  1832 => 741,  1825 => 737,  1815 => 731,  1805 => 730,  1793 => 728,  1790 => 727,  1784 => 725,  1781 => 724,  1777 => 722,  1773 => 720,  1771 => 719,  1766 => 717,  1762 => 716,  1758 => 715,  1754 => 714,  1750 => 713,  1738 => 703,  1728 => 702,  1717 => 699,  1714 => 698,  1711 => 697,  1708 => 696,  1705 => 695,  1702 => 694,  1699 => 693,  1696 => 692,  1693 => 691,  1691 => 690,  1688 => 689,  1685 => 688,  1682 => 687,  1679 => 686,  1676 => 685,  1673 => 684,  1670 => 683,  1667 => 682,  1664 => 681,  1661 => 680,  1658 => 679,  1655 => 678,  1652 => 677,  1649 => 676,  1646 => 675,  1643 => 674,  1640 => 673,  1637 => 672,  1634 => 671,  1631 => 670,  1628 => 669,  1625 => 668,  1622 => 667,  1619 => 666,  1616 => 665,  1613 => 664,  1611 => 663,  1606 => 662,  1596 => 661,  1581 => 656,  1579 => 655,  1576 => 654,  1569 => 650,  1564 => 647,  1562 => 646,  1553 => 639,  1550 => 638,  1548 => 637,  1545 => 636,  1541 => 634,  1532 => 629,  1529 => 628,  1520 => 623,  1518 => 622,  1515 => 621,  1513 => 620,  1508 => 619,  1504 => 617,  1497 => 613,  1494 => 612,  1483 => 610,  1479 => 609,  1475 => 607,  1469 => 605,  1467 => 604,  1459 => 600,  1456 => 599,  1454 => 598,  1451 => 597,  1449 => 596,  1447 => 595,  1445 => 594,  1443 => 593,  1441 => 592,  1434 => 590,  1427 => 587,  1425 => 586,  1421 => 584,  1417 => 582,  1414 => 581,  1407 => 577,  1404 => 576,  1393 => 574,  1389 => 573,  1385 => 571,  1379 => 569,  1377 => 568,  1372 => 565,  1369 => 564,  1366 => 563,  1363 => 562,  1358 => 560,  1355 => 559,  1352 => 558,  1350 => 557,  1346 => 556,  1336 => 555,  1333 => 554,  1330 => 553,  1325 => 552,  1320 => 550,  1316 => 548,  1313 => 547,  1310 => 546,  1307 => 545,  1304 => 544,  1293 => 542,  1288 => 541,  1282 => 539,  1279 => 538,  1277 => 537,  1272 => 536,  1269 => 535,  1264 => 532,  1242 => 514,  1240 => 513,  1237 => 512,  1235 => 511,  1228 => 507,  1223 => 505,  1214 => 499,  1205 => 492,  1199 => 491,  1197 => 490,  1195 => 489,  1193 => 488,  1191 => 487,  1189 => 486,  1184 => 484,  1179 => 481,  1169 => 478,  1165 => 477,  1160 => 475,  1157 => 474,  1154 => 473,  1152 => 472,  1149 => 471,  1145 => 470,  1142 => 469,  1135 => 464,  1119 => 450,  1117 => 449,  1113 => 447,  1111 => 446,  1107 => 444,  1105 => 443,  1100 => 440,  1098 => 439,  1050 => 393,  1045 => 390,  1041 => 388,  1031 => 384,  1027 => 383,  1020 => 381,  1017 => 380,  1012 => 379,  1006 => 376,  1000 => 373,  997 => 372,  995 => 371,  992 => 370,  990 => 369,  985 => 368,  981 => 366,  979 => 365,  973 => 361,  965 => 357,  961 => 355,  959 => 354,  954 => 351,  951 => 350,  948 => 349,  945 => 348,  942 => 347,  939 => 346,  936 => 345,  933 => 344,  930 => 343,  927 => 342,  923 => 340,  919 => 338,  915 => 336,  909 => 334,  906 => 333,  895 => 330,  892 => 329,  889 => 328,  886 => 327,  884 => 326,  881 => 325,  879 => 324,  876 => 323,  873 => 322,  871 => 321,  868 => 320,  866 => 319,  859 => 315,  855 => 313,  851 => 311,  845 => 308,  834 => 302,  831 => 301,  828 => 300,  814 => 288,  811 => 287,  807 => 285,  805 => 284,  802 => 283,  799 => 282,  790 => 277,  787 => 276,  784 => 275,  778 => 272,  772 => 270,  770 => 269,  765 => 267,  759 => 265,  757 => 264,  752 => 262,  746 => 260,  743 => 259,  740 => 258,  734 => 255,  728 => 253,  725 => 252,  722 => 251,  719 => 250,  716 => 249,  714 => 248,  711 => 247,  709 => 246,  706 => 245,  703 => 244,  697 => 240,  695 => 239,  689 => 236,  685 => 235,  673 => 226,  666 => 222,  659 => 217,  654 => 214,  647 => 212,  643 => 211,  639 => 210,  635 => 209,  630 => 207,  626 => 206,  621 => 205,  619 => 204,  612 => 199,  610 => 198,  602 => 195,  593 => 190,  582 => 186,  569 => 178,  565 => 177,  558 => 172,  555 => 171,  549 => 168,  543 => 164,  536 => 159,  534 => 158,  527 => 157,  524 => 156,  507 => 141,  505 => 140,  499 => 136,  493 => 133,  482 => 127,  479 => 126,  477 => 125,  472 => 123,  467 => 120,  456 => 111,  454 => 110,  451 => 109,  433 => 105,  428 => 103,  424 => 102,  418 => 100,  415 => 99,  412 => 98,  409 => 97,  406 => 96,  389 => 95,  386 => 94,  382 => 92,  364 => 90,  361 => 89,  358 => 88,  355 => 87,  352 => 86,  349 => 85,  332 => 84,  329 => 83,  327 => 82,  315 => 75,  311 => 73,  309 => 72,  301 => 67,  295 => 65,  289 => 63,  286 => 62,  280 => 60,  278 => 59,  273 => 57,  269 => 56,  264 => 55,  258 => 53,  255 => 52,  252 => 51,  249 => 50,  246 => 49,  236 => 48,  217 => 47,  206 => 40,  196 => 39,  186 => 37,  180 => 35,  172 => 31,  169 => 30,  166 => 29,  156 => 28,  141 => 20,  137 => 19,  133 => 18,  121 => 8,  111 => 7,  93 => 5,  73 => 3,  62 => 1,  60 => 27,  58 => 25,  45 => 1,);
  2675.     }
  2676.     public function getSourceContext()
  2677.     {
  2678.         return new Source("{% extends 'base.html.twig' %}
  2679. {% block title %}{{ parent() }}{{ currentPage is defined and currentPage != 1 ? ' - Страница №' ~ currentPage }}{% endblock %}
  2680. {% block messenger %}{% endblock %}
  2681. {% block stylesheets %}
  2682.     <link rel=\"stylesheet\" href=\"/css/statistics_modal.css?v=4\"/>
  2683.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\"/>
  2684.     <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css\">
  2685.     <link rel=\"stylesheet\" href=\"/admin/plugins/datetimepicker/css/bootstrap-datetimepicker.min.css\">
  2686.     <link rel=\"stylesheet\" href=\"/admin/plugins/datatables/jquery.dataTables.min.css\"/>
  2687.     <link rel=\"stylesheet\" href=\"/admin/plugins/colorpicker/bootstrap-colorpicker.min.css\"/>
  2688.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.css\">
  2689.     <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\"/>
  2690.     <link href=\"//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css\" type=\"text/css\" rel=\"stylesheet\">
  2691.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker-standalone.min.css\" integrity=\"sha512-L0/PNISezIYAoqFXBGP9EJ4qLH8XF356+Lo92vzloQqk7HUpZ4FN1x1dUOnsUAUjHTSxXxeaD0HXfrANhtJOEA==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\" />
  2692.     {{ parent() }}
  2693.     <link href=\"/css/offers.css?v={{ offers_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
  2694.     <link href=\"/css/foodForGift.css?v={{ food_for_gift_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
  2695.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css\"
  2696.           integrity=\"sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw==\"
  2697.           crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
  2698. {% endblock %}
  2699. {% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
  2700. {% set subscribed = app.user and isSubscriber(app.user) %}
  2701.     {% block ogimage %}
  2702.         {% if detailMediaList|length > 0 %}
  2703.             <meta property=\"og:image\"
  2704.                   content=\"{{ app.request.getSchemeAndHttpHost() }}{{ getImageURL(detailMediaList|first, 522, 322) }}\"/>
  2705.             <meta property=\"og:image:width\" content=\"522\"/>
  2706.             <meta property=\"og:image:height\" content=\"322\"/>
  2707.         {% else %}
  2708.             {{ parent() }}
  2709.         {% endif %}
  2710.     {% endblock %}
  2711. {% block header %}
  2712.     {% embed 'header.html.twig' %}
  2713.         {% block headerTopMenu %}
  2714.             {{ parent() }}
  2715.         {% endblock %}
  2716.     {% endembed %}
  2717. {% endblock %}
  2718. {% block mainColumnClass %} one-column bg-white{% endblock %}
  2719. {% block main_content %}
  2720.     {% set isPickupEnabled = offer.getOnlineOrderSettings().isPickupEnabled() is defined ? offer.getOnlineOrderSettings().isPickupEnabled() %}
  2721.     {% set isDeliveryEnabled = offer.getOnlineOrderSettings().isDeliveryEnabled() is defined ? offer.getOnlineOrderSettings().isDeliveryEnabled() %}
  2722.     {% set ratingWithCount = getEntityRatingWithCount(constant('Slivki\\\\Entity\\\\Category::OFFER_CATEGORY_ID'), offer.getID()) %}
  2723.     {% if isPickupEnabled or isDeliveryEnabled %}
  2724.         <input id=\"deliveryMethodEnabled\" type=\"hidden\" value=\"{{ isDeliveryEnabled == '' ? '2' : '1' }}\">
  2725.     {% endif %}
  2726.     <input id=\"offerID\" type=\"hidden\" value=\"{{ offer.getID() }}\">
  2727.     <input type=\"hidden\" id=\"stock-id\" value=\"{{ offer.getID() }}\">
  2728.     <input type=\"hidden\" id=\"stock-link\" value=\"{{ app.request.getSchemeAndHttpHost() ~ app.request.getRequestUri() }}\">
  2729.     {% if subscribed %}
  2730.         <input id=\"allowedCodesCountBySubscription\" type=\"hidden\" value=\"{{ allowedCodesCountBySubscription }}\">
  2731.     {% endif %}
  2732.     {% if app.user %}
  2733.         <input type=\"hidden\" id=\"customerID\" value=\"{{ app.user.getID() }}\"/>
  2734.     {% endif %}
  2735.     <input type=\"hidden\" id=\"codeCost\" value=\"{{ codeCost }}\">
  2736.     <input type=\"hidden\" class=\"buyOrderAmount form-element\" type=\"text\"
  2737.            value=\"{{ codeCost }}\"/>
  2738.     <div class=\"content-wrapper\">
  2739.         <div class=\"content-wrapper-offers\" itemscope itemtype=\"https://schema.org/Product\">
  2740.             <div class=\"d-flex pb-2\" style=\"padding: 10px 34px;\">
  2741.                 <div class=\"col-6\">
  2742.                     {% include 'Slivki/breadcrumbs.html.twig' with { 'parentCategoryList': parentCategoryList, 'supplierCategoryData': offer.getSupplierCategoryData() } only %}
  2743.                 </div>
  2744.             </div>
  2745.             <h3 class=\"offers-tittle\" style=\"color: {{ offer.getTitleFontColor() }};\">{{ offer.getTitle()|raw }}</h3>
  2746.             <div class=\"content-offers-top\">
  2747.                 <div class=\"left-top-block\">
  2748.                     <div class=\"content-wrapper-carousel position-relative\" style=\"margin-bottom: 28px\">
  2749.                         <div class=\"stock-image\">
  2750.                             <div id=\"carousel-example-generic\" class=\"carousel slide\" data-ride=\"carousel\" data-interval=\"3000\">
  2751.                                 <div class=\"background-opacity\"></div>
  2752.                                 {% if detailMediaList|length > 1 %}
  2753.                                     <ol class=\"carousel-indicators\">
  2754.                                         {% for media in detailMediaList %}
  2755.                                             {% set active = \"\" %}
  2756.                                             {% if loop.index0 == 0 %}
  2757.                                                 {% set active = \"active\" %}
  2758.                                             {% endif %}
  2759.                                             <li data-target=\"#carousel-example-generic\"
  2760.                                                 data-slide-to=\"{{ loop.index0 }}\" class=\"{{ active }}\"></li>
  2761.                                         {% endfor %}
  2762.                                     </ol>
  2763.                                 {% endif %}
  2764.                                 <div class=\"carousel-inner\" role=\"listbox\">
  2765.                                     {% for media in detailMediaList %}
  2766.                                         {% set active = \"\" %}
  2767.                                         {% if loop.index0 == 0 %}
  2768.                                             {% set active = \"active\" %}
  2769.                                         {% endif %}
  2770.                                         <div class=\"item {{ active }}\">
  2771.                                             <img itemprop=\"image\" class=\"w-100 br-14 lazyload\" loading=\"lazy\"
  2772.                                                  src=\"{{ getImageURL(media, 1180, 728) }}\"
  2773.                                                  alt=\"{{ media.getDescription() }}\"/>
  2774.                                             <div class=\"carousel-caption \">
  2775.                                                 {{ media.getDescription() }}
  2776.                                             </div>
  2777.                                         </div>
  2778.                                     {% endfor %}
  2779.                                 </div>
  2780.                                 {% if detailMediaList|length > 1 %}
  2781.                                     <a class=\"left carousel-control\" href=\"#carousel-example-generic\" role=\"button\"
  2782.                                        data-slide=\"prev\">
  2783.                                         <div class=\"sr-only\">Назад</div>
  2784.                                     </a>
  2785.                                     <a class=\"right carousel-control\" href=\"#carousel-example-generic\" role=\"button\"
  2786.                                        data-slide=\"next\">
  2787.                                         <div class=\"sr-only\">Далее</div>
  2788.                                     </a>
  2789.                                 {% endif %}
  2790.                             </div>
  2791.                         </div>
  2792.                         <div class=\"discount-block\">
  2793.                             {{ offer.isWithoutCodes() ? 'пока без скидки' : offer.getDiscount() }}
  2794.                         </div>
  2795.                         {% if offer.isWithoutCodes() %}
  2796.                             <div class=\"button-add-follow button-add-follow-teaser fovoutite-block\"
  2797.                                  onclick=\"onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})\"
  2798.                                  data-html=\"true\"
  2799.                                  data-toggle=\"tooltip\"
  2800.                                  data-placement=\"top\"
  2801.                                  data-original-title=\"Добавить в <br> избранное\"
  2802.                             >
  2803.                                 <img src=\"{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/offers/follow.svg' }}\">
  2804.                             </div>
  2805.                         {% endif %}
  2806.                     </div>
  2807.                 </div>
  2808.                 <div class=\"right-top-block\">
  2809.                     <div class=\"offers-description\">
  2810.                         {% if pastOffer or offer.getFreeCodesCount() == 0 %}
  2811.                             <div class=\"past-offer mt-5 pt-5\">
  2812.                                 <i class=\"slivki-icon-minus-circled\"></i>
  2813.                                 <p>Упс, акция завершена!</p>
  2814.                                 <a href=\"#offersConditions\" class=\"buttons-link-offers\">
  2815.                                     Условия
  2816.                                 </a>
  2817.                                 <a href=\"#conditionAddress\" class=\"buttons-link-offers\">
  2818.                                     Адрес, телефоны
  2819.                                 </a>
  2820.                                 <a href=\"#offersReview\" class=\"buttons-link-offers\">
  2821.                                     Отзывы
  2822.                                 </a>
  2823.                             </div>
  2824.                         {% else %}
  2825.                             {% if not offer.isInFreeCodesCategory() and not offer.isWithoutCodes() %}
  2826.                                 <div class=\"d-flex statistic-block {% if is_granted('ROLE_ADMIN') %}justify-content-between{% endif %} col px-2 my-0\">
  2827.                                     {% if is_granted('ROLE_ADMIN') %}
  2828.                                         <div id=\"statisticsButton\" data-toggle=\"modal\"
  2829.                                              data-target=\"#statisticOffersPopup\">
  2830.                                             Расширенная статистика →
  2831.                                         </div>
  2832.                                     {% endif %}
  2833.                                     <p class=\"text-dark-violet font-size-0750 text-end w-auto\"
  2834.                                        data-toggle=\"tooltip\"
  2835.                                        data-html=\"true\" data-placement=\"top\"
  2836.                                        data-original-title=\"Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней\">
  2837.                                         Конверсия {{ getOfferConversion(offer.getID()) }}%</p>
  2838.                                 </div>
  2839.                             {% endif %}
  2840.                         {% if not offer.isWithoutCodes() %}
  2841.                                 <div class=\"d-flex offers-description--item\">
  2842.                                     <div class=\"col\">
  2843.                                         <p class=\"color-dark-gray px-0 mb-0\">Взято всего:</p>
  2844.                                     </div>
  2845.                                     <div class=\"col font-bold text-end\">
  2846.                                         <p> {{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }}
  2847.                                             {{ ['промокод', 'промокода', 'промокодов']|plural(usedCodesCount) }} из {{ allCodesCount }}</p>
  2848.                                     </div>
  2849.                                 </div>
  2850.                                 <div class=\"d-flex px-2 my-0\">
  2851.                                     <div class=\"col\">
  2852.                                         <p class=\"color-dark-gray mb-0\">Взято за сутки (за месяц):</p>
  2853.                                     </div>
  2854.                                     <div class=\"col font-bold text-end pl-2\">
  2855.                                         <p>{{ todayPurchaseCount }} {{ ['промокод', 'промокода', 'промокодов']|plural(todayPurchaseCount) }} ({{ getOfferMonthlyPurchaseCount(offer.getID(), 30) > 0 ? getOfferMonthlyPurchaseCount(offer.getID(), 30) : 0  }})</p>
  2856.                                     </div>
  2857.                                 </div>
  2858.                         {% endif %}
  2859.                                 <div class=\"d-flex {{ offer.isWithoutCodes() ? 'pl-2' : 'offers-description--item' }}\">
  2860.                                     <div class=\"col\">
  2861.                                         <p class=\"color-dark-gray\">Просмотров:</p>
  2862.                                     </div>
  2863.                                     <div class=\"col font-bold text-end\">
  2864.                                         <p>{{ visitCount }} ({{ todayVisitCount }} за сутки)</p>
  2865.                                     </div>
  2866.                                 </div>
  2867.                         {% if not offer.isWithoutCodes() %}
  2868.                                 <div class=\"d-flex px-2 my-0\">
  2869.                                 <div class=\"col\">
  2870.                                     <p class=\"color-dark-gray\">До завершения:&nbsp;</p>
  2871.                                 </div>
  2872.                                 <div class=\"col text-end\">
  2873.                                     {% if freeCodesCount > 0 %}
  2874.                                         <input type=\"hidden\" id=\"daysLeft\" value=\"{{ daysLeft }} &nbsp;\"/>
  2875.                                         <input type=\"hidden\" id=\"hoursLeft\" value=\"{{ hoursLeft }} &nbsp;\"/>
  2876.                                         <input type=\"hidden\" id=\"minutesLeft\" value=\"{{ minutesLeft }} &nbsp;\"/>
  2877.                                         <input type=\"hidden\" id=\"secondsLeft\"
  2878.                                                value=\"{{ offer.getActiveTill().diff(date()).format('%s') }}\"/>
  2879.                                         <span id=\"days\">{{ daysLeft }}
  2880.                                         &nbsp</span>{{ ['день', 'дня', 'дней']|plural(daysLeft) }},&nbsp;
  2881.                                         <span id=\"hours\">{{ hoursLeft }}&nbsp</span>час{{ ['', 'а', 'ов']|plural(hoursLeft) }}&nbsp;
  2882.                                     {% endif %}
  2883.                                 </div>
  2884.                             </div>
  2885.                         {% endif %}
  2886.                             <div class=\"d-flex offers-description--item js-to-review-block\">
  2887.                                 <div class=\"col\">
  2888.                                     <p class=\"color-dark-gray\">Отзывов:</p>
  2889.                                 </div>
  2890.                                 <div class=\"col font-bold text-end\">
  2891.                                     <p>{{ commentsAmount }} (<r data-html=\"true\"
  2892.                                                                 data-toggle=\"tooltip\"
  2893.                                                                 data-placement=\"top\"
  2894.                                                                 data-original-title=\"Рейтинг компании <br> за 90 дней\">
  2895.                                             <span class=\"yellow-span\">★</span>{{ offer.getRating() }}</r>)</p>
  2896.                                 </div>
  2897.                             </div>
  2898.                             <div class=\"d-flex offer-price-block\">
  2899.                                 <div class=\"col px-2\">
  2900.                                     <p class=\"color-dark-gray\">Стоимость:</p>
  2901.                                 </div>
  2902.                                 <div class=\"col text-end\">
  2903.                                     <span id=\"offerRegularPrice\"
  2904.                                           class=\"regular-price\">{{ offer.getRegularPrice() }}</span>
  2905.                                     <span class=\"discount-price\">&nbsp;&nbsp;{{ offer.getOfferPrice()|replace({'(': '<span id=\"details-offer-price\">(', ')': ')</span>'})|raw }}</span>
  2906.                                 </div>
  2907.                             </div>
  2908.                             {% if offer.isWithoutCodes() %}
  2909.                                 <a href=\"/moya_akciya\" target=\"_blank\">
  2910.                                     <img class=\"mt-3\" src=\"/images/without_codes.png\"/>
  2911.                                 </a>
  2912.                             {% endif %}
  2913.                         {% endif %}
  2914.                     </div>
  2915.                     {% if offer.getFreeCodesCount() > 0 and not offer.isWithoutCodes() %}
  2916.                         <div class=\"buttons-wrapper-offers\">
  2917.                         {% if hasDelivery is defined %}
  2918.                             {% if not offer.isBuyCodeDisable() %}
  2919.                                 {% include 'Slivki/offers/buy_button.html.twig' %}
  2920.                             {% endif %}
  2921.                             {% if offer.isFoodOnlineOrderAllowedOnSite() %}
  2922.                                 <a id=\"deliveryBtn\" href=\"{{ getLinkFoodOnlineOrder(offer) }}\"
  2923.                                    class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  2924.                                     Заказать онлайн {{ offer.getDiscount() }}
  2925.                                 </a>
  2926.                             {% endif %}
  2927.                             {% if offer.isGiftCertificateOnlineOrderAllowedOnSite() %}
  2928.                                 {% if offer.getID() == constant('Slivki\\\\Entity\\\\Offer::MINSK_WORLD_CERTIFICATE_OFFER_ID') %}
  2929.                                     <a id=\"deliveryBtn\" href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
  2930.                                        class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  2931.                                         Получить скидку {{ offer.getDiscount() }}
  2932.                                     </a>
  2933.                                 {% elseif offer.getID() in constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_OFFER_IDS') %}
  2934.                                     <a id=\"deliveryBtn2\" href=\"{{ getLinkGiftCertificateOnlineOrderByOnlyCode(offer) }}\"
  2935.                                        class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  2936.                                         ПОЛУЧИТЬ СКИДКУ {{ offer.getDiscount() }}
  2937.                                     </a>
  2938.                                 {% elseif not offer.isFoodOnlineOrderAllowedOnSite() %}
  2939.                                     <a id=\"deliveryBtn\" href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
  2940.                                        class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  2941.                                         Оплатить онлайн {{ offer.getDiscount() }}
  2942.                                     </a>
  2943.                                 {% endif %}
  2944.                             {% endif %}
  2945.                             {% if offer.isTireOnlineOrderAllowedOnSite() %}
  2946.                                 <a id=\"deliveryBtn\" href=\"/online-zapis/{{ offer.getID() }}\"
  2947.                                    class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
  2948.                                     Онлайн-запись
  2949.                                 </a>
  2950.                             {% endif %}
  2951.                         {% elseif isAllowedByOnlyCode %}
  2952.                             <div class=\"col\">
  2953.                                 {% include 'Slivki/offers/buy_button.html.twig' %}
  2954.                             </div>
  2955.                         {% endif %}
  2956.                            {% if not pastOffer and offer.getFreeCodesCount() > 0 and offer.isOnlineOrderGiftEnabled() and offer.isFoodOnlineOrderAllowedOnSite()  %}
  2957.                                 <div class=\"col\">
  2958.                                     <a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
  2959.                                         <div class=\"button-gift-text\">
  2960.                                             <p>ЕДА В ПОДАРОК 😋</p>
  2961.                                             <p>Подарю сам или подарят мне</p>
  2962.                                         </div>
  2963.                                         <div class=\"button-gift-item-button\">
  2964.                                             <div class=\"new\">NEW</div>
  2965.                                         </div>
  2966.                                     </a>
  2967.                                 </div>
  2968.                            {% endif %}
  2969.                         {% if app.user() and not pastOffer %}
  2970.                             <div class=\"button-add-follow fovoutite-block\"
  2971.                                  onclick=\"onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})\"
  2972.                                  data-html=\"true\"
  2973.                                  data-toggle=\"tooltip\"
  2974.                                  data-placement=\"top\"
  2975.                                  data-original-title=\"Добавить в <br> избранное\"
  2976.                             >
  2977.                                 <img src=\"{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/offers/follow.svg' }}\">
  2978.                             </div>
  2979.                         {% endif %}
  2980.                     </div>
  2981.                     {% endif %}
  2982.                 </div>
  2983.             </div>
  2984.             <div id=\"conditions_offers\" class=\"d-flex\" style=\"{{ pastOffer ? 'display: none!important' : '' }}\">
  2985.                 <div class=\"content-wrapper-col-left\">
  2986.                     <div id=\"offersConditions\" class=\"offers-conditions active\" style=\"max-height: fit-content;\">
  2987.                         <div class=\"offer-titles mb-2 mt-0\"><h2>Условия</h2></div>
  2988.                         {% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
  2989.                         <div id=\"startOfOfferCondition\"></div>
  2990.                         {% if offer.getID() != 239232 %}
  2991.                         {% endif %}
  2992.                         {% if not offer.isWithoutCodes() and offer.getID() != 140553 %}
  2993.                             <p>
  2994.                                 {% set codeTill = offer.getCodeActiveTill() %}
  2995.                                 {% set codeFrom = offer.getActiveTill()|date_modify('-1 day') %}
  2996.                                 {% set codeFrom = codeFrom > codeTill ? codeTill : codeFrom %}
  2997.                                 {% if not offer.isHideFeatures() %}
  2998.                                     - Получить промокод можно до {{ codeFrom|date('d.m') }}, воспользоваться {{ offer.getID() != 134390 ? 'до' }} {{ codeTill|date('d.m.y') }}
  2999.                                     <br/>
  3000.                                 {% endif %}
  3001.                                 {% if offer.isShowPriceInConditions() and not offerIsFreeForUser %}
  3002.                                     - Стоимость промокода: {{ codeCost }} руб.
  3003.                                 {% endif %}
  3004.                             </p>
  3005.                         {% endif %}
  3006.                         <div class=\"offer-details-conditions offers-conditions p-0\">
  3007.                             {{ offer.getConditions()|raw }}
  3008.                             {# Таблица с прейскурантом для акции с квестами \"Ящик Пандоры\" #}
  3009.                             {% if offer.getID() == 143528 %}
  3010.                                 {% include 'Slivki/offers/table_for_pandorra_box_offer2.html.twig' %}
  3011.                             {% elseif offer.getID() == 282234 %}
  3012.                                 {% include 'Slivki/offers/table_for_pandorra_box_offer4.html.twig' %}
  3013.                             {% endif %}
  3014.                             {% if not offer.isWithoutCodes() %}
  3015.                                 {% include \"Slivki#{regional_template_path}/phrase_subscription_in_offer_page.html.twig\" %}
  3016.                             {% endif %}
  3017.                             {% if not offer.isHideFeatures() %}
  3018.                                 </br>
  3019.                                 <div class=\"offer-titles mb-2 mt-0\"><h2>Особенности</h2></div>
  3020.                                 <div class=\"offer-details-conditions\">
  3021.                                     {% if not offer.isWithoutCodes() %}
  3022.                                         - Скидка предоставляется только при наличии промокода.
  3023.                                     {% endif %}
  3024.                                     {{ offer.getFeatures()|raw }}
  3025.                                 </div>
  3026.                                 - Поставщик несет полную ответственность перед потребителем за достоверность информации.
  3027.                             {% endif %}
  3028.                         </div>
  3029.                         <div id=\"endOfOfferCondition\"></div>
  3030.                         <div class=\"clear\"></div>
  3031.                     </div>
  3032.                     {% if offer.getShopMedias()|length > 0 %}
  3033.                     <div class=\"offer-titles mb-2 mt-0\"><h2>Галерея</h2></div>
  3034.                     {% endif %}
  3035.                     <div id=\"offerConditionsSlider\" class=\"my-4 screenshots {{ offer.getShopMedias()|length == 0 or freeCodesCount == 0 ? 'empty' }}\">
  3036.                         {% if offer.getShopMedias()|length > 0 %}
  3037.                             <div class=\"screenshot-container\">
  3038.                                 {% if  galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
  3039.                                     <div class=\"screenshot screenshot-story\" data-toggle=\"modal\" data-target=\"#detailsStoryPopup\">
  3040.                                         <img src=\"{{ galleryVideos.getImageUrl() }}\" width=\"300\"
  3041.                                              alt=\"Видео\" border=\"0\"/>
  3042.                                         <div class=\"screenshot-story-btn\"></div>
  3043.                                         <div class=\"screenshot-story-tittle\">{{ galleryVideos.getTitle() }}</div>
  3044.                                     </div>
  3045.                                 {% endif %}
  3046.                                 {% for media in offer.getShopMedias() %}
  3047.                                     <div class=\"screenshot\">
  3048.                                         <a href=\"{{ getImageURL(media, 0, 0) }}\" title=\"{{ media.getDescription() }}\"
  3049.                                            data-lightbox=\"image\">
  3050.                                             <img src=\"{{ getImageURL(media, 300, 0) }}\" width=\"300\"
  3051.                                                  alt=\"{{ media.getDescription() }}\" border=\"0\"/>
  3052.                                         </a>
  3053.                                     </div>
  3054.                                 {% endfor %}
  3055.                             </div>
  3056.                         {% endif %}
  3057.                     </div>
  3058.                     <div id=\"examplesOfWorksBlock\" class=\"\">
  3059.                         <div class=\"headerBlockCategory examples d-none bg-white px-0 pb-0 bg-transpanent examples-block-offer-header\">
  3060.                             <div class=\"offer-titles\"><h5 class=\"m-0\">Примеры работ{#<div class=\"example-of-works-count-container\"><span>1234</span></div>#}</h5></div>
  3061.                             <div class=\"examples-works-tooltip-filter\">
  3062.                                 <div class=\"tooltip-content\">
  3063.                                     <div class=\"tooltip-title border-bottom-f d-flex\">Показать сначала:</div>
  3064.                                     <div class=\"radio\">
  3065.                                         <input id=\"dateFilter\" type=\"radio\" name=\"filter\" checked data-direction=\"DESC\" value=\"workExample.createdAt\">
  3066.                                         <label for=\"dateFilter\" class=\"cursor-pointer\">По дате добавления</label>
  3067.                                     </div>
  3068.                                     <div class=\"radio\">
  3069.                                         <input id=\"locationFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"distance\">
  3070.                                         <label for=\"locationFilter\" class=\"cursor-pointer\">Поблизости</label>
  3071.                                     </div>
  3072.                                     <div class=\"radio\">
  3073.                                         <input id=\"priceUpFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"workExample.price\">
  3074.                                         <label for=\"priceUpFilter\" class=\"cursor-pointer\">По возврастанию цены</label>
  3075.                                     </div>
  3076.                                     <div class=\"radio\">
  3077.                                         <input id=\"priceDownFilter\" type=\"radio\" name=\"filter\" data-direction=\"DESC\" value=\"workExample.price\">
  3078.                                         <label for=\"priceDownFilter\" class=\"cursor-pointer\">По убыванию цены</label>
  3079.                                     </div>
  3080.                                     <div class=\"tooltip-title border-top-f d-flex\">Диапазон цены:</div>
  3081.                                     <div id=\"workExamplePriceRangeInputs\" class=\"price-range-inputs d-flex\">
  3082.                                         <div class=\"price-range-input\"><input type=\"number\" placeholder=\"Цена от\" id=\"priceFrom\" name=\"priceFrom\" min=\"0\" max=\"199\" step=\"1\"></div>
  3083.                                         <div class=\"price-range-input\"><input type=\"number\" placeholder=\"Цена до\" id=\"priceTo\" name=\"priceTo\" min=\"0\" max=\"200\" step=\"1\"></div>
  3084.                                     </div>
  3085.                                     <div id=\"workExampleRangeSlider\" class=\"range-slider\">
  3086.                                         <div class=\"range-labels\">
  3087.                                             <span id=\"workSimplesRangeLableStart\" class=\"range-label range-label-start\"></span>
  3088.                                             <span>-</span>
  3089.                                             <span id=\"workSimplesRangeLableEnd\" class=\"range-label range-label-end\"></span>
  3090.                                         </div>
  3091.                                         <input class=\"work-simples-input\" type=\"range\" name=\"startRange\" id=\"startRange\">
  3092.                                         <input class=\"work-simples-input\" type=\"range\" name=\"finishRange\" id=\"finishRange\">
  3093.                                         <div class=\"track-wrapper\">
  3094.                                             <div class=\"track\"></div>
  3095.                                             <div id=\"workSimplesSliderBetween\" class=\"range-between\"></div>
  3096.                                             <div id=\"workSimplesTumbLeft\"  class=\"thumb left\"></div>
  3097.                                             <div id=\"workSimplesTumbRight\" class=\"thumb right\"></div>
  3098.                                         </div>
  3099.                                     </div>
  3100.                                     <div id=\"buttonFilterBoxExamplesWork\" class=\"buttonFilterBox\">Показать</div>
  3101.                                 </div>
  3102.                                 <div id=\"buttonFilterBoxExamplesWork\" class=\"examples-works-filter\"></div>
  3103.                             </div>
  3104.                         </div>
  3105.                         {% include 'Slivki/works-examples/examples_of_works_gallery.html.twig' %}
  3106.                     </div>
  3107.                     <div id=\"beautyMastersBlock\" class=\"beauty-masters-container beauty-masters-offer desk\">
  3108.                         <div id=\"beautyMastersHeader\" class=\"tittleBlockCategory position-relative offer-titles mb-2 mt-0 d-none\"><h2>Мастера</h2></div>
  3109.                         {% include 'Slivki/beauty/beauty_masters.html.twig' %}
  3110.                     </div>
  3111.                     <div id=\"offersDescription\" class=\"offers-conditions mt-3\">
  3112.                         {% if offer.isShowProductsInOfferDescription() %}
  3113.                             <div id=\"foodItemsBlock\">
  3114.                             <div class=\"offer-titles mb-2 mt-0\"><h2>Описание</h2></div>
  3115.                             {% if isPickupEnabled and isDeliveryEnabled %}
  3116.                                 <div id=\"fixedFiltersOffer\" class=\"w-auto px-2 d-flex\" style=\"position: relative;background: linear-gradient(180deg, #A839FF 0%, #6747e5 100%), #6747E5;border-radius: 8px;padding: 10px 0;\">
  3117.                                     <div class=\"col d-flex align-items-center text-white justify-content-end px-0\"></div>
  3118.                                     <div class=\"switch-delivery-pickup-block px-0 \">
  3119.                                         <a data-type-delivery=\"1\" class=\"switch-delivery-pickup-item button-tab-delivery delivery-type active\">
  3120.                                             <p class=\"m-0\">Доставка</p>
  3121.                                             <small>удобно👌</small>
  3122.                                         </a>
  3123.                                         <a data-type-delivery=\"2\" class=\"switch-delivery-pickup-item pickup-type button-tab-pickup\">
  3124.                                             <p class=\"m-0\"> Самовывоз</p>
  3125.                                             <small>еще дешевле🔥</small>
  3126.                                         </a>
  3127.                                     </div>
  3128.                                 </div>
  3129.                             {% endif %}
  3130.                             <div id=\"foodBlock\"></div>
  3131.                             <div id=\"foodOptionsBlock\"></div>
  3132.                         </div>
  3133.                         {% endif %}
  3134.                         <div class=\"description\" id=\"descriptionText\">
  3135.                             {% for offerDescription in offer.getDescriptionList() %}
  3136.                                 {% set offerDescriptionSliderImages = offerDescription.getEntityDescriptionSliderImages() %}
  3137.                                 {% if offerDescriptionSliderImages|length > 0 %}
  3138.                                     <div class=\"sale-description-carousel\">
  3139.                                         <div id=\"saleDescriptionSliderFor{{ offerDescription.getID() }}\"
  3140.                                              class=\"sale-description-slider-for\">
  3141.                                             {% for offerDescriptionSliderImage in offerDescriptionSliderImages %}
  3142.                                                 <div><img data-lazy=\"{{ offerDescriptionSliderImage.getImageUrl() }}\"/>
  3143.                                                 </div>
  3144.                                             {% endfor %}
  3145.                                         </div>
  3146.                                     </div>
  3147.                                 {% endif %}
  3148.                                 {{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw }}
  3149.                                 {#                                <div id=\"showMoreDescription\"#}
  3150.                                 {#                                     class=\"{{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw == \"\" or addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw == '<p><span style=\"color: #ecf0f1;\">.</span></p>' ? 'd-none' : \"\" }}\">#}
  3151.                                 {#                                    <div class=\"w-100 position-absolute bottom-0\"#}
  3152.                                 {#                                         style=\"background: linear-gradient(360deg, #FFFFFF 15.15%, rgba(255, 255, 255, 0) 206.06%);\"></div>#}
  3153.                                 {#                                    <p class=\"w-100 position-absolute bottom-0\">Подробнее</p>#}
  3154.                                 {#                                </div>#}
  3155.                             {% endfor %}
  3156.                         </div>
  3157.                     </div>
  3158.                     <div class=\"tab-pane fade\" id=\"offerLocationTab\">
  3159.                         <i class=\"fa fa-spinner fa-spin\"></i>
  3160.                     </div>
  3161.                     <div id=\"offersReview\" class=\"offers-review\">
  3162.                         {{ comments|raw }}
  3163.                     </div>
  3164.                 </div>
  3165.                 <div class=\"content-wrapper-col-right\">
  3166.                     <div id=\"conditionAddress\">
  3167.                         <div class=\"offer-titles mb-2 mt-0\"><h2>Контакты</h2></div>
  3168.                         <div style=\"display:none\">{{ offer.getAddress() }}</div>
  3169.                         <div id=\"offerConditionLogo\">
  3170.                             {{ offer.getLogo()|raw }}
  3171.                         </div>
  3172.                         <div id=\"dataFromLocation\">
  3173.                             <div class=\"move-data\">
  3174.                                 {% if geoLocations|length > 0 %}
  3175.                                     <div class=\"geo-location-block\" style=\"display: block\">
  3176.                                         {% include 'Slivki/offers/geo_location_data.html.twig' with {'offer': offer} only %}
  3177.                                         <div id=\"offerGeoLocationData\" data-json=\"{{ offerGeoLocationData }}\"></div>
  3178.                                         <div class=\"distance\">
  3179.                                             <i class=\"slivki-icon slivki-icon-direction\"></i> <img class='ajaxLoader'
  3180.                                                                                                    src='/images/ajax-loader-16x16.gif'
  3181.                                                                                                    alt='Загрузка...'/><span></span>
  3182.                                         </div>
  3183.                                         <div class=\"offer-details-map category-map-wrapper category-map\"
  3184.                                              id=\"offerMapCanvas\">
  3185.                                             <div id=\"mapCollapseBtn\" class=\"button button--map-collapse capsuled\"
  3186.                                                  onclick=\"offerMapToggleSize();\">Развернуть
  3187.                                             </div>
  3188.                                             <a id=\"setUserLocationBtn\" href=\"#\" class=\"capsuled\">Указать
  3189.                                                 местоположение</a>
  3190.                                             <div id=\"zoomIn\"></div>
  3191.                                             <div id=\"zoomOut\"></div>
  3192.                                         </div>
  3193.                                     </div>
  3194.                                 {% endif %}
  3195.                                 <div class=\"before-map\" style=\"clear:both;\"></div>
  3196.                             </div>
  3197.                         </div>
  3198.                         {% if (offer.getLocation()|preg_replace(\"/<[^>]*>/\", '')|replace({\"\\n\": '', \"\\r\": '', '&nbsp;': '', ' ': ''}) != '') %}
  3199.                             {{ offer.getLocation()|raw }}
  3200.                             {% set phoneNumbers = offer.getPhoneNumbers() %}
  3201.                             {% if phoneNumbers.count() > 0 %}
  3202.                                 <div class=\"text-bold\">Телефон{{ phoneNumbers.count() > 1 ? 'ы' }}:</div>
  3203.                             {% endif %}
  3204.                             {% for phoneNumber in phoneNumbers %}
  3205.                                 {{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
  3206.                             {% endfor %}
  3207.                         {% else %}
  3208.                             {% set geoLocationsCount = geoLocations.count() %}
  3209.                             {% set commonWoringHours = offer.getCommonWorkingHours() %}
  3210.                             {% if commonWoringHours != '' %}
  3211.                                 <br>
  3212.                                 <div class=\"text-bold\">Время работы:</div>
  3213.                                 {{ commonWoringHours|raw }}
  3214.                             {% endif %}
  3215.                             {% for geoLocation in geoLocations %}
  3216.                                 {% set margin = false %}
  3217.                                 <div class=\"offer-details-geolocation-item my-3\">
  3218.                                     <div class=\"font-bold font-size-17\">г. {{ geoLocation.getCity() }}, {{ geoLocation.getStreet() }}, {{ geoLocation.getHouse() }}<br>{{ geoLocation.getLabel() }}</div>
  3219.                                     <div class=\"location-more-info {{ geoLocationsCount > 2 ? 'hidden' }}\">
  3220.                                         {% if geoLocation.getWorkingHours()|trim != '' %}
  3221.                                             {% set margin = true %}
  3222.                                             <div class=\"offer-details-work-hours\">Время работы:
  3223.                                             </div> {{ geoLocation.getWorkingHours()|nl2br|raw }}
  3224.                                         {% endif %}
  3225.                                         {% set phoneNumbers = geoLocation.getPhoneNumbers() %}
  3226.                                         {% if phoneNumbers.count() > 0 %}
  3227.                                         {% set margin = true %}
  3228.                                         <span>
  3229.                                             <div class=\"offer-details-phone-item\">
  3230.                                                 <div class=\"short-phone-item\" style=\"display: inline-block\">
  3231.                                                     {% if phoneNumbers|length > 0 %}
  3232.                                                         {{ phoneNumbers[0].getShortPhoneNumber() }}...
  3233.                                                     {% endif %}
  3234.                                                 </div>
  3235.                                                 <div class=\"full-phone-item\" style=\"display: none\">
  3236.                                                     {% for phoneNumber  in phoneNumbers %}
  3237.                                                         {{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
  3238.                                                     {% endfor %}
  3239.                                                 </div>
  3240.                                                 <a data-offer-id=\"{{ offer.getID() }}\"
  3241.                                                    class=\"text-slivki location-more-info-toggle\">Показать номер</a>
  3242.                                             </div>
  3243.                                         {% endif %}
  3244.                                             {% if margin %}
  3245.                                                 <br>
  3246.                                             {% endif %}
  3247.                                             </span>
  3248.                                     </div>
  3249.                                     {% if geoLocationsCount > 2 %}
  3250.                                         <a data-id=\"{{ geoLocation.getID() }}\"
  3251.                                            class=\"text-slivki location-more-info-toggle\">Подробнее</a>
  3252.                                     {% endif %}
  3253.                                 </div>
  3254.                             {% endfor %}
  3255.                             {# {% if geoLocationsCount > 4 %} #}
  3256.                             {# <div class=\"text-center\"> #}
  3257.                             {# <a id=\"showMoreAddressInDetailsLink\" class=\"button\" href=\"#\">Еще адреса</a> #}
  3258.                             {# </div> #}
  3259.                             {# {% endif %} #}
  3260.                             {% set phoneNumbersWithoutGeoLocations = offer.getPhoneNumbersWithoutGeoLocations() %}
  3261.                             {% if phoneNumbersWithoutGeoLocations|length > 0 %}
  3262.                                 <div class=\"text-bold\">Телефон{{ phoneNumbersWithoutGeoLocations|length > 1 ? 'ы' }}:
  3263.                                 </div>
  3264.                                 <div class=\"offer-details-phone-item\">
  3265.                                     <div class=\"short-phone-item\" style=\"display: inline-block\">
  3266.                                         {% if phoneNumbersWithoutGeoLocations|length > 0 %}
  3267.                                             {{ phoneNumbersWithoutGeoLocations[0].getShortPhoneNumber() }}...
  3268.                                         {% endif %}
  3269.                                     </div>
  3270.                                     <div class=\"full-phone-item\" style=\"display: none\">
  3271.                                         {% for phoneNumber  in phoneNumbersWithoutGeoLocations %}
  3272.                                             {{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
  3273.                                         {% endfor %}
  3274.                                     </div>
  3275.                                     <a data-offer-id=\"{{ offer.getID() }}\"
  3276.                                        class=\"text-slivki location-more-info-toggle\">Показать номер</a>
  3277.                                 </div>
  3278.                             {% endif %}
  3279.                         {% endif %}
  3280.                         <div class=\"offer-details-legal-info\">{{ offer.getLegal()|raw }}</div>
  3281.                         {% if offer.getTelegram() != null or offer.getViber() != null %}
  3282.                             <div class=\"contact-container d-flex py-2 px-1\">
  3283.                                 {% if offer.getTelegram() != null %}
  3284.                                     <a href=\"https://t.me/{{ offer.getTelegram() }}\" target=\"_blank\">
  3285.                                         <img alt=\"Telegram\" src=\"/images/telegram-icon-stretch.png\"/>
  3286.                                         <p>Написать в Telegram</p>
  3287.                                     </a>
  3288.                                 {% endif %}
  3289.                                 {% if offer.getViber() != null %}
  3290.                                     <a href=\"viber://chat?number={{ offer.getViber() }}\" target=\"_blank\">
  3291.                                         <img alt=\"Viber\" src=\"/images/viber-icon-stretch.png\"/>
  3292.                                         <p>Написать в Viber</p>
  3293.                                     </a>
  3294.                                 {% endif %}
  3295.                             </div>
  3296.                         {% endif %}
  3297.                     </div>
  3298.                     {% include 'Slivki/offers/share.html.twig' %}
  3299.                     {% include \"Slivki#{regional_template_path}/jivosite/button_offers_page.html.twig\" %}
  3300.                     <p class=\"tittle-messenger-offers d-none\">Мы всегда рады помочь: служба поддержки Slivki.by ответит на
  3301.                         любой
  3302.                         ваш вопрос</p>
  3303.                 </div>
  3304.             </div>
  3305.         </div>
  3306.         {% if (pastOffer or freeCodesCount == 0) and relatedOfferListHtml is defined %}
  3307.             <div class=\"col px-3\">
  3308.                 <div class=\"related-offers-title\">Другие похожие предложения:</div>
  3309.                 <div class=\"related-offers-list stock-group-list\">
  3310.                     {{ relatedOfferListHtml|raw }}
  3311.                 </div>
  3312.             </div>
  3313.         {% endif %}
  3314.     </div>
  3315.     {% if lastPurchaseText is defined %}
  3316.         <div id=\"lastPurchaseNofify\"><a href=\"#\"><i class=\"slivki-icon-close-thin\"></i></a>Последний раз промокод<br>получен {{ lastPurchaseText }}
  3317.         </div>
  3318.     {% endif %}
  3319. {% endblock %}
  3320. {% block popups %}
  3321.     {{ parent() }}
  3322.     {% if not pastOffer %}
  3323.         {% include 'Slivki/popups/header_offers.html.twig' %}
  3324.     {% endif %}
  3325.     {% include 'Slivki/share_block.html.twig' %}
  3326.     {% include 'Slivki/orderAsGift/foodForGift.html.twig' %}
  3327.     {% if  galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
  3328.         {% include 'Slivki/popups/details-story-popup.html.twig' %}
  3329.     {% endif %}
  3330.     {% include 'Slivki/popups/comment_media_block_popup.html.twig' %}
  3331.     {% include 'Slivki/popups/statistics_popup.html.twig' %}
  3332.     {% include 'Slivki/mobile/popup/buy_codes_avways_app.html.twig' %}
  3333.     {% include 'Slivki/delivery/modal/details.html.twig' with {'isOfferPage': true} %}
  3334.     {% if offer.isGiftCertificateOffer() %}
  3335.         {% include 'Slivki/popups/step_buy_certificate.twig' with {'deliveryLink': deliveryLink} %}
  3336.     {% endif %}
  3337.     {% if app.user %}
  3338.         {% include 'Slivki/popups/mail_offers.html.twig' %}
  3339.         {% include 'Slivki/popups/rating_edit_popup.html.twig' %}
  3340.         {% include 'Slivki/popups/popup_subscription_limited.html.twig' %}
  3341.         {% if not isMobileDevice() or offerIsFreeForUser %}
  3342.             {% if not codeCostInCurrency is defined and codeCostInCurrency is not null  %}
  3343.                 {% set codeCostInCurrency = null %}
  3344.             {% endif %}
  3345.             {% include 'Slivki/popups/confirm_box.html.twig' with {'codeCost': codeCost, 'offerID': offer.getID(), 'codeCostInCurrency': codeCostInCurrency} %}
  3346.             {% include 'Slivki/popups/confirm_subscription_card_popup.html.twig' with {'creditCards': app.user.getActiveCreditCards()} %}
  3347.         {% endif %}
  3348.         {% if not isMobileDevice() %}
  3349.             {% include 'Slivki/popups/add_comment_popup.html.twig' with {'id': 'addVoteBox'} %}
  3350.             {% include 'Slivki/popups/edit_comment_popup.html.twig' with {'id': 'editVoteBox'} %}
  3351.             {% include 'Slivki/popups/comment_censor_message.html.twig' with {'id': 'commentCensorMessage'} %}
  3352.         {% endif %}
  3353.     {% else %}
  3354.         {% if not isMobileDevice() %}
  3355.             {% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
  3356.         {% endif %}
  3357.     {% endif %}
  3358. {% endblock %}
  3359. {% block javascripts %}
  3360.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js\"
  3361.             integrity=\"sha512-jNDtFf7qgU0eH/+Z42FG4fw3w7DM/9zbgNPe3wfJlCylVDTT3IgKW5r92Vy9IHa6U50vyMz5gRByIu4YIXFtaQ==\"
  3362.             crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  3363.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
  3364.     <script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>
  3365.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js\"></script>
  3366.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/locale/ru.min.js\" integrity=\"sha512-QezkC2mljFGA2zQBPe+FrNA7i2RVFaYOfdQHk6icEap1TZX/Q6MNx+0AOTr9msSec0LsMrpURxfgJSbodYoiLg==\" crossorigin=\"anonymous\"></script>
  3367.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/fecha/2.3.3/fecha.min.js\"></script>
  3368.     <script src=\"/js/hotel-datepicker-3.6.5/hotel-datepicker.min.js\"></script>
  3369.     <script src=\"/js/swiper-js/swiper.min.js\"></script>
  3370.     <script src=\"/js/story-slider/story-slider-js.js?v={{ story_slider_js_version }}\"></script>
  3371.     {{ parent() }}
  3372.     <script src=\"/js/offer.js?v={{ offer_js_version }}\"></script>
  3373.     <script src=\"/js/offer/offerDescriptionItems.js?v={{ offer_description_items_js_version }}\"></script>
  3374.     <script src=\"/js/common-old.js?v={{ common_old_js_version }}\"></script>
  3375.     <script type=\"text/javascript\">
  3376.         {% if preview is defined and preview %}
  3377.         var offerPreview = 1;
  3378.         {% else %}
  3379.         var offerPreview = 0;
  3380.         {% endif %}
  3381.         {% if app.request.query.has('checkOrder') %}
  3382.         initCheckOfferOrderStatus({{ app.request.get('checkOrder') }});
  3383.         {% endif %}
  3384.     </script>
  3385.     <script src=\"/js/offer-new.js?v={{ offer_new_js_version }}\"/>
  3386. {% endblock %}
  3387. {% block assetsBottom %}
  3388.     {{ parent() }}
  3389.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js\" integrity=\"sha512-Y+0b10RbVUTf3Mi0EgJue0FoheNzentTMMIE2OreNbqnUPNbQj8zmjK3fs5D2WhQeGWIem2G2UkKjAL/bJ/UXQ==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  3390.     <script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script>
  3391.     <script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
  3392.     <script async src=\"//embedr.flickr.com/assets/client-code.js\" charset=\"utf-8\"></script>
  3393.     <script type=\"text/javascript\" src=\"/js/statistics_offer/statistics_offer.js?v={{ statistics_offer_js_version }}\" charset=\"utf-8\"></script>
  3394.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/jquery.easypiechart.min.js\" integrity=\"sha512-DHNepbIus9t4e6YoMBSJLwl+nnm0tIwMBonsQQ+W9NKN6gVVVbomJs9Ii3mQ+HzGZiU5FyJLdnAz9a63ZgZvTQ==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  3395.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/easypiechart.min.js\" integrity=\"sha512-1yldf7W5suy0ko2u4OGU1qyeGrzh9+A3uyWGH4ws8MbndaWxZsgnzy6uqqBq7NUU/ImI1Js5kqDbunovCN1JqA==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  3396.     <script src=\"https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js\"></script>
  3397.     <script type=\"module\" src=\"/js/work_examples/work_examples.js?v={{ work_examples_js_version }}\"></script>
  3398.     <script type=\"module\" src=\"/js/beauty/masters.js?v={{ beauty_masters_js_version }}\"></script>
  3399. {% endblock %}
  3400. {% block RTBHouse %}
  3401.     <script>
  3402.         try {
  3403.             (function () {
  3404.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = [];
  3405.                 rtbhTags.push(\"pr_\" + hash + \"_offer_\" + document.getElementById('offerID').value);
  3406.                 rtbhTags.push(\"pr_\" + hash + \"_uid_\" + document.getElementById('rtbhUID').value);
  3407.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key);
  3408.                 if (!lid) {
  3409.                     lid = \"\";
  3410.                     var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  3411.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length));
  3412.                     window.localStorage.setItem(key, lid);
  3413.                 }
  3414.                 rtbhTags.push(\"pr_\" + hash + \"_lid_\" + lid);
  3415.                 var ifr = document.createElement(\"iframe\"),
  3416.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  3417.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  3418.                     ifrSrc = \"https://\" + prefix + \"creativecdn.com/tags?type=iframe\",
  3419.                     tmstmp = encodeURIComponent(\"\" + Date.now());
  3420.                 for (var i = 0; i < rtbhTags.length; i++) {
  3421.                     ifrSrc += \"&id=\" + encodeURIComponent(rtbhTags[i]);
  3422.                 }
  3423.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  3424.                 ifr.setAttribute(\"src\", ifrSrc);
  3425.                 ifr.setAttribute(\"width\", \"1\");
  3426.                 ifr.setAttribute(\"height\", \"1\");
  3427.                 ifr.setAttribute(\"scrolling\", \"no\");
  3428.                 ifr.setAttribute(\"frameBorder\", \"0\");
  3429.                 ifr.setAttribute(\"style\", \"display:none\");
  3430.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\");
  3431.                 if (document.body) {
  3432.                     document.body.appendChild(ifr);
  3433.                 } else {
  3434.                     window.addEventListener('DOMContentLoaded', function () {
  3435.                         document.body.appendChild(ifr);
  3436.                     });
  3437.                 }
  3438.             })();
  3439.         } catch (e) {
  3440.         } </script>
  3441. {% endblock %}""Slivki/offers/details.html.twig""/mnt/data/virtwww/vlad-slivki/templates/Slivki/offers/details.html.twig");
  3442.     }
  3443. }