var/cache/dev/twig/f1/f13f8da7b7eabe01cb07c9c3034cd6c90a4b305f13c3ddd35c76941bffe75d20.php line 1929

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/mobile/offer/details.html.twig */
  14. class __TwigTemplate_debfce602e1226c7455cf784f41861747d69920e2fe10b1455143a82ecab344d 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.             'styles' => [$this'block_styles'],
  24.             'messenger' => [$this'block_messenger'],
  25.             'ogimage' => [$this'block_ogimage'],
  26.             'content' => [$this'block_content'],
  27.             'popup' => [$this'block_popup'],
  28.             'brandingBanner' => [$this'block_brandingBanner'],
  29.             'javascripts' => [$this'block_javascripts'],
  30.             'RTBHouse' => [$this'block_RTBHouse'],
  31.         ];
  32.     }
  33.     protected function doGetParent(array $context)
  34.     {
  35.         // line 2
  36.         return "Slivki/mobile/base.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = [])
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/mobile/offer/details.html.twig"));
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/mobile/offer/details.html.twig"));
  45.         // line 1
  46.         $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.'1$this->source); })()), "getPhoneNumbersWithoutGeoLocations", [], "method"falsefalsefalse1);
  47.         // line 34
  48.         $context["isBatchCodesAllowed"] = (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.'34$this->source); })()), "user", [], "any"falsefalsefalse34) && 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.'34$this->source); })()), "user", [], "any"falsefalsefalse34), "isBatchCodesAllowed", [], "any"falsefalsefalse34));
  49.         // line 2
  50.         $this->parent $this->loadTemplate("Slivki/mobile/base.html.twig""Slivki/mobile/offer/details.html.twig"2);
  51.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  52.         
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  54.         
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  56.     }
  57.     // line 3
  58.     public function block_styles($context, array $blocks = [])
  59.     {
  60.         $macros $this->macros;
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""styles"));
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""styles"));
  65.         // line 4
  66.         echo "    <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\"/>
  67.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css\"/>
  68.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\"/>
  69.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick-theme.min.css\"/>
  70.     <link rel=\"stylesheet\" href=\"/admin/plugins/datetimepicker/css/bootstrap-datetimepicker.min.css\">
  71.     <link rel=\"stylesheet\" href=\"/admin/plugins/datatables/jquery.dataTables.min.css\"/>
  72.     <link rel=\"stylesheet\" href=\"/admin/plugins/colorpicker/bootstrap-colorpicker.min.css\"/>
  73.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.css\">
  74.     ";
  75.         // line 12
  76.         $this->displayParentBlock("styles"$context$blocks);
  77.         echo "
  78.     <link href=\"/css/delivery.min.css?v=";
  79.         // line 13
  80.         echo twig_escape_filter($this->env, (isset($context["delivery_css_version"]) || array_key_exists("delivery_css_version"$context) ? $context["delivery_css_version"] : (function () { throw new RuntimeError('Variable "delivery_css_version" does not exist.'13$this->source); })()), "html"nulltrue);
  81.         echo "\" rel=\"stylesheet\" type=\"text/css\"/>
  82.     <link href=\"/mobile/css/offers.min.css?v=";
  83.         // line 14
  84.         echo twig_escape_filter($this->env, (isset($context["mobile_offers_css"]) || array_key_exists("mobile_offers_css"$context) ? $context["mobile_offers_css"] : (function () { throw new RuntimeError('Variable "mobile_offers_css" does not exist.'14$this->source); })()), "html"nulltrue);
  85.         echo "\" rel=\"stylesheet\" type=\"text/css\"/>
  86.     <link href=\"/css/foodForGift.css?v=";
  87.         // line 15
  88.         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.'15$this->source); })()), "html"nulltrue);
  89.         echo "\" rel=\"stylesheet\" type=\"text/css\"/>
  90.     <link href=\"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap\"
  91.           rel=\"stylesheet\">
  92.     <link href=\" /mobile/css/statistics_modal.css?v=3\" rel=\"stylesheet\" type=\"text/css\"/>
  93. ";
  94.         
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  96.         
  97.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  98.     }
  99.     // line 21
  100.     public function block_messenger($context, array $blocks = [])
  101.     {
  102.         $macros $this->macros;
  103.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  104.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""messenger"));
  105.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  106.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""messenger"));
  107.         
  108.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  109.         
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  111.     }
  112.     // line 23
  113.     public function block_ogimage($context, array $blocks = [])
  114.     {
  115.         $macros $this->macros;
  116.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  117.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogimage"));
  118.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  119.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogimage"));
  120.         // line 24
  121.         echo "    ";
  122.         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.'24$this->source); })())), 0))) {
  123.             // line 25
  124.             echo "        <meta property=\"og:image\"
  125.               content=\"";
  126.             // line 26
  127.             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.'26$this->source); })()), "request", [], "any"falsefalsefalse26), "getSchemeAndHttpHost", [], "method"falsefalsefalse26), "html"nulltrue);
  128.             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.'26$this->source); })())), 522322), "html"nulltrue);
  129.             echo "\"/>
  130.         <meta property=\"og:image:width\" content=\"522\"/>
  131.         <meta property=\"og:image:height\" content=\"322\"/>
  132.     ";
  133.         } else {
  134.             // line 30
  135.             echo "        ";
  136.             $this->displayParentBlock("ogimage"$context$blocks);
  137.             echo "
  138.     ";
  139.         }
  140.         
  141.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  142.         
  143.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  144.     }
  145.     // line 36
  146.     public function block_content($context, array $blocks = [])
  147.     {
  148.         $macros $this->macros;
  149.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  150.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  151.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  152.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  153.         // line 37
  154.         echo "    ";
  155.         $context["isPickupEnabled"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["offer"] ?? null), "getOnlineOrderSettings", [], "method"falsetruefalse37), "isPickupEnabled", [], "method"truetruefalse37)) ? (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.'37$this->source); })()), "getOnlineOrderSettings", [], "method"falsefalsefalse37), "isPickupEnabled", [], "method"falsefalsefalse37)) : (""));
  156.         // line 38
  157.         echo "    ";
  158.         $context["isDeliveryEnabled"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["offer"] ?? null), "getOnlineOrderSettings", [], "method"falsetruefalse38), "isDeliveryEnabled", [], "method"truetruefalse38)) ? (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.'38$this->source); })()), "getOnlineOrderSettings", [], "method"falsefalsefalse38), "isDeliveryEnabled", [], "method"falsefalsefalse38)) : (""));
  159.         // line 39
  160.         echo "
  161.     ";
  162.         // line 40
  163.         if ((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList"$context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.'40$this->source); })())) {
  164.             // line 41
  165.             echo "        ";
  166.             $this->loadTemplate("Slivki/mobile/breadcrumbs.html.twig""Slivki/mobile/offer/details.html.twig"41)->display(twig_to_array(["parentCategoryList" => (isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList"$context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.'41$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.'41$this->source); })()), "getSupplierCategoryData", [], "method"falsefalsefalse41)]));
  167.             // line 42
  168.             echo "    ";
  169.         }
  170.         // line 43
  171.         echo "    ";
  172.         if (((isset($context["isPickupEnabled"]) || array_key_exists("isPickupEnabled"$context) ? $context["isPickupEnabled"] : (function () { throw new RuntimeError('Variable "isPickupEnabled" does not exist.'43$this->source); })()) || (isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled"$context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.'43$this->source); })()))) {
  173.             // line 44
  174.             echo "        <input id=\"deliveryMethodEnabled\" type=\"hidden\" value=\"";
  175.             echo (((=== twig_compare((isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled"$context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.'44$this->source); })()), ""))) ? ("2") : ("1"));
  176.             echo "\">
  177.     ";
  178.         }
  179.         // line 46
  180.         echo "    <input id=\"offerPage\" type=\"hidden\" value=\"\">
  181.     <input id=\"offerID\" type=\"hidden\" value=\"";
  182.         // line 47
  183.         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.'47$this->source); })()), "getID", [], "method"falsefalsefalse47), "html"nulltrue);
  184.         echo "\">
  185.     <input id=\"isMedicalCenter\" type=\"hidden\"
  186.            value=\"";
  187.         // line 49
  188.         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.'49$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.'49$this->source); })()), 0, [], "array"falsefalsefalse49), "getID", [], "method"falsefalsefalse49), twig_constant("Slivki\\Entity\\Category::MEDICAL_CENTER_CATEGORY_ID")))), "html"nulltrue);
  189.         echo "\">
  190.     <input type=\"hidden\" id=\"stock-id\" value=\"";
  191.         // line 50
  192.         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.'50$this->source); })()), "getID", [], "method"falsefalsefalse50), "html"nulltrue);
  193.         echo "\">
  194.     <input type=\"hidden\" id=\"stock-link\" value=\"";
  195.         // line 51
  196.         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.'51$this->source); })()), "request", [], "any"falsefalsefalse51), "getSchemeAndHttpHost", [], "method"falsefalsefalse51) . 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.'51$this->source); })()), "request", [], "any"falsefalsefalse51), "getRequestUri", [], "method"falsefalsefalse51)), "html"nulltrue);
  197.         echo "\">
  198.     <div type=\"hidden\" id=\"mobileVersionIndicator\"></div>
  199.     ";
  200.         // line 53
  201.         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.'53$this->source); })()), "user", [], "any"falsefalsefalse53) && $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.'53$this->source); })()), "user", [], "any"falsefalsefalse53)))) {
  202.             // line 54
  203.             echo "        <input id=\"allowedCodesCountBySubscription\" type=\"hidden\" value=\"";
  204.             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.'54$this->source); })()), "html"nulltrue);
  205.             echo "\">
  206.     ";
  207.         }
  208.         // line 56
  209.         echo "    ";
  210.         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.'56$this->source); })()), "user", [], "any"falsefalsefalse56)) {
  211.             // line 57
  212.             echo "        <input id=\"splitTotalCodesCountByUser\" type=\"hidden\" value=\"";
  213.             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.'57$this->source); })()), "user", [], "any"falsefalsefalse57), "getCodesCountByOffer", [=> (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'57$this->source); })())], "method"falsefalsefalse57), "html"nulltrue);
  214.             echo "\">
  215.         <input type=\"hidden\" id=\"customerID\" value=\"";
  216.             // line 58
  217.             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.'58$this->source); })()), "user", [], "any"falsefalsefalse58), "getID", [], "method"falsefalsefalse58), "html"nulltrue);
  218.             echo "\"/>
  219.     ";
  220.         }
  221.         // line 60
  222.         echo "    <meta content=\"";
  223.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["metaInfo"]) || array_key_exists("metaInfo"$context) ? $context["metaInfo"] : (function () { throw new RuntimeError('Variable "metaInfo" does not exist.'60$this->source); })()), "metaDescription", [], "any"falsefalsefalse60), "html"nulltrue);
  224.         echo "\"/>
  225.     <div id=\"offerDetails\">
  226.         <div class=\"collapse-more-button\"></div>
  227.         ";
  228.         // line 63
  229.         $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.'63$this->source); })()), "user", [], "any"falsefalsefalse63)) ? (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.'63$this->source); })()), "user", [], "any"falsefalsefalse63), "isOfferFavourite", [=> (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'63$this->source); })())], "method"falsefalsefalse63)) : (false));
  230.         // line 64
  231.         echo "        <div class=\"no-gutters pb-2\">
  232.             <div class=\"col-12 col-sm-4\">
  233.                 <div id=\"offerImageSlider\" class=\"m-0 swiper-container\">
  234.                     <div class=\"back-button\" onclick=\"history.back();\">
  235.                         <img src=\"/images/back-violet.svg\"/>
  236.                     </div>
  237.                     ";
  238.         // line 70
  239.         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.'70$this->source); })()), "user", [], "method"falsefalsefalse70)) {
  240.             // line 71
  241.             echo "                        <div class=\"fovoutite-block\"
  242.                              onclick=\"onFavouriteClickOffer(";
  243.             // line 72
  244.             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.'72$this->source); })()), "getID", [], "method"falsefalsefalse72), "html"nulltrue);
  245.             echo ", ";
  246.             echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite"$context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.'72$this->source); })())) ? ("true") : ("false"));
  247.             echo ")\">
  248.                             <img width=\"18\" height=\"18\"
  249.                                  src=\"";
  250.             // line 74
  251.             echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite"$context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.'74$this->source); })())) ? ("/images/heart_active.svg") : ("/images/heart.svg"));
  252.             echo "\"/>
  253.                         </div>
  254.                     ";
  255.         }
  256.         // line 77
  257.         echo "                    ";
  258.         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.'77$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse77)) {
  259.             // line 78
  260.             echo "                        <div class=\"discount-block\">
  261.                             ";
  262.             // line 79
  263.             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.'79$this->source); })()), "getDiscount", [], "method"falsefalsefalse79), "html"nulltrue);
  264.             echo "
  265.                         </div>
  266.                     ";
  267.         }
  268.         // line 82
  269.         echo "                    ";
  270.         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.'82$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse82))) {
  271.             // line 83
  272.             echo "                        <div id=\"statisticsButton\" data-toggle=\"modal\" data-target=\"#statisticOffersPopup\">
  273.                             <img width=\"37\" height=\"37\" src=\"/images/statistics.png\"/>
  274.                         </div>
  275.                     ";
  276.         }
  277.         // line 87
  278.         echo "                    <div class=\"swiper-wrapper\"
  279.                          data-pixel=";
  280.         // line 88
  281.         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.'88$this->source); })()), "getID", [], "method"falsefalsefalse88), 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%") : (""));
  282.         echo ">
  283.                         ";
  284.         // line 89
  285.         $context["medias"] = twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'89$this->source); })()), "getDetailMedias", [], "method"falsefalsefalse89);
  286.         // line 90
  287.         echo "                        ";
  288.         $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.'90$this->source); })()));
  289.         // line 91
  290.         echo "                        ";
  291.         if ((=== twig_compare((isset($context["mediaCount"]) || array_key_exists("mediaCount"$context) ? $context["mediaCount"] : (function () { throw new RuntimeError('Variable "mediaCount" does not exist.'91$this->source); })()), 1))) {
  292.             // line 92
  293.             echo "                            ";
  294.             $context['_parent'] = $context;
  295.             $context['_seq'] = twig_ensure_traversable((isset($context["medias"]) || array_key_exists("medias"$context) ? $context["medias"] : (function () { throw new RuntimeError('Variable "medias" does not exist.'92$this->source); })()));
  296.             foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  297.                 // line 93
  298.                 echo "                                <div class=\"swiper-slide\">
  299.                                     ";
  300.                 // line 94
  301.                 if (twig_get_attribute($this->env$this->source$context["media"], "isYoutube", [], "method"falsefalsefalse94)) {
  302.                     // line 95
  303.                     echo "                                        <input class=\"js-src-video\" type=\"hidden\" value=\"https://www.youtube.com/embed/";
  304.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getName", [], "method"falsefalsefalse95), "html"nulltrue);
  305.                     echo "\">
  306.                                     ";
  307.                 } else {
  308.                     // line 97
  309.                     echo "                                        <img class=\"img-fluid lazyload\" alt=\"";
  310.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getDescription", [], "method"falsefalsefalse97), "html"nulltrue);
  311.                     echo "\"
  312.                                              src=\"";
  313.                     // line 98
  314.                     echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 1044644), "html"nulltrue);
  315.                     echo "\"/>
  316.                                     ";
  317.                 }
  318.                 // line 100
  319.                 echo "                                </div>
  320.                             ";
  321.             }
  322.             $_parent $context['_parent'];
  323.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  324.             $context array_intersect_key($context$_parent) + $_parent;
  325.             // line 102
  326.             echo "                        ";
  327.         } elseif ((=== twig_compare((isset($context["mediaCount"]) || array_key_exists("mediaCount"$context) ? $context["mediaCount"] : (function () { throw new RuntimeError('Variable "mediaCount" does not exist.'102$this->source); })()), 1))) {
  328.             // line 103
  329.             echo "                            <div>
  330.                                 <img class=\"img-fluid lazyload\" alt=\"";
  331.             // line 104
  332.             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.'104$this->source); })()), 0, [], "array"falsefalsefalse104), "getDescription", [], "method"falsefalsefalse104), "html"nulltrue);
  333.             echo "\"
  334.                                      src=\"";
  335.             // line 105
  336.             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.'105$this->source); })()), 0, [], "array"falsefalsefalse105), 1044644), "html"nulltrue);
  337.             echo "\"/>
  338.                             </div>
  339.                         ";
  340.         }
  341.         // line 108
  342.         echo "                    </div>
  343.                     ";
  344.         // line 109
  345.         if ((=== twig_compare((isset($context["mediaCount"]) || array_key_exists("mediaCount"$context) ? $context["mediaCount"] : (function () { throw new RuntimeError('Variable "mediaCount" does not exist.'109$this->source); })()), 1))) {
  346.             // line 110
  347.             echo "                        <div class=\"swiper-pagination mt-2\"></div>
  348.                         <div class=\"swiper-button-next\"></div>
  349.                         <div class=\"swiper-button-prev\"></div>
  350.                     ";
  351.         }
  352.         // line 114
  353.         echo "                </div>
  354.             </div>
  355.             <div class=\"container-offers\">
  356.                 <div class=\"tags-offers\">
  357.                     ";
  358.         // line 118
  359.         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.'118$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse118)) {
  360.             // line 119
  361.             echo "                        <div class=\"tags-offers-item\"
  362.                              data-toggle=\"tooltip\"
  363.                              data-placement=\"top\"
  364.                              data-html=\"true\"
  365.                              data-original-title=\"Взято кодов <br> Всего <a>";
  366.             // line 123
  367.             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.'123$this->source); })())) : ((isset($context["usedCodesCount"]) || array_key_exists("usedCodesCount"$context) ? $context["usedCodesCount"] : (function () { throw new RuntimeError('Variable "usedCodesCount" does not exist.'123$this->source); })()))), "html"nulltrue);
  368.             echo "</a> </br> За сутки ";
  369.             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.'123$this->source); })()), "html"nulltrue);
  370.             echo " </br> За месяц ";
  371.             echo 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.'123$this->source); })()), "getID", [], "method"falsefalsefalse123), 30), "html"nulltrue);
  372.             echo "\">
  373.                             <img src=\"/images/offers/icon_people.svg\"/>
  374.                             <p class=\"mb-0\"><a>";
  375.             // line 126
  376.             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.'126$this->source); })())) : ((isset($context["usedCodesCount"]) || array_key_exists("usedCodesCount"$context) ? $context["usedCodesCount"] : (function () { throw new RuntimeError('Variable "usedCodesCount" does not exist.'126$this->source); })()))), "html"nulltrue);
  377.             echo "</a></p>
  378.                         </div>
  379.                     ";
  380.         }
  381.         // line 129
  382.         echo "                    <div class=\"tags-offers-item view-count\" class=\"view-count d-flex\"
  383.                          data-toggle=\"tooltip\"
  384.                          data-placement=\"top\"
  385.                          data-html=\"true\"
  386.                          data-original-title=\"Просмотров  </br> За сутки ";
  387.         // line 133
  388.         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.'133$this->source); })()), "html"nulltrue);
  389.         echo "<br> За месяц <span class='m-0'><a>";
  390.         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.'133$this->source); })()), "html"nulltrue);
  391.         echo "</a></span>\">
  392.                         <img src=\"/images/offers/statistic_1.svg\"/>
  393.                         <p class=\"mb-0\">";
  394.         // line 135
  395.         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.'135$this->source); })()), "html"nulltrue);
  396.         echo "</p>
  397.                     </div>
  398.                     ";
  399.         // line 138
  400.         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)) {
  401.             // line 139
  402.             echo "                        <div class=\"tags-offers-item\"
  403.                              data-toggle=\"tooltip\"
  404.                              data-placement=\"top\"
  405.                              data-html=\"true\"
  406.                              data-original-title=\"Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней\">
  407.                             <img src=\"/images/offers/conversion.svg\"/>
  408.                             <p class=\"mb-0\">";
  409.             // line 145
  410.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getOfferConversion(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'145$this->source); })()), "getID", [], "method"falsefalsefalse145)), "html"nulltrue);
  411.             echo "%</p>
  412.                         </div>
  413.                     ";
  414.         }
  415.         // line 148
  416.         echo "                    <div class=\"tags-offers-item rating-block\"
  417.                          data-html=\"true\"
  418.                          data-toggle=\"tooltip\"
  419.                          data-placement=\"top\"
  420.                          data-original-title=\"Рейтинг компании <br> за 90 дней\">
  421.                         <span>★</span>
  422.                         <p class=\"mb-0\">";
  423.         // line 154
  424.         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.'154$this->source); })()), "getRating", [], "method"falsefalsefalse154), "html"nulltrue);
  425.         echo "</p>
  426.                     </div>
  427.                     ";
  428.         // line 156
  429.         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.'156$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse156)) {
  430.             // line 157
  431.             echo "                        <div class=\"tags-offers-item day-to-end\"
  432.                              data-toggle=\"tooltip\"
  433.                              data-placement=\"top\"
  434.                              data-html=\"true\"
  435.                              data-original-title=\"Дней до окончания <br> действия акции\">
  436.                             <img src=\"/images/offers/icon_time.svg\"/>
  437.                             <p class=\"mb-0\">
  438.                                 ";
  439.             // line 165
  440.             if ((=== twig_compare((isset($context["daysLeft"]) || array_key_exists("daysLeft"$context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.'165$this->source); })()), 0))) {
  441.                 // line 166
  442.                 echo "                                    ";
  443.                 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.'166$this->source); })()), "html"nulltrue);
  444.                 echo " ";
  445.                 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.'166$this->source); })())), "html"nulltrue);
  446.                 echo "
  447.                                 ";
  448.             } elseif ((=== twig_compare(            // line 167
  449. (isset($context["daysLeft"]) || array_key_exists("daysLeft"$context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.'167$this->source); })()), 0))) {
  450.                 // line 168
  451.                 echo "                                    <input type=\"hidden\" id=\"daysLeft\" value=\"";
  452.                 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.'168$this->source); })()), "html"nulltrue);
  453.                 echo " &nbsp;\"/>
  454.                                     <input type=\"hidden\" id=\"hoursLeft\" value=\"";
  455.                 // line 169
  456.                 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.'169$this->source); })()), "html"nulltrue);
  457.                 echo " &nbsp;\"/>
  458.                                     <input type=\"hidden\" id=\"minutesLeft\" value=\"";
  459.                 // line 170
  460.                 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.'170$this->source); })()), "html"nulltrue);
  461.                 echo " &nbsp;\"/>
  462.                                     <input type=\"hidden\" id=\"secondsLeft\"
  463.                                            value=\"";
  464.                 // line 172
  465.                 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.'172$this->source); })()), "getActiveTill", [], "method"falsefalsefalse172), "diff", [=> twig_date_converter($this->env)], "method"falsefalsefalse172), "format", [=> "%s"], "method"falsefalsefalse172), "html"nulltrue);
  466.                 echo "\"/>
  467.                                     <span id=\"hours\">";
  468.                 // line 173
  469.                 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.'173$this->source); })()), "html"nulltrue);
  470.                 echo "&nbsp</span>час";
  471.                 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.'173$this->source); })())), "html"nulltrue);
  472.                 echo "&nbsp;
  473.                                 ";
  474.             }
  475.             // line 175
  476.             echo "                            </p>
  477.                         </div>
  478.                     ";
  479.         }
  480.         // line 178
  481.         echo "                </div>
  482.                 <p class=\"tittle-offers js-tittle-offer\"
  483.                    style=\"color: ";
  484.         // line 180
  485.         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.'180$this->source); })()), "getTitleFontColor", [], "method"falsefalsefalse180), "html"nulltrue);
  486.         echo ";\">";
  487.         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.'180$this->source); })()), "getTitle", [], "method"falsefalsefalse180);
  488.         echo "</p>
  489.                 <div class=\"offers-description\">
  490.                     ";
  491.         // line 182
  492.         if (( !(isset($context["pastOffer"]) || array_key_exists("pastOffer"$context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.'182$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.'182$this->source); })()), "getFreeCodesCount", [], "method"falsefalsefalse182), 0)))) {
  493.             // line 183
  494.             echo "                        <div class=\"pb-3 d-flex border-bottom-gray\">
  495.                             <div class=\"col px-0 price-services-tittle\">Стоимость:</div>
  496.                             <del id=\"offerRegularPrice\"
  497.                                  class=\"regular-price-offer\">";
  498.             // line 186
  499.             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.'186$this->source); })()), "getRegularPrice", [], "method"falsefalsefalse186), "html"nulltrue);
  500.             echo "</del>
  501.                             &nbsp;&nbsp;
  502.                             <div class=\"price-services-new\">";
  503.             // line 188
  504.             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.'188$this->source); })()), "getOfferPrice", [], "method"falsefalsefalse188), ["(" => "<span id=\"details-offer-price\">("")" => ")</span>"]);
  505.             echo "</div>
  506.                             <input type=\"hidden\" id=\"codeCost\" value=\"";
  507.             // line 189
  508.             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.'189$this->source); })()), "html"nulltrue);
  509.             echo "\">
  510.                         </div>
  511.                     ";
  512.         } else {
  513.             // line 192
  514.             echo "                        <div class=\"card border-0 mt-3\">
  515.                             <div class=\"card-body p-0 pl-2 text-center\">
  516.                                 <i class=\"slivki-icon-minus-circled text-danger d-block h1 mb-0\"></i>
  517.                                 Акция завершена
  518.                             </div>
  519.                         </div>
  520.                     ";
  521.         }
  522.         // line 199
  523.         echo "                </div>
  524.             </div>
  525.         </div>
  526.         ";
  527.         // line 202
  528.         if (((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer"$context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.'202$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.'202$this->source); })()), "getFreeCodesCount", [], "method"falsefalsefalse202), 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.'202$this->source); })()), "isOnlineOrderGiftEnabled", [], "method"falsefalsefalse202)) && twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'202$this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method"falsefalsefalse202))) {
  529.             // line 203
  530.             echo "            <div class=\"col my-2\">
  531.                 <a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
  532.                     <div class=\"button-gift-text\">
  533.                         <p class=\"mb-0\">ЕДА В ПОДАРОК 😋</p>
  534.                         <p class=\"mb-0\">Подарю сам или подарят мне</p>
  535.                     </div>
  536.                 </a>
  537.             </div>
  538.         ";
  539.         }
  540.         // line 212
  541.         echo "        ";
  542.         if ((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer"$context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.'212$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.'212$this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method"falsefalsefalse212)) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE")))) {
  543.             // line 215
  544.             echo "
  545.             <div class=\"col my-2\">
  546.                 ";
  547.             // line 217
  548.             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.'217$this->source); })()), "user", [], "any"falsefalsefalse217)) {
  549.                 // line 218
  550.                 echo "                    <a class=\"button-gift\" href=\"/virtual-wallet-pay\">
  551.                         <div class=\"button-gift-text\">
  552.                             <p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
  553.                             <p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY + 5%</p>
  554.                         </div>
  555.                         <div class=\"button-gift-item-button\">
  556.                             <div class=\"new\">NEW</div>
  557.                         </div>
  558.                     </a>
  559.                 ";
  560.             } else {
  561.                 // line 228
  562.                 echo "                    <a class=\"button-gift\"  data-toggle=\"modal\" data-target=\".modal-auth\">
  563.                         <div class=\"button-gift-text\">
  564.                             <p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
  565.                             <p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY + 5%</p>
  566.                         </div>
  567.                         <div class=\"button-gift-item-button\">
  568.                             <div class=\"new\">NEW</div>
  569.                         </div>
  570.                     </a>
  571.                 ";
  572.             }
  573.             // line 238
  574.             echo "            </div>
  575.         ";
  576.         }
  577.         // line 240
  578.         echo "        ";
  579.         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.'240$this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method"falsefalsefalse240) &&  !(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.'240$this->source); })()), "getOnlineOrderSettings", [], "method"falsefalsefalse240))) && (=== 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.'240$this->source); })()), "getOnlineOrderSettings", [], "method"falsefalsefalse240), "allowedPaymentMethods", [], "any"falsefalsefalse240), "delivery", [], "array"falsefalsefalse240), 4, [], "array"falsefalsefalse240), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) &&  !(isset($context["pastOffer"]) || array_key_exists("pastOffer"$context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.'240$this->source); })())) || ((((twig_get_attribute($this->env$this->source,         // line 241
  580. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'241$this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method"falsefalsefalse241) &&  !(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.'241$this->source); })()), "getOnlineOrderSettings", [], "method"falsefalsefalse241))) && (=== 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.'241$this->source); })()), "getOnlineOrderSettings", [], "method"falsefalsefalse241), "allowedPaymentMethods", [], "any"falsefalsefalse241), "pickup", [], "array"falsefalsefalse241), 4, [], "array"falsefalsefalse241), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) &&  !(isset($context["pastOffer"]) || array_key_exists("pastOffer"$context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.'241$this->source); })()))) || (((twig_get_attribute($this->env$this->source,         // line 242
  581. ($context["offer"] ?? null), "getAllowedPaymentMethodsForCertificate", [], "method"truetruefalse242) &&  !(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.'242$this->source); })()), "getAllowedPaymentMethodsForCertificate", [], "method"falsefalsefalse242))) && (=== 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.'242$this->source); })()), "getAllowedPaymentMethodsForCertificate", [], "method"falsefalsefalse242), 4, [], "array"falsefalsefalse242), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))))) {
  582.             // line 243
  583.             echo "            <div class=\"col my-2\">
  584.                 ";
  585.             // line 244
  586.             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.'244$this->source); })()), "user", [], "any"falsefalsefalse244)) {
  587.                 // line 245
  588.                 echo "                    <a class=\"button-gift\" href=\"/virtual-wallet-pay\">
  589.                         <div class=\"button-gift-text\">
  590.                             <p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
  591.                             <p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY + 5%</p>
  592.                         </div>
  593.                         <div class=\"button-gift-item-button\">
  594.                             <div class=\"new\">NEW</div>
  595.                         </div>
  596.                     </a>
  597.                 ";
  598.             } else {
  599.                 // line 255
  600.                 echo "                    <a class=\"button-gift\"  data-toggle=\"modal\" data-target=\".modal-auth\">
  601.                         <div class=\"button-gift-text\">
  602.                             <p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
  603.                             <p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY + 5%</p>
  604.                         </div>
  605.                         <div class=\"button-gift-item-button\">
  606.                             <div class=\"new\">NEW</div>
  607.                         </div>
  608.                     </a>
  609.                 ";
  610.             }
  611.             // line 265
  612.             echo "            </div>
  613.         ";
  614.         }
  615.         // line 267
  616.         echo "        <div class=\"sticky-element\">
  617.             <div class=\"sticky-anchor\"></div>
  618.             <div id=\"offerNavigation\">
  619.                 <ul class=\"nav-list\">
  620.                     <li class=\"nav-item\"><a href=\"#offerDescriptionTab\" class=\"nav-links active\">
  621.                             Условия
  622.                         </a>
  623.                     </li>
  624.                     <li class=\"nav-item\"><a href=\"#offerAddressTab\" class=\"nav-links \">
  625.                             Контакты
  626.                         </a>
  627.                     </li>
  628.                     <li class=\"nav-item\"><a href=\"#offerCommentTab\" class=\"nav-links\"><span></span>
  629.                             Отзывы
  630.                         </a>
  631.                     </li>
  632.                 </ul>
  633.             </div>
  634.         </div>
  635.         <div id=\"offerAccordion\" class=\"accordion mt-2 px-2\">
  636.             ";
  637.         // line 287
  638.         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.'287$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse287) && twig_get_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); })()), "isTireOnlineOrderAllowedOnSite", [], "method"falsefalsefalse287))) {
  639.             // line 288
  640.             echo "            ";
  641.             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.'288$this->source); })()), "user", [], "any"falsefalsefalse288)) {
  642.                 // line 289
  643.                 echo "                <div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
  644.                     <div id=\"buyButtonCard\" class=\"card\">
  645.                         <div class=\"card-header\">
  646.                             <a id=\"deliveryBtn\" href=\"#\" onclick=\"\$('.modal-auth').modal()\"
  647.                                class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
  648.                 // line 293
  649.                 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.'293$this->source); })()), "hasFreeCodes", [], "method"falsefalsefalse293)) ? (" opacity-05") : (""));
  650.                 echo "\">
  651.                                 Онлайн-запись
  652.                             </a>
  653.                         </div>
  654.                     </div>
  655.                 </div>
  656.             ";
  657.             } else {
  658.                 // line 300
  659.                 echo "                <div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
  660.                     <div id=\"buyButtonCard\" class=\"card\">
  661.                         <div class=\"card-header\">
  662.                             <a id=\"deliveryBtn\" href=\"";
  663.                 // line 303
  664.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'303$this->source); })()), "getOnlineRegistrationLink", [], "method"falsefalsefalse303), "html"nulltrue);
  665.                 echo "\"
  666.                                class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
  667.                 // line 304
  668.                 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.'304$this->source); })()), "hasFreeCodes", [], "method"falsefalsefalse304)) ? (" opacity-05") : (""));
  669.                 echo "\">
  670.                                 Онлайн-запись
  671.                             </a>
  672.                         </div>
  673.                     </div>
  674.                 </div>
  675.             ";
  676.             }
  677.             // line 311
  678.             echo "
  679.             ";
  680.         }
  681.         // line 313
  682.         echo "            ";
  683.         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.'313$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse313)) {
  684.             // line 314
  685.             echo "                <div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
  686.                     ";
  687.             // line 315
  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.'315$this->source); })()), "isBuyCodeDisable", [], "method"falsefalsefalse315)) {
  689.                 // line 316
  690.                 echo "                        <div id=\"buyButtonCard\" class=\"card\">
  691.                             <div class=\"card-header\">
  692.                                 ";
  693.                 // line 318
  694.                 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.'318$this->source); })()), "getID", [], "method"falsefalsefalse318), twig_constant("Slivki\\Entity\\Offer::BOOKING_OFFER_ID")))) {
  695.                     // line 319
  696.                     echo "                                    <a href=\"#\" class=\"m-0 card-link bg-slivki\" data-toggle=\"modal\"
  697.                                        data-target=\"#bookingItemPopup\">
  698.                                         ";
  699.                     // line 321
  700.                     (((twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'321$this->source); })()), "getBuyCodeButtonText", [], "method"falsefalsefalse321) && (!== 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.'321$this->source); })()), "getBuyCodeButtonText", [], "method"falsefalsefalse321), "")))) ? (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.'321$this->source); })()), "getBuyCodeButtonText", [], "method"falsefalsefalse321), "html"nulltrue))) : (print ("Забронировать номер")));
  701.                     echo "
  702.                                     </a>
  703.                                 ";
  704.                 } else {
  705.                     // line 324
  706.                     echo "                                    ";
  707.                     if (( !(isset($context["pastOffer"]) || array_key_exists("pastOffer"$context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.'324$this->source); })()) && (=== twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount"$context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.'324$this->source); })()), 0)))) {
  708.                         // line 325
  709.                         echo "                                        ";
  710.                         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.'325$this->source); })()), "user", [], "any"falsefalsefalse325)) {
  711.                             // line 326
  712.                             echo "                                            <a href=\"#\" class=\"m-0 card-link bg-slivki by-code-button text-uppercase\"
  713.                                                onclick=\"\$('.modal-auth').modal()\">
  714.                                                 ";
  715.                             // line 328
  716.                             if ((isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser"$context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.'328$this->source); })())) {
  717.                                 // line 329
  718.                                 echo "                                                    БЕСПЛАТНЫЙ ПРОМОКОД
  719.                                                 ";
  720.                             } else {
  721.                                 // line 331
  722.                                 echo "                                                    ";
  723.                                 echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel"$context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.'331$this->source); })()), "html"nulltrue);
  724.                                 echo "
  725.                                                 ";
  726.                             }
  727.                             // line 333
  728.                             echo "                                            </a>
  729.                                         ";
  730.                         } else {
  731.                             // line 335
  732.                             echo "                                            <a href=\"javascript:void(0)\" id=\"buyCodeButtonFake\"
  733.                                                class=\"m-0 d-none card-link bg-slivki by-code-button\">
  734.                                                 <img class=\"fixed-size\" width=\"14\" src=\"/images/loading-animation.gif\"
  735.                                                      alt=\"\"/>
  736.                                             </a>
  737.                                             ";
  738.                             // line 340
  739.                             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.'340$this->source); })()), "getID", [], "method"falsefalsefalse340), twig_constant("Slivki\\Entity\\Offer::PETROL_OFFER_ID")))) {
  740.                                 // line 341
  741.                                 echo "                                                <a href=\"#\"
  742.                                                    onclick=\"showFakeButton(); if (window.google_tag_manager) {ga('send', 'event', 'Buy code', 'Click', '";
  743.                                 // line 342
  744.                                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Default:details"twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'342$this->source); })()), "getID", [], "method"falsefalsefalse342)), "html"nulltrue);
  745.                                 echo "');} document.location='/oplata-promokoda-azs'\"
  746.                                                    class=\"m-0 card-link bg-slivki by-code-button\" id=\"buyCodeButton\">
  747.                                                     ";
  748.                                 // line 344
  749.                                 if ((isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser"$context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.'344$this->source); })())) {
  750.                                     // line 345
  751.                                     echo "                                                        БЕСПЛАТНЫЙ ПРОМОКОД
  752.                                                     ";
  753.                                 } else {
  754.                                     // line 347
  755.                                     echo "                                                        ";
  756.                                     echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel"$context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.'347$this->source); })()), "html"nulltrue);
  757.                                     echo "
  758.                                                     ";
  759.                                 }
  760.                                 // line 349
  761.                                 echo "                                                </a>
  762.                                             ";
  763.                             } else {
  764.                                 // line 351
  765.                                 echo "                                                ";
  766.                                 if ((isset($context["isAllowedByOnlyCode"]) || array_key_exists("isAllowedByOnlyCode"$context) ? $context["isAllowedByOnlyCode"] : (function () { throw new RuntimeError('Variable "isAllowedByOnlyCode" does not exist.'351$this->source); })())) {
  767.                                     // line 352
  768.                                     echo "                                                    ";
  769.                                     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.'352$this->source); })()), "user", [], "any"falsefalsefalse352) && ($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.'352$this->source); })()), "user", [], "any"falsefalsefalse352)) || (isset($context["isBatchCodesAllowed"]) || array_key_exists("isBatchCodesAllowed"$context) ? $context["isBatchCodesAllowed"] : (function () { throw new RuntimeError('Variable "isBatchCodesAllowed" does not exist.'352$this->source); })()))) &&  !(isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser"$context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.'352$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.'352$this->source); })()), "isBuyCodeInAppOnly", [], "method"falsefalsefalse352))) {
  770.                                         // line 353
  771.                                         echo "                                                        <a href=\"#\" onclick=\"\$('#buyPromoPopup').modal()\"
  772.                                                            class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
  773.                                                            id=\"buyCodeButton\">
  774.                                                             ";
  775.                                         // line 356
  776.                                         echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel"$context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.'356$this->source); })()), "html"nulltrue);
  777.                                         echo "
  778.                                                         </a>
  779.                                                     ";
  780.                                     } else {
  781.                                         // line 359
  782.                                         echo "                                                        ";
  783.                                         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.'359$this->source); })()), "user", [], "any"falsefalsefalse359)) {
  784.                                             // line 360
  785.                                             echo "                                                            <a href=\"#\" onclick=\"\$('.modal-auth').modal()\"
  786.                                                                class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
  787.                                                                id=\"buyCodeButton\">
  788.                                                                 ";
  789.                                             // line 363
  790.                                             echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel"$context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.'363$this->source); })()), "html"nulltrue);
  791.                                             echo "
  792.                                                             </a>
  793.                                                         ";
  794.                                         }
  795.                                         // line 366
  796.                                         echo "                                                        ";
  797.                                         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.'366$this->source); })()), "isBuyCodeInAppOnly", [], "method"falsefalsefalse366)) {
  798.                                             // line 367
  799.                                             echo "                                                            <a class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
  800.                                                                id=\"buyCodeButton\"
  801.                                                                onclick=\"\$('#byCodesAlwaysApp').modal()\">
  802.                                                                 ";
  803.                                             // line 370
  804.                                             echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel"$context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.'370$this->source); })()), "html"nulltrue);
  805.                                             echo "
  806.                                                             </a>
  807.                                                         ";
  808.                                         } elseif ( !twig_get_attribute($this->env$this->source,                                         // line 372
  809. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'372$this->source); })()), "isBuyCodeInAppOnly", [], "method"falsefalsefalse372)) {
  810.                                             // line 373
  811.                                             echo "                                                            ";
  812.                                             if (($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME")) || $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::PAYMENT_CLICK")))) {
  813.                                                 // line 374
  814.                                                 echo "                                                                <a href=\"#\"
  815.                                                                    class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
  816.                                                                    id=\"buyCodeButtonPayMeMobile\"
  817.                                                                    data-target=\"#buyPromoPopupPayMe\"
  818.                                                                    data-toggle=\"modal\">
  819.                                                                     ";
  820.                                                 // line 379
  821.                                                 echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel"$context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.'379$this->source); })()), "html"nulltrue);
  822.                                                 echo "
  823.                                                                 </a>
  824.                                                             ";
  825.                                             } else {
  826.                                                 // line 382
  827.                                                 echo "                                                                <a href=\"#\"
  828.                                                                    onclick=\"if (window.google_tag_manager) {ga('send', 'event', 'Buy code', 'Click', '";
  829.                                                 // line 383
  830.                                                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Default:details"twig_get_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)), "html"nulltrue);
  831.                                                 echo "');} showFakeButton();ym(20933521,'reachGoal','getcode-click'); document.location='";
  832.                                                 echo ((((=== twig_compare((isset($context["buyCodePopup"]) || array_key_exists("buyCodePopup"$context) ? $context["buyCodePopup"] : (function () { throw new RuntimeError('Variable "buyCodePopup" does not exist.'383$this->source); })()), "#confirmBox")) && (isset($context["canBuyFromBalance"]) || array_key_exists("canBuyFromBalance"$context) ? $context["canBuyFromBalance"] : (function () { throw new RuntimeError('Variable "canBuyFromBalance" does not exist.'383$this->source); })()))) ? ("/oplata-balance/") : ("/oplata/"));
  833.                                                 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.'383$this->source); })()), "getID", [], "method"falsefalsefalse383), "html"nulltrue);
  834.                                                 echo "'\"
  835.                                                                    class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
  836.                                                                    id=\"buyCodeButton\">
  837.                                                                     ";
  838.                                                 // line 386
  839.                                                 echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel"$context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.'386$this->source); })()), "html"nulltrue);
  840.                                                 echo "
  841.                                                                 </a>
  842.                                                             ";
  843.                                             }
  844.                                             // line 389
  845.                                             echo "                                                        ";
  846.                                         }
  847.                                         // line 390
  848.                                         echo "                                                    ";
  849.                                     }
  850.                                     // line 391
  851.                                     echo "                                                ";
  852.                                 }
  853.                                 // line 392
  854.                                 echo "                                            ";
  855.                             }
  856.                             // line 393
  857.                             echo "                                        ";
  858.                         }
  859.                         // line 394
  860.                         echo "                                    ";
  861.                     } else {
  862.                         // line 395
  863.                         echo "                                        <a href=\"";
  864.                         echo twig_escape_filter($this->env, (isset($context["categoryURL"]) || array_key_exists("categoryURL"$context) ? $context["categoryURL"] : (function () { throw new RuntimeError('Variable "categoryURL" does not exist.'395$this->source); })()), "html"nulltrue);
  865.                         echo "\" class=\"m-0 card-link bg-slivki color-white\">Посмотреть
  866.                                             похожие предложения</a>
  867.                                     ";
  868.                     }
  869.                     // line 398
  870.                     echo "                                ";
  871.                 }
  872.                 // line 399
  873.                 echo "                            </div>
  874.                         </div>
  875.                     ";
  876.             }
  877.             // line 402
  878.             echo "                    ";
  879.             if ((=== twig_compare(twig_length_filter($this->env, (isset($context["items"]) || array_key_exists("items"$context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.'402$this->source); })())), 0))) {
  880.                 // line 403
  881.                 echo "                        <div id=\"buyItemsButtonCard\" class=\"card\">
  882.                             <div class=\"card-header\">
  883.                                 <a href=\"#\" id=\"buyItemsButton\" class=\"m-0 card-link bg-slivki\" data-toggle=\"modal\"
  884.                                    data-target=\"#offerItemsPopup\">
  885.                                     ";
  886.                 // line 407
  887.                 (((twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'407$this->source); })()), "getBuyItemsButtonText", [], "method"falsefalsefalse407) && (!== 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.'407$this->source); })()), "getBuyItemsButtonText", [], "method"falsefalsefalse407), "")))) ? (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.'407$this->source); })()), "getBuyItemsButtonText", [], "method"falsefalsefalse407), "html"nulltrue))) : (print ("Оплатить сейчас по карте")));
  888.                 echo "
  889.                                 </a>
  890.                             </div>
  891.                         </div>
  892.                     ";
  893.             }
  894.             // line 412
  895.             echo "                    ";
  896.             if ((array_key_exists("hasDelivery"$context) && (=== 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.'412$this->source); })()), "getFreeCodesCount", [], "method"falsefalsefalse412), 0)))) {
  897.                 // line 413
  898.                 echo "                        <div id=\"deliveryButtonCard\" class=\"card\">
  899.                             <div class=\"card-header bg-transparent\">
  900.                                 ";
  901.                 // line 415
  902.                 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.'415$this->source); })()), "user", [], "any"falsefalsefalse415)) {
  903.                     // line 416
  904.                     echo "                                    ";
  905.                     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.'416$this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method"falsefalsefalse416)) {
  906.                         // line 417
  907.                         echo "                                        <a id=\"deliveryBtn\" href=\"#\" onclick=\"\$('.modal-auth').modal()\"
  908.                                            class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
  909.                         // line 418
  910.                         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.'418$this->source); })()), "hasFreeCodes", [], "method"falsefalsefalse418)) ? (" opacity-05") : (""));
  911.                         echo "\">
  912.                                             Онлайн-запись
  913.                                         </a>
  914.                                     ";
  915.                     }
  916.                     // line 422
  917.                     echo "                                    ";
  918.                     if ((=== twig_compare(twig_constant("Slivki\\Entity\\Offer::FREESTYLE_CERTIFICATE_OFFER_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.'422$this->source); })()), "getID", [], "method"falsefalsefalse422)))) {
  919.                         // line 423
  920.                         echo "                                        <a href=\"#\" onclick=\"\$('.modal-auth').modal()\"
  921.                                            class=\"card-link ml-0 py-3 bg-violet text-white rounded-14 text-uppercase";
  922.                         // line 424
  923.                         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.'424$this->source); })()), "hasFreeCodes", [], "method"falsefalsefalse424)) ? (" opacity-05") : (""));
  924.                         echo "\">
  925.                                             ПОЛУЧИТЬ СКИДКУ ";
  926.                         // line 425
  927.                         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.'425$this->source); })()), "getDiscount", [], "method"falsefalsefalse425), "html"nulltrue);
  928.                         echo "
  929.                                         </a>
  930.                                     ";
  931.                     } else {
  932.                         // line 428
  933.                         echo "                                        ";
  934.                         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.'428$this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method"falsefalsefalse428) &&  !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'428$this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method"falsefalsefalse428)) && (!== 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.'428$this->source); })()), "getID", [], "method"falsefalsefalse428), 283213))) && (!== 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.'428$this->source); })()), "getID", [], "method"falsefalsefalse428), 288763))) && (!== 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.'428$this->source); })()), "getID", [], "method"falsefalsefalse428), 288779))) && (!== 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.'428$this->source); })()), "getID", [], "method"falsefalsefalse428), 288772)))) {
  935.                             // line 429
  936.                             echo "                                            <a id=\"deliveryBtn\" href=\"";
  937.                             echo twig_escape_filter($this->env, (isset($context["deliveryLink"]) || array_key_exists("deliveryLink"$context) ? $context["deliveryLink"] : (function () { throw new RuntimeError('Variable "deliveryLink" does not exist.'429$this->source); })()), "html"nulltrue);
  938.                             echo "\"
  939.                                                class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
  940.                             // line 430
  941.                             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.'430$this->source); })()), "hasFreeCodes", [], "method"falsefalsefalse430)) ? (" opacity-05") : (""));
  942.                             echo "\">
  943.                                                 Оплатить онлайн ";
  944.                             // line 431
  945.                             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.'431$this->source); })()), "getDiscount", [], "method"falsefalsefalse431), "html"nulltrue);
  946.                             echo "
  947.                                             </a>
  948.                                         ";
  949.                         } elseif ((((twig_get_attribute($this->env$this->source,                         // line 433
  950. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'433$this->source); })()), "isGiftCertificateOffer", [], "method"falsefalsefalse433) && (=== 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.'433$this->source); })()), "getID", [], "method"falsefalsefalse433), 288763))) || (twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'433$this->source); })()), "isGiftCertificateOffer", [], "method"falsefalsefalse433) && (=== 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.'433$this->source); })()), "getID", [], "method"falsefalsefalse433), 288779)))) || (twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'433$this->source); })()), "isGiftCertificateOffer", [], "method"falsefalsefalse433) && (=== 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.'433$this->source); })()), "getID", [], "method"falsefalsefalse433), 288772))))) {
  951.                             // line 434
  952.                             echo "                                            <a id=\"deliveryBtn\" href=\"";
  953.                             echo twig_escape_filter($this->env, (isset($context["deliveryLink"]) || array_key_exists("deliveryLink"$context) ? $context["deliveryLink"] : (function () { throw new RuntimeError('Variable "deliveryLink" does not exist.'434$this->source); })()), "html"nulltrue);
  954.                             echo "\"
  955.                                                class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
  956.                             // line 435
  957.                             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.'435$this->source); })()), "hasFreeCodes", [], "method"falsefalsefalse435)) ? (" opacity-05") : (""));
  958.                             echo "\">
  959.                                                 Получить скидку ";
  960.                             // line 436
  961.                             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.'436$this->source); })()), "getDiscount", [], "method"falsefalsefalse436), "html"nulltrue);
  962.                             echo "
  963.                                             </a>
  964.                                         ";
  965.                         } elseif (( !twig_get_attribute($this->env$this->source,                         // line 438
  966. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'438$this->source); })()), "isGiftCertificateOffer", [], "method"falsefalsefalse438) &&  !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'438$this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method"falsefalsefalse438))) {
  967.                             // line 439
  968.                             echo "                                            <a id=\"deliveryBtn\" href=\"";
  969.                             echo twig_escape_filter($this->env, (isset($context["deliveryLink"]) || array_key_exists("deliveryLink"$context) ? $context["deliveryLink"] : (function () { throw new RuntimeError('Variable "deliveryLink" does not exist.'439$this->source); })()), "html"nulltrue);
  970.                             echo "\"
  971.                                                class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
  972.                             // line 440
  973.                             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.'440$this->source); })()), "hasFreeCodes", [], "method"falsefalsefalse440)) ? (" opacity-05") : (""));
  974.                             echo "\">
  975.                                                 Заказать онлайн ";
  976.                             // line 441
  977.                             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.'441$this->source); })()), "getDiscount", [], "method"falsefalsefalse441), "html"nulltrue);
  978.                             echo "
  979.                                             </a>
  980.                                         ";
  981.                         }
  982.                         // line 444
  983.                         echo "                                    ";
  984.                     }
  985.                     // line 445
  986.                     echo "                                ";
  987.                 } else {
  988.                     // line 446
  989.                     echo "                                    ";
  990.                     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.'446$this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method"falsefalsefalse446)) {
  991.                         // line 447
  992.                         echo "                                        <a id=\"deliveryBtn\" href=\"";
  993.                         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.'447$this->source); })()), "getOnlineRegistrationLink", [], "method"falsefalsefalse447), "html"nulltrue);
  994.                         echo "\"
  995.                                            class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
  996.                         // line 448
  997.                         echo (( !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'448$this->source); })()), "hasFreeCodes", [], "method"falsefalsefalse448)) ? (" opacity-05") : (""));
  998.                         echo "\">
  999.                                             Онлайн-запись
  1000.                                         </a>
  1001.                                     ";
  1002.                     }
  1003.                     // line 452
  1004.                     echo "                                    ";
  1005.                     if (twig_in_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.'452$this->source); })()), "getID", [], "method"falsefalsefalse452), twig_constant("Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS"))) {
  1006.                         // line 453
  1007.                         echo "                                        ";
  1008.                         $context["deliveryBuyOnlyCodeLink"] = $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.'453$this->source); })()));
  1009.                         // line 454
  1010.                         echo "                                        <a href=\"";
  1011.                         echo twig_escape_filter($this->env, (isset($context["deliveryBuyOnlyCodeLink"]) || array_key_exists("deliveryBuyOnlyCodeLink"$context) ? $context["deliveryBuyOnlyCodeLink"] : (function () { throw new RuntimeError('Variable "deliveryBuyOnlyCodeLink" does not exist.'454$this->source); })()), "html"nulltrue);
  1012.                         echo "\"
  1013.                                            onclick=\"document.location = `";
  1014.                         // line 455
  1015.                         echo twig_escape_filter($this->env, (isset($context["deliveryBuyOnlyCodeLink"]) || array_key_exists("deliveryBuyOnlyCodeLink"$context) ? $context["deliveryBuyOnlyCodeLink"] : (function () { throw new RuntimeError('Variable "deliveryBuyOnlyCodeLink" does not exist.'455$this->source); })()), "html"nulltrue);
  1016.                         echo "`\"
  1017.                                            class=\"card-link ml-0 py-3 bg-violet text-white rounded-14 text-uppercase";
  1018.                         // line 456
  1019.                         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.'456$this->source); })()), "hasFreeCodes", [], "method"falsefalsefalse456)) ? (" opacity-05") : (""));
  1020.                         echo "\">
  1021.                                             ПОЛУЧИТЬ СКИДКУ ";
  1022.                         // line 457
  1023.                         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.'457$this->source); })()), "getDiscount", [], "method"falsefalsefalse457), "html"nulltrue);
  1024.                         echo "
  1025.                                         </a>
  1026.                                     ";
  1027.                     } else {
  1028.                         // line 460
  1029.                         echo "                                        ";
  1030.                         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.'460$this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method"falsefalsefalse460) &&  !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'460$this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method"falsefalsefalse460))) {
  1031.                             // line 461
  1032.                             echo "                                            ";
  1033.                             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.'461$this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method"falsefalsefalse461) && (!== 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.'461$this->source); })()), "getID", [], "method"falsefalsefalse461), 283213))) && (!== 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.'461$this->source); })()), "getID", [], "method"falsefalsefalse461), 288763))) && (!== 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.'461$this->source); })()), "getID", [], "method"falsefalsefalse461), 288779))) && (!== 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.'461$this->source); })()), "getID", [], "method"falsefalsefalse461), 288772))) || (twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'461$this->source); })()), "isGiftCertificateOffer", [], "method"falsefalsefalse461) &&  !twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'461$this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method"falsefalsefalse461)))) {
  1034.                                 // line 462
  1035.                                 echo "                                                <a href=\"";
  1036.                                 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.'462$this->source); })())), "html"nulltrue);
  1037.                                 echo "\"
  1038.                                                    onclick=\"document.location = `";
  1039.                                 // line 463
  1040.                                 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.'463$this->source); })())), "html"nulltrue);
  1041.                                 echo "`\"
  1042.                                                    class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
  1043.                                 // line 464
  1044.                                 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.'464$this->source); })()), "hasFreeCodes", [], "method"falsefalsefalse464)) ? (" opacity-05") : (""));
  1045.                                 echo "\">
  1046.                                                     Оплатить онлайн ";
  1047.                                 // line 465
  1048.                                 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.'465$this->source); })()), "getDiscount", [], "method"falsefalsefalse465), "html"nulltrue);
  1049.                                 echo "
  1050.                                                 </a>
  1051.                                             ";
  1052.                             } elseif ((((twig_get_attribute($this->env$this->source,                             // line 467
  1053. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'467$this->source); })()), "isGiftCertificateOffer", [], "method"falsefalsefalse467) && (=== 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.'467$this->source); })()), "getID", [], "method"falsefalsefalse467), 288763))) || (twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'467$this->source); })()), "isGiftCertificateOffer", [], "method"falsefalsefalse467) && (=== 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.'467$this->source); })()), "getID", [], "method"falsefalsefalse467), 288779)))) || (twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'467$this->source); })()), "isGiftCertificateOffer", [], "method"falsefalsefalse467) && (=== 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.'467$this->source); })()), "getID", [], "method"falsefalsefalse467), 288772))))) {
  1054.                                 // line 468
  1055.                                 echo "                                                <a href=\"";
  1056.                                 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.'468$this->source); })())), "html"nulltrue);
  1057.                                 echo "\"
  1058.                                                    onclick=\"document.location = `";
  1059.                                 // line 469
  1060.                                 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.'469$this->source); })())), "html"nulltrue);
  1061.                                 echo "`\"
  1062.                                                    class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
  1063.                                 // line 470
  1064.                                 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.'470$this->source); })()), "hasFreeCodes", [], "method"falsefalsefalse470)) ? (" opacity-05") : (""));
  1065.                                 echo "\">
  1066.                                                     Получить скидку ";
  1067.                                 // line 471
  1068.                                 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.'471$this->source); })()), "getDiscount", [], "method"falsefalsefalse471), "html"nulltrue);
  1069.                                 echo "
  1070.                                                 </a>
  1071.                                             ";
  1072.                             }
  1073.                             // line 474
  1074.                             echo "                                        ";
  1075.                         } else {
  1076.                             // line 475
  1077.                             echo "                                            ";
  1078.                             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.'475$this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method"falsefalsefalse475)) {
  1079.                                 // line 476
  1080.                                 echo "                                                <a href=\"";
  1081.                                 echo twig_escape_filter($this->env, (isset($context["deliveryLink"]) || array_key_exists("deliveryLink"$context) ? $context["deliveryLink"] : (function () { throw new RuntimeError('Variable "deliveryLink" does not exist.'476$this->source); })()), "html"nulltrue);
  1082.                                 echo "\"
  1083.                                                    onclick=\"document.location = `";
  1084.                                 // line 477
  1085.                                 echo twig_escape_filter($this->env, (isset($context["deliveryLink"]) || array_key_exists("deliveryLink"$context) ? $context["deliveryLink"] : (function () { throw new RuntimeError('Variable "deliveryLink" does not exist.'477$this->source); })()), "html"nulltrue);
  1086.                                 echo "`\"
  1087.                                                    class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
  1088.                                 // line 478
  1089.                                 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.'478$this->source); })()), "hasFreeCodes", [], "method"falsefalsefalse478)) ? (" opacity-05") : (""));
  1090.                                 echo "\">
  1091.                                                     Заказать онлайн ";
  1092.                                 // line 479
  1093.                                 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.'479$this->source); })()), "getDiscount", [], "method"falsefalsefalse479), "html"nulltrue);
  1094.                                 echo "
  1095.                                                 </a>
  1096.                                             ";
  1097.                             }
  1098.                             // line 482
  1099.                             echo "                                        ";
  1100.                         }
  1101.                         // line 483
  1102.                         echo "                                    ";
  1103.                     }
  1104.                     // line 484
  1105.                     echo "                                ";
  1106.                 }
  1107.                 // line 485
  1108.                 echo "                            </div>
  1109.                         </div>
  1110.                     ";
  1111.             }
  1112.             // line 488
  1113.             echo "                </div>
  1114.             ";
  1115.         }
  1116.         // line 490
  1117.         echo "            <div class=\"container-offers my-0 mx-0\">
  1118.                 <div id=\"offerDescriptionTab\" class=\"mx-2 active\" style=\"max-height: fit-content;\">
  1119.                     <div class=\"offer-titles mt-2\"><h5>Условия</h5></div>
  1120.                     ";
  1121.         // line 493
  1122.         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.'493$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse493) && (!== 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.'493$this->source); })()), "getID", [], "method"falsefalsefalse493), 140553)))) {
  1123.             // line 494
  1124.             echo "                        ";
  1125.             $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.'494$this->source); })()), "getCodeActiveTill", [], "method"falsefalsefalse494);
  1126.             // line 495
  1127.             echo "                        ";
  1128.             $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.'495$this->source); })()), "getActiveTill", [], "method"falsefalsefalse495), "-1 day");
  1129.             // line 496
  1130.             echo "                        ";
  1131.             $context["codeFrom"] = (((=== twig_compare((isset($context["codeFrom"]) || array_key_exists("codeFrom"$context) ? $context["codeFrom"] : (function () { throw new RuntimeError('Variable "codeFrom" does not exist.'496$this->source); })()), (isset($context["codeTill"]) || array_key_exists("codeTill"$context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.'496$this->source); })())))) ? ((isset($context["codeTill"]) || array_key_exists("codeTill"$context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.'496$this->source); })())) : ((isset($context["codeFrom"]) || array_key_exists("codeFrom"$context) ? $context["codeFrom"] : (function () { throw new RuntimeError('Variable "codeFrom" does not exist.'496$this->source); })())));
  1132.             // line 497
  1133.             echo "                        ";
  1134.             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.'497$this->source); })()), "isHideFeatures", [], "method"falsefalsefalse497)) {
  1135.                 // line 498
  1136.                 echo "                            <p>- Получить промокод можно до ";
  1137.                 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.'498$this->source); })()), "d.m"), "html"nulltrue);
  1138.                 echo ", воспользоваться ";
  1139.                 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.'498$this->source); })()), "getID", [], "method"falsefalsefalse498), 134390))) ? ("до") : (""));
  1140.                 echo " ";
  1141.                 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.'498$this->source); })()), "d.m.y"), "html"nulltrue);
  1142.                 echo ".
  1143.                             <br/>
  1144.                         ";
  1145.             }
  1146.             // line 501
  1147.             echo "                        ";
  1148.             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.'501$this->source); })()), "isShowPriceInConditions", [], "method"falsefalsefalse501) &&  !(isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser"$context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.'501$this->source); })()))) {
  1149.                 // line 502
  1150.                 echo "                            - Стоимость промокода: ";
  1151.                 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.'502$this->source); })()), "html"nulltrue);
  1152.                 echo " руб.
  1153.                         ";
  1154.             }
  1155.             // line 503
  1156.             echo "</p>
  1157.                     ";
  1158.         }
  1159.         // line 505
  1160.         echo "
  1161.                     ";
  1162.         // line 506
  1163.         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.'506$this->source); })()), "getConditions", [], "method"falsefalsefalse506);
  1164.         echo "
  1165.                     ";
  1166.         // line 508
  1167.         echo "                    ";
  1168.         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.'508$this->source); })()), "getID", [], "method"falsefalsefalse508), 143528))) {
  1169.             // line 509
  1170.             echo "                        <br>
  1171.                         ";
  1172.             // line 510
  1173.             $this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer2.html.twig""Slivki/mobile/offer/details.html.twig"510)->display($context);
  1174.             // line 511
  1175.             echo "                        <br>
  1176.                     ";
  1177.         } elseif ((=== twig_compare(twig_get_attribute($this->env$this->source,         // line 512
  1178. (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'512$this->source); })()), "getID", [], "method"falsefalsefalse512), 282234))) {
  1179.             // line 513
  1180.             echo "                        ";
  1181.             $this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer4.html.twig""Slivki/mobile/offer/details.html.twig"513)->display($context);
  1182.             // line 514
  1183.             echo "                    ";
  1184.         }
  1185.         // line 515
  1186.         echo "
  1187.                     ";
  1188.         // line 516
  1189.         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.'516$this->source); })()), "isHideFeatures", [], "method"falsefalsefalse516)) {
  1190.             // line 517
  1191.             echo "                        ";
  1192.             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.'517$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse517)) {
  1193.                 // line 518
  1194.                 echo "                            ";
  1195.                 $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.'518$this->source); })())) . "/phrase_subscription_in_offer_page.html.twig"), "Slivki/mobile/offer/details.html.twig"518)->display($context);
  1196.                 // line 519
  1197.                 echo "                        ";
  1198.             }
  1199.             // line 520
  1200.             echo "                        <br>
  1201.                         <div class=\"offer-titles\"><h5>Особенности</h5></div>
  1202.                         <div class=\"offer-details-conditions\">
  1203.                             ";
  1204.             // line 523
  1205.             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.'523$this->source); })()), "isWithoutCodes", [], "method"falsefalsefalse523)) {
  1206.                 // line 524
  1207.                 echo "                                - Скидка предоставляется только при наличии промокода.
  1208.                             ";
  1209.             }
  1210.             // line 526
  1211.             echo "                            ";
  1212.             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.'526$this->source); })()), "getFeatures", [], "method"falsefalsefalse526);
  1213.             echo "
  1214.                         </div>
  1215.                         - Поставщик несет полную ответственность перед потребителем за достоверность информации.
  1216.                     ";
  1217.         }
  1218.         // line 530
  1219.         echo "                    <div id=\"endOfOfferCondition\"></div>
  1220.                 </div>
  1221.             </div>
  1222.             ";
  1223.         // line 533
  1224.         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.'533$this->source); })()), "getShopMedias", [], "method"falsefalsefalse533)), 0))) {
  1225.             // line 534
  1226.             echo "                <div class=\"gallery-title offer-titles\"><h5>Галерея</h5></div>
  1227.             ";
  1228.         }
  1229.         // line 536
  1230.         echo "            <div class=\"my-4 screenshots ";
  1231.         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.'536$this->source); })()), "getShopMedias", [], "method"falsefalsefalse536)), 0)) || (=== twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount"$context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.'536$this->source); })()), 0)))) ? ("empty") : (""));
  1232.         echo "\">
  1233.                 ";
  1234.         // line 537
  1235.         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.'537$this->source); })()), "getShopMedias", [], "method"falsefalsefalse537)), 0))) {
  1236.             // line 538
  1237.             echo "                    <div class=\"screenshot-container\">
  1238.                         ";
  1239.             // line 539
  1240.             if ((twig_get_attribute($this->env$this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method"truetruefalse539) && (=== 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.'539$this->source); })()), "getVideos", [], "method"falsefalsefalse539)), 0)))) {
  1241.                 // line 540
  1242.                 echo "                            <div class=\"screenshot screenshot-story\" data-toggle=\"modal\"
  1243.                                  data-target=\"#detailsStoryPopup\">
  1244.                                 <img src=\"";
  1245.                 // line 542
  1246.                 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.'542$this->source); })()), "getImageUrl", [], "method"falsefalsefalse542), "html"nulltrue);
  1247.                 echo "\" width=\"158\"
  1248.                                      alt=\"Видео\" border=\"0\"/>
  1249.                                 <div class=\"screenshot-story-btn\"></div>
  1250.                                 <div class=\"screenshot-story-tittle\">";
  1251.                 // line 545
  1252.                 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.'545$this->source); })()), "getTitle", [], "method"falsefalsefalse545), "html"nulltrue);
  1253.                 echo "</div>
  1254.                             </div>
  1255.                         ";
  1256.             }
  1257.             // line 548
  1258.             echo "                        ";
  1259.             $context['_parent'] = $context;
  1260.             $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.'548$this->source); })()), "getShopMedias", [], "method"falsefalsefalse548));
  1261.             foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  1262.                 // line 549
  1263.                 echo "                            <div class=\"screenshot\">
  1264.                                 <a data-fancybox=\"gallery1\" href=\"";
  1265.                 // line 550
  1266.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 00), "html"nulltrue);
  1267.                 echo "\"
  1268.                                    title=\"";
  1269.                 // line 551
  1270.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getDescription", [], "method"falsefalsefalse551), "html"nulltrue);
  1271.                 echo "\">
  1272.                                     <img src=\"";
  1273.                 // line 552
  1274.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 3000), "html"nulltrue);
  1275.                 echo "\" width=\"158\"
  1276.                                          alt=\"";
  1277.                 // line 553
  1278.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getDescription", [], "method"falsefalsefalse553), "html"nulltrue);
  1279.                 echo "\" border=\"0\"/>
  1280.                                 </a>
  1281.                             </div>
  1282.                         ";
  1283.             }
  1284.             $_parent $context['_parent'];
  1285.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  1286.             $context array_intersect_key($context$_parent) + $_parent;
  1287.             // line 557
  1288.             echo "                    </div>
  1289.                 ";
  1290.         }
  1291.         // line 559
  1292.         echo "            </div>
  1293.             <div id=\"examplesOfWorksBlock\" class=\"examples-block-mobile\">
  1294.                 <div class=\"headerBlockCategory examples d-none bg-white px-0 pb-0 examples-block-mobile-header\">
  1295.                     <div class=\"offer-titles m-0\"><h5>Фото
  1296.                             работ";
  1297.         // line 563
  1298.         echo "</h5></div>
  1299.                     <div class=\"examples-works-tooltip-filter\">
  1300.                         <div class=\"tooltip-content\">
  1301.                             <div class=\"tooltip-title border-bottom-f d-flex\">Показать сначала:</div>
  1302.                             ";
  1303.         // line 567
  1304.         $context['_parent'] = $context;
  1305.         $context['_seq'] = twig_ensure_traversable(twig_constant("Slivki\\Paginator\\WorkExample\\WorkExamplePaginatorInterface::SORT"));
  1306.         $context['loop'] = [
  1307.           'parent' => $context['_parent'],
  1308.           'index0' => 0,
  1309.           'index'  => 1,
  1310.           'first'  => true,
  1311.         ];
  1312.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  1313.             $length count($context['_seq']);
  1314.             $context['loop']['revindex0'] = $length 1;
  1315.             $context['loop']['revindex'] = $length;
  1316.             $context['loop']['length'] = $length;
  1317.             $context['loop']['last'] = === $length;
  1318.         }
  1319.         foreach ($context['_seq'] as $context["key"] => $context["sortItem"]) {
  1320.             // line 568
  1321.             echo "                                <div class=\"radio\">
  1322.                                     <input id=\"filter";
  1323.             // line 569
  1324.             echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  1325.             echo "\" type=\"radio\" name=\"filter\"
  1326.                                            data-direction=\"";
  1327.             // line 570
  1328.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["sortItem"], "direction", [], "any"falsefalsefalse570), "html"nulltrue);
  1329.             echo "\"
  1330.                                            value=\"";
  1331.             // line 571
  1332.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["sortItem"], "field", [], "any"falsefalsefalse571), "html"nulltrue);
  1333.             echo "\" ";
  1334.             echo ((twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse571)) ? ("checked") : (""));
  1335.             echo ">
  1336.                                     <label for=\"filter";
  1337.             // line 572
  1338.             echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  1339.             echo "\" class=\"cursor-pointer\">";
  1340.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["sortItem"], "name", [], "any"falsefalsefalse572), "html"nulltrue);
  1341.             echo "</label>
  1342.                                 </div>
  1343.                             ";
  1344.             ++$context['loop']['index0'];
  1345.             ++$context['loop']['index'];
  1346.             $context['loop']['first'] = false;
  1347.             if (isset($context['loop']['length'])) {
  1348.                 --$context['loop']['revindex0'];
  1349.                 --$context['loop']['revindex'];
  1350.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  1351.             }
  1352.         }
  1353.         $_parent $context['_parent'];
  1354.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['sortItem'], $context['_parent'], $context['loop']);
  1355.         $context array_intersect_key($context$_parent) + $_parent;
  1356.         // line 575
  1357.         echo "                            <div class=\"tooltip-title border-top-f d-flex\">Диапазон цены:</div>
  1358.                             <div id=\"workExamplePriceRangeInputs\" class=\"price-range-inputs d-flex\">
  1359.                                 <div class=\"price-range-input\"><input type=\"number\" placeholder=\"Цена от\" id=\"priceFrom\"
  1360.                                                                       name=\"priceFrom\" min=\"0\" max=\"199\" step=\"1\"></div>
  1361.                                 <div class=\"price-range-input\"><input type=\"number\" placeholder=\"Цена до\" id=\"priceTo\"
  1362.                                                                       name=\"priceTo\" min=\"0\" max=\"200\" step=\"1\"></div>
  1363.                             </div>
  1364.                             <div id=\"workExampleRangeSlider\" class=\"range-slider\">
  1365.                                 <div class=\"range-labels\">
  1366.                                     <span id=\"workSimplesRangeLableStart\" class=\"range-label range-label-start\"></span>
  1367.                                     <span>-</span>
  1368.                                     <span id=\"workSimplesRangeLableEnd\" class=\"range-label range-label-end\"></span>
  1369.                                 </div>
  1370.                                 <input class=\"work-simples-input\" type=\"range\" min=\"\" value=\"0\" max=\"\" name=\"\"
  1371.                                        id=\"startRange\">
  1372.                                 <input class=\"work-simples-input\" type=\"range\" min=\"\" value=\"\" max=\"\" name=\"\"
  1373.                                        id=\"finishRange\">
  1374.                                 <div class=\"track-wrapper\">
  1375.                                     <div class=\"track\"></div>
  1376.                                     <div id=\"workSimplesSliderBetween\" class=\"range-between\"></div>
  1377.                                     <div id=\"workSimplesTumbLeft\" class=\"thumb left\"></div>
  1378.                                     <div id=\"workSimplesTumbRight\" class=\"thumb right\"></div>
  1379.                                 </div>
  1380.                             </div>
  1381.                             <div id=\"buttonFilterBoxExamplesWork\" class=\"buttonFilterBox\">Показать</div>
  1382.                         </div>
  1383.                         <div id=\"buttonFilterBoxExamplesWork\" class=\"d-flex cursor-pointer\">Сортировка<img width=\"25\" class=\"pl-2\" src=\"/images/sort_image.svg\"/></div>
  1384.                     </div>
  1385.                 </div>
  1386.                 ";
  1387.         // line 605
  1388.         $this->loadTemplate("Slivki/works-examples/examples_of_works_gallery.html.twig""Slivki/mobile/offer/details.html.twig"605)->display($context);
  1389.         // line 606
  1390.         echo "            </div>
  1391.             <div id=\"beautyMastersBlock\" class=\"beauty-masters-container beauty-masters-offer mob\">
  1392.                 <div id=\"beautyMastersHeader\"
  1393.                      class=\"tittleBlockCategory position-relative offer-titles mb-2 mt-0 d-none\">
  1394.                     <h5> ";
  1395.         // line 610
  1396.         echo ((((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList"$context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.'610$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.'610$this->source); })()), 0, [], "array"falsefalsefalse610), "getID", [], "method"falsefalsefalse610), twig_constant("Slivki\\Entity\\Category::MEDICAL_CENTER_CATEGORY_ID"))))) ? ("Врачи") : ("Найти своего мастера"));
  1397.         echo "</h5>
  1398.                 </div>
  1399.                 ";
  1400.         // line 612
  1401.         $this->loadTemplate("Slivki/beauty/beauty_masters.html.twig""Slivki/mobile/offer/details.html.twig"612)->display($context);
  1402.         // line 613
  1403.         echo "            </div>
  1404.             <div id=\"offersDescription\" class=\"offers-conditions mt-2 js-parallax-banner-after\"
  1405.                  style=\"padding-bottom: 22px;\">
  1406.                 ";
  1407.         // line 616
  1408.         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.'616$this->source); })()), "isShowProductsInOfferDescription", [], "method"falsefalsefalse616)) {
  1409.             // line 617
  1410.             echo "                    <div id=\"foodItemsBlock\" class=\"my-3\">
  1411.                         <div class=\"offer-titles mt-2\"><h5>Описание</h5></div>
  1412.                         ";
  1413.             // line 619
  1414.             if (((isset($context["isPickupEnabled"]) || array_key_exists("isPickupEnabled"$context) ? $context["isPickupEnabled"] : (function () { throw new RuntimeError('Variable "isPickupEnabled" does not exist.'619$this->source); })()) && (isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled"$context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.'619$this->source); })()))) {
  1415.                 // line 620
  1416.                 echo "                            <div id=\"fixedFiltersOffer\" class=\"w-auto px-2 d-flex\"
  1417.                                  style=\"position: relative;background: linear-gradient(180deg, #A839FF 0%, #6747e5 100%), #6747E5;border-radius: 8px;padding: 10px 0;\">
  1418.                                 <div class=\"w-100 switch-delivery-pickup-block px-0 \">
  1419.                                     <a data-type-delivery=\"1\"
  1420.                                        class=\"switch-delivery-pickup-item button-tab-delivery delivery-type active\">
  1421.                                         <p class=\"m-0\">Доставка</p>
  1422.                                         <small>удобно👌</small>
  1423.                                     </a>
  1424.                                     <a data-type-delivery=\"2\"
  1425.                                        class=\"switch-delivery-pickup-item pickup-type button-tab-pickup\">
  1426.                                         <p class=\"m-0\"> Самовывоз</p>
  1427.                                         <small>еще дешевле🔥</small>
  1428.                                     </a>
  1429.                                 </div>
  1430.                             </div>
  1431.                         ";
  1432.             }
  1433.             // line 636
  1434.             echo "                        <div id=\"foodBlock\"></div>
  1435.                         <div id=\"foodOptionsBlock\"></div>
  1436.                     </div>
  1437.                 ";
  1438.         }
  1439.         // line 640
  1440.         echo "                <div class=\"description\" id=\"descriptionText\">
  1441.                     ";
  1442.         // line 641
  1443.         $context['_parent'] = $context;
  1444.         $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.'641$this->source); })()), "getDescriptionList", [], "method"falsefalsefalse641));
  1445.         foreach ($context['_seq'] as $context["_key"] => $context["offerDescription"]) {
  1446.             // line 642
  1447.             echo "                        ";
  1448.             $context["offerDescriptionSliderImages"] = twig_get_attribute($this->env$this->source$context["offerDescription"], "getEntityDescriptionSliderImages", [], "method"falsefalsefalse642);
  1449.             // line 643
  1450.             echo "                        ";
  1451.             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.'643$this->source); })())), 0))) {
  1452.                 // line 644
  1453.                 echo "                            <div class=\"sale-description-carousel\">
  1454.                                 <div id=\"saleDescriptionSliderFor";
  1455.                 // line 645
  1456.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["offerDescription"], "getID", [], "method"falsefalsefalse645), "html"nulltrue);
  1457.                 echo "\"
  1458.                                      class=\"sale-description-slider-for\">
  1459.                                     ";
  1460.                 // line 647
  1461.                 $context['_parent'] = $context;
  1462.                 $context['_seq'] = twig_ensure_traversable((isset($context["offerDescriptionSliderImages"]) || array_key_exists("offerDescriptionSliderImages"$context) ? $context["offerDescriptionSliderImages"] : (function () { throw new RuntimeError('Variable "offerDescriptionSliderImages" does not exist.'647$this->source); })()));
  1463.                 foreach ($context['_seq'] as $context["_key"] => $context["offerDescriptionSliderImage"]) {
  1464.                     // line 648
  1465.                     echo "                                        <div><img data-lazy=\"";
  1466.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["offerDescriptionSliderImage"], "getImageUrl", [], "method"falsefalsefalse648), "html"nulltrue);
  1467.                     echo "\"/>
  1468.                                         </div>
  1469.                                     ";
  1470.                 }
  1471.                 $_parent $context['_parent'];
  1472.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['offerDescriptionSliderImage'], $context['_parent'], $context['loop']);
  1473.                 $context array_intersect_key($context$_parent) + $_parent;
  1474.                 // line 651
  1475.                 echo "                                </div>
  1476.                             </div>
  1477.                         ";
  1478.             }
  1479.             // line 654
  1480.             echo "                        ";
  1481.             echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->addLazyAndLightboxImagesInDescription(twig_get_attribute($this->env$this->source$context["offerDescription"], "getDescription", [], "method"falsefalsefalse654));
  1482.             echo "
  1483.                     ";
  1484.         }
  1485.         $_parent $context['_parent'];
  1486.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['offerDescription'], $context['_parent'], $context['loop']);
  1487.         $context array_intersect_key($context$_parent) + $_parent;
  1488.         // line 656
  1489.         echo "                </div>
  1490.             </div>
  1491.             <div id=\"offerAddressTab\" class=\"mx-1 mt-5\">
  1492.                 <div class=\"offer-titles\"><h5 class=\"mb-2\">Контакты</h5></div>
  1493.                 <div class=\"mb-4 logo-title\">
  1494.                     ";
  1495.         // line 661
  1496.         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.'661$this->source); })()), "getLogo", [], "method"falsefalsefalse661);
  1497.         echo "
  1498.                 </div>
  1499.                 <div class=\"p-m-0\">
  1500.                     ";
  1501.         // line 664
  1502.         if ((=== twig_compare(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.'664$this->source); })()), "count", [], "method"falsefalsefalse664), 0))) {
  1503.             // line 665
  1504.             echo "                        ";
  1505.             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.'665$this->source); })())), 0))) {
  1506.                 // line 666
  1507.                 echo "                            <div class=\"geo-location-block\">
  1508.                                 ";
  1509.                 // line 667
  1510.                 $this->loadTemplate("Slivki/offers/geo_location_data.html.twig""Slivki/mobile/offer/details.html.twig"667)->display(twig_to_array(["offer" => (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'667$this->source); })())]));
  1511.                 // line 668
  1512.                 echo "                                <div class=\"distance d-none\" style=\"display: block\">
  1513.                                     <i class=\"slivki-icon slivki-icon-direction\"></i> <img class='ajaxLoader'
  1514.                                                                                            src='/images/ajax-loader-16x16.gif'
  1515.                                                                                            alt='Загрузка...'/><span></span>
  1516.                                 </div>
  1517.                                 <div id=\"offerGeoLocationData\" data-json=\"";
  1518.                 // line 673
  1519.                 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.'673$this->source); })()), "html"nulltrue);
  1520.                 echo "\"></div>
  1521.                                 <div id=\"offerMapWrapper\" class=\"category-map-wrapper my-3\">
  1522.                                     <div id=\"offerMap\" class=\"category-map\"></div>
  1523.                                     <a id=\"setUserLocationBtn\" href=\"#\">Указать местоположение</a>
  1524.                                     <div id=\"zoomIn\"></div>
  1525.                                     <div id=\"zoomOut\"></div>
  1526.                                     <a id=\"mapEnterFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Развернуть</a>
  1527.                                     <a id=\"mapExitFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Свернуть</a>
  1528.                                 </div>
  1529.                             </div>
  1530.                         ";
  1531.             }
  1532.             // line 684
  1533.             echo "                    ";
  1534.         }
  1535.         // line 685
  1536.         echo "                    ";
  1537.         $context['_parent'] = $context;
  1538.         $context['_seq'] = twig_ensure_traversable((isset($context["geoLocations"]) || array_key_exists("geoLocations"$context) ? $context["geoLocations"] : (function () { throw new RuntimeError('Variable "geoLocations" does not exist.'685$this->source); })()));
  1539.         foreach ($context['_seq'] as $context["_key"] => $context["geoLocation"]) {
  1540.             // line 686
  1541.             echo "                        <div class=\"mb-3 my-3\">
  1542.                             <div class=\"sf-bold-font\">";
  1543.             // line 687
  1544.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["geoLocation"], "getCity", [], "method"falsefalsefalse687), "html"nulltrue);
  1545.             echo ", ";
  1546.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["geoLocation"], "getStreet", [], "method"falsefalsefalse687), "html"nulltrue);
  1547.             echo "
  1548.                                 , ";
  1549.             // line 688
  1550.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["geoLocation"], "getHouse", [], "method"falsefalsefalse688), "html"nulltrue);
  1551.             echo " ";
  1552.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["geoLocation"], "getLabel", [], "method"falsefalsefalse688), "html"nulltrue);
  1553.             echo "</div>
  1554.                             ";
  1555.             // line 689
  1556.             $context["phoneNumbers"] = twig_get_attribute($this->env$this->source$context["geoLocation"], "getPhoneNumbers", [], "method"falsefalsefalse689);
  1557.             // line 690
  1558.             echo "                            ";
  1559.             if ((=== twig_compare(twig_length_filter($this->env, (isset($context["phoneNumbers"]) || array_key_exists("phoneNumbers"$context) ? $context["phoneNumbers"] : (function () { throw new RuntimeError('Variable "phoneNumbers" does not exist.'690$this->source); })())), 0))) {
  1560.                 // line 691
  1561.                 echo "                            ";
  1562.             }
  1563.             // line 692
  1564.             echo "                            ";
  1565.             $context['_parent'] = $context;
  1566.             $context['_seq'] = twig_ensure_traversable((isset($context["phoneNumbers"]) || array_key_exists("phoneNumbers"$context) ? $context["phoneNumbers"] : (function () { throw new RuntimeError('Variable "phoneNumbers" does not exist.'692$this->source); })()));
  1567.             foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
  1568.                 // line 693
  1569.                 echo "                                ";
  1570.                 $this->loadTemplate("Slivki/mobile/offer/phone_number_btn.html.twig""Slivki/mobile/offer/details.html.twig"693)->display(twig_to_array(["phoneNumber" => $context["phoneNumber"], "geoLocation" => $context["geoLocation"]]));
  1571.                 // line 694
  1572.                 echo "                            ";
  1573.             }
  1574.             $_parent $context['_parent'];
  1575.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phoneNumber'], $context['_parent'], $context['loop']);
  1576.             $context array_intersect_key($context$_parent) + $_parent;
  1577.             // line 695
  1578.             echo "                            ";
  1579.             if (((array_key_exists("geoLocation"$context) && twig_get_attribute($this->env$this->source$context["geoLocation"], "getCallbackChatId", [], "method"falsefalsefalse695)) && (!== twig_compare(twig_get_attribute($this->env$this->source$context["geoLocation"], "getCallbackChatId", [], "method"falsefalsefalse695), "")))) {
  1580.                 // line 696
  1581.                 echo "                                <div class=\"callback-button\" data-id=\"";
  1582.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["geoLocation"], "getId", [], "method"falsefalsefalse696), "html"nulltrue);
  1583.                 echo "\">Обратный звонок</div>
  1584.                             ";
  1585.             }
  1586.             // line 698
  1587.             echo "                            ";
  1588.             if ((!== twig_compare(twig_trim_filter(twig_get_attribute($this->env$this->source$context["geoLocation"], "getWorkingHours", [], "method"falsefalsefalse698)), ""))) {
  1589.                 // line 699
  1590.                 echo "                                <div>Время работы:</div> ";
  1591.                 echo twig_get_attribute($this->env$this->source$context["geoLocation"], "getWorkingHours", [], "method"falsefalsefalse699);
  1592.                 echo "
  1593.                             ";
  1594.             }
  1595.             // line 701
  1596.             echo "
  1597.                         </div>
  1598.                     ";
  1599.         }
  1600.         $_parent $context['_parent'];
  1601.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['geoLocation'], $context['_parent'], $context['loop']);
  1602.         $context array_intersect_key($context$_parent) + $_parent;
  1603.         // line 704
  1604.         echo "                    ";
  1605.         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.'704$this->source); })())), 0))) {
  1606.             // line 705
  1607.             echo "                    ";
  1608.             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.'705$this->source); })())), 0))) {
  1609.                 // line 706
  1610.                 echo "                        <br>
  1611.                     ";
  1612.             }
  1613.             // line 708
  1614.             echo "                    <div id=\"phoneOffers\" class=\"mb-2\">
  1615.                         <div class=\"mb-2\">
  1616.                             <strong>Телефон";
  1617.             // line 710
  1618.             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.'710$this->source); })())), 1))) ? ("ы") : (""));
  1619.             echo ":</strong>
  1620.                         </div>
  1621.                         ";
  1622.             // line 712
  1623.             $context['_parent'] = $context;
  1624.             $context['_seq'] = twig_ensure_traversable((isset($context["phoneNumbersWithoutGeoLocations"]) || array_key_exists("phoneNumbersWithoutGeoLocations"$context) ? $context["phoneNumbersWithoutGeoLocations"] : (function () { throw new RuntimeError('Variable "phoneNumbersWithoutGeoLocations" does not exist.'712$this->source); })()));
  1625.             foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
  1626.                 // line 713
  1627.                 echo "                            ";
  1628.                 $this->loadTemplate("Slivki/mobile/offer/phone_number_btn.html.twig""Slivki/mobile/offer/details.html.twig"713)->display(twig_to_array(["phoneNumber" => $context["phoneNumber"]]));
  1629.                 // line 714
  1630.                 echo "                        ";
  1631.             }
  1632.             $_parent $context['_parent'];
  1633.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phoneNumber'], $context['_parent'], $context['loop']);
  1634.             $context array_intersect_key($context$_parent) + $_parent;
  1635.             // line 715
  1636.             echo "                    </div>
  1637.                 </div>
  1638.                 ";
  1639.         }
  1640.         // line 718
  1641.         echo "                ";
  1642.         $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.'718$this->source); })()), "getCommonWorkingHours", [], "method"falsefalsefalse718);
  1643.         // line 719
  1644.         echo "                ";
  1645.         if ((!== twig_compare((isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours"$context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.'719$this->source); })()), ""))) {
  1646.             // line 720
  1647.             echo "                    <br>
  1648.                     <div><strong>Время работы:</strong></div>
  1649.                     ";
  1650.             // line 722
  1651.             echo (isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours"$context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.'722$this->source); })());
  1652.             echo "
  1653.                     <br><br>
  1654.                 ";
  1655.         }
  1656.         // line 725
  1657.         echo "                ";
  1658.         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.'725$this->source); })()), "getLegal", [], "method"falsefalsefalse725);
  1659.         echo "
  1660.                 <div class=\"offer-titles offer-titles-mobile mt-0 mb-0\"><h5 class=\"mt-0 mb-0\">Написать</h5></div>
  1661.                 <div class=\"col px-0\">
  1662.                     <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\"
  1663.                        href=\"https://t.me/";
  1664.         // line 729
  1665.         (((!== 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.'729$this->source); })()), "getTelegram", [], "method"falsefalsefalse729), 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.'729$this->source); })()), "getTelegram", [], "method"falsefalsefalse729), "html"nulltrue))) : (print ("slivkislivkiby")));
  1666.         echo "\"
  1667.                        style=\"width: 200px\">
  1668.                         <img class=\"mr-2\" src=\"/images/tg.svg\" width=\"20\" height=\"18\">
  1669.                         <span class=\"float-right\">Telegram</span>
  1670.                     </a>
  1671.                     ";
  1672.         // line 734
  1673.         $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.'734$this->source); })()), "getViber", [], "method"falsefalsefalse734), 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.'734$this->source); })()), "getViber", [], "method"falsefalsefalse734)) : ("+375295084444"));
  1674.         // line 735
  1675.         echo "                    <a class=\"vb-button offer-phone-mob btn btn-block bg-slivki text-white py-1 no-decoration my-2 d-flex justify-content-center align-items-center\"
  1676.                        href='viber://chat?number=\"  ";
  1677.         // line 736
  1678.         echo twig_escape_filter($this->env, (isset($context["viberNumber"]) || array_key_exists("viberNumber"$context) ? $context["viberNumber"] : (function () { throw new RuntimeError('Variable "viberNumber" does not exist.'736$this->source); })()), "html"nulltrue);
  1679.         echo " \"'
  1680.                        style=\"width: 200px\">
  1681.                         <img class=\"mr-2\" src=\"/images/vb.svg\" width=\"20\" height=\"18\">
  1682.                         <span class=\"float-right\">Viber</span>
  1683.                     </a>
  1684.                 </div>
  1685.             </div>
  1686.             ";
  1687.         // line 743
  1688.         $this->loadTemplate("Slivki/offers/share.html.twig""Slivki/mobile/offer/details.html.twig"743)->display($context);
  1689.         // line 744
  1690.         echo "        </div>
  1691.         <div id=\"offerCommentTab\" class=\"pt-2 px-0\">
  1692.             <div>
  1693.                 ";
  1694.         // line 747
  1695.         echo (isset($context["comments"]) || array_key_exists("comments"$context) ? $context["comments"] : (function () { throw new RuntimeError('Variable "comments" does not exist.'747$this->source); })());
  1696.         echo "
  1697.             </div>
  1698.         </div>
  1699.     </div>
  1700.     </div>
  1701.     ";
  1702.         // line 752
  1703.         if ((isset($context["preview"]) || array_key_exists("preview"$context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.'752$this->source); })())) {
  1704.             // line 753
  1705.             echo "        <input type=\"hidden\" id=\"offerPreview\" value=\"1\">
  1706.     ";
  1707.         } else {
  1708.             // line 755
  1709.             echo "        <input type=\"hidden\" id=\"offerPreview\" value=\"0\">
  1710.     ";
  1711.         }
  1712.         // line 757
  1713.         echo "    </div>
  1714.     ";
  1715.         // line 758
  1716.         if ((isset($context["showGlobalcard"]) || array_key_exists("showGlobalcard"$context) ? $context["showGlobalcard"] : (function () { throw new RuntimeError('Variable "showGlobalcard" does not exist.'758$this->source); })())) {
  1717.             // line 759
  1718.             echo "        ";
  1719.             $this->loadTemplate("Slivki/mobile/offer/globalcard.html.twig""Slivki/mobile/offer/details.html.twig"759)->display($context);
  1720.             // line 760
  1721.             echo "    ";
  1722.         } elseif ((isset($context["showGlobalcardFitness"]) || array_key_exists("showGlobalcardFitness"$context) ? $context["showGlobalcardFitness"] : (function () { throw new RuntimeError('Variable "showGlobalcardFitness" does not exist.'760$this->source); })())) {
  1723.             // line 761
  1724.             echo "        ";
  1725.             $this->loadTemplate("Slivki/mobile/offer/globalcard_fitness.html.twig""Slivki/mobile/offer/details.html.twig"761)->display($context);
  1726.             // line 762
  1727.             echo "    ";
  1728.         }
  1729.         
  1730.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1731.         
  1732.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1733.     }
  1734.     // line 765
  1735.     public function block_popup($context, array $blocks = [])
  1736.     {
  1737.         $macros $this->macros;
  1738.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1739.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popup"));
  1740.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1741.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popup"));
  1742.         // line 766
  1743.         echo "    ";
  1744.         $this->loadTemplate("Slivki/popups/header_offers.html.twig""Slivki/mobile/offer/details.html.twig"766)->display($context);
  1745.         // line 767
  1746.         echo "    ";
  1747.         $this->loadTemplate("Slivki/popups/mail_offers.html.twig""Slivki/mobile/offer/details.html.twig"767)->display($context);
  1748.         // line 768
  1749.         echo "    ";
  1750.         $this->loadTemplate("Slivki/popups/callback.html.twig""Slivki/mobile/offer/details.html.twig"768)->display($context);
  1751.         // line 769
  1752.         echo "    ";
  1753.         $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.'769$this->source); })())) . "/jivosite/modal_mobile.html.twig"), "Slivki/mobile/offer/details.html.twig"769)->display($context);
  1754.         // line 770
  1755.         echo "    ";
  1756.         if ((twig_get_attribute($this->env$this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method"truetruefalse770) && (=== 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.'770$this->source); })()), "getVideos", [], "method"falsefalsefalse770)), 0)))) {
  1757.             // line 771
  1758.             echo "        ";
  1759.             $this->loadTemplate("Slivki/popups/details-story-popup.html.twig""Slivki/mobile/offer/details.html.twig"771)->display($context);
  1760.             // line 772
  1761.             echo "    ";
  1762.         }
  1763.         // line 773
  1764.         echo "    ";
  1765.         $this->loadTemplate("Slivki/orderAsGift/foodForGift.html.twig""Slivki/mobile/offer/details.html.twig"773)->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.'773$this->source); })())]));
  1766.         // line 774
  1767.         echo "    ";
  1768.         if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME"))) {
  1769.             // line 775
  1770.             echo "        ";
  1771.             $this->loadTemplate("Slivki/uz/mobile/buy_promo.twig""Slivki/mobile/offer/details.html.twig"775)->display($context);
  1772.             // line 776
  1773.             echo "    ";
  1774.         }
  1775.         // line 777
  1776.         echo "    ";
  1777.         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.'777$this->source); })()), "user", [], "any"falsefalsefalse777)) {
  1778.             // line 778
  1779.             echo "        ";
  1780.             $this->loadTemplate("Slivki/popups/rating_edit_popup.html.twig""Slivki/mobile/offer/details.html.twig"778)->display($context);
  1781.             // line 779
  1782.             echo "        ";
  1783.             $this->loadTemplate("Slivki/mobile/popup/popup_subscription_limited.html.twig""Slivki/mobile/offer/details.html.twig"779)->display($context);
  1784.             // line 780
  1785.             echo "        ";
  1786.             $this->loadTemplate("Slivki/mobile/subscription/buy_promo_popup.html.twig""Slivki/mobile/offer/details.html.twig"780)->display($context);
  1787.             // line 781
  1788.             echo "        ";
  1789.             $this->loadTemplate("Slivki/mobile/popup/confirm_subscription_card_popup.html.twig""Slivki/mobile/offer/details.html.twig"781)->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.'781$this->source); })()), "user", [], "any"falsefalsefalse781), "getActiveCreditCards", [], "method"falsefalsefalse781)]));
  1790.             // line 782
  1791.             echo "        ";
  1792.             $this->loadTemplate("Slivki/mobile/popup/buy_codes_avways_app.html.twig""Slivki/mobile/offer/details.html.twig"782)->display($context);
  1793.             // line 783
  1794.             echo "        ";
  1795.             $this->loadTemplate("Slivki/popups/add_favourite_popup.html.twig""Slivki/mobile/offer/details.html.twig"783)->display($context);
  1796.             // line 784
  1797.             echo "        ";
  1798.             $this->loadTemplate("Slivki/popups/delete_favourite_popup.html.twig""Slivki/mobile/offer/details.html.twig"784)->display($context);
  1799.             // line 785
  1800.             echo "        ";
  1801.             $this->loadTemplate("Slivki/popups/delete_comment_popup.html.twig""Slivki/mobile/offer/details.html.twig"785)->display(twig_array_merge($context, ["id" => "deleteCommentConfirmPopup"]));
  1802.             // line 786
  1803.             echo "    ";
  1804.         } else {
  1805.             // line 787
  1806.             echo "        ";
  1807.             $this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig""Slivki/mobile/offer/details.html.twig"787)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
  1808.             // line 788
  1809.             echo "    ";
  1810.         }
  1811.         // line 789
  1812.         echo "    ";
  1813.         $this->loadTemplate("Slivki/popups/comment_media_block_popup.html.twig""Slivki/mobile/offer/details.html.twig"789)->display($context);
  1814.         // line 790
  1815.         echo "    ";
  1816.         $this->loadTemplate("Slivki/mobile/popup/add_comment_popup.html.twig""Slivki/mobile/offer/details.html.twig"790)->display($context);
  1817.         // line 791
  1818.         echo "    ";
  1819.         $this->loadTemplate("Slivki/popups/edit_comment_popup.html.twig""Slivki/mobile/offer/details.html.twig"791)->display(twig_array_merge($context, ["id" => "editVoteBox"]));
  1820.         // line 792
  1821.         echo "    ";
  1822.         $this->loadTemplate("Slivki/popups/comment_censor_message.html.twig""Slivki/mobile/offer/details.html.twig"792)->display(twig_array_merge($context, ["id" => "commentCensorMessage"]));
  1823.         // line 793
  1824.         echo "    ";
  1825.         $this->loadTemplate("Slivki/mobile/share_block.html.twig""Slivki/mobile/offer/details.html.twig"793)->display($context);
  1826.         // line 794
  1827.         echo "    ";
  1828.         $this->loadTemplate("Slivki/mobile/popup/statistics_popup.html.twig""Slivki/mobile/offer/details.html.twig"794)->display($context);
  1829.         // line 795
  1830.         echo "    ";
  1831.         $this->loadTemplate("Slivki/mobile/delivery/modal/details.html.twig""Slivki/mobile/offer/details.html.twig"795)->display(twig_array_merge($context, ["isOfferPage" => true]));
  1832.         // line 796
  1833.         echo "    ";
  1834.         if ((=== twig_compare(twig_length_filter($this->env, (isset($context["items"]) || array_key_exists("items"$context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.'796$this->source); })())), 0))) {
  1835.             // line 797
  1836.             echo "        ";
  1837.             $this->loadTemplate("Slivki/mobile/offer/extension/item/items_popup.html.twig""Slivki/mobile/offer/details.html.twig"797)->display($context);
  1838.             // line 798
  1839.             echo "    ";
  1840.         }
  1841.         // line 799
  1842.         echo "    ";
  1843.         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.'799$this->source); })()), "getID", [], "method"falsefalsefalse799), twig_constant("Slivki\\Entity\\Offer::BOOKING_OFFER_ID")))) {
  1844.             // line 800
  1845.             echo "        ";
  1846.             $this->loadTemplate("Slivki/mobile/offer/booking_popup.html.twig""Slivki/mobile/offer/details.html.twig"800)->display($context);
  1847.             // line 801
  1848.             echo "    ";
  1849.         }
  1850.         // line 802
  1851.         echo "    ";
  1852.         $this->displayParentBlock("popup"$context$blocks);
  1853.         echo "
  1854.     ";
  1855.         // line 803
  1856.         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.'803$this->source); })()), "isGiftCertificateOffer", [], "method"falsefalsefalse803)) {
  1857.             // line 804
  1858.             echo "        ";
  1859.             $this->loadTemplate("Slivki/popups/step_buy_certificate.twig""Slivki/mobile/offer/details.html.twig"804)->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.'804$this->source); })())]));
  1860.             // line 805
  1861.             echo "    ";
  1862.         }
  1863.         // line 806
  1864.         echo "    ";
  1865.         $this->loadTemplate("Slivki/mobile/popup/loading_popup.html.twig""Slivki/mobile/offer/details.html.twig"806)->display($context);
  1866.         // line 807
  1867.         echo "    ";
  1868.         $this->loadTemplate("Slivki/mobile/popup/contact_popup.html.twig""Slivki/mobile/offer/details.html.twig"807)->display($context);
  1869.         
  1870.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1871.         
  1872.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1873.     }
  1874.     // line 809
  1875.     public function block_brandingBanner($context, array $blocks = [])
  1876.     {
  1877.         $macros $this->macros;
  1878.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1879.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""brandingBanner"));
  1880.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1881.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""brandingBanner"));
  1882.         // line 810
  1883.         echo "    ";
  1884.         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.'810$this->source); })()), "user", [], "any"falsefalsefalse810) && 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.'810$this->source); })()), "user", [], "any"falsefalsefalse810), "hasRole", [=> twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method"falsefalsefalse810))) {
  1885.             // line 811
  1886.             echo "        ";
  1887.             $context["brandingBanner"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getBrandingBanner($this->envtwig_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.'811$this->source); })()), "user", [], "any"falsefalsefalse811), ((array_key_exists("brandingBannerCategoryIDs"$context)) ? ((isset($context["brandingBannerCategoryIDs"]) || array_key_exists("brandingBannerCategoryIDs"$context) ? $context["brandingBannerCategoryIDs"] : (function () { throw new RuntimeError('Variable "brandingBannerCategoryIDs" does not exist.'811$this->source); })())) : ([])), ((array_key_exists("offer"$context)) ? (twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'811$this->source); })()), "getID", [], "method"falsefalsefalse811)) : ("")));
  1888.             // line 812
  1889.             echo "        ";
  1890.             if (((isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'812$this->source); })()) && twig_get_attribute($this->env$this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'812$this->source); })()), "getMobileDivider", [], "method"falsefalsefalse812))) {
  1891.                 // line 813
  1892.                 echo "            <input type=\"hidden\" id=\"brandingBannerImage\" value=\"";
  1893.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'813$this->source); })()), "getMobileDivider", [], "method"falsefalsefalse813), "html"nulltrue);
  1894.                 echo "\"
  1895.                    data-oid=\"";
  1896.                 // line 814
  1897.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'814$this->source); })()), "getID", [], "method"falsefalsefalse814), "html"nulltrue);
  1898.                 echo "\" data-id=\"";
  1899.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'814$this->source); })()), "getBannerID", [], "method"falsefalsefalse814), "html"nulltrue);
  1900.                 echo "\"
  1901.                    data-branding=\"";
  1902.                 // line 815
  1903.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'815$this->source); })()), "getBannerID", [], "method"falsefalsefalse815), "html"nulltrue);
  1904.                 echo "\" data-url=\"";
  1905.                 echo twig_escape_filter($this->envtwig_trim_filter(twig_get_attribute($this->env$this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'815$this->source); })()), "getUrl", [], "method"falsefalsefalse815)), "html"nulltrue);
  1906.                 echo "\"
  1907.                    data-right-side-url=\"";
  1908.                 // line 816
  1909.                 echo twig_escape_filter($this->envtwig_trim_filter(twig_get_attribute($this->env$this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'816$this->source); })()), "getRightSideUrl", [], "method"falsefalsefalse816)), "html"nulltrue);
  1910.                 echo "\">
  1911.         ";
  1912.             }
  1913.             // line 818
  1914.             echo "    ";
  1915.         }
  1916.         
  1917.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1918.         
  1919.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1920.     }
  1921.     // line 821
  1922.     public function block_javascripts($context, array $blocks = [])
  1923.     {
  1924.         $macros $this->macros;
  1925.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1926.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  1927.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1928.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  1929.         // line 822
  1930.         echo "    ";
  1931.         $this->displayParentBlock("javascripts"$context$blocks);
  1932.         echo "
  1933.     <script src=\"/js/jquery.jcarousel.min.js?v=1\"></script>
  1934.     <script src=\"/js/story-slider/story-slider-js.js?v=";
  1935.         // line 824
  1936.         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.'824$this->source); })()), "html"nulltrue);
  1937.         echo "\"></script>
  1938.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js\"
  1939.             integrity=\"sha512-jNDtFf7qgU0eH/+Z42FG4fw3w7DM/9zbgNPe3wfJlCylVDTT3IgKW5r92Vy9IHa6U50vyMz5gRByIu4YIXFtaQ==\"
  1940.             crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  1941.     <script type=\"text/javascript\">
  1942.         \$(function () {
  1943.             \$('#floatingBanner').addClass('offer-details-floating-banner');
  1944.         });
  1945.     </script>
  1946.     <!-- Moment -->
  1947.     <script src=\"/admin/plugins/moment/moment-with-locales.js\"></script>
  1948.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.min.js\"></script>
  1949.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js\"></script>
  1950.     <script src=\"/js/swiper-js/swiper.min.js\"></script>
  1951.     <script src=\"/js/offer-new.js?v=";
  1952.         // line 838
  1953.         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.'838$this->source); })()), "html"nulltrue);
  1954.         echo "\"/>
  1955.     <script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU\" type=\"text/javascript\"></script>
  1956.     <script src=\"https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js\"></script>
  1957.     <script src=\"https://yastatic.net/share2/share.js\"></script>
  1958.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.js\"></script>
  1959.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.min.js\"></script>
  1960.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/fecha/2.3.3/fecha.min.js\"></script>
  1961.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
  1962.     <!-- date-time-picker -->
  1963.     <script src=\"/admin/plugins/datetimepicker/js/bootstrap-datetimepicker.min.js\"></script>
  1964.     <!-- colorpicker -->
  1965.     <script src=\"/admin/plugins/colorpicker/bootstrap-colorpicker.min.js\"></script>
  1966.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.js\"
  1967.             integrity=\"sha512-zlWWyZq71UMApAjih4WkaRpikgY9Bz1oXIW5G0fED4vk14JjGlQ1UmkGM392jEULP8jbNMiwLWdM8Z87Hu88Fw==\"
  1968.             crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  1969.     <script src=\"/mobile/js/offer.min.js?v=";
  1970.         // line 854
  1971.         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.'854$this->source); })()), "html"nulltrue);
  1972.         echo "\"></script>
  1973.     <script type=\"text/javascript\" src=\"/js/statistics_offer/statistics_offer.js?v=";
  1974.         // line 855
  1975.         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.'855$this->source); })()), "html"nulltrue);
  1976.         echo "\"
  1977.             charset=\"utf-8\"></script>
  1978.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/jquery.easypiechart.min.js\"
  1979.             integrity=\"sha512-DHNepbIus9t4e6YoMBSJLwl+nnm0tIwMBonsQQ+W9NKN6gVVVbomJs9Ii3mQ+HzGZiU5FyJLdnAz9a63ZgZvTQ==\"
  1980.             crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  1981.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/easypiechart.min.js\"
  1982.             integrity=\"sha512-1yldf7W5suy0ko2u4OGU1qyeGrzh9+A3uyWGH4ws8MbndaWxZsgnzy6uqqBq7NUU/ImI1Js5kqDbunovCN1JqA==\"
  1983.             crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  1984.     <script src=\"/js/ajaxupload.3.5.js?v=1\"></script>
  1985.     <script src=\"/js/mobile-rating.js?v=2\"></script>
  1986.     <script>
  1987.         uploadPhoto('/comment/image_upload', '/comment/image_remove');
  1988.         initImageRemove();
  1989.     </script>
  1990.     <script type=\"text/javascript\">
  1991.         ";
  1992.         // line 870
  1993.         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.'870$this->source); })()), "request", [], "any"falsefalsefalse870), "query", [], "any"falsefalsefalse870), "has", [=> "checkOrder"], "method"falsefalsefalse870)) {
  1994.             // line 871
  1995.             echo "        initCheckOfferOrderStatus(";
  1996.             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.'871$this->source); })()), "request", [], "any"falsefalsefalse871), "get", [=> "checkOrder"], "method"falsefalsefalse871), "html"nulltrue);
  1997.             echo ");
  1998.         ";
  1999.         }
  2000.         // line 873
  2001.         echo "    </script>
  2002.     <script src=\"/js/offer/offerDescriptionItems.js?v=";
  2003.         // line 874
  2004.         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.'874$this->source); })()), "html"nulltrue);
  2005.         echo "\"></script>
  2006.     <script type=\"module\" src=\"/js/work_examples/work_examples.js?v=";
  2007.         // line 875
  2008.         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.'875$this->source); })()), "html"nulltrue);
  2009.         echo "\"></script>
  2010.     <script type=\"module\" src=\"/js/beauty/masters.js?v=";
  2011.         // line 876
  2012.         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.'876$this->source); })()), "html"nulltrue);
  2013.         echo "\"></script>
  2014. ";
  2015.         
  2016.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  2017.         
  2018.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  2019.     }
  2020.     // line 879
  2021.     public function block_RTBHouse($context, array $blocks = [])
  2022.     {
  2023.         $macros $this->macros;
  2024.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  2025.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  2026.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2027.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  2028.         // line 880
  2029.         echo "    <script>
  2030.         try {
  2031.             (function () {
  2032.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = [];
  2033.                 rtbhTags.push(\"pr_\" + hash + \"_offer_\" + document.getElementById('offerID').value);
  2034.                 rtbhTags.push(\"pr_\" + hash + \"_uid_\" + document.getElementById('rtbhUID').value);
  2035.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key);
  2036.                 if (!lid) {
  2037.                     lid = \"\";
  2038.                     var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  2039.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length));
  2040.                     window.localStorage.setItem(key, lid);
  2041.                 }
  2042.                 rtbhTags.push(\"pr_\" + hash + \"_lid_\" + lid);
  2043.                 var ifr = document.createElement(\"iframe\"),
  2044.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  2045.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  2046.                     ifrSrc = \"https://\" + prefix + \"creativecdn.com/tags?type=iframe\",
  2047.                     tmstmp = encodeURIComponent(\"\" + Date.now());
  2048.                 for (var i = 0; i < rtbhTags.length; i++) {
  2049.                     ifrSrc += \"&id=\" + encodeURIComponent(rtbhTags[i]);
  2050.                 }
  2051.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  2052.                 ifr.setAttribute(\"src\", ifrSrc);
  2053.                 ifr.setAttribute(\"width\", \"1\");
  2054.                 ifr.setAttribute(\"height\", \"1\");
  2055.                 ifr.setAttribute(\"scrolling\", \"no\");
  2056.                 ifr.setAttribute(\"frameBorder\", \"0\");
  2057.                 ifr.setAttribute(\"style\", \"display:none\");
  2058.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\");
  2059.                 if (document.body) {
  2060.                     document.body.appendChild(ifr);
  2061.                 } else {
  2062.                     window.addEventListener('DOMContentLoaded', function () {
  2063.                         document.body.appendChild(ifr);
  2064.                     });
  2065.                 }
  2066.             })();
  2067.         } catch (e) {
  2068.         } </script>
  2069. ";
  2070.         
  2071.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  2072.         
  2073.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  2074.     }
  2075.     public function getTemplateName()
  2076.     {
  2077.         return "Slivki/mobile/offer/details.html.twig";
  2078.     }
  2079.     public function isTraitable()
  2080.     {
  2081.         return false;
  2082.     }
  2083.     public function getDebugInfo()
  2084.     {
  2085.         return array (  2083 => 880,  2073 => 879,  2061 => 876,  2057 => 875,  2053 => 874,  2050 => 873,  2044 => 871,  2042 => 870,  2024 => 855,  2020 => 854,  2001 => 838,  1984 => 824,  1978 => 822,  1968 => 821,  1957 => 818,  1952 => 816,  1946 => 815,  1940 => 814,  1935 => 813,  1932 => 812,  1929 => 811,  1926 => 810,  1916 => 809,  1905 => 807,  1902 => 806,  1899 => 805,  1896 => 804,  1894 => 803,  1889 => 802,  1886 => 801,  1883 => 800,  1880 => 799,  1877 => 798,  1874 => 797,  1871 => 796,  1868 => 795,  1865 => 794,  1862 => 793,  1859 => 792,  1856 => 791,  1853 => 790,  1850 => 789,  1847 => 788,  1844 => 787,  1841 => 786,  1838 => 785,  1835 => 784,  1832 => 783,  1829 => 782,  1826 => 781,  1823 => 780,  1820 => 779,  1817 => 778,  1814 => 777,  1811 => 776,  1808 => 775,  1805 => 774,  1802 => 773,  1799 => 772,  1796 => 771,  1793 => 770,  1790 => 769,  1787 => 768,  1784 => 767,  1781 => 766,  1771 => 765,  1760 => 762,  1757 => 761,  1754 => 760,  1751 => 759,  1749 => 758,  1746 => 757,  1742 => 755,  1738 => 753,  1736 => 752,  1728 => 747,  1723 => 744,  1721 => 743,  1711 => 736,  1708 => 735,  1706 => 734,  1698 => 729,  1690 => 725,  1684 => 722,  1680 => 720,  1677 => 719,  1674 => 718,  1669 => 715,  1663 => 714,  1660 => 713,  1656 => 712,  1651 => 710,  1647 => 708,  1643 => 706,  1640 => 705,  1637 => 704,  1629 => 701,  1623 => 699,  1620 => 698,  1614 => 696,  1611 => 695,  1605 => 694,  1602 => 693,  1597 => 692,  1594 => 691,  1591 => 690,  1589 => 689,  1583 => 688,  1577 => 687,  1574 => 686,  1569 => 685,  1566 => 684,  1552 => 673,  1545 => 668,  1543 => 667,  1540 => 666,  1537 => 665,  1535 => 664,  1529 => 661,  1522 => 656,  1513 => 654,  1508 => 651,  1498 => 648,  1494 => 647,  1489 => 645,  1486 => 644,  1483 => 643,  1480 => 642,  1476 => 641,  1473 => 640,  1467 => 636,  1449 => 620,  1447 => 619,  1443 => 617,  1441 => 616,  1436 => 613,  1434 => 612,  1429 => 610,  1423 => 606,  1421 => 605,  1389 => 575,  1370 => 572,  1364 => 571,  1360 => 570,  1356 => 569,  1353 => 568,  1336 => 567,  1330 => 563,  1324 => 559,  1320 => 557,  1310 => 553,  1306 => 552,  1302 => 551,  1298 => 550,  1295 => 549,  1290 => 548,  1284 => 545,  1278 => 542,  1274 => 540,  1272 => 539,  1269 => 538,  1267 => 537,  1262 => 536,  1258 => 534,  1256 => 533,  1251 => 530,  1243 => 526,  1239 => 524,  1237 => 523,  1232 => 520,  1229 => 519,  1226 => 518,  1223 => 517,  1221 => 516,  1218 => 515,  1215 => 514,  1212 => 513,  1210 => 512,  1207 => 511,  1205 => 510,  1202 => 509,  1199 => 508,  1195 => 506,  1192 => 505,  1188 => 503,  1182 => 502,  1179 => 501,  1168 => 498,  1165 => 497,  1162 => 496,  1159 => 495,  1156 => 494,  1154 => 493,  1149 => 490,  1145 => 488,  1140 => 485,  1137 => 484,  1134 => 483,  1131 => 482,  1125 => 479,  1121 => 478,  1117 => 477,  1112 => 476,  1109 => 475,  1106 => 474,  1100 => 471,  1096 => 470,  1092 => 469,  1087 => 468,  1085 => 467,  1080 => 465,  1076 => 464,  1072 => 463,  1067 => 462,  1064 => 461,  1061 => 460,  1055 => 457,  1051 => 456,  1047 => 455,  1042 => 454,  1039 => 453,  1036 => 452,  1029 => 448,  1024 => 447,  1021 => 446,  1018 => 445,  1015 => 444,  1009 => 441,  1005 => 440,  1000 => 439,  998 => 438,  993 => 436,  989 => 435,  984 => 434,  982 => 433,  977 => 431,  973 => 430,  968 => 429,  965 => 428,  959 => 425,  955 => 424,  952 => 423,  949 => 422,  942 => 418,  939 => 417,  936 => 416,  934 => 415,  930 => 413,  927 => 412,  919 => 407,  913 => 403,  910 => 402,  905 => 399,  902 => 398,  895 => 395,  892 => 394,  889 => 393,  886 => 392,  883 => 391,  880 => 390,  877 => 389,  871 => 386,  862 => 383,  859 => 382,  853 => 379,  846 => 374,  843 => 373,  841 => 372,  836 => 370,  831 => 367,  828 => 366,  822 => 363,  817 => 360,  814 => 359,  808 => 356,  803 => 353,  800 => 352,  797 => 351,  793 => 349,  787 => 347,  783 => 345,  781 => 344,  776 => 342,  773 => 341,  771 => 340,  764 => 335,  760 => 333,  754 => 331,  750 => 329,  748 => 328,  744 => 326,  741 => 325,  738 => 324,  732 => 321,  728 => 319,  726 => 318,  722 => 316,  720 => 315,  717 => 314,  714 => 313,  710 => 311,  700 => 304,  696 => 303,  691 => 300,  681 => 293,  675 => 289,  672 => 288,  670 => 287,  648 => 267,  644 => 265,  632 => 255,  620 => 245,  618 => 244,  615 => 243,  613 => 242,  612 => 241,  610 => 240,  606 => 238,  594 => 228,  582 => 218,  580 => 217,  576 => 215,  573 => 212,  562 => 203,  560 => 202,  555 => 199,  546 => 192,  540 => 189,  536 => 188,  531 => 186,  526 => 183,  524 => 182,  517 => 180,  513 => 178,  508 => 175,  501 => 173,  497 => 172,  492 => 170,  488 => 169,  483 => 168,  481 => 167,  474 => 166,  472 => 165,  462 => 157,  460 => 156,  455 => 154,  447 => 148,  441 => 145,  433 => 139,  431 => 138,  425 => 135,  418 => 133,  412 => 129,  406 => 126,  396 => 123,  390 => 119,  388 => 118,  382 => 114,  376 => 110,  374 => 109,  371 => 108,  365 => 105,  361 => 104,  358 => 103,  355 => 102,  348 => 100,  343 => 98,  338 => 97,  332 => 95,  330 => 94,  327 => 93,  322 => 92,  319 => 91,  316 => 90,  314 => 89,  310 => 88,  307 => 87,  301 => 83,  298 => 82,  292 => 79,  289 => 78,  286 => 77,  280 => 74,  273 => 72,  270 => 71,  268 => 70,  260 => 64,  258 => 63,  251 => 60,  246 => 58,  241 => 57,  238 => 56,  232 => 54,  230 => 53,  225 => 51,  221 => 50,  217 => 49,  212 => 47,  209 => 46,  203 => 44,  200 => 43,  197 => 42,  194 => 41,  192 => 40,  189 => 39,  186 => 38,  183 => 37,  173 => 36,  159 => 30,  151 => 26,  148 => 25,  145 => 24,  135 => 23,  117 => 21,  102 => 15,  98 => 14,  94 => 13,  90 => 12,  80 => 4,  70 => 3,  59 => 2,  57 => 34,  55 => 1,  42 => 2,);
  2086.     }
  2087.     public function getSourceContext()
  2088.     {
  2089.         return new Source("{% set phoneNumbersWithoutGeoLocations = offer.getPhoneNumbersWithoutGeoLocations() %}
  2090. {% extends 'Slivki/mobile/base.html.twig' %}
  2091. {% block styles %}
  2092.     <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\"/>
  2093.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css\"/>
  2094.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\"/>
  2095.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick-theme.min.css\"/>
  2096.     <link rel=\"stylesheet\" href=\"/admin/plugins/datetimepicker/css/bootstrap-datetimepicker.min.css\">
  2097.     <link rel=\"stylesheet\" href=\"/admin/plugins/datatables/jquery.dataTables.min.css\"/>
  2098.     <link rel=\"stylesheet\" href=\"/admin/plugins/colorpicker/bootstrap-colorpicker.min.css\"/>
  2099.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.css\">
  2100.     {{ parent() }}
  2101.     <link href=\"/css/delivery.min.css?v={{ delivery_css_version }}\" rel=\"stylesheet\" type=\"text/css\"/>
  2102.     <link href=\"/mobile/css/offers.min.css?v={{ mobile_offers_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
  2103.     <link href=\"/css/foodForGift.css?v={{ food_for_gift_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
  2104.     <link href=\"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap\"
  2105.           rel=\"stylesheet\">
  2106.     <link href=\" /mobile/css/statistics_modal.css?v=3\" rel=\"stylesheet\" type=\"text/css\"/>
  2107. {% endblock %}
  2108. {% block messenger %}{% endblock %}
  2109. {% block ogimage %}
  2110.     {% if detailMediaList|length > 0 %}
  2111.         <meta property=\"og:image\"
  2112.               content=\"{{ app.request.getSchemeAndHttpHost() }}{{ getImageURL(detailMediaList|first, 522, 322) }}\"/>
  2113.         <meta property=\"og:image:width\" content=\"522\"/>
  2114.         <meta property=\"og:image:height\" content=\"322\"/>
  2115.     {% else %}
  2116.         {{ parent() }}
  2117.     {% endif %}
  2118. {% endblock %}
  2119. {% set isBatchCodesAllowed = app.user and app.user.isBatchCodesAllowed %}
  2120. {% block content %}
  2121.     {% set isPickupEnabled = offer.getOnlineOrderSettings().isPickupEnabled() is defined ? offer.getOnlineOrderSettings().isPickupEnabled() %}
  2122.     {% set isDeliveryEnabled = offer.getOnlineOrderSettings().isDeliveryEnabled() is defined ? offer.getOnlineOrderSettings().isDeliveryEnabled() %}
  2123.     {% if parentCategoryList %}
  2124.         {% include 'Slivki/mobile/breadcrumbs.html.twig' with { 'parentCategoryList': parentCategoryList, 'supplierCategoryData': offer.getSupplierCategoryData() } only %}
  2125.     {% endif %}
  2126.     {% if isPickupEnabled or isDeliveryEnabled %}
  2127.         <input id=\"deliveryMethodEnabled\" type=\"hidden\" value=\"{{ isDeliveryEnabled == '' ? '2' : '1' }}\">
  2128.     {% endif %}
  2129.     <input id=\"offerPage\" type=\"hidden\" value=\"\">
  2130.     <input id=\"offerID\" type=\"hidden\" value=\"{{ offer.getID() }}\">
  2131.     <input id=\"isMedicalCenter\" type=\"hidden\"
  2132.            value=\"{{ parentCategoryList and parentCategoryList[0].getID() == constant('Slivki\\\\Entity\\\\Category::MEDICAL_CENTER_CATEGORY_ID') }}\">
  2133.     <input type=\"hidden\" id=\"stock-id\" value=\"{{ offer.getID() }}\">
  2134.     <input type=\"hidden\" id=\"stock-link\" value=\"{{ app.request.getSchemeAndHttpHost() ~ app.request.getRequestUri() }}\">
  2135.     <div type=\"hidden\" id=\"mobileVersionIndicator\"></div>
  2136.     {% if app.user and isSubscriber(app.user) %}
  2137.         <input id=\"allowedCodesCountBySubscription\" type=\"hidden\" value=\"{{ allowedCodesCountBySubscription }}\">
  2138.     {% endif %}
  2139.     {% if app.user %}
  2140.         <input id=\"splitTotalCodesCountByUser\" type=\"hidden\" value=\"{{ app.user.getCodesCountByOffer(offer) }}\">
  2141.         <input type=\"hidden\" id=\"customerID\" value=\"{{ app.user.getID() }}\"/>
  2142.     {% endif %}
  2143.     <meta content=\"{{ metaInfo.metaDescription }}\"/>
  2144.     <div id=\"offerDetails\">
  2145.         <div class=\"collapse-more-button\"></div>
  2146.         {% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
  2147.         <div class=\"no-gutters pb-2\">
  2148.             <div class=\"col-12 col-sm-4\">
  2149.                 <div id=\"offerImageSlider\" class=\"m-0 swiper-container\">
  2150.                     <div class=\"back-button\" onclick=\"history.back();\">
  2151.                         <img src=\"/images/back-violet.svg\"/>
  2152.                     </div>
  2153.                     {% if app.user() %}
  2154.                         <div class=\"fovoutite-block\"
  2155.                              onclick=\"onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})\">
  2156.                             <img width=\"18\" height=\"18\"
  2157.                                  src=\"{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/heart.svg' }}\"/>
  2158.                         </div>
  2159.                     {% endif %}
  2160.                     {% if not offer.isWithoutCodes() %}
  2161.                         <div class=\"discount-block\">
  2162.                             {{ offer.getDiscount() }}
  2163.                         </div>
  2164.                     {% endif %}
  2165.                     {% if is_granted('ROLE_ADMIN') and not offer.isWithoutCodes() %}
  2166.                         <div id=\"statisticsButton\" data-toggle=\"modal\" data-target=\"#statisticOffersPopup\">
  2167.                             <img width=\"37\" height=\"37\" src=\"/images/statistics.png\"/>
  2168.                         </div>
  2169.                     {% endif %}
  2170.                     <div class=\"swiper-wrapper\"
  2171.                          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%' }}>
  2172.                         {% set medias = offer.getDetailMedias() %}
  2173.                         {% set mediaCount = medias|length %}
  2174.                         {% if mediaCount > 1 %}
  2175.                             {% for media in medias %}
  2176.                                 <div class=\"swiper-slide\">
  2177.                                     {% if media.isYoutube() %}
  2178.                                         <input class=\"js-src-video\" type=\"hidden\" value=\"https://www.youtube.com/embed/{{ media.getName() }}\">
  2179.                                     {% else %}
  2180.                                         <img class=\"img-fluid lazyload\" alt=\"{{ media.getDescription() }}\"
  2181.                                              src=\"{{ getImageURL(media, 1044, 644) }}\"/>
  2182.                                     {% endif %}
  2183.                                 </div>
  2184.                             {% endfor %}
  2185.                         {% elseif mediaCount == 1 %}
  2186.                             <div>
  2187.                                 <img class=\"img-fluid lazyload\" alt=\"{{ medias[0].getDescription() }}\"
  2188.                                      src=\"{{ getImageURL(medias[0], 1044, 644) }}\"/>
  2189.                             </div>
  2190.                         {% endif %}
  2191.                     </div>
  2192.                     {% if mediaCount > 1 %}
  2193.                         <div class=\"swiper-pagination mt-2\"></div>
  2194.                         <div class=\"swiper-button-next\"></div>
  2195.                         <div class=\"swiper-button-prev\"></div>
  2196.                     {% endif %}
  2197.                 </div>
  2198.             </div>
  2199.             <div class=\"container-offers\">
  2200.                 <div class=\"tags-offers\">
  2201.                     {% if not offer.isWithoutCodes() %}
  2202.                         <div class=\"tags-offers-item\"
  2203.                              data-toggle=\"tooltip\"
  2204.                              data-placement=\"top\"
  2205.                              data-html=\"true\"
  2206.                              data-original-title=\"Взято кодов <br> Всего <a>{{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }}</a> </br> За сутки {{ todayPurchaseCount }} </br> За месяц {{ getOfferMonthlyPurchaseCount(offer.getID(), 30) }}\">
  2207.                             <img src=\"/images/offers/icon_people.svg\"/>
  2208.                             <p class=\"mb-0\"><a>{{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }}</a></p>
  2209.                         </div>
  2210.                     {% endif %}
  2211.                     <div class=\"tags-offers-item view-count\" class=\"view-count d-flex\"
  2212.                          data-toggle=\"tooltip\"
  2213.                          data-placement=\"top\"
  2214.                          data-html=\"true\"
  2215.                          data-original-title=\"Просмотров  </br> За сутки {{ todayVisitCount }}<br> За месяц <span class='m-0'><a>{{ visitCount }}</a></span>\">
  2216.                         <img src=\"/images/offers/statistic_1.svg\"/>
  2217.                         <p class=\"mb-0\">{{ visitCount }}</p>
  2218.                     </div>
  2219.                     {% if not offer.isWithoutCodes() %}
  2220.                         <div class=\"tags-offers-item\"
  2221.                              data-toggle=\"tooltip\"
  2222.                              data-placement=\"top\"
  2223.                              data-html=\"true\"
  2224.                              data-original-title=\"Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней\">
  2225.                             <img src=\"/images/offers/conversion.svg\"/>
  2226.                             <p class=\"mb-0\">{{ getOfferConversion(offer.getID()) }}%</p>
  2227.                         </div>
  2228.                     {% endif %}
  2229.                     <div class=\"tags-offers-item rating-block\"
  2230.                          data-html=\"true\"
  2231.                          data-toggle=\"tooltip\"
  2232.                          data-placement=\"top\"
  2233.                          data-original-title=\"Рейтинг компании <br> за 90 дней\">
  2234.                         <span>★</span>
  2235.                         <p class=\"mb-0\">{{ offer.getRating() }}</p>
  2236.                     </div>
  2237.                     {% if not offer.isWithoutCodes() %}
  2238.                         <div class=\"tags-offers-item day-to-end\"
  2239.                              data-toggle=\"tooltip\"
  2240.                              data-placement=\"top\"
  2241.                              data-html=\"true\"
  2242.                              data-original-title=\"Дней до окончания <br> действия акции\">
  2243.                             <img src=\"/images/offers/icon_time.svg\"/>
  2244.                             <p class=\"mb-0\">
  2245.                                 {% if daysLeft > 0 %}
  2246.                                     {{ daysLeft }} {{ ['день', 'дня', 'дней']|plural(daysLeft) }}
  2247.                                 {% elseif daysLeft == 0 %}
  2248.                                     <input type=\"hidden\" id=\"daysLeft\" value=\"{{ daysLeft }} &nbsp;\"/>
  2249.                                     <input type=\"hidden\" id=\"hoursLeft\" value=\"{{ hoursLeft }} &nbsp;\"/>
  2250.                                     <input type=\"hidden\" id=\"minutesLeft\" value=\"{{ minutesLeft }} &nbsp;\"/>
  2251.                                     <input type=\"hidden\" id=\"secondsLeft\"
  2252.                                            value=\"{{ offer.getActiveTill().diff(date()).format('%s') }}\"/>
  2253.                                     <span id=\"hours\">{{ hoursLeft }}&nbsp</span>час{{ ['', 'а', 'ов']|plural(hoursLeft) }}&nbsp;
  2254.                                 {% endif %}
  2255.                             </p>
  2256.                         </div>
  2257.                     {% endif %}
  2258.                 </div>
  2259.                 <p class=\"tittle-offers js-tittle-offer\"
  2260.                    style=\"color: {{ offer.getTitleFontColor() }};\">{{ offer.getTitle()|raw }}</p>
  2261.                 <div class=\"offers-description\">
  2262.                     {% if not pastOffer and offer.getFreeCodesCount() > 0 %}
  2263.                         <div class=\"pb-3 d-flex border-bottom-gray\">
  2264.                             <div class=\"col px-0 price-services-tittle\">Стоимость:</div>
  2265.                             <del id=\"offerRegularPrice\"
  2266.                                  class=\"regular-price-offer\">{{ offer.getRegularPrice() }}</del>
  2267.                             &nbsp;&nbsp;
  2268.                             <div class=\"price-services-new\">{{ offer.getOfferPrice()|replace({'(': '<span id=\"details-offer-price\">(', ')': ')</span>'})|raw }}</div>
  2269.                             <input type=\"hidden\" id=\"codeCost\" value=\"{{ codeCost }}\">
  2270.                         </div>
  2271.                     {% else %}
  2272.                         <div class=\"card border-0 mt-3\">
  2273.                             <div class=\"card-body p-0 pl-2 text-center\">
  2274.                                 <i class=\"slivki-icon-minus-circled text-danger d-block h1 mb-0\"></i>
  2275.                                 Акция завершена
  2276.                             </div>
  2277.                         </div>
  2278.                     {% endif %}
  2279.                 </div>
  2280.             </div>
  2281.         </div>
  2282.         {% if not pastOffer and offer.getFreeCodesCount() > 0 and offer.isOnlineOrderGiftEnabled() and offer.isFoodOnlineOrderAllowedOnSite() %}
  2283.             <div class=\"col my-2\">
  2284.                 <a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
  2285.                     <div class=\"button-gift-text\">
  2286.                         <p class=\"mb-0\">ЕДА В ПОДАРОК 😋</p>
  2287.                         <p class=\"mb-0\">Подарю сам или подарят мне</p>
  2288.                     </div>
  2289.                 </a>
  2290.             </div>
  2291.         {% endif %}
  2292.         {% if not pastOffer and offer.isGiftCertificateOnlineOrderAllowedOnSite() and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE'))
  2293.         %}
  2294.             <div class=\"col my-2\">
  2295.                 {% if app.user %}
  2296.                     <a class=\"button-gift\" href=\"/virtual-wallet-pay\">
  2297.                         <div class=\"button-gift-text\">
  2298.                             <p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
  2299.                             <p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY + 5%</p>
  2300.                         </div>
  2301.                         <div class=\"button-gift-item-button\">
  2302.                             <div class=\"new\">NEW</div>
  2303.                         </div>
  2304.                     </a>
  2305.                 {% else %}
  2306.                     <a class=\"button-gift\"  data-toggle=\"modal\" data-target=\".modal-auth\">
  2307.                         <div class=\"button-gift-text\">
  2308.                             <p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
  2309.                             <p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY + 5%</p>
  2310.                         </div>
  2311.                         <div class=\"button-gift-item-button\">
  2312.                             <div class=\"new\">NEW</div>
  2313.                         </div>
  2314.                     </a>
  2315.                 {% endif %}
  2316.             </div>
  2317.         {% endif %}
  2318.         {% if offer.isFoodOnlineOrderAllowedOnSite() and  offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and not pastOffer or
  2319.             offer.isFoodOnlineOrderAllowedOnSite() and offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and not pastOffer or
  2320.             offer.getAllowedPaymentMethodsForCertificate() is defined and offer.getAllowedPaymentMethodsForCertificate() is not null and offer.getAllowedPaymentMethodsForCertificate()[4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY'))            %}
  2321.             <div class=\"col my-2\">
  2322.                 {% if app.user %}
  2323.                     <a class=\"button-gift\" href=\"/virtual-wallet-pay\">
  2324.                         <div class=\"button-gift-text\">
  2325.                             <p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
  2326.                             <p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY + 5%</p>
  2327.                         </div>
  2328.                         <div class=\"button-gift-item-button\">
  2329.                             <div class=\"new\">NEW</div>
  2330.                         </div>
  2331.                     </a>
  2332.                 {% else %}
  2333.                     <a class=\"button-gift\"  data-toggle=\"modal\" data-target=\".modal-auth\">
  2334.                         <div class=\"button-gift-text\">
  2335.                             <p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
  2336.                             <p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY + 5%</p>
  2337.                         </div>
  2338.                         <div class=\"button-gift-item-button\">
  2339.                             <div class=\"new\">NEW</div>
  2340.                         </div>
  2341.                     </a>
  2342.                 {% endif %}
  2343.             </div>
  2344.         {% endif %}
  2345.         <div class=\"sticky-element\">
  2346.             <div class=\"sticky-anchor\"></div>
  2347.             <div id=\"offerNavigation\">
  2348.                 <ul class=\"nav-list\">
  2349.                     <li class=\"nav-item\"><a href=\"#offerDescriptionTab\" class=\"nav-links active\">
  2350.                             Условия
  2351.                         </a>
  2352.                     </li>
  2353.                     <li class=\"nav-item\"><a href=\"#offerAddressTab\" class=\"nav-links \">
  2354.                             Контакты
  2355.                         </a>
  2356.                     </li>
  2357.                     <li class=\"nav-item\"><a href=\"#offerCommentTab\" class=\"nav-links\"><span></span>
  2358.                             Отзывы
  2359.                         </a>
  2360.                     </li>
  2361.                 </ul>
  2362.             </div>
  2363.         </div>
  2364.         <div id=\"offerAccordion\" class=\"accordion mt-2 px-2\">
  2365.             {% if offer.isWithoutCodes() and offer.isTireOnlineOrderAllowedOnSite() %}
  2366.             {% if not app.user %}
  2367.                 <div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
  2368.                     <div id=\"buyButtonCard\" class=\"card\">
  2369.                         <div class=\"card-header\">
  2370.                             <a id=\"deliveryBtn\" href=\"#\" onclick=\"\$('.modal-auth').modal()\"
  2371.                                class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
  2372.                                 Онлайн-запись
  2373.                             </a>
  2374.                         </div>
  2375.                     </div>
  2376.                 </div>
  2377.             {% else %}
  2378.                 <div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
  2379.                     <div id=\"buyButtonCard\" class=\"card\">
  2380.                         <div class=\"card-header\">
  2381.                             <a id=\"deliveryBtn\" href=\"{{ offer.getOnlineRegistrationLink() }}\"
  2382.                                class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
  2383.                                 Онлайн-запись
  2384.                             </a>
  2385.                         </div>
  2386.                     </div>
  2387.                 </div>
  2388.             {% endif %}
  2389.             {% endif %}
  2390.             {% if not offer.isWithoutCodes() %}
  2391.                 <div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
  2392.                     {% if not offer.isBuyCodeDisable() %}
  2393.                         <div id=\"buyButtonCard\" class=\"card\">
  2394.                             <div class=\"card-header\">
  2395.                                 {% if offer.getID() == constant('Slivki\\\\Entity\\\\Offer::BOOKING_OFFER_ID') %}
  2396.                                     <a href=\"#\" class=\"m-0 card-link bg-slivki\" data-toggle=\"modal\"
  2397.                                        data-target=\"#bookingItemPopup\">
  2398.                                         {{ offer.getBuyCodeButtonText() and offer.getBuyCodeButtonText() != '' ? offer.getBuyCodeButtonText() : 'Забронировать номер' }}
  2399.                                     </a>
  2400.                                 {% else %}
  2401.                                     {% if not pastOffer and freeCodesCount > 0 %}
  2402.                                         {% if not app.user %}
  2403.                                             <a href=\"#\" class=\"m-0 card-link bg-slivki by-code-button text-uppercase\"
  2404.                                                onclick=\"\$('.modal-auth').modal()\">
  2405.                                                 {% if offerIsFreeForUser %}
  2406.                                                     БЕСПЛАТНЫЙ ПРОМОКОД
  2407.                                                 {% else %}
  2408.                                                     {{ buyButtonLabel }}
  2409.                                                 {% endif %}
  2410.                                             </a>
  2411.                                         {% else %}
  2412.                                             <a href=\"javascript:void(0)\" id=\"buyCodeButtonFake\"
  2413.                                                class=\"m-0 d-none card-link bg-slivki by-code-button\">
  2414.                                                 <img class=\"fixed-size\" width=\"14\" src=\"/images/loading-animation.gif\"
  2415.                                                      alt=\"\"/>
  2416.                                             </a>
  2417.                                             {% if (offer.getID() == constant('Slivki\\\\Entity\\\\Offer::PETROL_OFFER_ID')) %}
  2418.                                                 <a href=\"#\"
  2419.                                                    onclick=\"showFakeButton(); if (window.google_tag_manager) {ga('send', 'event', 'Buy code', 'Click', '{{ getURL(\"Slivki:Default:details\", offer.getID()) }}');} document.location='/oplata-promokoda-azs'\"
  2420.                                                    class=\"m-0 card-link bg-slivki by-code-button\" id=\"buyCodeButton\">
  2421.                                                     {% if offerIsFreeForUser %}
  2422.                                                         БЕСПЛАТНЫЙ ПРОМОКОД
  2423.                                                     {% else %}
  2424.                                                         {{ buyButtonLabel }}
  2425.                                                     {% endif %}
  2426.                                                 </a>
  2427.                                             {% else %}
  2428.                                                 {% if isAllowedByOnlyCode %}
  2429.                                                     {% if app.user and (isSubscriber(app.user) or isBatchCodesAllowed) and not offerIsFreeForUser and not offer.isBuyCodeInAppOnly() %}
  2430.                                                         <a href=\"#\" onclick=\"\$('#buyPromoPopup').modal()\"
  2431.                                                            class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
  2432.                                                            id=\"buyCodeButton\">
  2433.                                                             {{ buyButtonLabel }}
  2434.                                                         </a>
  2435.                                                     {% else %}
  2436.                                                         {% if not app.user %}
  2437.                                                             <a href=\"#\" onclick=\"\$('.modal-auth').modal()\"
  2438.                                                                class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
  2439.                                                                id=\"buyCodeButton\">
  2440.                                                                 {{ buyButtonLabel }}
  2441.                                                             </a>
  2442.                                                         {% endif %}
  2443.                                                         {% if offer.isBuyCodeInAppOnly() %}
  2444.                                                             <a class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
  2445.                                                                id=\"buyCodeButton\"
  2446.                                                                onclick=\"\$('#byCodesAlwaysApp').modal()\">
  2447.                                                                 {{ buyButtonLabel }}
  2448.                                                             </a>
  2449.                                                         {% elseif not offer.isBuyCodeInAppOnly() %}
  2450.                                                             {% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::PAYMENT_PAYME')) or isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::PAYMENT_CLICK')) %}
  2451.                                                                 <a href=\"#\"
  2452.                                                                    class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
  2453.                                                                    id=\"buyCodeButtonPayMeMobile\"
  2454.                                                                    data-target=\"#buyPromoPopupPayMe\"
  2455.                                                                    data-toggle=\"modal\">
  2456.                                                                     {{ buyButtonLabel }}
  2457.                                                                 </a>
  2458.                                                             {% else %}
  2459.                                                                 <a href=\"#\"
  2460.                                                                    onclick=\"if (window.google_tag_manager) {ga('send', 'event', 'Buy code', 'Click', '{{ getURL(\"Slivki:Default:details\", offer.getID()) }}');} showFakeButton();ym(20933521,'reachGoal','getcode-click'); document.location='{{ buyCodePopup == '#confirmBox' and canBuyFromBalance ? '/oplata-balance/' : '/oplata/' }}{{ offer.getID() }}'\"
  2461.                                                                    class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
  2462.                                                                    id=\"buyCodeButton\">
  2463.                                                                     {{ buyButtonLabel }}
  2464.                                                                 </a>
  2465.                                                             {% endif %}
  2466.                                                         {% endif %}
  2467.                                                     {% endif %}
  2468.                                                 {% endif %}
  2469.                                             {% endif %}
  2470.                                         {% endif %}
  2471.                                     {% else %}
  2472.                                         <a href=\"{{ categoryURL }}\" class=\"m-0 card-link bg-slivki color-white\">Посмотреть
  2473.                                             похожие предложения</a>
  2474.                                     {% endif %}
  2475.                                 {% endif %}
  2476.                             </div>
  2477.                         </div>
  2478.                     {% endif %}
  2479.                     {% if items|length > 0 %}
  2480.                         <div id=\"buyItemsButtonCard\" class=\"card\">
  2481.                             <div class=\"card-header\">
  2482.                                 <a href=\"#\" id=\"buyItemsButton\" class=\"m-0 card-link bg-slivki\" data-toggle=\"modal\"
  2483.                                    data-target=\"#offerItemsPopup\">
  2484.                                     {{ offer.getBuyItemsButtonText() and offer.getBuyItemsButtonText() != '' ? offer.getBuyItemsButtonText() : 'Оплатить сейчас по карте' }}
  2485.                                 </a>
  2486.                             </div>
  2487.                         </div>
  2488.                     {% endif %}
  2489.                     {% if hasDelivery is defined and offer.getFreeCodesCount() > 0 %}
  2490.                         <div id=\"deliveryButtonCard\" class=\"card\">
  2491.                             <div class=\"card-header bg-transparent\">
  2492.                                 {% if not app.user %}
  2493.                                     {% if offer.isTireOnlineOrderAllowedOnSite() %}
  2494.                                         <a id=\"deliveryBtn\" href=\"#\" onclick=\"\$('.modal-auth').modal()\"
  2495.                                            class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
  2496.                                             Онлайн-запись
  2497.                                         </a>
  2498.                                     {% endif %}
  2499.                                     {% if constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_CERTIFICATE_OFFER_ID') == offer.getID() %}
  2500.                                         <a href=\"#\" onclick=\"\$('.modal-auth').modal()\"
  2501.                                            class=\"card-link ml-0 py-3 bg-violet text-white rounded-14 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
  2502.                                             ПОЛУЧИТЬ СКИДКУ {{ offer.getDiscount() }}
  2503.                                         </a>
  2504.                                     {% else %}
  2505.                                         {% if offer.isGiftCertificateOnlineOrderAllowedOnSite() and not offer.isFoodOnlineOrderAllowedOnSite() and offer.getID() != 283213 and offer.getID() != 288763 and offer.getID() != 288779 and offer.getID() != 288772 %}
  2506.                                             <a id=\"deliveryBtn\" href=\"{{ deliveryLink }}\"
  2507.                                                class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
  2508.                                                 Оплатить онлайн {{ offer.getDiscount() }}
  2509.                                             </a>
  2510.                                         {% elseif offer.isGiftCertificateOffer() and offer.getID() == 288763 or offer.isGiftCertificateOffer() and offer.getID() == 288779 or offer.isGiftCertificateOffer() and offer.getID() == 288772 %}
  2511.                                             <a id=\"deliveryBtn\" href=\"{{ deliveryLink }}\"
  2512.                                                class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
  2513.                                                 Получить скидку {{ offer.getDiscount() }}
  2514.                                             </a>
  2515.                                         {% elseif not offer.isGiftCertificateOffer() and not offer.isTireOnlineOrderAllowedOnSite() %}
  2516.                                             <a id=\"deliveryBtn\" href=\"{{ deliveryLink }}\"
  2517.                                                class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
  2518.                                                 Заказать онлайн {{ offer.getDiscount() }}
  2519.                                             </a>
  2520.                                         {% endif %}
  2521.                                     {% endif %}
  2522.                                 {% else %}
  2523.                                     {% if offer.isTireOnlineOrderAllowedOnSite() %}
  2524.                                         <a id=\"deliveryBtn\" href=\"{{ offer.getOnlineRegistrationLink() }}\"
  2525.                                            class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
  2526.                                             Онлайн-запись
  2527.                                         </a>
  2528.                                     {% endif %}
  2529.                                     {% if offer.getID() in constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_OFFER_IDS') %}
  2530.                                         {% set deliveryBuyOnlyCodeLink = getLinkGiftCertificateOnlineOrderByOnlyCode(offer) %}
  2531.                                         <a href=\"{{ deliveryBuyOnlyCodeLink }}\"
  2532.                                            onclick=\"document.location = `{{ deliveryBuyOnlyCodeLink }}`\"
  2533.                                            class=\"card-link ml-0 py-3 bg-violet text-white rounded-14 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
  2534.                                             ПОЛУЧИТЬ СКИДКУ {{ offer.getDiscount() }}
  2535.                                         </a>
  2536.                                     {% else %}
  2537.                                         {% if offer.isGiftCertificateOnlineOrderAllowedOnSite() and not offer.isFoodOnlineOrderAllowedOnSite() %}
  2538.                                             {% if offer.isGiftCertificateOnlineOrderAllowedOnSite() and offer.getID() != 283213 and offer.getID() != 288763 and offer.getID() != 288779 and offer.getID() != 288772 or offer.isGiftCertificateOffer() and not offer.isFoodOnlineOrderAllowedOnSite() %}
  2539.                                                 <a href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
  2540.                                                    onclick=\"document.location = `{{ getLinkGiftCertificateOnlineOrder(offer) }}`\"
  2541.                                                    class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
  2542.                                                     Оплатить онлайн {{ offer.getDiscount() }}
  2543.                                                 </a>
  2544.                                             {% elseif offer.isGiftCertificateOffer() and offer.getID() == 288763 or offer.isGiftCertificateOffer() and offer.getID() == 288779 or offer.isGiftCertificateOffer() and offer.getID() == 288772 %}
  2545.                                                 <a href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
  2546.                                                    onclick=\"document.location = `{{ getLinkGiftCertificateOnlineOrder(offer) }}`\"
  2547.                                                    class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
  2548.                                                     Получить скидку {{ offer.getDiscount() }}
  2549.                                                 </a>
  2550.                                             {% endif %}
  2551.                                         {% else %}
  2552.                                             {% if not offer.isTireOnlineOrderAllowedOnSite() %}
  2553.                                                 <a href=\"{{ deliveryLink }}\"
  2554.                                                    onclick=\"document.location = `{{ deliveryLink }}`\"
  2555.                                                    class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
  2556.                                                     Заказать онлайн {{ offer.getDiscount() }}
  2557.                                                 </a>
  2558.                                             {% endif %}
  2559.                                         {% endif %}
  2560.                                     {% endif %}
  2561.                                 {% endif %}
  2562.                             </div>
  2563.                         </div>
  2564.                     {% endif %}
  2565.                 </div>
  2566.             {% endif %}
  2567.             <div class=\"container-offers my-0 mx-0\">
  2568.                 <div id=\"offerDescriptionTab\" class=\"mx-2 active\" style=\"max-height: fit-content;\">
  2569.                     <div class=\"offer-titles mt-2\"><h5>Условия</h5></div>
  2570.                     {% if not offer.isWithoutCodes() and offer.getID() != 140553 %}
  2571.                         {% set codeTill = offer.getCodeActiveTill() %}
  2572.                         {% set codeFrom = offer.getActiveTill()|date_modify('-1 day') %}
  2573.                         {% set codeFrom = codeFrom > codeTill ? codeTill : codeFrom %}
  2574.                         {% if not offer.isHideFeatures() %}
  2575.                             <p>- Получить промокод можно до {{ codeFrom|date('d.m') }}, воспользоваться {{ offer.getID() != 134390 ? 'до' }} {{ codeTill|date('d.m.y') }}.
  2576.                             <br/>
  2577.                         {% endif %}
  2578.                         {% if offer.isShowPriceInConditions() and not offerIsFreeForUser %}
  2579.                             - Стоимость промокода: {{ codeCost }} руб.
  2580.                         {% endif %}</p>
  2581.                     {% endif %}
  2582.                     {{ offer.getConditions()|raw }}
  2583.                     {# Таблица с прейскурантом для акции с квестами \"Ящик Пандоры\" #}
  2584.                     {% if offer.getID() == 143528 %}
  2585.                         <br>
  2586.                         {% include 'Slivki/offers/table_for_pandorra_box_offer2.html.twig' %}
  2587.                         <br>
  2588.                     {% elseif offer.getID() == 282234 %}
  2589.                         {% include 'Slivki/offers/table_for_pandorra_box_offer4.html.twig' %}
  2590.                     {% endif %}
  2591.                     {% if not offer.isHideFeatures() %}
  2592.                         {% if not offer.isWithoutCodes() %}
  2593.                             {% include \"Slivki#{regional_template_path}/phrase_subscription_in_offer_page.html.twig\" %}
  2594.                         {% endif %}
  2595.                         <br>
  2596.                         <div class=\"offer-titles\"><h5>Особенности</h5></div>
  2597.                         <div class=\"offer-details-conditions\">
  2598.                             {% if not offer.isWithoutCodes() %}
  2599.                                 - Скидка предоставляется только при наличии промокода.
  2600.                             {% endif %}
  2601.                             {{ offer.getFeatures()|raw }}
  2602.                         </div>
  2603.                         - Поставщик несет полную ответственность перед потребителем за достоверность информации.
  2604.                     {% endif %}
  2605.                     <div id=\"endOfOfferCondition\"></div>
  2606.                 </div>
  2607.             </div>
  2608.             {% if offer.getShopMedias()|length > 0 %}
  2609.                 <div class=\"gallery-title offer-titles\"><h5>Галерея</h5></div>
  2610.             {% endif %}
  2611.             <div class=\"my-4 screenshots {{ offer.getShopMedias()|length == 0 or freeCodesCount == 0 ? 'empty' }}\">
  2612.                 {% if offer.getShopMedias()|length > 0 %}
  2613.                     <div class=\"screenshot-container\">
  2614.                         {% if  galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
  2615.                             <div class=\"screenshot screenshot-story\" data-toggle=\"modal\"
  2616.                                  data-target=\"#detailsStoryPopup\">
  2617.                                 <img src=\"{{ galleryVideos.getImageUrl() }}\" width=\"158\"
  2618.                                      alt=\"Видео\" border=\"0\"/>
  2619.                                 <div class=\"screenshot-story-btn\"></div>
  2620.                                 <div class=\"screenshot-story-tittle\">{{ galleryVideos.getTitle() }}</div>
  2621.                             </div>
  2622.                         {% endif %}
  2623.                         {% for media in offer.getShopMedias() %}
  2624.                             <div class=\"screenshot\">
  2625.                                 <a data-fancybox=\"gallery1\" href=\"{{ getImageURL(media, 0, 0) }}\"
  2626.                                    title=\"{{ media.getDescription() }}\">
  2627.                                     <img src=\"{{ getImageURL(media, 300, 0) }}\" width=\"158\"
  2628.                                          alt=\"{{ media.getDescription() }}\" border=\"0\"/>
  2629.                                 </a>
  2630.                             </div>
  2631.                         {% endfor %}
  2632.                     </div>
  2633.                 {% endif %}
  2634.             </div>
  2635.             <div id=\"examplesOfWorksBlock\" class=\"examples-block-mobile\">
  2636.                 <div class=\"headerBlockCategory examples d-none bg-white px-0 pb-0 examples-block-mobile-header\">
  2637.                     <div class=\"offer-titles m-0\"><h5>Фото
  2638.                             работ{# <div class=\"example-of-works-count-container\"><span>1234</span></div> #}</h5></div>
  2639.                     <div class=\"examples-works-tooltip-filter\">
  2640.                         <div class=\"tooltip-content\">
  2641.                             <div class=\"tooltip-title border-bottom-f d-flex\">Показать сначала:</div>
  2642.                             {% for key,sortItem in constant('Slivki\\\\Paginator\\\\WorkExample\\\\WorkExamplePaginatorInterface::SORT') %}
  2643.                                 <div class=\"radio\">
  2644.                                     <input id=\"filter{{ key }}\" type=\"radio\" name=\"filter\"
  2645.                                            data-direction=\"{{ sortItem.direction }}\"
  2646.                                            value=\"{{ sortItem.field }}\" {{ loop.first ? 'checked' }}>
  2647.                                     <label for=\"filter{{ key }}\" class=\"cursor-pointer\">{{ sortItem.name }}</label>
  2648.                                 </div>
  2649.                             {% endfor %}
  2650.                             <div class=\"tooltip-title border-top-f d-flex\">Диапазон цены:</div>
  2651.                             <div id=\"workExamplePriceRangeInputs\" class=\"price-range-inputs d-flex\">
  2652.                                 <div class=\"price-range-input\"><input type=\"number\" placeholder=\"Цена от\" id=\"priceFrom\"
  2653.                                                                       name=\"priceFrom\" min=\"0\" max=\"199\" step=\"1\"></div>
  2654.                                 <div class=\"price-range-input\"><input type=\"number\" placeholder=\"Цена до\" id=\"priceTo\"
  2655.                                                                       name=\"priceTo\" min=\"0\" max=\"200\" step=\"1\"></div>
  2656.                             </div>
  2657.                             <div id=\"workExampleRangeSlider\" class=\"range-slider\">
  2658.                                 <div class=\"range-labels\">
  2659.                                     <span id=\"workSimplesRangeLableStart\" class=\"range-label range-label-start\"></span>
  2660.                                     <span>-</span>
  2661.                                     <span id=\"workSimplesRangeLableEnd\" class=\"range-label range-label-end\"></span>
  2662.                                 </div>
  2663.                                 <input class=\"work-simples-input\" type=\"range\" min=\"\" value=\"0\" max=\"\" name=\"\"
  2664.                                        id=\"startRange\">
  2665.                                 <input class=\"work-simples-input\" type=\"range\" min=\"\" value=\"\" max=\"\" name=\"\"
  2666.                                        id=\"finishRange\">
  2667.                                 <div class=\"track-wrapper\">
  2668.                                     <div class=\"track\"></div>
  2669.                                     <div id=\"workSimplesSliderBetween\" class=\"range-between\"></div>
  2670.                                     <div id=\"workSimplesTumbLeft\" class=\"thumb left\"></div>
  2671.                                     <div id=\"workSimplesTumbRight\" class=\"thumb right\"></div>
  2672.                                 </div>
  2673.                             </div>
  2674.                             <div id=\"buttonFilterBoxExamplesWork\" class=\"buttonFilterBox\">Показать</div>
  2675.                         </div>
  2676.                         <div id=\"buttonFilterBoxExamplesWork\" class=\"d-flex cursor-pointer\">Сортировка<img width=\"25\" class=\"pl-2\" src=\"/images/sort_image.svg\"/></div>
  2677.                     </div>
  2678.                 </div>
  2679.                 {% include 'Slivki/works-examples/examples_of_works_gallery.html.twig' %}
  2680.             </div>
  2681.             <div id=\"beautyMastersBlock\" class=\"beauty-masters-container beauty-masters-offer mob\">
  2682.                 <div id=\"beautyMastersHeader\"
  2683.                      class=\"tittleBlockCategory position-relative offer-titles mb-2 mt-0 d-none\">
  2684.                     <h5> {{ parentCategoryList and parentCategoryList[0].getID() == constant('Slivki\\\\Entity\\\\Category::MEDICAL_CENTER_CATEGORY_ID') ? 'Врачи' : 'Найти своего мастера' }}</h5>
  2685.                 </div>
  2686.                 {% include 'Slivki/beauty/beauty_masters.html.twig' %}
  2687.             </div>
  2688.             <div id=\"offersDescription\" class=\"offers-conditions mt-2 js-parallax-banner-after\"
  2689.                  style=\"padding-bottom: 22px;\">
  2690.                 {% if offer.isShowProductsInOfferDescription() %}
  2691.                     <div id=\"foodItemsBlock\" class=\"my-3\">
  2692.                         <div class=\"offer-titles mt-2\"><h5>Описание</h5></div>
  2693.                         {% if isPickupEnabled and isDeliveryEnabled %}
  2694.                             <div id=\"fixedFiltersOffer\" class=\"w-auto px-2 d-flex\"
  2695.                                  style=\"position: relative;background: linear-gradient(180deg, #A839FF 0%, #6747e5 100%), #6747E5;border-radius: 8px;padding: 10px 0;\">
  2696.                                 <div class=\"w-100 switch-delivery-pickup-block px-0 \">
  2697.                                     <a data-type-delivery=\"1\"
  2698.                                        class=\"switch-delivery-pickup-item button-tab-delivery delivery-type active\">
  2699.                                         <p class=\"m-0\">Доставка</p>
  2700.                                         <small>удобно👌</small>
  2701.                                     </a>
  2702.                                     <a data-type-delivery=\"2\"
  2703.                                        class=\"switch-delivery-pickup-item pickup-type button-tab-pickup\">
  2704.                                         <p class=\"m-0\"> Самовывоз</p>
  2705.                                         <small>еще дешевле🔥</small>
  2706.                                     </a>
  2707.                                 </div>
  2708.                             </div>
  2709.                         {% endif %}
  2710.                         <div id=\"foodBlock\"></div>
  2711.                         <div id=\"foodOptionsBlock\"></div>
  2712.                     </div>
  2713.                 {% endif %}
  2714.                 <div class=\"description\" id=\"descriptionText\">
  2715.                     {% for offerDescription in offer.getDescriptionList() %}
  2716.                         {% set offerDescriptionSliderImages = offerDescription.getEntityDescriptionSliderImages() %}
  2717.                         {% if offerDescriptionSliderImages|length > 0 %}
  2718.                             <div class=\"sale-description-carousel\">
  2719.                                 <div id=\"saleDescriptionSliderFor{{ offerDescription.getID() }}\"
  2720.                                      class=\"sale-description-slider-for\">
  2721.                                     {% for offerDescriptionSliderImage in offerDescriptionSliderImages %}
  2722.                                         <div><img data-lazy=\"{{ offerDescriptionSliderImage.getImageUrl() }}\"/>
  2723.                                         </div>
  2724.                                     {% endfor %}
  2725.                                 </div>
  2726.                             </div>
  2727.                         {% endif %}
  2728.                         {{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw }}
  2729.                     {% endfor %}
  2730.                 </div>
  2731.             </div>
  2732.             <div id=\"offerAddressTab\" class=\"mx-1 mt-5\">
  2733.                 <div class=\"offer-titles\"><h5 class=\"mb-2\">Контакты</h5></div>
  2734.                 <div class=\"mb-4 logo-title\">
  2735.                     {{ offer.getLogo()|raw }}
  2736.                 </div>
  2737.                 <div class=\"p-m-0\">
  2738.                     {% if geoLocations.count() > 0 %}
  2739.                         {% if geoLocations|length > 0 %}
  2740.                             <div class=\"geo-location-block\">
  2741.                                 {% include 'Slivki/offers/geo_location_data.html.twig' with {'offer': offer} only %}
  2742.                                 <div class=\"distance d-none\" style=\"display: block\">
  2743.                                     <i class=\"slivki-icon slivki-icon-direction\"></i> <img class='ajaxLoader'
  2744.                                                                                            src='/images/ajax-loader-16x16.gif'
  2745.                                                                                            alt='Загрузка...'/><span></span>
  2746.                                 </div>
  2747.                                 <div id=\"offerGeoLocationData\" data-json=\"{{ offerGeoLocationData }}\"></div>
  2748.                                 <div id=\"offerMapWrapper\" class=\"category-map-wrapper my-3\">
  2749.                                     <div id=\"offerMap\" class=\"category-map\"></div>
  2750.                                     <a id=\"setUserLocationBtn\" href=\"#\">Указать местоположение</a>
  2751.                                     <div id=\"zoomIn\"></div>
  2752.                                     <div id=\"zoomOut\"></div>
  2753.                                     <a id=\"mapEnterFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Развернуть</a>
  2754.                                     <a id=\"mapExitFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Свернуть</a>
  2755.                                 </div>
  2756.                             </div>
  2757.                         {% endif %}
  2758.                     {% endif %}
  2759.                     {% for geoLocation in geoLocations %}
  2760.                         <div class=\"mb-3 my-3\">
  2761.                             <div class=\"sf-bold-font\">{{ geoLocation.getCity() }}, {{ geoLocation.getStreet() }}
  2762.                                 , {{ geoLocation.getHouse() }} {{ geoLocation.getLabel() }}</div>
  2763.                             {% set phoneNumbers = geoLocation.getPhoneNumbers() %}
  2764.                             {% if phoneNumbers|length > 0 %}
  2765.                             {% endif %}
  2766.                             {% for phoneNumber in phoneNumbers %}
  2767.                                 {% include 'Slivki/mobile/offer/phone_number_btn.html.twig' with {'phoneNumber': phoneNumber, 'geoLocation': geoLocation} only %}
  2768.                             {% endfor %}
  2769.                             {% if geoLocation is defined and geoLocation.getCallbackChatId() and geoLocation.getCallbackChatId() != '' %}
  2770.                                 <div class=\"callback-button\" data-id=\"{{ geoLocation.getId() }}\">Обратный звонок</div>
  2771.                             {% endif %}
  2772.                             {% if geoLocation.getWorkingHours()|trim != '' %}
  2773.                                 <div>Время работы:</div> {{ geoLocation.getWorkingHours()|raw }}
  2774.                             {% endif %}
  2775.                         </div>
  2776.                     {% endfor %}
  2777.                     {% if phoneNumbersWithoutGeoLocations|length > 0 %}
  2778.                     {% if geoLocations|length > 0 %}
  2779.                         <br>
  2780.                     {% endif %}
  2781.                     <div id=\"phoneOffers\" class=\"mb-2\">
  2782.                         <div class=\"mb-2\">
  2783.                             <strong>Телефон{{ phoneNumbersWithoutGeoLocations|length > 1 ? 'ы' }}:</strong>
  2784.                         </div>
  2785.                         {% for phoneNumber in phoneNumbersWithoutGeoLocations %}
  2786.                             {% include 'Slivki/mobile/offer/phone_number_btn.html.twig' with {'phoneNumber': phoneNumber} only %}
  2787.                         {% endfor %}
  2788.                     </div>
  2789.                 </div>
  2790.                 {% endif %}
  2791.                 {% set commonWoringHours = offer.getCommonWorkingHours() %}
  2792.                 {% if commonWoringHours != '' %}
  2793.                     <br>
  2794.                     <div><strong>Время работы:</strong></div>
  2795.                     {{ commonWoringHours|raw }}
  2796.                     <br><br>
  2797.                 {% endif %}
  2798.                 {{ offer.getLegal()|raw }}
  2799.                 <div class=\"offer-titles offer-titles-mobile mt-0 mb-0\"><h5 class=\"mt-0 mb-0\">Написать</h5></div>
  2800.                 <div class=\"col px-0\">
  2801.                     <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\"
  2802.                        href=\"https://t.me/{{ offer.getTelegram() != null ? offer.getTelegram() : 'slivkislivkiby' }}\"
  2803.                        style=\"width: 200px\">
  2804.                         <img class=\"mr-2\" src=\"/images/tg.svg\" width=\"20\" height=\"18\">
  2805.                         <span class=\"float-right\">Telegram</span>
  2806.                     </a>
  2807.                     {% set viberNumber = offer.getViber() != null ? offer.getViber() : '+375295084444' %}
  2808.                     <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\"
  2809.                        href='viber://chat?number=\"  {{ viberNumber }} \"'
  2810.                        style=\"width: 200px\">
  2811.                         <img class=\"mr-2\" src=\"/images/vb.svg\" width=\"20\" height=\"18\">
  2812.                         <span class=\"float-right\">Viber</span>
  2813.                     </a>
  2814.                 </div>
  2815.             </div>
  2816.             {% include 'Slivki/offers/share.html.twig' %}
  2817.         </div>
  2818.         <div id=\"offerCommentTab\" class=\"pt-2 px-0\">
  2819.             <div>
  2820.                 {{ comments|raw }}
  2821.             </div>
  2822.         </div>
  2823.     </div>
  2824.     </div>
  2825.     {% if preview %}
  2826.         <input type=\"hidden\" id=\"offerPreview\" value=\"1\">
  2827.     {% else %}
  2828.         <input type=\"hidden\" id=\"offerPreview\" value=\"0\">
  2829.     {% endif %}
  2830.     </div>
  2831.     {% if showGlobalcard %}
  2832.         {% include 'Slivki/mobile/offer/globalcard.html.twig' %}
  2833.     {% elseif showGlobalcardFitness %}
  2834.         {% include 'Slivki/mobile/offer/globalcard_fitness.html.twig' %}
  2835.     {% endif %}
  2836. {% endblock %}
  2837. {% block popup %}
  2838.     {% include 'Slivki/popups/header_offers.html.twig' %}
  2839.     {% include 'Slivki/popups/mail_offers.html.twig' %}
  2840.     {% include 'Slivki/popups/callback.html.twig' %}
  2841.     {% include \"Slivki#{regional_template_path}/jivosite/modal_mobile.html.twig\" %}
  2842.     {% if  galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
  2843.         {% include 'Slivki/popups/details-story-popup.html.twig' %}
  2844.     {% endif %}
  2845.     {% include 'Slivki/orderAsGift/foodForGift.html.twig' with {'deliveryLink': deliveryLink} %}
  2846.     {% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::PAYMENT_PAYME')) %}
  2847.         {% include 'Slivki/uz/mobile/buy_promo.twig' %}
  2848.     {% endif %}
  2849.     {% if app.user %}
  2850.         {% include 'Slivki/popups/rating_edit_popup.html.twig' %}
  2851.         {% include 'Slivki/mobile/popup/popup_subscription_limited.html.twig' %}
  2852.         {% include 'Slivki/mobile/subscription/buy_promo_popup.html.twig' %}
  2853.         {% include 'Slivki/mobile/popup/confirm_subscription_card_popup.html.twig' with {'creditCards': app.user.getActiveCreditCards()} %}
  2854.         {% include 'Slivki/mobile/popup/buy_codes_avways_app.html.twig' %}
  2855.         {% include 'Slivki/popups/add_favourite_popup.html.twig' %}
  2856.         {% include 'Slivki/popups/delete_favourite_popup.html.twig' %}
  2857.         {% include 'Slivki/popups/delete_comment_popup.html.twig' with {id: 'deleteCommentConfirmPopup'} %}
  2858.     {% else %}
  2859.         {% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
  2860.     {% endif %}
  2861.     {% include 'Slivki/popups/comment_media_block_popup.html.twig' %}
  2862.     {% include 'Slivki/mobile/popup/add_comment_popup.html.twig' %}
  2863.     {% include 'Slivki/popups/edit_comment_popup.html.twig' with {'id': 'editVoteBox'} %}
  2864.     {% include 'Slivki/popups/comment_censor_message.html.twig' with {'id': 'commentCensorMessage'} %}
  2865.     {% include 'Slivki/mobile/share_block.html.twig' %}
  2866.     {% include 'Slivki/mobile/popup/statistics_popup.html.twig' %}
  2867.     {% include 'Slivki/mobile/delivery/modal/details.html.twig' with {'isOfferPage': true} %}
  2868.     {% if items|length > 0 %}
  2869.         {% include 'Slivki/mobile/offer/extension/item/items_popup.html.twig' %}
  2870.     {% endif %}
  2871.     {% if offer.getID() == constant('Slivki\\\\Entity\\\\Offer::BOOKING_OFFER_ID') %}
  2872.         {% include 'Slivki/mobile/offer/booking_popup.html.twig' %}
  2873.     {% endif %}
  2874.     {{ parent() }}
  2875.     {% if offer.isGiftCertificateOffer() %}
  2876.         {% include 'Slivki/popups/step_buy_certificate.twig' with {'deliveryLink': deliveryLink} %}
  2877.     {% endif %}
  2878.     {% include 'Slivki/mobile/popup/loading_popup.html.twig' %}
  2879.     {% include 'Slivki/mobile/popup/contact_popup.html.twig' %}
  2880. {% endblock %}
  2881. {% block brandingBanner %}
  2882.     {% if not (app.user and app.user.hasRole(constant('\\\\Slivki\\\\Entity\\\\UserGroup::ROLE_ADS_FREE'))) %}
  2883.         {% set brandingBanner = getBrandingBanner(app.user, brandingBannerCategoryIDs is defined ? brandingBannerCategoryIDs : [], offer is defined ? offer.getID()) %}
  2884.         {% if brandingBanner and brandingBanner.getMobileDivider() %}
  2885.             <input type=\"hidden\" id=\"brandingBannerImage\" value=\"{{ brandingBanner.getMobileDivider() }}\"
  2886.                    data-oid=\"{{ brandingBanner.getID() }}\" data-id=\"{{ brandingBanner.getBannerID() }}\"
  2887.                    data-branding=\"{{ brandingBanner.getBannerID() }}\" data-url=\"{{ brandingBanner.getUrl()|trim }}\"
  2888.                    data-right-side-url=\"{{ brandingBanner.getRightSideUrl()|trim }}\">
  2889.         {% endif %}
  2890.     {% endif %}
  2891. {% endblock %}
  2892. {% block javascripts %}
  2893.     {{ parent() }}
  2894.     <script src=\"/js/jquery.jcarousel.min.js?v=1\"></script>
  2895.     <script src=\"/js/story-slider/story-slider-js.js?v={{ story_slider_js_version }}\"></script>
  2896.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js\"
  2897.             integrity=\"sha512-jNDtFf7qgU0eH/+Z42FG4fw3w7DM/9zbgNPe3wfJlCylVDTT3IgKW5r92Vy9IHa6U50vyMz5gRByIu4YIXFtaQ==\"
  2898.             crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  2899.     <script type=\"text/javascript\">
  2900.         \$(function () {
  2901.             \$('#floatingBanner').addClass('offer-details-floating-banner');
  2902.         });
  2903.     </script>
  2904.     <!-- Moment -->
  2905.     <script src=\"/admin/plugins/moment/moment-with-locales.js\"></script>
  2906.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.min.js\"></script>
  2907.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js\"></script>
  2908.     <script src=\"/js/swiper-js/swiper.min.js\"></script>
  2909.     <script src=\"/js/offer-new.js?v={{ offer_new_js_version }}\"/>
  2910.     <script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU\" type=\"text/javascript\"></script>
  2911.     <script src=\"https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js\"></script>
  2912.     <script src=\"https://yastatic.net/share2/share.js\"></script>
  2913.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.js\"></script>
  2914.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.min.js\"></script>
  2915.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/fecha/2.3.3/fecha.min.js\"></script>
  2916.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
  2917.     <!-- date-time-picker -->
  2918.     <script src=\"/admin/plugins/datetimepicker/js/bootstrap-datetimepicker.min.js\"></script>
  2919.     <!-- colorpicker -->
  2920.     <script src=\"/admin/plugins/colorpicker/bootstrap-colorpicker.min.js\"></script>
  2921.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.js\"
  2922.             integrity=\"sha512-zlWWyZq71UMApAjih4WkaRpikgY9Bz1oXIW5G0fED4vk14JjGlQ1UmkGM392jEULP8jbNMiwLWdM8Z87Hu88Fw==\"
  2923.             crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  2924.     <script src=\"/mobile/js/offer.min.js?v={{ offer_js_version }}\"></script>
  2925.     <script type=\"text/javascript\" src=\"/js/statistics_offer/statistics_offer.js?v={{ statistics_offer_js_version }}\"
  2926.             charset=\"utf-8\"></script>
  2927.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/jquery.easypiechart.min.js\"
  2928.             integrity=\"sha512-DHNepbIus9t4e6YoMBSJLwl+nnm0tIwMBonsQQ+W9NKN6gVVVbomJs9Ii3mQ+HzGZiU5FyJLdnAz9a63ZgZvTQ==\"
  2929.             crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  2930.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/easypiechart.min.js\"
  2931.             integrity=\"sha512-1yldf7W5suy0ko2u4OGU1qyeGrzh9+A3uyWGH4ws8MbndaWxZsgnzy6uqqBq7NUU/ImI1Js5kqDbunovCN1JqA==\"
  2932.             crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
  2933.     <script src=\"/js/ajaxupload.3.5.js?v=1\"></script>
  2934.     <script src=\"/js/mobile-rating.js?v=2\"></script>
  2935.     <script>
  2936.         uploadPhoto('/comment/image_upload', '/comment/image_remove');
  2937.         initImageRemove();
  2938.     </script>
  2939.     <script type=\"text/javascript\">
  2940.         {% if app.request.query.has('checkOrder') %}
  2941.         initCheckOfferOrderStatus({{ app.request.get('checkOrder') }});
  2942.         {% endif %}
  2943.     </script>
  2944.     <script src=\"/js/offer/offerDescriptionItems.js?v={{ offer_description_items_js_version }}\"></script>
  2945.     <script type=\"module\" src=\"/js/work_examples/work_examples.js?v={{ work_examples_js_version }}\"></script>
  2946.     <script type=\"module\" src=\"/js/beauty/masters.js?v={{ beauty_masters_js_version }}\"></script>
  2947. {% endblock %}
  2948. {% block RTBHouse %}
  2949.     <script>
  2950.         try {
  2951.             (function () {
  2952.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = [];
  2953.                 rtbhTags.push(\"pr_\" + hash + \"_offer_\" + document.getElementById('offerID').value);
  2954.                 rtbhTags.push(\"pr_\" + hash + \"_uid_\" + document.getElementById('rtbhUID').value);
  2955.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key);
  2956.                 if (!lid) {
  2957.                     lid = \"\";
  2958.                     var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  2959.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length));
  2960.                     window.localStorage.setItem(key, lid);
  2961.                 }
  2962.                 rtbhTags.push(\"pr_\" + hash + \"_lid_\" + lid);
  2963.                 var ifr = document.createElement(\"iframe\"),
  2964.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  2965.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  2966.                     ifrSrc = \"https://\" + prefix + \"creativecdn.com/tags?type=iframe\",
  2967.                     tmstmp = encodeURIComponent(\"\" + Date.now());
  2968.                 for (var i = 0; i < rtbhTags.length; i++) {
  2969.                     ifrSrc += \"&id=\" + encodeURIComponent(rtbhTags[i]);
  2970.                 }
  2971.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  2972.                 ifr.setAttribute(\"src\", ifrSrc);
  2973.                 ifr.setAttribute(\"width\", \"1\");
  2974.                 ifr.setAttribute(\"height\", \"1\");
  2975.                 ifr.setAttribute(\"scrolling\", \"no\");
  2976.                 ifr.setAttribute(\"frameBorder\", \"0\");
  2977.                 ifr.setAttribute(\"style\", \"display:none\");
  2978.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\");
  2979.                 if (document.body) {
  2980.                     document.body.appendChild(ifr);
  2981.                 } else {
  2982.                     window.addEventListener('DOMContentLoaded', function () {
  2983.                         document.body.appendChild(ifr);
  2984.                     });
  2985.                 }
  2986.             })();
  2987.         } catch (e) {
  2988.         } </script>
  2989. {% endblock %}""Slivki/mobile/offer/details.html.twig""/mnt/data/virtwww/anna/templates/Slivki/mobile/offer/details.html.twig");
  2990.     }
  2991. }