<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Slivki/mobile/offer/details.html.twig */
class __TwigTemplate_debfce602e1226c7455cf784f41861747d69920e2fe10b1455143a82ecab344d extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'styles' => [$this, 'block_styles'],
'messenger' => [$this, 'block_messenger'],
'ogimage' => [$this, 'block_ogimage'],
'content' => [$this, 'block_content'],
'popup' => [$this, 'block_popup'],
'brandingBanner' => [$this, 'block_brandingBanner'],
'javascripts' => [$this, 'block_javascripts'],
'RTBHouse' => [$this, 'block_RTBHouse'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "Slivki/mobile/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/mobile/offer/details.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/mobile/offer/details.html.twig"));
// line 1
$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", false, false, false, 1);
// line 34
$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", false, false, false, 34) && twig_get_attribute($this->env, $this->source, 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", false, false, false, 34), "isBatchCodesAllowed", [], "any", false, false, false, 34));
// line 2
$this->parent = $this->loadTemplate("Slivki/mobile/base.html.twig", "Slivki/mobile/offer/details.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_styles($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles"));
// line 4
echo " <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\" />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css\" />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\" />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick-theme.min.css\" />
<link rel=\"stylesheet\" href=\"/admin/plugins/datetimepicker/css/bootstrap-datetimepicker.min.css\">
<link rel=\"stylesheet\" href=\"/admin/plugins/datatables/jquery.dataTables.min.css\"/>
<link rel=\"stylesheet\" href=\"/admin/plugins/colorpicker/bootstrap-colorpicker.min.css\"/>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.css\">
";
// line 12
$this->displayParentBlock("styles", $context, $blocks);
echo "
<link href=\"/css/delivery.min.css?v=";
// line 13
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", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/mobile/css/offers.min.css?v=";
// line 14
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", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/foodForGift.css?v=";
// line 15
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", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\"/>
<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\"
rel=\"stylesheet\">
<link href=\" /mobile/css/statistics_modal.css?v=3\" rel=\"stylesheet\" type=\"text/css\" />
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 21
public function block_messenger($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "messenger"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "messenger"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 23
public function block_ogimage($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogimage"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogimage"));
// line 24
echo " ";
if ((1 === 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))) {
// line 25
echo " <meta property=\"og:image\"
content=\"";
// line 26
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 26, $this->source); })()), "request", [], "any", false, false, false, 26), "getSchemeAndHttpHost", [], "method", false, false, false, 26), "html", null, true);
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); })())), 522, 322), "html", null, true);
echo "\"/>
<meta property=\"og:image:width\" content=\"522\"/>
<meta property=\"og:image:height\" content=\"322\"/>
";
} else {
// line 30
echo " ";
$this->displayParentBlock("ogimage", $context, $blocks);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 36
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 37
echo " ";
$context["isPickupEnabled"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["offer"] ?? null), "getOnlineOrderSettings", [], "method", false, true, false, 37), "isPickupEnabled", [], "method", true, true, false, 37)) ? (twig_get_attribute($this->env, $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.', 37, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 37), "isPickupEnabled", [], "method", false, false, false, 37)) : (""));
// line 38
echo " ";
$context["isDeliveryEnabled"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["offer"] ?? null), "getOnlineOrderSettings", [], "method", false, true, false, 38), "isDeliveryEnabled", [], "method", true, true, false, 38)) ? (twig_get_attribute($this->env, $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.', 38, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 38), "isDeliveryEnabled", [], "method", false, false, false, 38)) : (""));
// line 39
echo "
";
// line 40
if ((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 40, $this->source); })())) {
// line 41
echo " ";
$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", false, false, false, 41)]));
// line 42
echo " ";
}
// line 43
echo " ";
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); })()))) {
// line 44
echo " <input id=\"deliveryMethodEnabled\" type=\"hidden\" value=\"";
echo (((0 === 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"));
echo "\">
";
}
// line 46
echo " <input id=\"offerPage\" type=\"hidden\" value=\"\">
<input id=\"offerID\" type=\"hidden\" value=\"";
// line 47
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 47), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"stock-id\" value=\"";
// line 48
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 48), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"stock-link\" value=\"";
// line 49
echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, 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.', 49, $this->source); })()), "request", [], "any", false, false, false, 49), "getSchemeAndHttpHost", [], "method", false, false, false, 49) . twig_get_attribute($this->env, $this->source, 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.', 49, $this->source); })()), "request", [], "any", false, false, false, 49), "getRequestUri", [], "method", false, false, false, 49)), "html", null, true);
echo "\">
<div type=\"hidden\" id=\"mobileVersionIndicator\"></div>
";
// line 51
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", false, false, false, 51) && $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", false, false, false, 51)))) {
// line 52
echo " <input id=\"allowedCodesCountBySubscription\" type=\"hidden\" value=\"";
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", null, true);
echo "\">
";
}
// line 54
echo " ";
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", false, false, false, 54)) {
// line 55
echo " <input id=\"splitTotalCodesCountByUser\" type=\"hidden\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 55, $this->source); })()), "user", [], "any", false, false, false, 55), "getCodesCountByOffer", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 55, $this->source); })())], "method", false, false, false, 55), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"customerID\" value=\"";
// line 56
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 56, $this->source); })()), "user", [], "any", false, false, false, 56), "getID", [], "method", false, false, false, 56), "html", null, true);
echo "\"/>
";
}
// line 58
echo " <meta content=\"";
echo twig_escape_filter($this->env, twig_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", false, false, false, 58), "html", null, true);
echo "\"/>
<div id=\"offerDetails\">
<div class=\"collapse-more-button\"></div>
";
// line 61
$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", false, false, false, 61)) ? (twig_get_attribute($this->env, $this->source, 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", false, false, false, 61), "isOfferFavourite", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 61, $this->source); })())], "method", false, false, false, 61)) : (false));
// line 62
echo " <div class=\"no-gutters pb-2\">
<div class=\"col-12 col-sm-4\">
<div id=\"offerImageSlider\" class=\"m-0 swiper-container\">
<div class=\"back-button\" onclick=\"history.back();\">
<img src=\"/images/back-white.svg\"/>
</div>
";
// line 68
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", false, false, false, 68)) {
// line 69
echo " <div class=\"fovoutite-block\"
onclick=\"onFavouriteClickOffer(";
// line 70
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 70), "html", null, true);
echo ", ";
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"));
echo ")\">
<img width=\"18\" height=\"18\"
src=\"";
// line 72
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"));
echo "\"/>
</div>
";
}
// line 75
echo " <div class=\"discount-block\">
";
// line 76
((twig_get_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", false, false, false, 76)) ? (print ("пока без скидки")) : (print (twig_escape_filter($this->env, twig_get_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", false, false, false, 76), "html", null, true))));
echo "
</div>
";
// line 78
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", false, false, false, 78))) {
// line 79
echo " <div id=\"statisticsButton\" data-toggle=\"modal\" data-target=\"#statisticOffersPopup\">
<img width=\"37\" height=\"37\" src=\"/images/statistics.png\"/>
</div>
";
}
// line 83
echo " <div class=\"swiper-wrapper\">
";
// line 84
$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", false, false, false, 84);
// line 85
echo " ";
$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); })()));
// line 86
echo " ";
if ((1 === 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))) {
// line 87
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 88
echo " <div class=\"swiper-slide\">
<img class=\"img-fluid lazyload\" alt=\"";
// line 89
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 89), "html", null, true);
echo "\"
src=\"";
// line 90
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 1044, 644), "html", null, true);
echo "\"/>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 93
echo " ";
} elseif ((0 === 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))) {
// line 94
echo " <div>
<img class=\"img-fluid lazyload\" alt=\"";
// line 95
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 95, $this->source); })()), 0, [], "array", false, false, false, 95), "getDescription", [], "method", false, false, false, 95), "html", null, true);
echo "\"
src=\"";
// line 96
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", false, false, false, 96), 1044, 644), "html", null, true);
echo "\"/>
</div>
";
}
// line 99
echo " </div>
";
// line 100
if ((1 === 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))) {
// line 101
echo " <div class=\"swiper-pagination mt-2\"></div>
<div class=\"swiper-button-next\"></div>
<div class=\"swiper-button-prev\"></div>
";
}
// line 105
echo " </div>
</div>
<div class=\"container-offers\">
<div class=\"tags-offers\">
";
// line 109
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", false, false, false, 109)) {
// line 110
echo " <div class=\"tags-offers-item\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-html=\"true\"
data-original-title=\"Взято кодов <br> Всего ";
// line 114
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", null, true);
echo " </br> За сутки ";
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", null, true);
echo " </br> За месяц ";
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", false, false, false, 114), 30), "html", null, true);
echo "\">
<img src=\"/images/offers/icon_people.svg\"/>
<p class=\"mb-0\">";
// line 117
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", null, true);
echo "</p>
</div>
";
}
// line 120
echo " <div class=\"tags-offers-item view-count\" class=\"view-count d-flex\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-html=\"true\"
data-original-title=\"Просмотров <br> Всего ";
// line 124
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", null, true);
echo " </br> За сутки ";
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", null, true);
echo "\">
<img src=\"/images/offers/statistic_1.svg\"/>
<p class=\"mb-0\">";
// line 126
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", null, true);
echo "</p>
</div>
";
// line 129
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", false, false, false, 129)) {
// line 130
echo " <div class=\"tags-offers-item\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-html=\"true\"
data-original-title=\"Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней\">
<img src=\"/images/offers/conversion.svg\"/>
<p class=\"mb-0\">";
// line 136
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", false, false, false, 136)), "html", null, true);
echo "%</p>
</div>
";
}
// line 139
echo " <div class=\"tags-offers-item rating-block\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Рейтинг компании <br> за 90 дней\">
<span>★</span>
<p class=\"mb-0\">";
// line 145
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 145), "html", null, true);
echo "</p>
</div>
";
// line 147
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", false, false, false, 147)) {
// line 148
echo " <div class=\"tags-offers-item day-to-end\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-html=\"true\"
data-original-title=\"Дней до окончания <br> действия акции\">
<img src=\"/images/offers/icon_time.svg\"/>
<p class=\"mb-0\">
";
// line 156
if ((1 === 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))) {
// line 157
echo " ";
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", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "день", 1 => "дня", 2 => "дней"], (isset($context["daysLeft"]) || array_key_exists("daysLeft", $context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.', 157, $this->source); })())), "html", null, true);
echo "
";
} elseif ((0 === twig_compare( // line 158
(isset($context["daysLeft"]) || array_key_exists("daysLeft", $context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.', 158, $this->source); })()), 0))) {
// line 159
echo " <input type=\"hidden\" id=\"daysLeft\" value=\"";
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", null, true);
echo " \"/>
<input type=\"hidden\" id=\"hoursLeft\" value=\"";
// line 160
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", null, true);
echo " \"/>
<input type=\"hidden\" id=\"minutesLeft\" value=\"";
// line 161
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", null, true);
echo " \"/>
<input type=\"hidden\" id=\"secondsLeft\"
value=\"";
// line 163
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $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.', 163, $this->source); })()), "getActiveTill", [], "method", false, false, false, 163), "diff", [0 => twig_date_converter($this->env)], "method", false, false, false, 163), "format", [0 => "%s"], "method", false, false, false, 163), "html", null, true);
echo "\"/>
<span id=\"hours\">";
// line 164
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", null, true);
echo " </span>час";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "", 1 => "а", 2 => "ов"], (isset($context["hoursLeft"]) || array_key_exists("hoursLeft", $context) ? $context["hoursLeft"] : (function () { throw new RuntimeError('Variable "hoursLeft" does not exist.', 164, $this->source); })())), "html", null, true);
echo "
";
}
// line 166
echo " </p>
</div>
";
}
// line 169
echo " </div>
<p class=\"tittle-offers js-tittle-offer\" style=\"color: ";
// line 170
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 170), "html", null, true);
echo ";\">";
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", false, false, false, 170);
echo "</p>
<div class=\"offers-description\">
";
// line 172
if (( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 172, $this->source); })()) && (1 === 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", false, false, false, 172), 0)))) {
// line 173
echo " <div class=\"pb-3 d-flex border-bottom-gray\">
<div class=\"col px-0 price-services-tittle\">Стоимость:</div>
<del id=\"offerRegularPrice\"
class=\"regular-price-offer\">";
// line 176
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 176), "html", null, true);
echo "</del>
<div class=\"price-services-new\">";
// line 178
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", false, false, false, 178), ["(" => "<span id=\"details-offer-price\">(", ")" => ")</span>"]);
echo "</div>
<input type=\"hidden\" id=\"codeCost\" value=\"";
// line 179
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", null, true);
echo "\">
</div>
";
} else {
// line 182
echo " <div class=\"card border-0 mt-3\">
<div class=\"card-body p-0 pl-2 text-center\">
<i class=\"slivki-icon-minus-circled text-danger d-block h1 mb-0\"></i>
Акция завершена
</div>
</div>
";
}
// line 189
echo " </div>
</div>
</div>
";
// line 192
if (((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 192, $this->source); })()) && (1 === 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", false, false, false, 192), 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", false, false, false, 192)) && twig_get_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", false, false, false, 192))) {
// line 193
echo " <div class=\"col my-2\">
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
<div class=\"button-gift-text\">
<p class=\"mb-0\">ЕДА В ПОДАРОК 😋</p>
<p class=\"mb-0\">Подарю сам или подарят мне</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
</div>
";
}
// line 205
echo " <div class=\"sticky-element\">
<div class=\"sticky-anchor\"></div>
<div id=\"offerNavigation\">
<ul class=\"nav-list\">
";
// line 209
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", false, false, false, 209)) {
// line 210
echo " ";
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", false, false, false, 210)) {
// line 211
echo " <li class=\"nav-item\"><a href=\"#\" onclick=\"\$('.modal-auth').modal()\" class=\"nav-links online-tire\"><img
src=\"../images/online-order.svg\"
alt=\"Онлайн-запись\">
Онлайн-запись
</a>
</li>
";
}
// line 218
echo " ";
} else {
// line 219
echo " ";
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", false, false, false, 219)) {
// line 220
echo " <li class=\"nav-item\"><a href=\"/online-zapis/";
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 220), "html", null, true);
echo "\" class=\"nav-links online-tire\"><img
src=\"../images/online-order.svg\"
alt=\"Онлайн-запись\">
Онлайн-запись
</a>
</li>
";
}
// line 227
echo " ";
}
// line 228
echo " <li class=\"nav-item\"><a href=\"#offerDescriptionTab\" class=\"nav-links active\">
Условия
</a>
</li>
<li class=\"nav-item\"><a href=\"#offerAddressTab\" class=\"nav-links \">
Контакты
</a>
</li>
<li class=\"nav-item\"><a href=\"#offerCommentTab\" class=\"nav-links\"><span></span>
Отзывы
</a>
</li>
</ul>
</div>
</div>
<div id=\"offerAccordion\" class=\"accordion mt-2 px-2\">
";
// line 244
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", false, false, false, 244)) {
// line 245
echo " <div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
";
// line 246
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", false, false, false, 246)) {
// line 247
echo " <div id=\"buyButtonCard\" class=\"card\">
<div class=\"card-header\">
";
// line 249
if ((0 === 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", false, false, false, 249), twig_constant("Slivki\\Entity\\Offer::BOOKING_OFFER_ID")))) {
// line 250
echo " <a href=\"#\" class=\"m-0 card-link bg-slivki\" data-toggle=\"modal\" data-target=\"#bookingItemPopup\">
";
// line 251
(((twig_get_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", false, false, false, 251) && (0 !== 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", false, false, false, 251), "")))) ? (print (twig_escape_filter($this->env, twig_get_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", false, false, false, 251), "html", null, true))) : (print ("Забронировать номер")));
echo "
</a>
";
} else {
// line 254
echo " ";
if (( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 254, $this->source); })()) && (1 === 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)))) {
// line 255
echo " ";
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", false, false, false, 255)) {
// line 256
echo " <a href=\"#\" class=\"m-0 card-link bg-slivki by-code-button text-uppercase\" onclick=\"\$('.modal-auth').modal()\">
";
// line 257
if ((isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 257, $this->source); })())) {
// line 258
echo " БЕСПЛАТНЫЙ ПРОМОКОД
";
} else {
// line 260
echo " ";
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", null, true);
echo "
";
}
// line 262
echo " </a>
";
} else {
// line 264
echo " <a href=\"javascript:void(0)\" id=\"buyCodeButtonFake\" class=\"m-0 d-none card-link bg-slivki by-code-button\">
<img class=\"fixed-size\" width=\"14\" src=\"/images/loading-animation.gif\" alt=\"\"/>
</a>
";
// line 267
if ((0 === 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", false, false, false, 267), twig_constant("Slivki\\Entity\\Offer::PETROL_OFFER_ID")))) {
// line 268
echo " <a href=\"#\" onclick=\"showFakeButton(); if (window.google_tag_manager) {ga('send', 'event', 'Buy code', 'Click', '";
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", false, false, false, 268)), "html", null, true);
echo "');} document.location='/oplata-promokoda-azs'\"
class=\"m-0 card-link bg-slivki by-code-button\" id=\"buyCodeButton\">
";
// line 270
if ((isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 270, $this->source); })())) {
// line 271
echo " БЕСПЛАТНЫЙ ПРОМОКОД
";
} else {
// line 273
echo " ";
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", null, true);
echo "
";
}
// line 275
echo " </a>
";
} else {
// line 277
echo " ";
if ((isset($context["isAllowedByOnlyCode"]) || array_key_exists("isAllowedByOnlyCode", $context) ? $context["isAllowedByOnlyCode"] : (function () { throw new RuntimeError('Variable "isAllowedByOnlyCode" does not exist.', 277, $this->source); })())) {
// line 278
echo " ";
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", false, false, false, 278) && ($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", false, false, false, 278)) || (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", false, false, false, 278))) {
// line 279
echo " <a href=\"#\" onclick=\"\$('#buyPromoPopup').modal()\"
class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\" id=\"buyCodeButton\">
";
// line 281
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", null, true);
echo "
</a>
";
} else {
// line 284
echo " ";
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", false, false, false, 284)) {
// line 285
echo " <a href=\"#\" onclick=\"\$('.modal-auth').modal()\"
class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\" id=\"buyCodeButton\">
";
// line 287
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", null, true);
echo "
</a>
";
}
// line 290
echo " ";
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", false, false, false, 290)) {
// line 291
echo " <a class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\" id=\"buyCodeButton\"
onclick=\"\$('#byCodesAlwaysApp').modal()\">
";
// line 293
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", null, true);
echo "
</a>
";
} elseif ( !twig_get_attribute($this->env, $this->source, // line 295
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 295, $this->source); })()), "isBuyCodeInAppOnly", [], "method", false, false, false, 295)) {
// line 296
echo " ";
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")))) {
// line 297
echo " <a href=\"#\"
class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\" id=\"buyCodeButtonPayMeMobile\" data-target=\"#buyPromoPopupPayMe\" data-toggle=\"modal\">
";
// line 299
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", null, true);
echo "
</a>
";
} else {
// line 302
echo " <a href=\"#\" onclick=\"if (window.google_tag_manager) {ga('send', 'event', 'Buy code', 'Click', '";
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", false, false, false, 302)), "html", null, true);
echo "');} showFakeButton();ym(20933521,'reachGoal','getcode-click'); document.location='";
echo ((((0 === 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/"));
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 302), "html", null, true);
echo "'\"
class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\" id=\"buyCodeButton\">
";
// line 304
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", null, true);
echo "
</a>
";
}
// line 307
echo " ";
}
// line 308
echo " ";
}
// line 309
echo " ";
}
// line 310
echo " ";
}
// line 311
echo " ";
}
// line 312
echo " ";
} else {
// line 313
echo " <a href=\"";
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", null, true);
echo "\" class=\"m-0 card-link bg-slivki color-white\">Посмотреть похожие предложения</a>
";
}
// line 315
echo " ";
}
// line 316
echo " </div>
</div>
";
}
// line 319
echo " ";
if ((1 === 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))) {
// line 320
echo " <div id=\"buyItemsButtonCard\" class=\"card\">
<div class=\"card-header\">
<a href=\"#\" id=\"buyItemsButton\" class=\"m-0 card-link bg-slivki\" data-toggle=\"modal\" data-target=\"#offerItemsPopup\">
";
// line 323
(((twig_get_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", false, false, false, 323) && (0 !== 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", false, false, false, 323), "")))) ? (print (twig_escape_filter($this->env, twig_get_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", false, false, false, 323), "html", null, true))) : (print ("Оплатить сейчас по карте")));
echo "
</a>
</div>
</div>
";
}
// line 328
echo " ";
if ((array_key_exists("hasDelivery", $context) && (1 === 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", false, false, false, 328), 0)))) {
// line 329
echo " <div id=\"deliveryButtonCard\" class=\"card\">
<div class=\"card-header bg-transparent\">
";
// line 331
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", false, false, false, 331)) {
// line 332
echo " ";
if ((0 === 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", false, false, false, 332)))) {
// line 333
echo " <a href=\"#\" onclick=\"\$('.modal-auth').modal()\" class=\"card-link ml-0 py-3 bg-violet text-white rounded-14 text-uppercase";
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", false, false, false, 333)) ? (" opacity-05") : (""));
echo "\">
ПОЛУЧИТЬ СКИДКУ ";
// line 334
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 334), "html", null, true);
echo "
</a>
";
} else {
// line 337
echo " ";
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", false, false, false, 337) && !twig_get_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", false, false, false, 337)) && (0 !== 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", false, false, false, 337), 283213))) && (0 !== 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", false, false, false, 337), 288763))) && (0 !== 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", false, false, false, 337), 288779))) && (0 !== 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", false, false, false, 337), 288772)))) {
// line 338
echo " <a id=\"deliveryBtn\" href=\"";
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", null, true);
echo "\" class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase";
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", false, false, false, 338)) ? (" opacity-05") : (""));
echo "\">
Оплатить онлайн ";
// line 339
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 339), "html", null, true);
echo "
</a>
";
} elseif ((((twig_get_attribute($this->env, $this->source, // line 341
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 341, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 341) && (0 === 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", false, false, false, 341), 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", false, false, false, 341) && (0 === 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", false, false, false, 341), 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", false, false, false, 341) && (0 === 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", false, false, false, 341), 288772))))) {
// line 342
echo " <a id=\"deliveryBtn\" href=\"";
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", null, true);
echo "\" class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase";
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", false, false, false, 342)) ? (" opacity-05") : (""));
echo "\">
Получить скидку ";
// line 343
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 343), "html", null, true);
echo "
</a>
";
} elseif (( !twig_get_attribute($this->env, $this->source, // line 345
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 345, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 345) && !twig_get_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", false, false, false, 345))) {
// line 346
echo " <a id=\"deliveryBtn\" href=\"";
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", null, true);
echo "\" class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase";
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", false, false, false, 346)) ? (" opacity-05") : (""));
echo "\">
Заказать онлайн ";
// line 347
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 347), "html", null, true);
echo "
</a>
";
}
// line 350
echo " ";
}
// line 351
echo " ";
} else {
// line 352
echo " ";
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", false, false, false, 352), twig_constant("Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS"))) {
// line 353
echo " ";
$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); })()));
// line 354
echo " <a href=\"";
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", null, true);
echo "\"
onclick=\"document.location = `";
// line 355
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", null, true);
echo "`\"
class=\"card-link ml-0 py-3 bg-violet text-white rounded-14 text-uppercase";
// line 356
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", false, false, false, 356)) ? (" opacity-05") : (""));
echo "\">
ПОЛУЧИТЬ СКИДКУ ";
// line 357
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 357), "html", null, true);
echo "
</a>
";
} else {
// line 360
echo " ";
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", false, false, false, 360) && !twig_get_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", false, false, false, 360))) {
// line 361
echo " ";
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", false, false, false, 361) && (0 !== 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", false, false, false, 361), 283213))) && (0 !== 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", false, false, false, 361), 288763))) && (0 !== 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", false, false, false, 361), 288779))) && (0 !== 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", false, false, false, 361), 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", false, false, false, 361) && !twig_get_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", false, false, false, 361)))) {
// line 362
echo " <a href=\"";
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", null, true);
echo "\"
onclick=\"document.location = `";
// line 363
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", null, true);
echo "`\"
class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase";
// line 364
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", false, false, false, 364)) ? (" opacity-05") : (""));
echo "\">
Оплатить онлайн ";
// line 365
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 365), "html", null, true);
echo "
</a>
";
} elseif ((((twig_get_attribute($this->env, $this->source, // line 367
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 367, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 367) && (0 === 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", false, false, false, 367), 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", false, false, false, 367) && (0 === 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", false, false, false, 367), 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", false, false, false, 367) && (0 === 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", false, false, false, 367), 288772))))) {
// line 368
echo " <a href=\"";
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", null, true);
echo "\"
onclick=\"document.location = `";
// line 369
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", null, true);
echo "`\"
class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase";
// line 370
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", false, false, false, 370)) ? (" opacity-05") : (""));
echo "\">
Получить скидку ";
// line 371
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 371), "html", null, true);
echo "
</a>
";
}
// line 374
echo " ";
} else {
// line 375
echo " ";
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", false, false, false, 375)) {
// line 376
echo " <a href=\"";
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", null, true);
echo "\"
onclick=\"document.location = `";
// line 377
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", null, true);
echo "`\"
class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase";
// line 378
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", false, false, false, 378)) ? (" opacity-05") : (""));
echo "\">
Заказать онлайн ";
// line 379
echo twig_escape_filter($this->env, twig_get_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", false, false, false, 379), "html", null, true);
echo "
</a>
";
}
// line 382
echo " ";
}
// line 383
echo " ";
}
// line 384
echo " ";
}
// line 385
echo " </div>
</div>
";
}
// line 388
echo " </div>
";
}
// line 390
echo " <div class=\"container-offers my-0 mx-0\">
<div id=\"offerDescriptionTab\" class=\"mx-2 active\" style=\"max-height: fit-content;\">
<div class=\"offer-titles mt-2\"><h5>Условия</h5></div>
";
// line 393
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", false, false, false, 393) && (0 !== 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", false, false, false, 393), 140553)))) {
// line 394
echo " ";
$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", false, false, false, 394);
// line 395
echo " ";
$context["codeFrom"] = twig_date_modify_filter($this->env, twig_get_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", false, false, false, 395), "-1 day");
// line 396
echo " ";
$context["codeFrom"] = (((1 === 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); })())));
// line 397
echo " ";
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", false, false, false, 397)) {
// line 398
echo " <p>- Получить промокод можно до ";
echo twig_escape_filter($this->env, twig_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", null, true);
echo ", воспользоваться ";
echo (((0 !== 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", false, false, false, 398), 134390))) ? ("до") : (""));
echo " ";
echo twig_escape_filter($this->env, twig_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", null, true);
echo ".
<br/>
";
}
// line 401
echo " ";
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", false, false, false, 401) && !(isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 401, $this->source); })()))) {
// line 402
echo " - Стоимость промокода: ";
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", null, true);
echo " руб.
";
}
// line 403
echo "</p>
";
}
// line 405
echo "
";
// line 406
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", false, false, false, 406);
echo "
";
// line 408
echo " ";
if ((0 === 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", false, false, false, 408), 143528))) {
// line 409
echo " <br>
";
// line 410
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer2.html.twig", "Slivki/mobile/offer/details.html.twig", 410)->display($context);
// line 411
echo " <br>
";
} elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, // line 412
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 412, $this->source); })()), "getID", [], "method", false, false, false, 412), 282234))) {
// line 413
echo " ";
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer4.html.twig", "Slivki/mobile/offer/details.html.twig", 413)->display($context);
// line 414
echo " ";
}
// line 415
echo "
";
// line 416
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", false, false, false, 416)) {
// line 417
echo " ";
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", false, false, false, 417)) {
// line 418
echo " ";
$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);
// line 419
echo " ";
}
// line 420
echo " <br>
<div class=\"offer-titles\"><h5>Особенности</h5></div>
<div class=\"offer-details-conditions\">
";
// line 423
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", false, false, false, 423)) {
// line 424
echo " - Скидка предоставляется только при наличии промокода.
";
}
// line 426
echo " ";
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", false, false, false, 426);
echo "
</div>
- Поставщик несет полную ответственность перед потребителем за достоверность информации.
";
}
// line 430
echo " <div id=\"endOfOfferCondition\"></div>
</div>
</div>
";
// line 433
if ((1 === twig_compare(twig_length_filter($this->env, twig_get_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", false, false, false, 433)), 0))) {
// line 434
echo " <div class=\"gallery-title offer-titles\"><h5>Галерея</h5></div>
";
}
// line 436
echo " <div class=\"my-4 screenshots ";
echo ((((0 === twig_compare(twig_length_filter($this->env, twig_get_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", false, false, false, 436)), 0)) || (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") : (""));
echo "\">
";
// line 437
if ((1 === twig_compare(twig_length_filter($this->env, twig_get_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", false, false, false, 437)), 0))) {
// line 438
echo " <div class=\"screenshot-container\">
";
// line 439
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 439) && (1 === twig_compare(twig_length_filter($this->env, twig_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", false, false, false, 439)), 0)))) {
// line 440
echo " <div class=\"screenshot screenshot-story\" data-toggle=\"modal\" data-target=\"#detailsStoryPopup\">
<img src=\"";
// line 441
echo twig_escape_filter($this->env, twig_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", false, false, false, 441), "html", null, true);
echo "\" width=\"158\"
alt=\"Видео\" border=\"0\"/>
<div class=\"screenshot-story-btn\"></div>
<div class=\"screenshot-story-tittle\">";
// line 444
echo twig_escape_filter($this->env, twig_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", false, false, false, 444), "html", null, true);
echo "</div>
</div>
";
}
// line 447
echo " ";
$context['_parent'] = $context;
$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", false, false, false, 447));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 448
echo " <div class=\"screenshot\">
<a data-fancybox=\"gallery1\" href=\"";
// line 449
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 0, 0), "html", null, true);
echo "\"
title=\"";
// line 450
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 450), "html", null, true);
echo "\">
<img src=\"";
// line 451
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 300, 0), "html", null, true);
echo "\" width=\"158\"
alt=\"";
// line 452
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 452), "html", null, true);
echo "\" border=\"0\"/>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 456
echo " </div>
";
}
// line 458
echo " </div>
<div id=\"examplesOfWorksBlock\" class=\"examples-block-mobile\">
<div class=\"headerBlockCategory examples d-none bg-white px-0 pb-0 examples-block-mobile-header\">
<div class=\"offer-titles m-0\"><h5>Примеры работ";
// line 461
echo "</h5></div>
<div class=\"examples-works-tooltip-filter\">
<div class=\"tooltip-content\">
<div class=\"tooltip-title border-bottom-f d-flex\">Показать сначала:</div>
<div class=\"radio\">
<input id=\"dateFilter\" type=\"radio\" checked name=\"filter\" data-direction=\"DESC\" value=\"workExample.createdAt\">
<label for=\"dateFilter\" class=\"cursor-pointer\">По дате добавления</label>
</div>
<div class=\"radio\">
<input id=\"locationFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"distance\">
<label for=\"locationFilter\" class=\"cursor-pointer\">Поблизости</label>
</div>
<div class=\"radio\">
<input id=\"priceUpFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"workExample.price\">
<label for=\"priceUpFilter\" class=\"cursor-pointer\">По возврастанию цены</label>
</div>
<div class=\"radio\">
<input id=\"priceDownFilter\" type=\"radio\" name=\"filter\" data-direction=\"DESC\" value=\"workExample.price\">
<label for=\"priceDownFilter\" class=\"cursor-pointer\">По убыванию цены</label>
</div>
<div class=\"tooltip-title border-top-f d-flex\">Диапазон цены:</div>
<div id=\"workExamplePriceRangeInputs\" class=\"price-range-inputs d-flex\">
<div class=\"price-range-input\"><input type=\"number\" placeholder=\"Цена от\" id=\"priceFrom\" name=\"priceFrom\" min=\"0\" max=\"199\" step=\"1\"></div>
<div class=\"price-range-input\"><input type=\"number\" placeholder=\"Цена до\" id=\"priceTo\" name=\"priceTo\" min=\"0\" max=\"200\" step=\"1\"></div>
</div>
<div id=\"workExampleRangeSlider\" class=\"range-slider\">
<div class=\"range-labels\">
<span id=\"workSimplesRangeLableStart\" class=\"range-label range-label-start\"></span>
<span>-</span>
<span id=\"workSimplesRangeLableEnd\" class=\"range-label range-label-end\"></span>
</div>
<input class=\"work-simples-input\" type=\"range\" min=\"\" value=\"0\" max=\"\" name=\"\" id=\"startRange\">
<input class=\"work-simples-input\" type=\"range\" min=\"\" value=\"\" max=\"\" name=\"\" id=\"finishRange\">
<div class=\"track-wrapper\">
<div class=\"track\"></div>
<div id=\"workSimplesSliderBetween\" class=\"range-between\"></div>
<div id=\"workSimplesTumbLeft\" class=\"thumb left\"></div>
<div id=\"workSimplesTumbRight\" class=\"thumb right\"></div>
</div>
</div>
<div id=\"buttonFilterBoxExamplesWork\" class=\"buttonFilterBox\">Показать</div>
</div>
<div id=\"buttonFilterBoxExamplesWork\" class=\"examples-works-filter\"></div>
</div>
</div>
";
// line 507
$this->loadTemplate("Slivki/works-examples/examples_of_works_gallery.html.twig", "Slivki/mobile/offer/details.html.twig", 507)->display($context);
// line 508
echo " </div>
<div id=\"beautyMastersBlock\" class=\"beauty-masters-container beauty-masters-offer mob\">
<div id=\"beautyMastersHeader\" class=\"tittleBlockCategory position-relative offer-titles mb-2 mt-0 d-none\"><h5>Мастера</h5></div>
";
// line 511
$this->loadTemplate("Slivki/beauty/beauty_masters.html.twig", "Slivki/mobile/offer/details.html.twig", 511)->display($context);
// line 512
echo " </div>
<div id=\"offersDescription\" class=\"offers-conditions mt-2 js-parallax-banner-after\" style=\"padding-bottom: 22px;\">
";
// line 514
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", false, false, false, 514)) {
// line 515
echo " <div id=\"foodItemsBlock\" class=\"my-3\">
<div class=\"offer-titles mt-2\"><h5>Описание</h5></div>
";
// line 517
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); })()))) {
// line 518
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;\">
<div class=\"w-100 switch-delivery-pickup-block px-0 \">
<a data-type-delivery=\"1\" class=\"switch-delivery-pickup-item button-tab-delivery delivery-type active\">
<p class=\"m-0\">Доставка</p>
<small>удобно👌</small>
</a>
<a data-type-delivery=\"2\" class=\"switch-delivery-pickup-item pickup-type button-tab-pickup\">
<p class=\"m-0\"> Самовывоз</p>
<small>еще дешевле🔥</small>
</a>
</div>
</div>
";
}
// line 531
echo " <div id=\"foodBlock\"></div>
<div id=\"foodOptionsBlock\"></div>
</div>
";
}
// line 535
echo " <div class=\"description\" id=\"descriptionText\">
";
// line 536
$context['_parent'] = $context;
$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", false, false, false, 536));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescription"]) {
// line 537
echo " ";
$context["offerDescriptionSliderImages"] = twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getEntityDescriptionSliderImages", [], "method", false, false, false, 537);
// line 538
echo " ";
if ((1 === 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))) {
// line 539
echo " <div class=\"sale-description-carousel\">
<div id=\"saleDescriptionSliderFor";
// line 540
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getID", [], "method", false, false, false, 540), "html", null, true);
echo "\"
class=\"sale-description-slider-for\">
";
// line 542
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescriptionSliderImage"]) {
// line 543
echo " <div><img data-lazy=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["offerDescriptionSliderImage"], "getImageUrl", [], "method", false, false, false, 543), "html", null, true);
echo "\"/>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['offerDescriptionSliderImage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 546
echo " </div>
</div>
";
}
// line 549
echo " ";
echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->addLazyAndLightboxImagesInDescription(twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getDescription", [], "method", false, false, false, 549));
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['offerDescription'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 551
echo " </div>
</div>
<div id=\"offerAddressTab\" class=\"mx-1 mt-5\">
<div class=\"offer-titles\"><h5 class=\"mb-2\">Контакты</h5></div>
<div class=\"mb-4 logo-title\">
";
// line 556
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", false, false, false, 556);
echo "
</div>
<div class=\"p-m-0\">
";
// line 559
if ((1 === 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", false, false, false, 559), 0))) {
// line 560
echo " ";
if ((1 === 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))) {
// line 561
echo " <div id=\"offerGeoLocationData\" data-json=\"";
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", null, true);
echo "\"></div>
<div id=\"offerMapWrapper\" class=\"category-map-wrapper my-3\">
<div id=\"offerMap\" class=\"category-map\"></div>
<a id=\"setUserLocationBtn\" href=\"#\">Указать местоположение</a>
<div id=\"zoomIn\"></div>
<div id=\"zoomOut\"></div>
<a id=\"mapEnterFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Развернуть</a>
<a id=\"mapExitFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Свернуть</a>
</div>
";
}
// line 571
echo " ";
}
// line 572
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["geoLocation"]) {
// line 573
echo " <div class=\"mb-3 my-3\">
<div class=\"sf-bold-font\">";
// line 574
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCity", [], "method", false, false, false, 574), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getStreet", [], "method", false, false, false, 574), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getHouse", [], "method", false, false, false, 574), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getLabel", [], "method", false, false, false, 574), "html", null, true);
echo "</div>
";
// line 575
$context["phoneNumbers"] = twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getPhoneNumbers", [], "method", false, false, false, 575);
// line 576
echo " ";
if ((1 === 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))) {
// line 577
echo " ";
}
// line 578
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 579
echo " ";
$this->loadTemplate("Slivki/mobile/offer/phone_number_btn.html.twig", "Slivki/mobile/offer/details.html.twig", 579)->display(twig_to_array(["phoneNumber" => $context["phoneNumber"]]));
// line 580
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phoneNumber'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 581
echo " ";
if ((0 !== twig_compare(twig_trim_filter(twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 581)), ""))) {
// line 582
echo " <div>Время работы:</div> ";
echo twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 582);
echo "
";
}
// line 584
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['geoLocation'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 586
echo " ";
if ((1 === 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))) {
// line 587
echo " ";
if ((1 === 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))) {
// line 588
echo " <br>
";
}
// line 590
echo " <div id=\"phoneOffers\" class=\"mb-2\">
<div class=\"mb-2\">
<strong>Телефон";
// line 592
echo (((1 === 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))) ? ("ы") : (""));
echo ":</strong>
</div>
";
// line 594
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 595
echo " ";
$this->loadTemplate("Slivki/mobile/offer/phone_number_btn.html.twig", "Slivki/mobile/offer/details.html.twig", 595)->display(twig_to_array(["phoneNumber" => $context["phoneNumber"]]));
// line 596
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phoneNumber'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 597
echo " </div>
</div>
";
}
// line 600
echo " ";
$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", false, false, false, 600);
// line 601
echo " ";
if ((0 !== twig_compare((isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 601, $this->source); })()), ""))) {
// line 602
echo " <br>
<div><strong>Время работы:</strong></div>
";
// line 604
echo (isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 604, $this->source); })());
echo "
<br><br>
";
}
// line 607
echo " ";
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", false, false, false, 607);
echo "
";
// line 608
if (((0 !== 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", false, false, false, 608), null)) || (0 !== 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", false, false, false, 608), null)))) {
// line 609
echo " <div class=\"contact-container d-flex flex-column py-2 px-1\">
<div class=\"contact-item\" data-toggle=\"modal\" data-target=\"#contactPopup\">
<p>Написать</p>
</div>
</div>
";
}
// line 615
echo " </div>
";
// line 616
$this->loadTemplate("Slivki/offers/share.html.twig", "Slivki/mobile/offer/details.html.twig", 616)->display($context);
// line 617
echo " </div>
<div id=\"offerCommentTab\" class=\"pt-2 px-0\">
<div>
";
// line 620
echo (isset($context["comments"]) || array_key_exists("comments", $context) ? $context["comments"] : (function () { throw new RuntimeError('Variable "comments" does not exist.', 620, $this->source); })());
echo "
</div>
</div>
</div>
</div>
";
// line 625
if ((isset($context["preview"]) || array_key_exists("preview", $context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.', 625, $this->source); })())) {
// line 626
echo " <input type=\"hidden\" id=\"offerPreview\" value=\"1\">
";
} else {
// line 628
echo " <input type=\"hidden\" id=\"offerPreview\" value=\"0\">
";
}
// line 630
echo " </div>
";
// line 631
if ((isset($context["showGlobalcard"]) || array_key_exists("showGlobalcard", $context) ? $context["showGlobalcard"] : (function () { throw new RuntimeError('Variable "showGlobalcard" does not exist.', 631, $this->source); })())) {
// line 632
echo " ";
$this->loadTemplate("Slivki/mobile/offer/globalcard.html.twig", "Slivki/mobile/offer/details.html.twig", 632)->display($context);
// line 633
echo " ";
} elseif ((isset($context["showGlobalcardFitness"]) || array_key_exists("showGlobalcardFitness", $context) ? $context["showGlobalcardFitness"] : (function () { throw new RuntimeError('Variable "showGlobalcardFitness" does not exist.', 633, $this->source); })())) {
// line 634
echo " ";
$this->loadTemplate("Slivki/mobile/offer/globalcard_fitness.html.twig", "Slivki/mobile/offer/details.html.twig", 634)->display($context);
// line 635
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 638
public function block_popup($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "popup"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "popup"));
// line 639
echo " ";
$this->loadTemplate("Slivki/popups/header_offers.html.twig", "Slivki/mobile/offer/details.html.twig", 639)->display($context);
// line 640
echo " ";
$this->loadTemplate("Slivki/popups/mail_offers.html.twig", "Slivki/mobile/offer/details.html.twig", 640)->display($context);
// line 641
echo " ";
$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);
// line 642
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 642) && (1 === twig_compare(twig_length_filter($this->env, twig_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", false, false, false, 642)), 0)))) {
// line 643
echo " ";
$this->loadTemplate("Slivki/popups/details-story-popup.html.twig", "Slivki/mobile/offer/details.html.twig", 643)->display($context);
// line 644
echo " ";
}
// line 645
echo " ";
$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); })())]));
// line 646
echo " ";
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME"))) {
// line 647
echo " ";
$this->loadTemplate("Slivki/uz/mobile/buy_promo.twig", "Slivki/mobile/offer/details.html.twig", 647)->display($context);
// line 648
echo " ";
}
// line 649
echo " ";
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", false, false, false, 649)) {
// line 650
echo " ";
$this->loadTemplate("Slivki/popups/rating_edit_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 650)->display($context);
// line 651
echo " ";
$this->loadTemplate("Slivki/mobile/popup/popup_subscription_limited.html.twig", "Slivki/mobile/offer/details.html.twig", 651)->display($context);
// line 652
echo " ";
$this->loadTemplate("Slivki/mobile/subscription/buy_promo_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 652)->display($context);
// line 653
echo " ";
$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->source, 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.', 653, $this->source); })()), "user", [], "any", false, false, false, 653), "getActiveCreditCards", [], "method", false, false, false, 653)]));
// line 654
echo " ";
$this->loadTemplate("Slivki/mobile/popup/buy_codes_avways_app.html.twig", "Slivki/mobile/offer/details.html.twig", 654)->display($context);
// line 655
echo " ";
$this->loadTemplate("Slivki/popups/add_favourite_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 655)->display($context);
// line 656
echo " ";
$this->loadTemplate("Slivki/popups/delete_favourite_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 656)->display($context);
// line 657
echo " ";
$this->loadTemplate("Slivki/popups/delete_comment_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 657)->display(twig_array_merge($context, ["id" => "deleteCommentConfirmPopup"]));
// line 658
echo " ";
} else {
// line 659
echo " ";
$this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 659)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
// line 660
echo " ";
}
// line 661
echo " ";
$this->loadTemplate("Slivki/popups/comment_media_block_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 661)->display($context);
// line 662
echo " ";
$this->loadTemplate("Slivki/mobile/popup/add_comment_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 662)->display($context);
// line 663
echo " ";
$this->loadTemplate("Slivki/popups/edit_comment_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 663)->display(twig_array_merge($context, ["id" => "editVoteBox"]));
// line 664
echo " ";
$this->loadTemplate("Slivki/popups/comment_censor_message.html.twig", "Slivki/mobile/offer/details.html.twig", 664)->display(twig_array_merge($context, ["id" => "commentCensorMessage"]));
// line 665
echo " ";
$this->loadTemplate("Slivki/mobile/share_block.html.twig", "Slivki/mobile/offer/details.html.twig", 665)->display($context);
// line 666
echo " ";
$this->loadTemplate("Slivki/mobile/popup/statistics_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 666)->display($context);
// line 667
echo " ";
$this->loadTemplate("Slivki/mobile/delivery/modal/details.html.twig", "Slivki/mobile/offer/details.html.twig", 667)->display(twig_array_merge($context, ["isOfferPage" => true]));
// line 668
echo " ";
if ((1 === 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))) {
// line 669
echo " ";
$this->loadTemplate("Slivki/mobile/offer/extension/item/items_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 669)->display($context);
// line 670
echo " ";
}
// line 671
echo " ";
if ((0 === 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", false, false, false, 671), twig_constant("Slivki\\Entity\\Offer::BOOKING_OFFER_ID")))) {
// line 672
echo " ";
$this->loadTemplate("Slivki/mobile/offer/booking_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 672)->display($context);
// line 673
echo " ";
}
// line 674
echo " ";
$this->displayParentBlock("popup", $context, $blocks);
echo "
";
// line 675
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", false, false, false, 675)) {
// line 676
echo " ";
$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); })())]));
// line 677
echo " ";
}
// line 678
echo " ";
$this->loadTemplate("Slivki/mobile/popup/loading_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 678)->display($context);
// line 679
echo " ";
$this->loadTemplate("Slivki/mobile/popup/contact_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 679)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 681
public function block_brandingBanner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "brandingBanner"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "brandingBanner"));
// line 682
echo " ";
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", false, false, false, 682) && twig_get_attribute($this->env, $this->source, 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", false, false, false, 682), "hasRole", [0 => twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method", false, false, false, 682))) {
// line 683
echo " ";
$context["brandingBanner"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getBrandingBanner($this->env, 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.', 683, $this->source); })()), "user", [], "any", false, false, false, 683), ((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", false, false, false, 683)) : ("")));
// line 684
echo " ";
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", false, false, false, 684))) {
// line 685
echo " <input type=\"hidden\" id=\"brandingBannerImage\" value=\"";
echo twig_escape_filter($this->env, 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.', 685, $this->source); })()), "getMobileDivider", [], "method", false, false, false, 685), "html", null, true);
echo "\"
data-oid=\"";
// line 686
echo twig_escape_filter($this->env, 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.', 686, $this->source); })()), "getID", [], "method", false, false, false, 686), "html", null, true);
echo "\" data-id=\"";
echo twig_escape_filter($this->env, 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.', 686, $this->source); })()), "getBannerID", [], "method", false, false, false, 686), "html", null, true);
echo "\"
data-branding=\"";
// line 687
echo twig_escape_filter($this->env, 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); })()), "getBannerID", [], "method", false, false, false, 687), "html", null, true);
echo "\" data-url=\"";
echo twig_escape_filter($this->env, twig_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", false, false, false, 687)), "html", null, true);
echo "\"
data-right-side-url=\"";
// line 688
echo twig_escape_filter($this->env, twig_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", false, false, false, 688)), "html", null, true);
echo "\">
";
}
// line 690
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 693
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 694
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"/js/jquery.jcarousel.min.js?v=1\"></script>
<script src=\"/js/story-slider/story-slider-js.js?v=";
// line 696
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", null, true);
echo "\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js\"
integrity=\"sha512-jNDtFf7qgU0eH/+Z42FG4fw3w7DM/9zbgNPe3wfJlCylVDTT3IgKW5r92Vy9IHa6U50vyMz5gRByIu4YIXFtaQ==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
<script type=\"text/javascript\">
\$(function () {
\$('#floatingBanner').addClass('offer-details-floating-banner');
});
</script>
<!-- Moment -->
<script src=\"/admin/plugins/moment/moment-with-locales.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js\"></script>
<script src=\"/js/swiper-js/swiper.min.js\"></script>
<script src=\"/js/offer-new.js?v=";
// line 710
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", null, true);
echo "\"/>
<script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU\" type=\"text/javascript\"></script>
<script src=\"https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js\"></script>
<script src=\"https://yastatic.net/share2/share.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/fecha/2.3.3/fecha.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
<!-- date-time-picker -->
<script src=\"/admin/plugins/datetimepicker/js/bootstrap-datetimepicker.min.js\"></script>
<!-- colorpicker -->
<script src=\"/admin/plugins/colorpicker/bootstrap-colorpicker.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.js\"
integrity=\"sha512-zlWWyZq71UMApAjih4WkaRpikgY9Bz1oXIW5G0fED4vk14JjGlQ1UmkGM392jEULP8jbNMiwLWdM8Z87Hu88Fw==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
<script src=\"/mobile/js/offer.min.js?v=";
// line 726
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", null, true);
echo "\"></script>
<script type=\"text/javascript\" src=\"/js/statistics_offer/statistics_offer.js?v=";
// line 727
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", null, true);
echo "\" charset=\"utf-8\"></script>
<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>
<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>
<script src=\"/js/ajaxupload.3.5.js?v=1\"></script>
<script src=\"/js/mobile-rating.js?v=2\"></script>
<script>
uploadPhoto('/comment/image_upload', '/comment/image_remove');
initImageRemove();
</script>
<script type=\"text/javascript\">
";
// line 737
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 737, $this->source); })()), "request", [], "any", false, false, false, 737), "query", [], "any", false, false, false, 737), "has", [0 => "checkOrder"], "method", false, false, false, 737)) {
// line 738
echo " initCheckOfferOrderStatus(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 738, $this->source); })()), "request", [], "any", false, false, false, 738), "get", [0 => "checkOrder"], "method", false, false, false, 738), "html", null, true);
echo ");
";
}
// line 740
echo " </script>
<script src=\"/js/offer/offerDescriptionItems.js?v=";
// line 741
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", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/work_examples/work_examples.js?v=";
// line 742
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", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/beauty/masters.js?v=";
// line 743
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", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 746
public function block_RTBHouse($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "RTBHouse"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "RTBHouse"));
// line 747
echo " <script>
try{ (function() {
var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_offer_\"+document.getElementById('offerID').value); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
var ifr = document.createElement(\"iframe\"),
sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
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]);}
ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
})();} catch(e) {} </script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/mobile/offer/details.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% set phoneNumbersWithoutGeoLocations = offer.getPhoneNumbersWithoutGeoLocations() %}
{% extends 'Slivki/mobile/base.html.twig' %}
{% block styles %}
<link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\" />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css\" />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\" />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick-theme.min.css\" />
<link rel=\"stylesheet\" href=\"/admin/plugins/datetimepicker/css/bootstrap-datetimepicker.min.css\">
<link rel=\"stylesheet\" href=\"/admin/plugins/datatables/jquery.dataTables.min.css\"/>
<link rel=\"stylesheet\" href=\"/admin/plugins/colorpicker/bootstrap-colorpicker.min.css\"/>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.css\">
{{ parent() }}
<link href=\"/css/delivery.min.css?v={{ delivery_css_version }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/mobile/css/offers.min.css?v={{ mobile_offers_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/foodForGift.css?v={{ food_for_gift_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
<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\"
rel=\"stylesheet\">
<link href=\" /mobile/css/statistics_modal.css?v=3\" rel=\"stylesheet\" type=\"text/css\" />
{% endblock %}
{% block messenger %}{% endblock %}
{% block ogimage %}
{% if detailMediaList|length > 0 %}
<meta property=\"og:image\"
content=\"{{ app.request.getSchemeAndHttpHost() }}{{ getImageURL(detailMediaList|first, 522, 322) }}\"/>
<meta property=\"og:image:width\" content=\"522\"/>
<meta property=\"og:image:height\" content=\"322\"/>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% set isBatchCodesAllowed = app.user and app.user.isBatchCodesAllowed %}
{% block content %}
{% set isPickupEnabled = offer.getOnlineOrderSettings().isPickupEnabled() is defined ? offer.getOnlineOrderSettings().isPickupEnabled() %}
{% set isDeliveryEnabled = offer.getOnlineOrderSettings().isDeliveryEnabled() is defined ? offer.getOnlineOrderSettings().isDeliveryEnabled() %}
{% if parentCategoryList %}
{% include 'Slivki/mobile/breadcrumbs.html.twig' with { 'parentCategoryList': parentCategoryList, 'supplierCategoryData': offer.getSupplierCategoryData() } only %}
{% endif %}
{% if isPickupEnabled or isDeliveryEnabled %}
<input id=\"deliveryMethodEnabled\" type=\"hidden\" value=\"{{ isDeliveryEnabled == '' ? '2' : '1' }}\">
{% endif %}
<input id=\"offerPage\" type=\"hidden\" value=\"\">
<input id=\"offerID\" type=\"hidden\" value=\"{{ offer.getID() }}\">
<input type=\"hidden\" id=\"stock-id\" value=\"{{ offer.getID() }}\">
<input type=\"hidden\" id=\"stock-link\" value=\"{{ app.request.getSchemeAndHttpHost() ~ app.request.getRequestUri() }}\">
<div type=\"hidden\" id=\"mobileVersionIndicator\"></div>
{% if app.user and isSubscriber(app.user) %}
<input id=\"allowedCodesCountBySubscription\" type=\"hidden\" value=\"{{ allowedCodesCountBySubscription }}\">
{% endif %}
{% if app.user %}
<input id=\"splitTotalCodesCountByUser\" type=\"hidden\" value=\"{{ app.user.getCodesCountByOffer(offer) }}\">
<input type=\"hidden\" id=\"customerID\" value=\"{{ app.user.getID() }}\"/>
{% endif %}
<meta content=\"{{ metaInfo.metaDescription }}\"/>
<div id=\"offerDetails\">
<div class=\"collapse-more-button\"></div>
{% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
<div class=\"no-gutters pb-2\">
<div class=\"col-12 col-sm-4\">
<div id=\"offerImageSlider\" class=\"m-0 swiper-container\">
<div class=\"back-button\" onclick=\"history.back();\">
<img src=\"/images/back-white.svg\"/>
</div>
{% if app.user() %}
<div class=\"fovoutite-block\"
onclick=\"onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})\">
<img width=\"18\" height=\"18\"
src=\"{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/heart.svg' }}\"/>
</div>
{% endif %}
<div class=\"discount-block\">
{{ offer.isWithoutCodes() ? 'пока без скидки' : offer.getDiscount() }}
</div>
{% if is_granted('ROLE_ADMIN') and not offer.isWithoutCodes() %}
<div id=\"statisticsButton\" data-toggle=\"modal\" data-target=\"#statisticOffersPopup\">
<img width=\"37\" height=\"37\" src=\"/images/statistics.png\"/>
</div>
{% endif %}
<div class=\"swiper-wrapper\">
{% set medias = offer.getDetailMedias() %}
{% set mediaCount = medias|length %}
{% if mediaCount > 1 %}
{% for media in medias %}
<div class=\"swiper-slide\">
<img class=\"img-fluid lazyload\" alt=\"{{ media.getDescription() }}\"
src=\"{{ getImageURL(media, 1044, 644) }}\"/>
</div>
{% endfor %}
{% elseif mediaCount == 1 %}
<div>
<img class=\"img-fluid lazyload\" alt=\"{{ medias[0].getDescription() }}\"
src=\"{{ getImageURL(medias[0], 1044, 644) }}\"/>
</div>
{% endif %}
</div>
{% if mediaCount > 1 %}
<div class=\"swiper-pagination mt-2\"></div>
<div class=\"swiper-button-next\"></div>
<div class=\"swiper-button-prev\"></div>
{% endif %}
</div>
</div>
<div class=\"container-offers\">
<div class=\"tags-offers\">
{% if not offer.isWithoutCodes() %}
<div class=\"tags-offers-item\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-html=\"true\"
data-original-title=\"Взято кодов <br> Всего {{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }} </br> За сутки {{ todayPurchaseCount }} </br> За месяц {{ getOfferMonthlyPurchaseCount(offer.getID(), 30) }}\">
<img src=\"/images/offers/icon_people.svg\"/>
<p class=\"mb-0\">{{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }}</p>
</div>
{% endif %}
<div class=\"tags-offers-item view-count\" class=\"view-count d-flex\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-html=\"true\"
data-original-title=\"Просмотров <br> Всего {{ visitCount }} </br> За сутки {{ todayVisitCount }}\">
<img src=\"/images/offers/statistic_1.svg\"/>
<p class=\"mb-0\">{{ visitCount }}</p>
</div>
{% if not offer.isWithoutCodes() %}
<div class=\"tags-offers-item\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-html=\"true\"
data-original-title=\"Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней\">
<img src=\"/images/offers/conversion.svg\"/>
<p class=\"mb-0\">{{ getOfferConversion(offer.getID()) }}%</p>
</div>
{% endif %}
<div class=\"tags-offers-item rating-block\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Рейтинг компании <br> за 90 дней\">
<span>★</span>
<p class=\"mb-0\">{{ offer.getRating() }}</p>
</div>
{% if not offer.isWithoutCodes() %}
<div class=\"tags-offers-item day-to-end\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-html=\"true\"
data-original-title=\"Дней до окончания <br> действия акции\">
<img src=\"/images/offers/icon_time.svg\"/>
<p class=\"mb-0\">
{% if daysLeft > 0 %}
{{ daysLeft }} {{ ['день', 'дня', 'дней']|plural(daysLeft) }}
{% elseif daysLeft == 0 %}
<input type=\"hidden\" id=\"daysLeft\" value=\"{{ daysLeft }} \"/>
<input type=\"hidden\" id=\"hoursLeft\" value=\"{{ hoursLeft }} \"/>
<input type=\"hidden\" id=\"minutesLeft\" value=\"{{ minutesLeft }} \"/>
<input type=\"hidden\" id=\"secondsLeft\"
value=\"{{ offer.getActiveTill().diff(date()).format('%s') }}\"/>
<span id=\"hours\">{{ hoursLeft }} </span>час{{ ['', 'а', 'ов']|plural(hoursLeft) }}
{% endif %}
</p>
</div>
{% endif %}
</div>
<p class=\"tittle-offers js-tittle-offer\" style=\"color: {{ offer.getTitleFontColor() }};\">{{ offer.getTitle()|raw }}</p>
<div class=\"offers-description\">
{% if not pastOffer and offer.getFreeCodesCount() > 0 %}
<div class=\"pb-3 d-flex border-bottom-gray\">
<div class=\"col px-0 price-services-tittle\">Стоимость:</div>
<del id=\"offerRegularPrice\"
class=\"regular-price-offer\">{{ offer.getRegularPrice() }}</del>
<div class=\"price-services-new\">{{ offer.getOfferPrice()|replace({'(': '<span id=\"details-offer-price\">(', ')': ')</span>'})|raw }}</div>
<input type=\"hidden\" id=\"codeCost\" value=\"{{ codeCost }}\">
</div>
{% else %}
<div class=\"card border-0 mt-3\">
<div class=\"card-body p-0 pl-2 text-center\">
<i class=\"slivki-icon-minus-circled text-danger d-block h1 mb-0\"></i>
Акция завершена
</div>
</div>
{% endif %}
</div>
</div>
</div>
{% if not pastOffer and offer.getFreeCodesCount() > 0 and offer.isOnlineOrderGiftEnabled() and offer.isFoodOnlineOrderAllowedOnSite() %}
<div class=\"col my-2\">
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
<div class=\"button-gift-text\">
<p class=\"mb-0\">ЕДА В ПОДАРОК 😋</p>
<p class=\"mb-0\">Подарю сам или подарят мне</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
</div>
{% endif %}
<div class=\"sticky-element\">
<div class=\"sticky-anchor\"></div>
<div id=\"offerNavigation\">
<ul class=\"nav-list\">
{% if not app.user %}
{% if offer.isTireOnlineOrderAllowedOnSite() %}
<li class=\"nav-item\"><a href=\"#\" onclick=\"\$('.modal-auth').modal()\" class=\"nav-links online-tire\"><img
src=\"../images/online-order.svg\"
alt=\"Онлайн-запись\">
Онлайн-запись
</a>
</li>
{% endif %}
{% else %}
{% if offer.isTireOnlineOrderAllowedOnSite() %}
<li class=\"nav-item\"><a href=\"/online-zapis/{{ offer.getID() }}\" class=\"nav-links online-tire\"><img
src=\"../images/online-order.svg\"
alt=\"Онлайн-запись\">
Онлайн-запись
</a>
</li>
{% endif %}
{% endif %}
<li class=\"nav-item\"><a href=\"#offerDescriptionTab\" class=\"nav-links active\">
Условия
</a>
</li>
<li class=\"nav-item\"><a href=\"#offerAddressTab\" class=\"nav-links \">
Контакты
</a>
</li>
<li class=\"nav-item\"><a href=\"#offerCommentTab\" class=\"nav-links\"><span></span>
Отзывы
</a>
</li>
</ul>
</div>
</div>
<div id=\"offerAccordion\" class=\"accordion mt-2 px-2\">
{% if not offer.isWithoutCodes() %}
<div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
{% if not offer.isBuyCodeDisable() %}
<div id=\"buyButtonCard\" class=\"card\">
<div class=\"card-header\">
{% if offer.getID() == constant('Slivki\\\\Entity\\\\Offer::BOOKING_OFFER_ID') %}
<a href=\"#\" class=\"m-0 card-link bg-slivki\" data-toggle=\"modal\" data-target=\"#bookingItemPopup\">
{{ offer.getBuyCodeButtonText() and offer.getBuyCodeButtonText() != '' ? offer.getBuyCodeButtonText() : 'Забронировать номер' }}
</a>
{% else %}
{% if not pastOffer and freeCodesCount > 0 %}
{% if not app.user %}
<a href=\"#\" class=\"m-0 card-link bg-slivki by-code-button text-uppercase\" onclick=\"\$('.modal-auth').modal()\">
{% if offerIsFreeForUser %}
БЕСПЛАТНЫЙ ПРОМОКОД
{% else %}
{{ buyButtonLabel }}
{% endif %}
</a>
{% else %}
<a href=\"javascript:void(0)\" id=\"buyCodeButtonFake\" class=\"m-0 d-none card-link bg-slivki by-code-button\">
<img class=\"fixed-size\" width=\"14\" src=\"/images/loading-animation.gif\" alt=\"\"/>
</a>
{% if (offer.getID() == constant('Slivki\\\\Entity\\\\Offer::PETROL_OFFER_ID')) %}
<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'\"
class=\"m-0 card-link bg-slivki by-code-button\" id=\"buyCodeButton\">
{% if offerIsFreeForUser %}
БЕСПЛАТНЫЙ ПРОМОКОД
{% else %}
{{ buyButtonLabel }}
{% endif %}
</a>
{% else %}
{% if isAllowedByOnlyCode %}
{% if app.user and (isSubscriber(app.user) or isBatchCodesAllowed) and not offerIsFreeForUser and not offer.isBuyCodeInAppOnly() %}
<a href=\"#\" onclick=\"\$('#buyPromoPopup').modal()\"
class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\" id=\"buyCodeButton\">
{{ buyButtonLabel }}
</a>
{% else %}
{% if not app.user %}
<a href=\"#\" onclick=\"\$('.modal-auth').modal()\"
class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\" id=\"buyCodeButton\">
{{ buyButtonLabel }}
</a>
{% endif %}
{% if offer.isBuyCodeInAppOnly() %}
<a class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\" id=\"buyCodeButton\"
onclick=\"\$('#byCodesAlwaysApp').modal()\">
{{ buyButtonLabel }}
</a>
{% elseif not offer.isBuyCodeInAppOnly() %}
{% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::PAYMENT_PAYME')) or isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::PAYMENT_CLICK')) %}
<a href=\"#\"
class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\" id=\"buyCodeButtonPayMeMobile\" data-target=\"#buyPromoPopupPayMe\" data-toggle=\"modal\">
{{ buyButtonLabel }}
</a>
{% else %}
<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() }}'\"
class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\" id=\"buyCodeButton\">
{{ buyButtonLabel }}
</a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% else %}
<a href=\"{{ categoryURL }}\" class=\"m-0 card-link bg-slivki color-white\">Посмотреть похожие предложения</a>
{% endif %}
{% endif %}
</div>
</div>
{% endif %}
{% if items|length > 0 %}
<div id=\"buyItemsButtonCard\" class=\"card\">
<div class=\"card-header\">
<a href=\"#\" id=\"buyItemsButton\" class=\"m-0 card-link bg-slivki\" data-toggle=\"modal\" data-target=\"#offerItemsPopup\">
{{ offer.getBuyItemsButtonText() and offer.getBuyItemsButtonText() != '' ? offer.getBuyItemsButtonText() : 'Оплатить сейчас по карте' }}
</a>
</div>
</div>
{% endif %}
{% if hasDelivery is defined and offer.getFreeCodesCount() > 0 %}
<div id=\"deliveryButtonCard\" class=\"card\">
<div class=\"card-header bg-transparent\">
{% if not app.user %}
{% if constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_CERTIFICATE_OFFER_ID') == offer.getID() %}
<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'}}\">
ПОЛУЧИТЬ СКИДКУ {{ offer.getDiscount() }}
</a>
{% else %}
{% if offer.isGiftCertificateOnlineOrderAllowedOnSite() and not offer.isFoodOnlineOrderAllowedOnSite() and offer.getID() != 283213 and offer.getID() != 288763 and offer.getID() != 288779 and offer.getID() != 288772 %}
<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'}}\">
Оплатить онлайн {{ offer.getDiscount() }}
</a>
{% elseif offer.isGiftCertificateOffer() and offer.getID() == 288763 or offer.isGiftCertificateOffer() and offer.getID() == 288779 or offer.isGiftCertificateOffer() and offer.getID() == 288772 %}
<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'}}\">
Получить скидку {{ offer.getDiscount() }}
</a>
{% elseif not offer.isGiftCertificateOffer() and not offer.isTireOnlineOrderAllowedOnSite() %}
<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'}}\">
Заказать онлайн {{ offer.getDiscount() }}
</a>
{% endif %}
{% endif %}
{% else %}
{% if offer.getID() in constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_OFFER_IDS') %}
{% set deliveryBuyOnlyCodeLink = getLinkGiftCertificateOnlineOrderByOnlyCode(offer) %}
<a href=\"{{ deliveryBuyOnlyCodeLink }}\"
onclick=\"document.location = `{{ deliveryBuyOnlyCodeLink }}`\"
class=\"card-link ml-0 py-3 bg-violet text-white rounded-14 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
ПОЛУЧИТЬ СКИДКУ {{ offer.getDiscount() }}
</a>
{% else %}
{% if offer.isGiftCertificateOnlineOrderAllowedOnSite() and not offer.isFoodOnlineOrderAllowedOnSite() %}
{% 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() %}
<a href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
onclick=\"document.location = `{{ getLinkGiftCertificateOnlineOrder(offer) }}`\"
class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
Оплатить онлайн {{ offer.getDiscount() }}
</a>
{% elseif offer.isGiftCertificateOffer() and offer.getID() == 288763 or offer.isGiftCertificateOffer() and offer.getID() == 288779 or offer.isGiftCertificateOffer() and offer.getID() == 288772 %}
<a href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
onclick=\"document.location = `{{ getLinkGiftCertificateOnlineOrder(offer) }}`\"
class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
Получить скидку {{ offer.getDiscount() }}
</a>
{% endif %}
{% else %}
{% if not offer.isTireOnlineOrderAllowedOnSite() %}
<a href=\"{{ deliveryLink }}\"
onclick=\"document.location = `{{ deliveryLink }}`\"
class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
Заказать онлайн {{ offer.getDiscount() }}
</a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</div>
</div>
{% endif %}
</div>
{% endif %}
<div class=\"container-offers my-0 mx-0\">
<div id=\"offerDescriptionTab\" class=\"mx-2 active\" style=\"max-height: fit-content;\">
<div class=\"offer-titles mt-2\"><h5>Условия</h5></div>
{% if not offer.isWithoutCodes() and offer.getID() != 140553 %}
{% set codeTill = offer.getCodeActiveTill() %}
{% set codeFrom = offer.getActiveTill()|date_modify('-1 day') %}
{% set codeFrom = codeFrom > codeTill ? codeTill : codeFrom %}
{% if not offer.isHideFeatures() %}
<p>- Получить промокод можно до {{ codeFrom|date('d.m') }}, воспользоваться {{ offer.getID() != 134390 ? 'до' }} {{ codeTill|date('d.m.y') }}.
<br/>
{% endif %}
{% if offer.isShowPriceInConditions() and not offerIsFreeForUser %}
- Стоимость промокода: {{ codeCost }} руб.
{% endif %}</p>
{% endif %}
{{ offer.getConditions()|raw }}
{# Таблица с прейскурантом для акции с квестами \"Ящик Пандоры\" #}
{% if offer.getID() == 143528 %}
<br>
{% include 'Slivki/offers/table_for_pandorra_box_offer2.html.twig' %}
<br>
{% elseif offer.getID() == 282234 %}
{% include 'Slivki/offers/table_for_pandorra_box_offer4.html.twig' %}
{% endif %}
{% if not offer.isHideFeatures() %}
{% if not offer.isWithoutCodes() %}
{% include \"Slivki#{regional_template_path}/phrase_subscription_in_offer_page.html.twig\" %}
{% endif %}
<br>
<div class=\"offer-titles\"><h5>Особенности</h5></div>
<div class=\"offer-details-conditions\">
{% if not offer.isWithoutCodes() %}
- Скидка предоставляется только при наличии промокода.
{% endif %}
{{ offer.getFeatures()|raw }}
</div>
- Поставщик несет полную ответственность перед потребителем за достоверность информации.
{% endif %}
<div id=\"endOfOfferCondition\"></div>
</div>
</div>
{% if offer.getShopMedias()|length > 0 %}
<div class=\"gallery-title offer-titles\"><h5>Галерея</h5></div>
{% endif %}
<div class=\"my-4 screenshots {{ offer.getShopMedias()|length == 0 or freeCodesCount == 0 ? 'empty' }}\">
{% if offer.getShopMedias()|length > 0 %}
<div class=\"screenshot-container\">
{% if galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
<div class=\"screenshot screenshot-story\" data-toggle=\"modal\" data-target=\"#detailsStoryPopup\">
<img src=\"{{ galleryVideos.getImageUrl() }}\" width=\"158\"
alt=\"Видео\" border=\"0\"/>
<div class=\"screenshot-story-btn\"></div>
<div class=\"screenshot-story-tittle\">{{ galleryVideos.getTitle() }}</div>
</div>
{% endif %}
{% for media in offer.getShopMedias() %}
<div class=\"screenshot\">
<a data-fancybox=\"gallery1\" href=\"{{ getImageURL(media, 0, 0) }}\"
title=\"{{ media.getDescription() }}\">
<img src=\"{{ getImageURL(media, 300, 0) }}\" width=\"158\"
alt=\"{{ media.getDescription() }}\" border=\"0\"/>
</a>
</div>
{% endfor %}
</div>
{% endif %}
</div>
<div id=\"examplesOfWorksBlock\" class=\"examples-block-mobile\">
<div class=\"headerBlockCategory examples d-none bg-white px-0 pb-0 examples-block-mobile-header\">
<div class=\"offer-titles m-0\"><h5>Примеры работ{#<div class=\"example-of-works-count-container\"><span>1234</span></div>#}</h5></div>
<div class=\"examples-works-tooltip-filter\">
<div class=\"tooltip-content\">
<div class=\"tooltip-title border-bottom-f d-flex\">Показать сначала:</div>
<div class=\"radio\">
<input id=\"dateFilter\" type=\"radio\" checked name=\"filter\" data-direction=\"DESC\" value=\"workExample.createdAt\">
<label for=\"dateFilter\" class=\"cursor-pointer\">По дате добавления</label>
</div>
<div class=\"radio\">
<input id=\"locationFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"distance\">
<label for=\"locationFilter\" class=\"cursor-pointer\">Поблизости</label>
</div>
<div class=\"radio\">
<input id=\"priceUpFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"workExample.price\">
<label for=\"priceUpFilter\" class=\"cursor-pointer\">По возврастанию цены</label>
</div>
<div class=\"radio\">
<input id=\"priceDownFilter\" type=\"radio\" name=\"filter\" data-direction=\"DESC\" value=\"workExample.price\">
<label for=\"priceDownFilter\" class=\"cursor-pointer\">По убыванию цены</label>
</div>
<div class=\"tooltip-title border-top-f d-flex\">Диапазон цены:</div>
<div id=\"workExamplePriceRangeInputs\" class=\"price-range-inputs d-flex\">
<div class=\"price-range-input\"><input type=\"number\" placeholder=\"Цена от\" id=\"priceFrom\" name=\"priceFrom\" min=\"0\" max=\"199\" step=\"1\"></div>
<div class=\"price-range-input\"><input type=\"number\" placeholder=\"Цена до\" id=\"priceTo\" name=\"priceTo\" min=\"0\" max=\"200\" step=\"1\"></div>
</div>
<div id=\"workExampleRangeSlider\" class=\"range-slider\">
<div class=\"range-labels\">
<span id=\"workSimplesRangeLableStart\" class=\"range-label range-label-start\"></span>
<span>-</span>
<span id=\"workSimplesRangeLableEnd\" class=\"range-label range-label-end\"></span>
</div>
<input class=\"work-simples-input\" type=\"range\" min=\"\" value=\"0\" max=\"\" name=\"\" id=\"startRange\">
<input class=\"work-simples-input\" type=\"range\" min=\"\" value=\"\" max=\"\" name=\"\" id=\"finishRange\">
<div class=\"track-wrapper\">
<div class=\"track\"></div>
<div id=\"workSimplesSliderBetween\" class=\"range-between\"></div>
<div id=\"workSimplesTumbLeft\" class=\"thumb left\"></div>
<div id=\"workSimplesTumbRight\" class=\"thumb right\"></div>
</div>
</div>
<div id=\"buttonFilterBoxExamplesWork\" class=\"buttonFilterBox\">Показать</div>
</div>
<div id=\"buttonFilterBoxExamplesWork\" class=\"examples-works-filter\"></div>
</div>
</div>
{% include 'Slivki/works-examples/examples_of_works_gallery.html.twig' %}
</div>
<div id=\"beautyMastersBlock\" class=\"beauty-masters-container beauty-masters-offer mob\">
<div id=\"beautyMastersHeader\" class=\"tittleBlockCategory position-relative offer-titles mb-2 mt-0 d-none\"><h5>Мастера</h5></div>
{% include 'Slivki/beauty/beauty_masters.html.twig' %}
</div>
<div id=\"offersDescription\" class=\"offers-conditions mt-2 js-parallax-banner-after\" style=\"padding-bottom: 22px;\">
{% if offer.isShowProductsInOfferDescription() %}
<div id=\"foodItemsBlock\" class=\"my-3\">
<div class=\"offer-titles mt-2\"><h5>Описание</h5></div>
{% if isPickupEnabled and isDeliveryEnabled %}
<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;\">
<div class=\"w-100 switch-delivery-pickup-block px-0 \">
<a data-type-delivery=\"1\" class=\"switch-delivery-pickup-item button-tab-delivery delivery-type active\">
<p class=\"m-0\">Доставка</p>
<small>удобно👌</small>
</a>
<a data-type-delivery=\"2\" class=\"switch-delivery-pickup-item pickup-type button-tab-pickup\">
<p class=\"m-0\"> Самовывоз</p>
<small>еще дешевле🔥</small>
</a>
</div>
</div>
{% endif %}
<div id=\"foodBlock\"></div>
<div id=\"foodOptionsBlock\"></div>
</div>
{% endif %}
<div class=\"description\" id=\"descriptionText\">
{% for offerDescription in offer.getDescriptionList() %}
{% set offerDescriptionSliderImages = offerDescription.getEntityDescriptionSliderImages() %}
{% if offerDescriptionSliderImages|length > 0 %}
<div class=\"sale-description-carousel\">
<div id=\"saleDescriptionSliderFor{{ offerDescription.getID() }}\"
class=\"sale-description-slider-for\">
{% for offerDescriptionSliderImage in offerDescriptionSliderImages %}
<div><img data-lazy=\"{{ offerDescriptionSliderImage.getImageUrl() }}\"/>
</div>
{% endfor %}
</div>
</div>
{% endif %}
{{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw }}
{% endfor %}
</div>
</div>
<div id=\"offerAddressTab\" class=\"mx-1 mt-5\">
<div class=\"offer-titles\"><h5 class=\"mb-2\">Контакты</h5></div>
<div class=\"mb-4 logo-title\">
{{ offer.getLogo()|raw }}
</div>
<div class=\"p-m-0\">
{% if geoLocations.count() > 0 %}
{% if geoLocations|length > 0 %}
<div id=\"offerGeoLocationData\" data-json=\"{{ offerGeoLocationData }}\"></div>
<div id=\"offerMapWrapper\" class=\"category-map-wrapper my-3\">
<div id=\"offerMap\" class=\"category-map\"></div>
<a id=\"setUserLocationBtn\" href=\"#\">Указать местоположение</a>
<div id=\"zoomIn\"></div>
<div id=\"zoomOut\"></div>
<a id=\"mapEnterFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Развернуть</a>
<a id=\"mapExitFullscreen\" href=\"#\" class=\"fullscreen-map-button\">Свернуть</a>
</div>
{% endif %}
{% endif %}
{% for geoLocation in geoLocations %}
<div class=\"mb-3 my-3\">
<div class=\"sf-bold-font\">{{ geoLocation.getCity() }}, {{ geoLocation.getStreet() }}, {{ geoLocation.getHouse() }} {{ geoLocation.getLabel() }}</div>
{% set phoneNumbers = geoLocation.getPhoneNumbers() %}
{% if phoneNumbers|length > 0 %}
{% endif %}
{% for phoneNumber in phoneNumbers %}
{% include 'Slivki/mobile/offer/phone_number_btn.html.twig' with {'phoneNumber': phoneNumber} only %}
{% endfor %}
{% if geoLocation.getWorkingHours()|trim != '' %}
<div>Время работы:</div> {{ geoLocation.getWorkingHours()|raw }}
{% endif %}
</div>
{% endfor %}
{% if phoneNumbersWithoutGeoLocations|length > 0 %}
{% if geoLocations|length > 0 %}
<br>
{% endif %}
<div id=\"phoneOffers\" class=\"mb-2\">
<div class=\"mb-2\">
<strong>Телефон{{ phoneNumbersWithoutGeoLocations|length > 1 ? 'ы' }}:</strong>
</div>
{% for phoneNumber in phoneNumbersWithoutGeoLocations %}
{% include 'Slivki/mobile/offer/phone_number_btn.html.twig' with {'phoneNumber': phoneNumber} only %}
{% endfor %}
</div>
</div>
{% endif %}
{% set commonWoringHours = offer.getCommonWorkingHours() %}
{% if commonWoringHours != '' %}
<br>
<div><strong>Время работы:</strong></div>
{{ commonWoringHours|raw }}
<br><br>
{% endif %}
{{ offer.getLegal()|raw }}
{% if offer.getTelegram() != null or offer.getViber() != null %}
<div class=\"contact-container d-flex flex-column py-2 px-1\">
<div class=\"contact-item\" data-toggle=\"modal\" data-target=\"#contactPopup\">
<p>Написать</p>
</div>
</div>
{% endif %}
</div>
{% include 'Slivki/offers/share.html.twig' %}
</div>
<div id=\"offerCommentTab\" class=\"pt-2 px-0\">
<div>
{{ comments|raw }}
</div>
</div>
</div>
</div>
{% if preview %}
<input type=\"hidden\" id=\"offerPreview\" value=\"1\">
{% else %}
<input type=\"hidden\" id=\"offerPreview\" value=\"0\">
{% endif %}
</div>
{% if showGlobalcard %}
{% include 'Slivki/mobile/offer/globalcard.html.twig' %}
{% elseif showGlobalcardFitness %}
{% include 'Slivki/mobile/offer/globalcard_fitness.html.twig' %}
{% endif %}
{% endblock %}
{% block popup %}
{% include 'Slivki/popups/header_offers.html.twig' %}
{% include 'Slivki/popups/mail_offers.html.twig' %}
{% include \"Slivki#{regional_template_path}/jivosite/modal_mobile.html.twig\" %}
{% if galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
{% include 'Slivki/popups/details-story-popup.html.twig' %}
{% endif %}
{% include 'Slivki/orderAsGift/foodForGift.html.twig' with {'deliveryLink': deliveryLink} %}
{% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::PAYMENT_PAYME')) %}
{% include 'Slivki/uz/mobile/buy_promo.twig' %}
{% endif %}
{% if app.user %}
{% include 'Slivki/popups/rating_edit_popup.html.twig' %}
{% include 'Slivki/mobile/popup/popup_subscription_limited.html.twig' %}
{% include 'Slivki/mobile/subscription/buy_promo_popup.html.twig' %}
{% include 'Slivki/mobile/popup/confirm_subscription_card_popup.html.twig' with {'creditCards': app.user.getActiveCreditCards()} %}
{% include 'Slivki/mobile/popup/buy_codes_avways_app.html.twig' %}
{% include 'Slivki/popups/add_favourite_popup.html.twig' %}
{% include 'Slivki/popups/delete_favourite_popup.html.twig' %}
{% include 'Slivki/popups/delete_comment_popup.html.twig' with {id: 'deleteCommentConfirmPopup'} %}
{% else %}
{% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
{% endif %}
{% include 'Slivki/popups/comment_media_block_popup.html.twig' %}
{% include 'Slivki/mobile/popup/add_comment_popup.html.twig' %}
{% include 'Slivki/popups/edit_comment_popup.html.twig' with {'id': 'editVoteBox'} %}
{% include 'Slivki/popups/comment_censor_message.html.twig' with {'id': 'commentCensorMessage'} %}
{% include 'Slivki/mobile/share_block.html.twig' %}
{% include 'Slivki/mobile/popup/statistics_popup.html.twig' %}
{% include 'Slivki/mobile/delivery/modal/details.html.twig' with {'isOfferPage': true} %}
{% if items|length > 0 %}
{% include 'Slivki/mobile/offer/extension/item/items_popup.html.twig' %}
{% endif %}
{% if offer.getID() == constant('Slivki\\\\Entity\\\\Offer::BOOKING_OFFER_ID') %}
{% include 'Slivki/mobile/offer/booking_popup.html.twig' %}
{% endif %}
{{ parent() }}
{% if offer.isGiftCertificateOffer() %}
{% include 'Slivki/popups/step_buy_certificate.twig' with {'deliveryLink': deliveryLink} %}
{% endif %}
{% include 'Slivki/mobile/popup/loading_popup.html.twig' %}
{% include 'Slivki/mobile/popup/contact_popup.html.twig' %}
{% endblock %}
{% block brandingBanner %}
{% if not (app.user and app.user.hasRole(constant('\\\\Slivki\\\\Entity\\\\UserGroup::ROLE_ADS_FREE'))) %}
{% set brandingBanner = getBrandingBanner(app.user, brandingBannerCategoryIDs is defined ? brandingBannerCategoryIDs : [], offer is defined ? offer.getID()) %}
{% if brandingBanner and brandingBanner.getMobileDivider() %}
<input type=\"hidden\" id=\"brandingBannerImage\" value=\"{{ brandingBanner.getMobileDivider() }}\"
data-oid=\"{{ brandingBanner.getID() }}\" data-id=\"{{ brandingBanner.getBannerID() }}\"
data-branding=\"{{ brandingBanner.getBannerID() }}\" data-url=\"{{ brandingBanner.getUrl()|trim }}\"
data-right-side-url=\"{{ brandingBanner.getRightSideUrl()|trim }}\">
{% endif %}
{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"/js/jquery.jcarousel.min.js?v=1\"></script>
<script src=\"/js/story-slider/story-slider-js.js?v={{ story_slider_js_version }}\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js\"
integrity=\"sha512-jNDtFf7qgU0eH/+Z42FG4fw3w7DM/9zbgNPe3wfJlCylVDTT3IgKW5r92Vy9IHa6U50vyMz5gRByIu4YIXFtaQ==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
<script type=\"text/javascript\">
\$(function () {
\$('#floatingBanner').addClass('offer-details-floating-banner');
});
</script>
<!-- Moment -->
<script src=\"/admin/plugins/moment/moment-with-locales.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js\"></script>
<script src=\"/js/swiper-js/swiper.min.js\"></script>
<script src=\"/js/offer-new.js?v={{ offer_new_js_version }}\"/>
<script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU\" type=\"text/javascript\"></script>
<script src=\"https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js\"></script>
<script src=\"https://yastatic.net/share2/share.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/fecha/2.3.3/fecha.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
<!-- date-time-picker -->
<script src=\"/admin/plugins/datetimepicker/js/bootstrap-datetimepicker.min.js\"></script>
<!-- colorpicker -->
<script src=\"/admin/plugins/colorpicker/bootstrap-colorpicker.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.js\"
integrity=\"sha512-zlWWyZq71UMApAjih4WkaRpikgY9Bz1oXIW5G0fED4vk14JjGlQ1UmkGM392jEULP8jbNMiwLWdM8Z87Hu88Fw==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
<script src=\"/mobile/js/offer.min.js?v={{ offer_js_version }}\"></script>
<script type=\"text/javascript\" src=\"/js/statistics_offer/statistics_offer.js?v={{ statistics_offer_js_version }}\" charset=\"utf-8\"></script>
<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>
<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>
<script src=\"/js/ajaxupload.3.5.js?v=1\"></script>
<script src=\"/js/mobile-rating.js?v=2\"></script>
<script>
uploadPhoto('/comment/image_upload', '/comment/image_remove');
initImageRemove();
</script>
<script type=\"text/javascript\">
{% if app.request.query.has('checkOrder') %}
initCheckOfferOrderStatus({{ app.request.get('checkOrder') }});
{% endif %}
</script>
<script src=\"/js/offer/offerDescriptionItems.js?v={{ offer_description_items_js_version }}\"></script>
<script type=\"module\" src=\"/js/work_examples/work_examples.js?v={{ work_examples_js_version }}\"></script>
<script type=\"module\" src=\"/js/beauty/masters.js?v={{ beauty_masters_js_version }}\"></script>
{% endblock %}
{% block RTBHouse %}
<script>
try{ (function() {
var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_offer_\"+document.getElementById('offerID').value); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
var ifr = document.createElement(\"iframe\"),
sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
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]);}
ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
})();} catch(e) {} </script>
{% endblock %}", "Slivki/mobile/offer/details.html.twig", "/mnt/data/virtwww/slivki/templates/Slivki/mobile/offer/details.html.twig");
}
}