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

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