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