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

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