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

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