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

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