<?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 id=\"isMedicalCenter\" type=\"hidden\"
value=\"";
// line 49
echo twig_escape_filter($this->env, ((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 49, $this->source); })()) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 49, $this->source); })()), 0, [], "array", false, false, false, 49), "getID", [], "method", false, false, false, 49), twig_constant("Slivki\\Entity\\Category::MEDICAL_CENTER_CATEGORY_ID")))), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"stock-id\" value=\"";
// line 50
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.', 50, $this->source); })()), "getID", [], "method", false, false, false, 50), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"stock-link\" value=\"";
// line 51
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.', 51, $this->source); })()), "request", [], "any", false, false, false, 51), "getSchemeAndHttpHost", [], "method", false, false, false, 51) . 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.', 51, $this->source); })()), "request", [], "any", false, false, false, 51), "getRequestUri", [], "method", false, false, false, 51)), "html", null, true);
echo "\">
<div type=\"hidden\" id=\"mobileVersionIndicator\"></div>
";
// line 53
if ((twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 53, $this->source); })()), "user", [], "any", false, false, false, 53) && $this->env->getRuntime('Slivki\Twig\SubscriptionTwigRuntime')->isSubscriber(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 53, $this->source); })()), "user", [], "any", false, false, false, 53)))) {
// line 54
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.', 54, $this->source); })()), "html", null, true);
echo "\">
";
}
// line 56
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.', 56, $this->source); })()), "user", [], "any", false, false, false, 56)) {
// line 57
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.', 57, $this->source); })()), "user", [], "any", false, false, false, 57), "getCodesCountByOffer", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 57, $this->source); })())], "method", false, false, false, 57), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"customerID\" value=\"";
// line 58
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.', 58, $this->source); })()), "user", [], "any", false, false, false, 58), "getID", [], "method", false, false, false, 58), "html", null, true);
echo "\"/>
";
}
// line 60
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.', 60, $this->source); })()), "metaDescription", [], "any", false, false, false, 60), "html", null, true);
echo "\"/>
<div id=\"offerDetails\">
<div class=\"collapse-more-button\"></div>
";
// line 63
$context["isOfferFavourite"] = ((twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 63, $this->source); })()), "user", [], "any", false, false, false, 63)) ? (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.', 63, $this->source); })()), "user", [], "any", false, false, false, 63), "isOfferFavourite", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 63, $this->source); })())], "method", false, false, false, 63)) : (false));
// line 64
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-violet.svg\"/>
</div>
";
// line 70
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 70, $this->source); })()), "user", [], "method", false, false, false, 70)) {
// line 71
echo " <div class=\"fovoutite-block\"
onclick=\"onFavouriteClickOffer(";
// line 72
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.', 72, $this->source); })()), "getID", [], "method", false, false, false, 72), "html", null, true);
echo ", ";
echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite", $context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.', 72, $this->source); })())) ? ("true") : ("false"));
echo ")\">
<img width=\"18\" height=\"18\"
src=\"";
// line 74
echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite", $context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.', 74, $this->source); })())) ? ("/images/heart_active.svg") : ("/images/heart.svg"));
echo "\"/>
</div>
";
}
// line 77
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.', 77, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 77)) {
// line 78
echo " <div class=\"discount-block\">
";
// line 79
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.', 79, $this->source); })()), "getDiscount", [], "method", false, false, false, 79), "html", null, true);
echo "
</div>
";
}
// line 82
echo " ";
if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 82, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 82))) {
// line 83
echo " <div id=\"statisticsButton\" data-toggle=\"modal\" data-target=\"#statisticOffersPopup\">
<img width=\"37\" height=\"37\" src=\"/images/statistics.png\"/>
</div>
";
}
// line 87
echo " <div class=\"swiper-wrapper\"
data-pixel=";
// line 88
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.', 88, $this->source); })()), "getID", [], "method", false, false, false, 88), twig_constant("Slivki\\Entity\\Offer::BETERA_OFFER_ID")))) ? ("https://amc.yandex.ru/show?cmn_id=26372&plt_id=194140&crv_id=464042&evt_t=render&ad_type=banner&rnd=%system.random%") : (""));
echo ">
";
// line 89
$context["medias"] = twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 89, $this->source); })()), "getDetailMedias", [], "method", false, false, false, 89);
// line 90
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.', 90, $this->source); })()));
// line 91
echo " ";
if ((1 === twig_compare((isset($context["mediaCount"]) || array_key_exists("mediaCount", $context) ? $context["mediaCount"] : (function () { throw new RuntimeError('Variable "mediaCount" does not exist.', 91, $this->source); })()), 1))) {
// line 92
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.', 92, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 93
echo " <div class=\"swiper-slide\">
";
// line 94
if (twig_get_attribute($this->env, $this->source, $context["media"], "isYoutube", [], "method", false, false, false, 94)) {
// line 95
echo " <input class=\"js-src-video\" type=\"hidden\" value=\"https://www.youtube.com/embed/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getName", [], "method", false, false, false, 95), "html", null, true);
echo "\">
";
} else {
// line 97
echo " <img class=\"img-fluid lazyload\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 97), "html", null, true);
echo "\"
src=\"";
// line 98
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 1044, 644), "html", null, true);
echo "\"/>
";
}
// line 100
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 102
echo " ";
} elseif ((0 === twig_compare((isset($context["mediaCount"]) || array_key_exists("mediaCount", $context) ? $context["mediaCount"] : (function () { throw new RuntimeError('Variable "mediaCount" does not exist.', 102, $this->source); })()), 1))) {
// line 103
echo " <div>
<img class=\"img-fluid lazyload\" alt=\"";
// line 104
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.', 104, $this->source); })()), 0, [], "array", false, false, false, 104), "getDescription", [], "method", false, false, false, 104), "html", null, true);
echo "\"
src=\"";
// line 105
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL(twig_get_attribute($this->env, $this->source, (isset($context["medias"]) || array_key_exists("medias", $context) ? $context["medias"] : (function () { throw new RuntimeError('Variable "medias" does not exist.', 105, $this->source); })()), 0, [], "array", false, false, false, 105), 1044, 644), "html", null, true);
echo "\"/>
</div>
";
}
// line 108
echo " </div>
";
// line 109
if ((1 === twig_compare((isset($context["mediaCount"]) || array_key_exists("mediaCount", $context) ? $context["mediaCount"] : (function () { throw new RuntimeError('Variable "mediaCount" does not exist.', 109, $this->source); })()), 1))) {
// line 110
echo " <div class=\"swiper-pagination mt-2\"></div>
<div class=\"swiper-button-next\"></div>
<div class=\"swiper-button-prev\"></div>
";
}
// line 114
echo " </div>
</div>
<div class=\"container-offers\">
<div class=\"tags-offers\">
";
// line 118
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 118, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 118)) {
// line 119
echo " <div class=\"tags-offers-item\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-html=\"true\"
data-original-title=\"Взято кодов <br> Всего <a>";
// line 123
echo twig_escape_filter($this->env, ((array_key_exists("multiplePoolOfferUsedCodesCount", $context)) ? ((isset($context["multiplePoolOfferUsedCodesCount"]) || array_key_exists("multiplePoolOfferUsedCodesCount", $context) ? $context["multiplePoolOfferUsedCodesCount"] : (function () { throw new RuntimeError('Variable "multiplePoolOfferUsedCodesCount" does not exist.', 123, $this->source); })())) : ((isset($context["usedCodesCount"]) || array_key_exists("usedCodesCount", $context) ? $context["usedCodesCount"] : (function () { throw new RuntimeError('Variable "usedCodesCount" does not exist.', 123, $this->source); })()))), "html", null, true);
echo "</a> </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.', 123, $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.', 123, $this->source); })()), "getID", [], "method", false, false, false, 123), 30), "html", null, true);
echo "\">
<img src=\"/images/offers/icon_people.svg\"/>
<p class=\"mb-0\"><a>";
// line 126
echo twig_escape_filter($this->env, ((array_key_exists("multiplePoolOfferUsedCodesCount", $context)) ? ((isset($context["multiplePoolOfferUsedCodesCount"]) || array_key_exists("multiplePoolOfferUsedCodesCount", $context) ? $context["multiplePoolOfferUsedCodesCount"] : (function () { throw new RuntimeError('Variable "multiplePoolOfferUsedCodesCount" does not exist.', 126, $this->source); })())) : ((isset($context["usedCodesCount"]) || array_key_exists("usedCodesCount", $context) ? $context["usedCodesCount"] : (function () { throw new RuntimeError('Variable "usedCodesCount" does not exist.', 126, $this->source); })()))), "html", null, true);
echo "</a></p>
</div>
";
}
// line 129
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 133
echo twig_escape_filter($this->env, (isset($context["todayVisitCount"]) || array_key_exists("todayVisitCount", $context) ? $context["todayVisitCount"] : (function () { throw new RuntimeError('Variable "todayVisitCount" does not exist.', 133, $this->source); })()), "html", null, true);
echo "<br> За месяц <span class='m-0'><a>";
echo twig_escape_filter($this->env, (isset($context["visitCount"]) || array_key_exists("visitCount", $context) ? $context["visitCount"] : (function () { throw new RuntimeError('Variable "visitCount" does not exist.', 133, $this->source); })()), "html", null, true);
echo "</a></span>\">
<img src=\"/images/offers/statistic_1.svg\"/>
<p class=\"mb-0\">";
// line 135
echo twig_escape_filter($this->env, (isset($context["visitCount"]) || array_key_exists("visitCount", $context) ? $context["visitCount"] : (function () { throw new RuntimeError('Variable "visitCount" does not exist.', 135, $this->source); })()), "html", null, true);
echo "</p>
</div>
";
// line 138
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 138, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 138)) {
// line 139
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 145
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getOfferConversion(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 145, $this->source); })()), "getID", [], "method", false, false, false, 145)), "html", null, true);
echo "%</p>
</div>
";
}
// line 148
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 154
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.', 154, $this->source); })()), "getRating", [], "method", false, false, false, 154), "html", null, true);
echo "</p>
</div>
";
// line 156
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 156, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 156)) {
// line 157
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 165
if ((1 === twig_compare((isset($context["daysLeft"]) || array_key_exists("daysLeft", $context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.', 165, $this->source); })()), 0))) {
// line 166
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.', 166, $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.', 166, $this->source); })())), "html", null, true);
echo "
";
} elseif ((0 === twig_compare( // line 167
(isset($context["daysLeft"]) || array_key_exists("daysLeft", $context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.', 167, $this->source); })()), 0))) {
// line 168
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.', 168, $this->source); })()), "html", null, true);
echo " \"/>
<input type=\"hidden\" id=\"hoursLeft\" value=\"";
// line 169
echo twig_escape_filter($this->env, (isset($context["hoursLeft"]) || array_key_exists("hoursLeft", $context) ? $context["hoursLeft"] : (function () { throw new RuntimeError('Variable "hoursLeft" does not exist.', 169, $this->source); })()), "html", null, true);
echo " \"/>
<input type=\"hidden\" id=\"minutesLeft\" value=\"";
// line 170
echo twig_escape_filter($this->env, (isset($context["minutesLeft"]) || array_key_exists("minutesLeft", $context) ? $context["minutesLeft"] : (function () { throw new RuntimeError('Variable "minutesLeft" does not exist.', 170, $this->source); })()), "html", null, true);
echo " \"/>
<input type=\"hidden\" id=\"secondsLeft\"
value=\"";
// line 172
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.', 172, $this->source); })()), "getActiveTill", [], "method", false, false, false, 172), "diff", [0 => twig_date_converter($this->env)], "method", false, false, false, 172), "format", [0 => "%s"], "method", false, false, false, 172), "html", null, true);
echo "\"/>
<span id=\"hours\">";
// line 173
echo twig_escape_filter($this->env, (isset($context["hoursLeft"]) || array_key_exists("hoursLeft", $context) ? $context["hoursLeft"] : (function () { throw new RuntimeError('Variable "hoursLeft" does not exist.', 173, $this->source); })()), "html", 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.', 173, $this->source); })())), "html", null, true);
echo "
";
}
// line 175
echo " </p>
</div>
";
}
// line 178
echo " </div>
<p class=\"tittle-offers js-tittle-offer\"
style=\"color: ";
// line 180
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.', 180, $this->source); })()), "getTitleFontColor", [], "method", false, false, false, 180), "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.', 180, $this->source); })()), "getTitle", [], "method", false, false, false, 180);
echo "</p>
<div class=\"offers-description\">
";
// line 182
if (( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 182, $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.', 182, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 182), 0)))) {
// line 183
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 186
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.', 186, $this->source); })()), "getRegularPrice", [], "method", false, false, false, 186), "html", null, true);
echo "</del>
<div class=\"price-services-new\">";
// line 188
echo twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 188, $this->source); })()), "getOfferPrice", [], "method", false, false, false, 188), ["(" => "<span id=\"details-offer-price\">(", ")" => ")</span>"]);
echo "</div>
<input type=\"hidden\" id=\"codeCost\" value=\"";
// line 189
echo twig_escape_filter($this->env, (isset($context["codeCost"]) || array_key_exists("codeCost", $context) ? $context["codeCost"] : (function () { throw new RuntimeError('Variable "codeCost" does not exist.', 189, $this->source); })()), "html", null, true);
echo "\">
</div>
";
} else {
// line 192
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 199
echo " </div>
</div>
</div>
";
// line 202
if (((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 202, $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.', 202, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 202), 0))) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 202, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 202)) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 202, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 202))) {
// line 203
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>
</a>
</div>
";
}
// line 212
echo " ";
if ((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 212, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 212, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 212)) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE")))) {
// line 215
echo "
<div class=\"col my-2\">
";
// line 217
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 217, $this->source); })()), "user", [], "any", false, false, false, 217)) {
// line 218
echo " <a class=\"button-gift\" href=\"/virtual-wallet-pay\">
<div class=\"button-gift-text\">
<p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
<p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
";
} else {
// line 228
echo " <a class=\"button-gift\" data-toggle=\"modal\" data-target=\".modal-auth\">
<div class=\"button-gift-text\">
<p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
<p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
";
}
// line 238
echo " </div>
";
}
// line 240
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.', 240, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 240) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 240, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 240))) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 240, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 240), "allowedPaymentMethods", [], "any", false, false, false, 240), "delivery", [], "array", false, false, false, 240), 4, [], "array", false, false, false, 240), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) && !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 240, $this->source); })())) || ((((twig_get_attribute($this->env, $this->source, // line 241
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 241, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 241) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 241, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 241))) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 241, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 241), "allowedPaymentMethods", [], "any", false, false, false, 241), "pickup", [], "array", false, false, false, 241), 4, [], "array", false, false, false, 241), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) && !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 241, $this->source); })())))) {
// line 242
echo " <div class=\"col my-2\">
";
// line 243
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 243, $this->source); })()), "user", [], "any", false, false, false, 243)) {
// line 244
echo " <a class=\"button-gift\" href=\"/virtual-wallet-pay\">
<div class=\"button-gift-text\">
<p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
<p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
";
} else {
// line 254
echo " <a class=\"button-gift\" data-toggle=\"modal\" data-target=\".modal-auth\">
<div class=\"button-gift-text\">
<p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
<p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
";
}
// line 264
echo " </div>
";
}
// line 266
echo " <div class=\"sticky-element\">
<div class=\"sticky-anchor\"></div>
<div id=\"offerNavigation\">
<ul class=\"nav-list\">
<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 286
if ((twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 286, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 286) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 286, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 286))) {
// line 287
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.', 287, $this->source); })()), "user", [], "any", false, false, false, 287)) {
// line 288
echo " <div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
<div id=\"buyButtonCard\" class=\"card\">
<div class=\"card-header\">
<a id=\"deliveryBtn\" href=\"#\" onclick=\"\$('.modal-auth').modal()\"
class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
// line 292
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 292, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 292)) ? (" opacity-05") : (""));
echo "\">
Онлайн-запись
</a>
</div>
</div>
</div>
";
} else {
// line 299
echo " <div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
<div id=\"buyButtonCard\" class=\"card\">
<div class=\"card-header\">
<a id=\"deliveryBtn\" href=\"";
// line 302
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); })()), "getOnlineRegistrationLink", [], "method", false, false, false, 302), "html", null, true);
echo "\"
class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
// line 303
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 303, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 303)) ? (" opacity-05") : (""));
echo "\">
Онлайн-запись
</a>
</div>
</div>
</div>
";
}
// line 310
echo "
";
}
// line 312
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.', 312, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 312)) {
// line 313
echo " <div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
";
// line 314
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 314, $this->source); })()), "isBuyCodeDisable", [], "method", false, false, false, 314)) {
// line 315
echo " <div id=\"buyButtonCard\" class=\"card\">
<div class=\"card-header\">
";
// line 317
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.', 317, $this->source); })()), "getID", [], "method", false, false, false, 317), twig_constant("Slivki\\Entity\\Offer::BOOKING_OFFER_ID")))) {
// line 318
echo " <a href=\"#\" class=\"m-0 card-link bg-slivki\" data-toggle=\"modal\"
data-target=\"#bookingItemPopup\">
";
// line 320
(((twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 320, $this->source); })()), "getBuyCodeButtonText", [], "method", false, false, false, 320) && (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.', 320, $this->source); })()), "getBuyCodeButtonText", [], "method", false, false, false, 320), "")))) ? (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.', 320, $this->source); })()), "getBuyCodeButtonText", [], "method", false, false, false, 320), "html", null, true))) : (print ("Забронировать номер")));
echo "
</a>
";
} else {
// line 323
echo " ";
if (( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 323, $this->source); })()) && (1 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 323, $this->source); })()), 0)))) {
// line 324
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.', 324, $this->source); })()), "user", [], "any", false, false, false, 324)) {
// line 325
echo " <a href=\"#\" class=\"m-0 card-link bg-slivki by-code-button text-uppercase\"
onclick=\"\$('.modal-auth').modal()\">
";
// line 327
if ((isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 327, $this->source); })())) {
// line 328
echo " БЕСПЛАТНЫЙ ПРОМОКОД
";
} else {
// line 330
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.', 330, $this->source); })()), "html", null, true);
echo "
";
}
// line 332
echo " </a>
";
} else {
// line 334
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 339
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.', 339, $this->source); })()), "getID", [], "method", false, false, false, 339), twig_constant("Slivki\\Entity\\Offer::PETROL_OFFER_ID")))) {
// line 340
echo " <a href=\"#\"
onclick=\"showFakeButton(); if (window.google_tag_manager) {ga('send', 'event', 'Buy code', 'Click', '";
// line 341
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Default:details", twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 341, $this->source); })()), "getID", [], "method", false, false, false, 341)), "html", null, true);
echo "');} document.location='/oplata-promokoda-azs'\"
class=\"m-0 card-link bg-slivki by-code-button\" id=\"buyCodeButton\">
";
// line 343
if ((isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 343, $this->source); })())) {
// line 344
echo " БЕСПЛАТНЫЙ ПРОМОКОД
";
} else {
// line 346
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.', 346, $this->source); })()), "html", null, true);
echo "
";
}
// line 348
echo " </a>
";
} else {
// line 350
echo " ";
if ((isset($context["isAllowedByOnlyCode"]) || array_key_exists("isAllowedByOnlyCode", $context) ? $context["isAllowedByOnlyCode"] : (function () { throw new RuntimeError('Variable "isAllowedByOnlyCode" does not exist.', 350, $this->source); })())) {
// line 351
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.', 351, $this->source); })()), "user", [], "any", false, false, false, 351) && ($this->env->getRuntime('Slivki\Twig\SubscriptionTwigRuntime')->isSubscriber(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 351, $this->source); })()), "user", [], "any", false, false, false, 351)) || (isset($context["isBatchCodesAllowed"]) || array_key_exists("isBatchCodesAllowed", $context) ? $context["isBatchCodesAllowed"] : (function () { throw new RuntimeError('Variable "isBatchCodesAllowed" does not exist.', 351, $this->source); })()))) && !(isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 351, $this->source); })())) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 351, $this->source); })()), "isBuyCodeInAppOnly", [], "method", false, false, false, 351))) {
// line 352
echo " <a href=\"#\" onclick=\"\$('#buyPromoPopup').modal()\"
class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
id=\"buyCodeButton\">
";
// line 355
echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel", $context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.', 355, $this->source); })()), "html", null, true);
echo "
</a>
";
} else {
// line 358
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.', 358, $this->source); })()), "user", [], "any", false, false, false, 358)) {
// line 359
echo " <a href=\"#\" onclick=\"\$('.modal-auth').modal()\"
class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
id=\"buyCodeButton\">
";
// line 362
echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel", $context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.', 362, $this->source); })()), "html", null, true);
echo "
</a>
";
}
// line 365
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.', 365, $this->source); })()), "isBuyCodeInAppOnly", [], "method", false, false, false, 365)) {
// line 366
echo " <a class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
id=\"buyCodeButton\"
onclick=\"\$('#byCodesAlwaysApp').modal()\">
";
// line 369
echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel", $context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.', 369, $this->source); })()), "html", null, true);
echo "
</a>
";
} elseif ( !twig_get_attribute($this->env, $this->source, // line 371
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 371, $this->source); })()), "isBuyCodeInAppOnly", [], "method", false, false, false, 371)) {
// line 372
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 373
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 378
echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel", $context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.', 378, $this->source); })()), "html", null, true);
echo "
</a>
";
} else {
// line 381
echo " <a href=\"#\"
onclick=\"if (window.google_tag_manager) {ga('send', 'event', 'Buy code', 'Click', '";
// line 382
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Default:details", twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 382, $this->source); })()), "getID", [], "method", false, false, false, 382)), "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.', 382, $this->source); })()), "#confirmBox")) && (isset($context["canBuyFromBalance"]) || array_key_exists("canBuyFromBalance", $context) ? $context["canBuyFromBalance"] : (function () { throw new RuntimeError('Variable "canBuyFromBalance" does not exist.', 382, $this->source); })()))) ? ("/oplata-balance/") : ("/oplata/"));
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.', 382, $this->source); })()), "getID", [], "method", false, false, false, 382), "html", null, true);
echo "'\"
class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
id=\"buyCodeButton\">
";
// line 385
echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel", $context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.', 385, $this->source); })()), "html", null, true);
echo "
</a>
";
}
// line 388
echo " ";
}
// line 389
echo " ";
}
// line 390
echo " ";
}
// line 391
echo " ";
}
// line 392
echo " ";
}
// line 393
echo " ";
} else {
// line 394
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.', 394, $this->source); })()), "html", null, true);
echo "\" class=\"m-0 card-link bg-slivki color-white\">Посмотреть
похожие предложения</a>
";
}
// line 397
echo " ";
}
// line 398
echo " </div>
</div>
";
}
// line 401
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.', 401, $this->source); })())), 0))) {
// line 402
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 406
(((twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 406, $this->source); })()), "getBuyItemsButtonText", [], "method", false, false, false, 406) && (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.', 406, $this->source); })()), "getBuyItemsButtonText", [], "method", false, false, false, 406), "")))) ? (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.', 406, $this->source); })()), "getBuyItemsButtonText", [], "method", false, false, false, 406), "html", null, true))) : (print ("Оплатить сейчас по карте")));
echo "
</a>
</div>
</div>
";
}
// line 411
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.', 411, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 411), 0)))) {
// line 412
echo " <div id=\"deliveryButtonCard\" class=\"card\">
<div class=\"card-header bg-transparent\">
";
// line 414
if ( !twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 414, $this->source); })()), "user", [], "any", false, false, false, 414)) {
// line 415
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.', 415, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 415)) {
// line 416
echo " <a id=\"deliveryBtn\" href=\"#\" onclick=\"\$('.modal-auth').modal()\"
class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
// line 417
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 417, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 417)) ? (" opacity-05") : (""));
echo "\">
Онлайн-запись
</a>
";
}
// line 421
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.', 421, $this->source); })()), "getID", [], "method", false, false, false, 421)))) {
// line 422
echo " <a href=\"#\" onclick=\"\$('.modal-auth').modal()\"
class=\"card-link ml-0 py-3 bg-violet text-white rounded-14 text-uppercase";
// line 423
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 423, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 423)) ? (" opacity-05") : (""));
echo "\">
ПОЛУЧИТЬ СКИДКУ ";
// line 424
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.', 424, $this->source); })()), "getDiscount", [], "method", false, false, false, 424), "html", null, true);
echo "
</a>
";
} else {
// line 427
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.', 427, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 427) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 427, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 427)) && (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.', 427, $this->source); })()), "getID", [], "method", false, false, false, 427), 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.', 427, $this->source); })()), "getID", [], "method", false, false, false, 427), 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.', 427, $this->source); })()), "getID", [], "method", false, false, false, 427), 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.', 427, $this->source); })()), "getID", [], "method", false, false, false, 427), 288772)))) {
// line 428
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.', 428, $this->source); })()), "html", null, true);
echo "\"
class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
// line 429
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 429, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 429)) ? (" opacity-05") : (""));
echo "\">
Оплатить онлайн ";
// line 430
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.', 430, $this->source); })()), "getDiscount", [], "method", false, false, false, 430), "html", null, true);
echo "
</a>
";
} elseif ((((twig_get_attribute($this->env, $this->source, // line 432
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 432, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 432) && (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.', 432, $this->source); })()), "getID", [], "method", false, false, false, 432), 288763))) || (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 432, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 432) && (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.', 432, $this->source); })()), "getID", [], "method", false, false, false, 432), 288779)))) || (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 432, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 432) && (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.', 432, $this->source); })()), "getID", [], "method", false, false, false, 432), 288772))))) {
// line 433
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.', 433, $this->source); })()), "html", null, true);
echo "\"
class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
// line 434
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 434, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 434)) ? (" opacity-05") : (""));
echo "\">
Получить скидку ";
// line 435
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.', 435, $this->source); })()), "getDiscount", [], "method", false, false, false, 435), "html", null, true);
echo "
</a>
";
} elseif (( !twig_get_attribute($this->env, $this->source, // line 437
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 437, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 437) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 437, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 437))) {
// line 438
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.', 438, $this->source); })()), "html", null, true);
echo "\"
class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
// line 439
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 439, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 439)) ? (" opacity-05") : (""));
echo "\">
Заказать онлайн ";
// line 440
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.', 440, $this->source); })()), "getDiscount", [], "method", false, false, false, 440), "html", null, true);
echo "
</a>
";
}
// line 443
echo " ";
}
// line 444
echo " ";
} else {
// line 445
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.', 445, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 445)) {
// line 446
echo " <a id=\"deliveryBtn\" href=\"";
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.', 446, $this->source); })()), "getOnlineRegistrationLink", [], "method", false, false, false, 446), "html", null, true);
echo "\"
class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
// line 447
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 447, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 447)) ? (" opacity-05") : (""));
echo "\">
Онлайн-запись
</a>
";
}
// line 451
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.', 451, $this->source); })()), "getID", [], "method", false, false, false, 451), twig_constant("Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS"))) {
// line 452
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.', 452, $this->source); })()));
// line 453
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.', 453, $this->source); })()), "html", null, true);
echo "\"
onclick=\"document.location = `";
// line 454
echo twig_escape_filter($this->env, (isset($context["deliveryBuyOnlyCodeLink"]) || array_key_exists("deliveryBuyOnlyCodeLink", $context) ? $context["deliveryBuyOnlyCodeLink"] : (function () { throw new RuntimeError('Variable "deliveryBuyOnlyCodeLink" does not exist.', 454, $this->source); })()), "html", null, true);
echo "`\"
class=\"card-link ml-0 py-3 bg-violet text-white rounded-14 text-uppercase";
// line 455
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 455, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 455)) ? (" opacity-05") : (""));
echo "\">
ПОЛУЧИТЬ СКИДКУ ";
// line 456
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.', 456, $this->source); })()), "getDiscount", [], "method", false, false, false, 456), "html", null, true);
echo "
</a>
";
} else {
// line 459
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.', 459, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 459) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 459, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 459))) {
// line 460
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.', 460, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 460) && (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.', 460, $this->source); })()), "getID", [], "method", false, false, false, 460), 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.', 460, $this->source); })()), "getID", [], "method", false, false, false, 460), 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.', 460, $this->source); })()), "getID", [], "method", false, false, false, 460), 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.', 460, $this->source); })()), "getID", [], "method", false, false, false, 460), 288772))) || (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 460, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 460) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 460, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 460)))) {
// line 461
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.', 461, $this->source); })())), "html", null, true);
echo "\"
onclick=\"document.location = `";
// line 462
echo twig_escape_filter($this->env, $this->env->getRuntime('Slivki\Twig\GetLinkOnlineOrderRuntime')->getLinkGiftCertificateOnlineOrder((isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 462, $this->source); })())), "html", null, true);
echo "`\"
class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
// line 463
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 463, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 463)) ? (" opacity-05") : (""));
echo "\">
Оплатить онлайн ";
// line 464
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.', 464, $this->source); })()), "getDiscount", [], "method", false, false, false, 464), "html", null, true);
echo "
</a>
";
} elseif ((((twig_get_attribute($this->env, $this->source, // line 466
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 466, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 466) && (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.', 466, $this->source); })()), "getID", [], "method", false, false, false, 466), 288763))) || (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 466, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 466) && (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.', 466, $this->source); })()), "getID", [], "method", false, false, false, 466), 288779)))) || (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 466, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 466) && (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.', 466, $this->source); })()), "getID", [], "method", false, false, false, 466), 288772))))) {
// line 467
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.', 467, $this->source); })())), "html", null, true);
echo "\"
onclick=\"document.location = `";
// line 468
echo twig_escape_filter($this->env, $this->env->getRuntime('Slivki\Twig\GetLinkOnlineOrderRuntime')->getLinkGiftCertificateOnlineOrder((isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 468, $this->source); })())), "html", null, true);
echo "`\"
class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
// line 469
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 469, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 469)) ? (" opacity-05") : (""));
echo "\">
Получить скидку ";
// line 470
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.', 470, $this->source); })()), "getDiscount", [], "method", false, false, false, 470), "html", null, true);
echo "
</a>
";
}
// line 473
echo " ";
} else {
// line 474
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.', 474, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 474)) {
// line 475
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.', 475, $this->source); })()), "html", null, true);
echo "\"
onclick=\"document.location = `";
// line 476
echo twig_escape_filter($this->env, (isset($context["deliveryLink"]) || array_key_exists("deliveryLink", $context) ? $context["deliveryLink"] : (function () { throw new RuntimeError('Variable "deliveryLink" does not exist.', 476, $this->source); })()), "html", null, true);
echo "`\"
class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
// line 477
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 477, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 477)) ? (" opacity-05") : (""));
echo "\">
Заказать онлайн ";
// line 478
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.', 478, $this->source); })()), "getDiscount", [], "method", false, false, false, 478), "html", null, true);
echo "
</a>
";
}
// line 481
echo " ";
}
// line 482
echo " ";
}
// line 483
echo " ";
}
// line 484
echo " </div>
</div>
";
}
// line 487
echo " </div>
";
}
// line 489
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 492
if (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 492, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 492) && (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.', 492, $this->source); })()), "getID", [], "method", false, false, false, 492), 140553)))) {
// line 493
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.', 493, $this->source); })()), "getCodeActiveTill", [], "method", false, false, false, 493);
// line 494
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.', 494, $this->source); })()), "getActiveTill", [], "method", false, false, false, 494), "-1 day");
// line 495
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.', 495, $this->source); })()), (isset($context["codeTill"]) || array_key_exists("codeTill", $context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.', 495, $this->source); })())))) ? ((isset($context["codeTill"]) || array_key_exists("codeTill", $context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.', 495, $this->source); })())) : ((isset($context["codeFrom"]) || array_key_exists("codeFrom", $context) ? $context["codeFrom"] : (function () { throw new RuntimeError('Variable "codeFrom" does not exist.', 495, $this->source); })())));
// line 496
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.', 496, $this->source); })()), "isHideFeatures", [], "method", false, false, false, 496)) {
// line 497
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.', 497, $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.', 497, $this->source); })()), "getID", [], "method", false, false, false, 497), 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.', 497, $this->source); })()), "d.m.y"), "html", null, true);
echo ".
<br/>
";
}
// line 500
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.', 500, $this->source); })()), "isShowPriceInConditions", [], "method", false, false, false, 500) && !(isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 500, $this->source); })()))) {
// line 501
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.', 501, $this->source); })()), "html", null, true);
echo " руб.
";
}
// line 502
echo "</p>
";
}
// line 504
echo "
";
// line 505
echo twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 505, $this->source); })()), "getConditions", [], "method", false, false, false, 505);
echo "
";
// line 507
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.', 507, $this->source); })()), "getID", [], "method", false, false, false, 507), 143528))) {
// line 508
echo " <br>
";
// line 509
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer2.html.twig", "Slivki/mobile/offer/details.html.twig", 509)->display($context);
// line 510
echo " <br>
";
} elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, // line 511
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 511, $this->source); })()), "getID", [], "method", false, false, false, 511), 282234))) {
// line 512
echo " ";
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer4.html.twig", "Slivki/mobile/offer/details.html.twig", 512)->display($context);
// line 513
echo " ";
}
// line 514
echo "
";
// line 515
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 515, $this->source); })()), "isHideFeatures", [], "method", false, false, false, 515)) {
// line 516
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.', 516, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 516)) {
// line 517
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.', 517, $this->source); })())) . "/phrase_subscription_in_offer_page.html.twig"), "Slivki/mobile/offer/details.html.twig", 517)->display($context);
// line 518
echo " ";
}
// line 519
echo " <br>
<div class=\"offer-titles\"><h5>Особенности</h5></div>
<div class=\"offer-details-conditions\">
";
// line 522
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 522, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 522)) {
// line 523
echo " - Скидка предоставляется только при наличии промокода.
";
}
// line 525
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.', 525, $this->source); })()), "getFeatures", [], "method", false, false, false, 525);
echo "
</div>
- Поставщик несет полную ответственность перед потребителем за достоверность информации.
";
}
// line 529
echo " <div id=\"endOfOfferCondition\"></div>
</div>
</div>
";
// line 532
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.', 532, $this->source); })()), "getShopMedias", [], "method", false, false, false, 532)), 0))) {
// line 533
echo " <div class=\"gallery-title offer-titles\"><h5>Галерея</h5></div>
";
}
// line 535
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.', 535, $this->source); })()), "getShopMedias", [], "method", false, false, false, 535)), 0)) || (0 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 535, $this->source); })()), 0)))) ? ("empty") : (""));
echo "\">
";
// line 536
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.', 536, $this->source); })()), "getShopMedias", [], "method", false, false, false, 536)), 0))) {
// line 537
echo " <div class=\"screenshot-container\">
";
// line 538
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 538) && (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.', 538, $this->source); })()), "getVideos", [], "method", false, false, false, 538)), 0)))) {
// line 539
echo " <div class=\"screenshot screenshot-story\" data-toggle=\"modal\"
data-target=\"#detailsStoryPopup\">
<img src=\"";
// line 541
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.', 541, $this->source); })()), "getImageUrl", [], "method", false, false, false, 541), "html", null, true);
echo "\" width=\"158\"
alt=\"Видео\" border=\"0\"/>
<div class=\"screenshot-story-btn\"></div>
<div class=\"screenshot-story-tittle\">";
// line 544
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.', 544, $this->source); })()), "getTitle", [], "method", false, false, false, 544), "html", null, true);
echo "</div>
</div>
";
}
// line 547
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.', 547, $this->source); })()), "getShopMedias", [], "method", false, false, false, 547));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 548
echo " <div class=\"screenshot\">
<a data-fancybox=\"gallery1\" href=\"";
// line 549
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 0, 0), "html", null, true);
echo "\"
title=\"";
// line 550
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 550), "html", null, true);
echo "\">
<img src=\"";
// line 551
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 300, 0), "html", null, true);
echo "\" width=\"158\"
alt=\"";
// line 552
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 552), "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 556
echo " </div>
";
}
// line 558
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 562
echo "</h5></div>
<div class=\"examples-works-tooltip-filter\">
<div class=\"tooltip-content\">
<div class=\"tooltip-title border-bottom-f d-flex\">Показать сначала:</div>
";
// line 566
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_constant("Slivki\\Paginator\\WorkExample\\WorkExamplePaginatorInterface::SORT"));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["key"] => $context["sortItem"]) {
// line 567
echo " <div class=\"radio\">
<input id=\"filter";
// line 568
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" type=\"radio\" name=\"filter\"
data-direction=\"";
// line 569
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "direction", [], "any", false, false, false, 569), "html", null, true);
echo "\"
value=\"";
// line 570
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "field", [], "any", false, false, false, 570), "html", null, true);
echo "\" ";
echo ((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 570)) ? ("checked") : (""));
echo ">
<label for=\"filter";
// line 571
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" class=\"cursor-pointer\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "name", [], "any", false, false, false, 571), "html", null, true);
echo "</label>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['sortItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 574
echo " <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=\"d-flex cursor-pointer\">Сортировка<img width=\"25\" class=\"pl-2\" src=\"/images/sort_image.svg\"/></div>
</div>
</div>
";
// line 604
$this->loadTemplate("Slivki/works-examples/examples_of_works_gallery.html.twig", "Slivki/mobile/offer/details.html.twig", 604)->display($context);
// line 605
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> ";
// line 609
echo ((((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 609, $this->source); })()) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 609, $this->source); })()), 0, [], "array", false, false, false, 609), "getID", [], "method", false, false, false, 609), twig_constant("Slivki\\Entity\\Category::MEDICAL_CENTER_CATEGORY_ID"))))) ? ("Врачи") : ("Найти своего мастера"));
echo "</h5>
</div>
";
// line 611
$this->loadTemplate("Slivki/beauty/beauty_masters.html.twig", "Slivki/mobile/offer/details.html.twig", 611)->display($context);
// line 612
echo " </div>
<div id=\"offersDescription\" class=\"offers-conditions mt-2 js-parallax-banner-after\"
style=\"padding-bottom: 22px;\">
";
// line 615
if (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 615, $this->source); })()), "isShowProductsInOfferDescription", [], "method", false, false, false, 615)) {
// line 616
echo " <div id=\"foodItemsBlock\" class=\"my-3\">
<div class=\"offer-titles mt-2\"><h5>Описание</h5></div>
";
// line 618
if (((isset($context["isPickupEnabled"]) || array_key_exists("isPickupEnabled", $context) ? $context["isPickupEnabled"] : (function () { throw new RuntimeError('Variable "isPickupEnabled" does not exist.', 618, $this->source); })()) && (isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled", $context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.', 618, $this->source); })()))) {
// line 619
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 635
echo " <div id=\"foodBlock\"></div>
<div id=\"foodOptionsBlock\"></div>
</div>
";
}
// line 639
echo " <div class=\"description\" id=\"descriptionText\">
";
// line 640
$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.', 640, $this->source); })()), "getDescriptionList", [], "method", false, false, false, 640));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescription"]) {
// line 641
echo " ";
$context["offerDescriptionSliderImages"] = twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getEntityDescriptionSliderImages", [], "method", false, false, false, 641);
// line 642
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.', 642, $this->source); })())), 0))) {
// line 643
echo " <div class=\"sale-description-carousel\">
<div id=\"saleDescriptionSliderFor";
// line 644
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getID", [], "method", false, false, false, 644), "html", null, true);
echo "\"
class=\"sale-description-slider-for\">
";
// line 646
$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.', 646, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescriptionSliderImage"]) {
// line 647
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, 647), "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 650
echo " </div>
</div>
";
}
// line 653
echo " ";
echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->addLazyAndLightboxImagesInDescription(twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getDescription", [], "method", false, false, false, 653));
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 655
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 660
echo twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 660, $this->source); })()), "getLogo", [], "method", false, false, false, 660);
echo "
</div>
<div class=\"p-m-0\">
";
// line 663
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.', 663, $this->source); })()), "count", [], "method", false, false, false, 663), 0))) {
// line 664
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.', 664, $this->source); })())), 0))) {
// line 665
echo " <div class=\"geo-location-block\">
";
// line 666
$this->loadTemplate("Slivki/offers/geo_location_data.html.twig", "Slivki/mobile/offer/details.html.twig", 666)->display(twig_to_array(["offer" => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 666, $this->source); })())]));
// line 667
echo " <div class=\"distance d-none\" style=\"display: block\">
<i class=\"slivki-icon slivki-icon-direction\"></i> <img class='ajaxLoader'
src='/images/ajax-loader-16x16.gif'
alt='Загрузка...'/><span></span>
</div>
<div id=\"offerGeoLocationData\" data-json=\"";
// line 672
echo twig_escape_filter($this->env, (isset($context["offerGeoLocationData"]) || array_key_exists("offerGeoLocationData", $context) ? $context["offerGeoLocationData"] : (function () { throw new RuntimeError('Variable "offerGeoLocationData" does not exist.', 672, $this->source); })()), "html", 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>
</div>
";
}
// line 683
echo " ";
}
// line 684
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.', 684, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["geoLocation"]) {
// line 685
echo " <div class=\"mb-3 my-3\">
<div class=\"sf-bold-font\">";
// line 686
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCity", [], "method", false, false, false, 686), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getStreet", [], "method", false, false, false, 686), "html", null, true);
echo "
, ";
// line 687
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getHouse", [], "method", false, false, false, 687), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getLabel", [], "method", false, false, false, 687), "html", null, true);
echo "</div>
";
// line 688
$context["phoneNumbers"] = twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getPhoneNumbers", [], "method", false, false, false, 688);
// line 689
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.', 689, $this->source); })())), 0))) {
// line 690
echo " ";
}
// line 691
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.', 691, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 692
echo " ";
$this->loadTemplate("Slivki/mobile/offer/phone_number_btn.html.twig", "Slivki/mobile/offer/details.html.twig", 692)->display(twig_to_array(["phoneNumber" => $context["phoneNumber"], "geoLocation" => $context["geoLocation"]]));
// line 693
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 694
echo " ";
if (((array_key_exists("geoLocation", $context) && twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCallbackChatId", [], "method", false, false, false, 694)) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCallbackChatId", [], "method", false, false, false, 694), "")))) {
// line 695
echo " <div class=\"callback-button\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getId", [], "method", false, false, false, 695), "html", null, true);
echo "\">Обратный звонок</div>
";
}
// line 697
echo " ";
if ((0 !== twig_compare(twig_trim_filter(twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 697)), ""))) {
// line 698
echo " <div>Время работы:</div> ";
echo twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 698);
echo "
";
}
// line 700
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 703
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.', 703, $this->source); })())), 0))) {
// line 704
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.', 704, $this->source); })())), 0))) {
// line 705
echo " <br>
";
}
// line 707
echo " <div id=\"phoneOffers\" class=\"mb-2\">
<div class=\"mb-2\">
<strong>Телефон";
// line 709
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.', 709, $this->source); })())), 1))) ? ("ы") : (""));
echo ":</strong>
</div>
";
// line 711
$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.', 711, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 712
echo " ";
$this->loadTemplate("Slivki/mobile/offer/phone_number_btn.html.twig", "Slivki/mobile/offer/details.html.twig", 712)->display(twig_to_array(["phoneNumber" => $context["phoneNumber"]]));
// line 713
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 714
echo " </div>
</div>
";
}
// line 717
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.', 717, $this->source); })()), "getCommonWorkingHours", [], "method", false, false, false, 717);
// line 718
echo " ";
if ((0 !== twig_compare((isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 718, $this->source); })()), ""))) {
// line 719
echo " <br>
<div><strong>Время работы:</strong></div>
";
// line 721
echo (isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 721, $this->source); })());
echo "
<br><br>
";
}
// line 724
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.', 724, $this->source); })()), "getLegal", [], "method", false, false, false, 724);
echo "
<div class=\"offer-titles offer-titles-mobile mt-0 mb-0\"><h5 class=\"mt-0 mb-0\">Написать</h5></div>
<div class=\"col px-0\">
<a class=\"tg-button offer-phone-mob btn btn-block bg-slivki text-white py-1 no-decoration my-2 d-flex justify-content-center align-items-center\"
href=\"https://t.me/";
// line 728
(((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.', 728, $this->source); })()), "getTelegram", [], "method", false, false, false, 728), null))) ? (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.', 728, $this->source); })()), "getTelegram", [], "method", false, false, false, 728), "html", null, true))) : (print ("slivkislivkiby")));
echo "\"
style=\"width: 200px\">
<img class=\"mr-2\" src=\"/images/tg.svg\" width=\"20\" height=\"18\">
<span class=\"float-right\">Telegram</span>
</a>
";
// line 733
$context["viberNumber"] = (((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.', 733, $this->source); })()), "getViber", [], "method", false, false, false, 733), null))) ? (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 733, $this->source); })()), "getViber", [], "method", false, false, false, 733)) : ("+375295084444"));
// line 734
echo " <a class=\"vb-button offer-phone-mob btn btn-block bg-slivki text-white py-1 no-decoration my-2 d-flex justify-content-center align-items-center\"
href='viber://chat?number=\" ";
// line 735
echo twig_escape_filter($this->env, (isset($context["viberNumber"]) || array_key_exists("viberNumber", $context) ? $context["viberNumber"] : (function () { throw new RuntimeError('Variable "viberNumber" does not exist.', 735, $this->source); })()), "html", null, true);
echo " \"'
style=\"width: 200px\">
<img class=\"mr-2\" src=\"/images/vb.svg\" width=\"20\" height=\"18\">
<span class=\"float-right\">Viber</span>
</a>
</div>
</div>
";
// line 742
$this->loadTemplate("Slivki/offers/share.html.twig", "Slivki/mobile/offer/details.html.twig", 742)->display($context);
// line 743
echo " </div>
<div id=\"offerCommentTab\" class=\"pt-2 px-0\">
<div>
";
// line 746
echo (isset($context["comments"]) || array_key_exists("comments", $context) ? $context["comments"] : (function () { throw new RuntimeError('Variable "comments" does not exist.', 746, $this->source); })());
echo "
</div>
</div>
</div>
</div>
";
// line 751
if ((isset($context["preview"]) || array_key_exists("preview", $context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.', 751, $this->source); })())) {
// line 752
echo " <input type=\"hidden\" id=\"offerPreview\" value=\"1\">
";
} else {
// line 754
echo " <input type=\"hidden\" id=\"offerPreview\" value=\"0\">
";
}
// line 756
echo " </div>
";
// line 757
if ((isset($context["showGlobalcard"]) || array_key_exists("showGlobalcard", $context) ? $context["showGlobalcard"] : (function () { throw new RuntimeError('Variable "showGlobalcard" does not exist.', 757, $this->source); })())) {
// line 758
echo " ";
$this->loadTemplate("Slivki/mobile/offer/globalcard.html.twig", "Slivki/mobile/offer/details.html.twig", 758)->display($context);
// line 759
echo " ";
} elseif ((isset($context["showGlobalcardFitness"]) || array_key_exists("showGlobalcardFitness", $context) ? $context["showGlobalcardFitness"] : (function () { throw new RuntimeError('Variable "showGlobalcardFitness" does not exist.', 759, $this->source); })())) {
// line 760
echo " ";
$this->loadTemplate("Slivki/mobile/offer/globalcard_fitness.html.twig", "Slivki/mobile/offer/details.html.twig", 760)->display($context);
// line 761
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 764
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 765
echo " ";
$this->loadTemplate("Slivki/popups/header_offers.html.twig", "Slivki/mobile/offer/details.html.twig", 765)->display($context);
// line 766
echo " ";
$this->loadTemplate("Slivki/popups/mail_offers.html.twig", "Slivki/mobile/offer/details.html.twig", 766)->display($context);
// line 767
echo " ";
$this->loadTemplate("Slivki/popups/callback.html.twig", "Slivki/mobile/offer/details.html.twig", 767)->display($context);
// line 768
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.', 768, $this->source); })())) . "/jivosite/modal_mobile.html.twig"), "Slivki/mobile/offer/details.html.twig", 768)->display($context);
// line 769
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 769) && (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.', 769, $this->source); })()), "getVideos", [], "method", false, false, false, 769)), 0)))) {
// line 770
echo " ";
$this->loadTemplate("Slivki/popups/details-story-popup.html.twig", "Slivki/mobile/offer/details.html.twig", 770)->display($context);
// line 771
echo " ";
}
// line 772
echo " ";
$this->loadTemplate("Slivki/orderAsGift/foodForGift.html.twig", "Slivki/mobile/offer/details.html.twig", 772)->display(twig_array_merge($context, ["deliveryLink" => (isset($context["deliveryLink"]) || array_key_exists("deliveryLink", $context) ? $context["deliveryLink"] : (function () { throw new RuntimeError('Variable "deliveryLink" does not exist.', 772, $this->source); })())]));
// line 773
echo " ";
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME"))) {
// line 774
echo " ";
$this->loadTemplate("Slivki/uz/mobile/buy_promo.twig", "Slivki/mobile/offer/details.html.twig", 774)->display($context);
// line 775
echo " ";
}
// line 776
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.', 776, $this->source); })()), "user", [], "any", false, false, false, 776)) {
// line 777
echo " ";
$this->loadTemplate("Slivki/popups/rating_edit_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 777)->display($context);
// line 778
echo " ";
$this->loadTemplate("Slivki/mobile/popup/popup_subscription_limited.html.twig", "Slivki/mobile/offer/details.html.twig", 778)->display($context);
// line 779
echo " ";
$this->loadTemplate("Slivki/mobile/subscription/buy_promo_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 779)->display($context);
// line 780
echo " ";
$this->loadTemplate("Slivki/mobile/popup/confirm_subscription_card_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 780)->display(twig_array_merge($context, ["creditCards" => twig_get_attribute($this->env, $this->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.', 780, $this->source); })()), "user", [], "any", false, false, false, 780), "getActiveCreditCards", [], "method", false, false, false, 780)]));
// line 781
echo " ";
$this->loadTemplate("Slivki/mobile/popup/buy_codes_avways_app.html.twig", "Slivki/mobile/offer/details.html.twig", 781)->display($context);
// line 782
echo " ";
$this->loadTemplate("Slivki/popups/add_favourite_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 782)->display($context);
// line 783
echo " ";
$this->loadTemplate("Slivki/popups/delete_favourite_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 783)->display($context);
// line 784
echo " ";
$this->loadTemplate("Slivki/popups/delete_comment_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 784)->display(twig_array_merge($context, ["id" => "deleteCommentConfirmPopup"]));
// line 785
echo " ";
} else {
// line 786
echo " ";
$this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 786)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
// line 787
echo " ";
}
// line 788
echo " ";
$this->loadTemplate("Slivki/popups/comment_media_block_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 788)->display($context);
// line 789
echo " ";
$this->loadTemplate("Slivki/mobile/popup/add_comment_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 789)->display($context);
// line 790
echo " ";
$this->loadTemplate("Slivki/popups/edit_comment_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 790)->display(twig_array_merge($context, ["id" => "editVoteBox"]));
// line 791
echo " ";
$this->loadTemplate("Slivki/popups/comment_censor_message.html.twig", "Slivki/mobile/offer/details.html.twig", 791)->display(twig_array_merge($context, ["id" => "commentCensorMessage"]));
// line 792
echo " ";
$this->loadTemplate("Slivki/mobile/share_block.html.twig", "Slivki/mobile/offer/details.html.twig", 792)->display($context);
// line 793
echo " ";
$this->loadTemplate("Slivki/mobile/popup/statistics_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 793)->display($context);
// line 794
echo " ";
$this->loadTemplate("Slivki/mobile/delivery/modal/details.html.twig", "Slivki/mobile/offer/details.html.twig", 794)->display(twig_array_merge($context, ["isOfferPage" => true]));
// line 795
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.', 795, $this->source); })())), 0))) {
// line 796
echo " ";
$this->loadTemplate("Slivki/mobile/offer/extension/item/items_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 796)->display($context);
// line 797
echo " ";
}
// line 798
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.', 798, $this->source); })()), "getID", [], "method", false, false, false, 798), twig_constant("Slivki\\Entity\\Offer::BOOKING_OFFER_ID")))) {
// line 799
echo " ";
$this->loadTemplate("Slivki/mobile/offer/booking_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 799)->display($context);
// line 800
echo " ";
}
// line 801
echo " ";
$this->displayParentBlock("popup", $context, $blocks);
echo "
";
// line 802
if (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 802, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 802)) {
// line 803
echo " ";
$this->loadTemplate("Slivki/popups/step_buy_certificate.twig", "Slivki/mobile/offer/details.html.twig", 803)->display(twig_array_merge($context, ["deliveryLink" => (isset($context["deliveryLink"]) || array_key_exists("deliveryLink", $context) ? $context["deliveryLink"] : (function () { throw new RuntimeError('Variable "deliveryLink" does not exist.', 803, $this->source); })())]));
// line 804
echo " ";
}
// line 805
echo " ";
$this->loadTemplate("Slivki/mobile/popup/loading_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 805)->display($context);
// line 806
echo " ";
$this->loadTemplate("Slivki/mobile/popup/contact_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 806)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 808
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 809
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.', 809, $this->source); })()), "user", [], "any", false, false, false, 809) && 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.', 809, $this->source); })()), "user", [], "any", false, false, false, 809), "hasRole", [0 => twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method", false, false, false, 809))) {
// line 810
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.', 810, $this->source); })()), "user", [], "any", false, false, false, 810), ((array_key_exists("brandingBannerCategoryIDs", $context)) ? ((isset($context["brandingBannerCategoryIDs"]) || array_key_exists("brandingBannerCategoryIDs", $context) ? $context["brandingBannerCategoryIDs"] : (function () { throw new RuntimeError('Variable "brandingBannerCategoryIDs" does not exist.', 810, $this->source); })())) : ([])), ((array_key_exists("offer", $context)) ? (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 810, $this->source); })()), "getID", [], "method", false, false, false, 810)) : ("")));
// line 811
echo " ";
if (((isset($context["brandingBanner"]) || array_key_exists("brandingBanner", $context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.', 811, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner", $context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.', 811, $this->source); })()), "getMobileDivider", [], "method", false, false, false, 811))) {
// line 812
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.', 812, $this->source); })()), "getMobileDivider", [], "method", false, false, false, 812), "html", null, true);
echo "\"
data-oid=\"";
// line 813
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.', 813, $this->source); })()), "getID", [], "method", false, false, false, 813), "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.', 813, $this->source); })()), "getBannerID", [], "method", false, false, false, 813), "html", null, true);
echo "\"
data-branding=\"";
// line 814
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.', 814, $this->source); })()), "getBannerID", [], "method", false, false, false, 814), "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.', 814, $this->source); })()), "getUrl", [], "method", false, false, false, 814)), "html", null, true);
echo "\"
data-right-side-url=\"";
// line 815
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.', 815, $this->source); })()), "getRightSideUrl", [], "method", false, false, false, 815)), "html", null, true);
echo "\">
";
}
// line 817
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 820
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 821
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 823
echo twig_escape_filter($this->env, (isset($context["story_slider_js_version"]) || array_key_exists("story_slider_js_version", $context) ? $context["story_slider_js_version"] : (function () { throw new RuntimeError('Variable "story_slider_js_version" does not exist.', 823, $this->source); })()), "html", 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 837
echo twig_escape_filter($this->env, (isset($context["offer_new_js_version"]) || array_key_exists("offer_new_js_version", $context) ? $context["offer_new_js_version"] : (function () { throw new RuntimeError('Variable "offer_new_js_version" does not exist.', 837, $this->source); })()), "html", 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 853
echo twig_escape_filter($this->env, (isset($context["offer_js_version"]) || array_key_exists("offer_js_version", $context) ? $context["offer_js_version"] : (function () { throw new RuntimeError('Variable "offer_js_version" does not exist.', 853, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\" src=\"/js/statistics_offer/statistics_offer.js?v=";
// line 854
echo twig_escape_filter($this->env, (isset($context["statistics_offer_js_version"]) || array_key_exists("statistics_offer_js_version", $context) ? $context["statistics_offer_js_version"] : (function () { throw new RuntimeError('Variable "statistics_offer_js_version" does not exist.', 854, $this->source); })()), "html", 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 869
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.', 869, $this->source); })()), "request", [], "any", false, false, false, 869), "query", [], "any", false, false, false, 869), "has", [0 => "checkOrder"], "method", false, false, false, 869)) {
// line 870
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.', 870, $this->source); })()), "request", [], "any", false, false, false, 870), "get", [0 => "checkOrder"], "method", false, false, false, 870), "html", null, true);
echo ");
";
}
// line 872
echo " </script>
<script src=\"/js/offer/offerDescriptionItems.js?v=";
// line 873
echo twig_escape_filter($this->env, (isset($context["offer_description_items_js_version"]) || array_key_exists("offer_description_items_js_version", $context) ? $context["offer_description_items_js_version"] : (function () { throw new RuntimeError('Variable "offer_description_items_js_version" does not exist.', 873, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/work_examples/work_examples.js?v=";
// line 874
echo twig_escape_filter($this->env, (isset($context["work_examples_js_version"]) || array_key_exists("work_examples_js_version", $context) ? $context["work_examples_js_version"] : (function () { throw new RuntimeError('Variable "work_examples_js_version" does not exist.', 874, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/beauty/masters.js?v=";
// line 875
echo twig_escape_filter($this->env, (isset($context["beauty_masters_js_version"]) || array_key_exists("beauty_masters_js_version", $context) ? $context["beauty_masters_js_version"] : (function () { throw new RuntimeError('Variable "beauty_masters_js_version" does not exist.', 875, $this->source); })()), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 878
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 879
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 ( 2082 => 879, 2072 => 878, 2060 => 875, 2056 => 874, 2052 => 873, 2049 => 872, 2043 => 870, 2041 => 869, 2023 => 854, 2019 => 853, 2000 => 837, 1983 => 823, 1977 => 821, 1967 => 820, 1956 => 817, 1951 => 815, 1945 => 814, 1939 => 813, 1934 => 812, 1931 => 811, 1928 => 810, 1925 => 809, 1915 => 808, 1904 => 806, 1901 => 805, 1898 => 804, 1895 => 803, 1893 => 802, 1888 => 801, 1885 => 800, 1882 => 799, 1879 => 798, 1876 => 797, 1873 => 796, 1870 => 795, 1867 => 794, 1864 => 793, 1861 => 792, 1858 => 791, 1855 => 790, 1852 => 789, 1849 => 788, 1846 => 787, 1843 => 786, 1840 => 785, 1837 => 784, 1834 => 783, 1831 => 782, 1828 => 781, 1825 => 780, 1822 => 779, 1819 => 778, 1816 => 777, 1813 => 776, 1810 => 775, 1807 => 774, 1804 => 773, 1801 => 772, 1798 => 771, 1795 => 770, 1792 => 769, 1789 => 768, 1786 => 767, 1783 => 766, 1780 => 765, 1770 => 764, 1759 => 761, 1756 => 760, 1753 => 759, 1750 => 758, 1748 => 757, 1745 => 756, 1741 => 754, 1737 => 752, 1735 => 751, 1727 => 746, 1722 => 743, 1720 => 742, 1710 => 735, 1707 => 734, 1705 => 733, 1697 => 728, 1689 => 724, 1683 => 721, 1679 => 719, 1676 => 718, 1673 => 717, 1668 => 714, 1662 => 713, 1659 => 712, 1655 => 711, 1650 => 709, 1646 => 707, 1642 => 705, 1639 => 704, 1636 => 703, 1628 => 700, 1622 => 698, 1619 => 697, 1613 => 695, 1610 => 694, 1604 => 693, 1601 => 692, 1596 => 691, 1593 => 690, 1590 => 689, 1588 => 688, 1582 => 687, 1576 => 686, 1573 => 685, 1568 => 684, 1565 => 683, 1551 => 672, 1544 => 667, 1542 => 666, 1539 => 665, 1536 => 664, 1534 => 663, 1528 => 660, 1521 => 655, 1512 => 653, 1507 => 650, 1497 => 647, 1493 => 646, 1488 => 644, 1485 => 643, 1482 => 642, 1479 => 641, 1475 => 640, 1472 => 639, 1466 => 635, 1448 => 619, 1446 => 618, 1442 => 616, 1440 => 615, 1435 => 612, 1433 => 611, 1428 => 609, 1422 => 605, 1420 => 604, 1388 => 574, 1369 => 571, 1363 => 570, 1359 => 569, 1355 => 568, 1352 => 567, 1335 => 566, 1329 => 562, 1323 => 558, 1319 => 556, 1309 => 552, 1305 => 551, 1301 => 550, 1297 => 549, 1294 => 548, 1289 => 547, 1283 => 544, 1277 => 541, 1273 => 539, 1271 => 538, 1268 => 537, 1266 => 536, 1261 => 535, 1257 => 533, 1255 => 532, 1250 => 529, 1242 => 525, 1238 => 523, 1236 => 522, 1231 => 519, 1228 => 518, 1225 => 517, 1222 => 516, 1220 => 515, 1217 => 514, 1214 => 513, 1211 => 512, 1209 => 511, 1206 => 510, 1204 => 509, 1201 => 508, 1198 => 507, 1194 => 505, 1191 => 504, 1187 => 502, 1181 => 501, 1178 => 500, 1167 => 497, 1164 => 496, 1161 => 495, 1158 => 494, 1155 => 493, 1153 => 492, 1148 => 489, 1144 => 487, 1139 => 484, 1136 => 483, 1133 => 482, 1130 => 481, 1124 => 478, 1120 => 477, 1116 => 476, 1111 => 475, 1108 => 474, 1105 => 473, 1099 => 470, 1095 => 469, 1091 => 468, 1086 => 467, 1084 => 466, 1079 => 464, 1075 => 463, 1071 => 462, 1066 => 461, 1063 => 460, 1060 => 459, 1054 => 456, 1050 => 455, 1046 => 454, 1041 => 453, 1038 => 452, 1035 => 451, 1028 => 447, 1023 => 446, 1020 => 445, 1017 => 444, 1014 => 443, 1008 => 440, 1004 => 439, 999 => 438, 997 => 437, 992 => 435, 988 => 434, 983 => 433, 981 => 432, 976 => 430, 972 => 429, 967 => 428, 964 => 427, 958 => 424, 954 => 423, 951 => 422, 948 => 421, 941 => 417, 938 => 416, 935 => 415, 933 => 414, 929 => 412, 926 => 411, 918 => 406, 912 => 402, 909 => 401, 904 => 398, 901 => 397, 894 => 394, 891 => 393, 888 => 392, 885 => 391, 882 => 390, 879 => 389, 876 => 388, 870 => 385, 861 => 382, 858 => 381, 852 => 378, 845 => 373, 842 => 372, 840 => 371, 835 => 369, 830 => 366, 827 => 365, 821 => 362, 816 => 359, 813 => 358, 807 => 355, 802 => 352, 799 => 351, 796 => 350, 792 => 348, 786 => 346, 782 => 344, 780 => 343, 775 => 341, 772 => 340, 770 => 339, 763 => 334, 759 => 332, 753 => 330, 749 => 328, 747 => 327, 743 => 325, 740 => 324, 737 => 323, 731 => 320, 727 => 318, 725 => 317, 721 => 315, 719 => 314, 716 => 313, 713 => 312, 709 => 310, 699 => 303, 695 => 302, 690 => 299, 680 => 292, 674 => 288, 671 => 287, 669 => 286, 647 => 266, 643 => 264, 631 => 254, 619 => 244, 617 => 243, 614 => 242, 612 => 241, 610 => 240, 606 => 238, 594 => 228, 582 => 218, 580 => 217, 576 => 215, 573 => 212, 562 => 203, 560 => 202, 555 => 199, 546 => 192, 540 => 189, 536 => 188, 531 => 186, 526 => 183, 524 => 182, 517 => 180, 513 => 178, 508 => 175, 501 => 173, 497 => 172, 492 => 170, 488 => 169, 483 => 168, 481 => 167, 474 => 166, 472 => 165, 462 => 157, 460 => 156, 455 => 154, 447 => 148, 441 => 145, 433 => 139, 431 => 138, 425 => 135, 418 => 133, 412 => 129, 406 => 126, 396 => 123, 390 => 119, 388 => 118, 382 => 114, 376 => 110, 374 => 109, 371 => 108, 365 => 105, 361 => 104, 358 => 103, 355 => 102, 348 => 100, 343 => 98, 338 => 97, 332 => 95, 330 => 94, 327 => 93, 322 => 92, 319 => 91, 316 => 90, 314 => 89, 310 => 88, 307 => 87, 301 => 83, 298 => 82, 292 => 79, 289 => 78, 286 => 77, 280 => 74, 273 => 72, 270 => 71, 268 => 70, 260 => 64, 258 => 63, 251 => 60, 246 => 58, 241 => 57, 238 => 56, 232 => 54, 230 => 53, 225 => 51, 221 => 50, 217 => 49, 212 => 47, 209 => 46, 203 => 44, 200 => 43, 197 => 42, 194 => 41, 192 => 40, 189 => 39, 186 => 38, 183 => 37, 173 => 36, 159 => 30, 151 => 26, 148 => 25, 145 => 24, 135 => 23, 117 => 21, 102 => 15, 98 => 14, 94 => 13, 90 => 12, 80 => 4, 70 => 3, 59 => 2, 57 => 34, 55 => 1, 42 => 2,);
}
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 id=\"isMedicalCenter\" type=\"hidden\"
value=\"{{ parentCategoryList and parentCategoryList[0].getID() == constant('Slivki\\\\Entity\\\\Category::MEDICAL_CENTER_CATEGORY_ID') }}\">
<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-violet.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 %}
{% if not offer.isWithoutCodes() %}
<div class=\"discount-block\">
{{ offer.getDiscount() }}
</div>
{% endif %}
{% 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\"
data-pixel={{ offer.getID() == constant('Slivki\\\\Entity\\\\Offer::BETERA_OFFER_ID') ? 'https://amc.yandex.ru/show?cmn_id=26372&plt_id=194140&crv_id=464042&evt_t=render&ad_type=banner&rnd=%system.random%' }}>
{% set medias = offer.getDetailMedias() %}
{% set mediaCount = medias|length %}
{% if mediaCount > 1 %}
{% for media in medias %}
<div class=\"swiper-slide\">
{% if media.isYoutube() %}
<input class=\"js-src-video\" type=\"hidden\" value=\"https://www.youtube.com/embed/{{ media.getName() }}\">
{% else %}
<img class=\"img-fluid lazyload\" alt=\"{{ media.getDescription() }}\"
src=\"{{ getImageURL(media, 1044, 644) }}\"/>
{% endif %}
</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> Всего <a>{{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }}</a> </br> За сутки {{ todayPurchaseCount }} </br> За месяц {{ getOfferMonthlyPurchaseCount(offer.getID(), 30) }}\">
<img src=\"/images/offers/icon_people.svg\"/>
<p class=\"mb-0\"><a>{{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }}</a></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> За сутки {{ todayVisitCount }}<br> За месяц <span class='m-0'><a>{{ visitCount }}</a></span>\">
<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>
</a>
</div>
{% endif %}
{% if not pastOffer and offer.isGiftCertificateOnlineOrderAllowedOnSite() and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE'))
%}
<div class=\"col my-2\">
{% if app.user %}
<a class=\"button-gift\" href=\"/virtual-wallet-pay\">
<div class=\"button-gift-text\">
<p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
<p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
{% else %}
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\".modal-auth\">
<div class=\"button-gift-text\">
<p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
<p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
{% endif %}
</div>
{% endif %}
{% if offer.isFoodOnlineOrderAllowedOnSite() and offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and not pastOffer or
offer.isFoodOnlineOrderAllowedOnSite() and offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and not pastOffer %}
<div class=\"col my-2\">
{% if app.user %}
<a class=\"button-gift\" href=\"/virtual-wallet-pay\">
<div class=\"button-gift-text\">
<p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
<p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
{% else %}
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\".modal-auth\">
<div class=\"button-gift-text\">
<p class=\"mb-0\">ТЕПЕРЬ МОЖНО</p>
<p class=\"mb-0 color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
{% endif %}
</div>
{% endif %}
<div class=\"sticky-element\">
<div class=\"sticky-anchor\"></div>
<div id=\"offerNavigation\">
<ul class=\"nav-list\">
<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 offer.isWithoutCodes() and offer.isTireOnlineOrderAllowedOnSite() %}
{% if not app.user %}
<div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
<div id=\"buyButtonCard\" class=\"card\">
<div class=\"card-header\">
<a id=\"deliveryBtn\" href=\"#\" onclick=\"\$('.modal-auth').modal()\"
class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
Онлайн-запись
</a>
</div>
</div>
</div>
{% else %}
<div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
<div id=\"buyButtonCard\" class=\"card\">
<div class=\"card-header\">
<a id=\"deliveryBtn\" href=\"{{ offer.getOnlineRegistrationLink() }}\"
class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
Онлайн-запись
</a>
</div>
</div>
</div>
{% endif %}
{% endif %}
{% 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 offer.isTireOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"#\" onclick=\"\$('.modal-auth').modal()\"
class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
Онлайн-запись
</a>
{% endif %}
{% 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 mx-0 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 mx-0 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 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
Заказать онлайн {{ offer.getDiscount() }}
</a>
{% endif %}
{% endif %}
{% else %}
{% if offer.isTireOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"{{ offer.getOnlineRegistrationLink() }}\"
class=\"online-zapis js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}\">
Онлайн-запись
</a>
{% endif %}
{% 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 mx-0 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 mx-0 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 mx-0 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>
{% for key,sortItem in constant('Slivki\\\\Paginator\\\\WorkExample\\\\WorkExamplePaginatorInterface::SORT') %}
<div class=\"radio\">
<input id=\"filter{{ key }}\" type=\"radio\" name=\"filter\"
data-direction=\"{{ sortItem.direction }}\"
value=\"{{ sortItem.field }}\" {{ loop.first ? 'checked' }}>
<label for=\"filter{{ key }}\" class=\"cursor-pointer\">{{ sortItem.name }}</label>
</div>
{% endfor %}
<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=\"d-flex cursor-pointer\">Сортировка<img width=\"25\" class=\"pl-2\" src=\"/images/sort_image.svg\"/></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> {{ parentCategoryList and parentCategoryList[0].getID() == constant('Slivki\\\\Entity\\\\Category::MEDICAL_CENTER_CATEGORY_ID') ? 'Врачи' : 'Найти своего мастера' }}</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 class=\"geo-location-block\">
{% include 'Slivki/offers/geo_location_data.html.twig' with {'offer': offer} only %}
<div class=\"distance d-none\" style=\"display: block\">
<i class=\"slivki-icon slivki-icon-direction\"></i> <img class='ajaxLoader'
src='/images/ajax-loader-16x16.gif'
alt='Загрузка...'/><span></span>
</div>
<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>
</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, 'geoLocation': geoLocation} only %}
{% endfor %}
{% if geoLocation is defined and geoLocation.getCallbackChatId() and geoLocation.getCallbackChatId() != '' %}
<div class=\"callback-button\" data-id=\"{{ geoLocation.getId() }}\">Обратный звонок</div>
{% endif %}
{% 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 }}
<div class=\"offer-titles offer-titles-mobile mt-0 mb-0\"><h5 class=\"mt-0 mb-0\">Написать</h5></div>
<div class=\"col px-0\">
<a class=\"tg-button offer-phone-mob btn btn-block bg-slivki text-white py-1 no-decoration my-2 d-flex justify-content-center align-items-center\"
href=\"https://t.me/{{ offer.getTelegram() != null ? offer.getTelegram() : 'slivkislivkiby' }}\"
style=\"width: 200px\">
<img class=\"mr-2\" src=\"/images/tg.svg\" width=\"20\" height=\"18\">
<span class=\"float-right\">Telegram</span>
</a>
{% set viberNumber = offer.getViber() != null ? offer.getViber() : '+375295084444' %}
<a class=\"vb-button offer-phone-mob btn btn-block bg-slivki text-white py-1 no-decoration my-2 d-flex justify-content-center align-items-center\"
href='viber://chat?number=\" {{ viberNumber }} \"'
style=\"width: 200px\">
<img class=\"mr-2\" src=\"/images/vb.svg\" width=\"20\" height=\"18\">
<span class=\"float-right\">Viber</span>
</a>
</div>
</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/popups/callback.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/anna/templates/Slivki/mobile/offer/details.html.twig");
}
}