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

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