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