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

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