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

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