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

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