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

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