<?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=5\" 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); })()), "")) || (array_key_exists("defaultPickup", $context) && (isset($context["defaultPickup"]) || array_key_exists("defaultPickup", $context) ? $context["defaultPickup"] : (function () { throw new RuntimeError('Variable "defaultPickup" does not exist.', 44, $this->source); })())))) ? ("2") : ("1"));
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=\"Актуальность за 30 дней\">
<img src=\"/images/offers/conversion.svg\"/>
<p class=\"mb-0\">";
// line 145
echo twig_escape_filter($this->env, $this->env->getRuntime('Slivki\Twig\GetOfferConversionTwigRuntime')->getOfferConversion(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 145, $this->source); })()), "getID", [], "method", 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, (isset($context["rating"]) || array_key_exists("rating", $context) ? $context["rating"] : (function () { throw new RuntimeError('Variable "rating" does not exist.', 154, $this->source); })()), "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 " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 183, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 183)) {
// line 184
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 187
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.', 187, $this->source); })()), "getRegularPrice", [], "method", false, false, false, 187), "html", null, true);
echo "</del>
<div class=\"price-services-new\">";
// line 189
echo twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 189, $this->source); })()), "getOfferPrice", [], "method", false, false, false, 189), ["(" => "<span id=\"details-offer-price\">(", ")" => ")</span>"]);
echo "</div>
<input type=\"hidden\" id=\"codeCost\" value=\"";
// line 190
echo twig_escape_filter($this->env, (isset($context["codeCost"]) || array_key_exists("codeCost", $context) ? $context["codeCost"] : (function () { throw new RuntimeError('Variable "codeCost" does not exist.', 190, $this->source); })()), "html", null, true);
echo "\">
</div>
";
}
// line 193
echo " ";
} else {
// line 194
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 201
echo " </div>
</div>
</div>
";
// line 204
if (((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 204, $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.', 204, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 204), 0))) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 204, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 204)) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 204, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 204))) {
// line 205
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 214
echo "
";
// line 215
if (((((((twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 215, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 215) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 215, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 215))) && (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.', 215, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 215), "allowedPaymentMethods", [], "any", false, false, false, 215), "delivery", [], "array", false, false, false, 215), 4, [], "array", false, false, false, 215), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) && !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 215, $this->source); })())) || ((((twig_get_attribute($this->env, $this->source, // line 216
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 216, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 216) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 216, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 216))) && (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.', 216, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 216), "allowedPaymentMethods", [], "any", false, false, false, 216), "pickup", [], "array", false, false, false, 216), 4, [], "array", false, false, false, 216), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) && !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 216, $this->source); })()))) || (((twig_get_attribute($this->env, $this->source, // line 217
($context["offer"] ?? null), "getAllowedPaymentMethodsForCertificate", [], "method", true, true, false, 217) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 217, $this->source); })()), "getAllowedPaymentMethodsForCertificate", [], "method", false, false, false, 217))) && (0 === twig_compare(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.', 217, $this->source); })()), "getAllowedPaymentMethodsForCertificate", [], "method", false, false, false, 217), 4, [], "array", false, false, false, 217), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))))) {
// line 218
echo " <div class=\"col my-2\">
";
// line 219
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 219, $this->source); })()), "user", [], "any", false, false, false, 219)) {
// line 220
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 + 5%</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
";
} else {
// line 230
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 + 5%</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
";
}
// line 240
echo " </div>
";
}
// line 242
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 262
if ((twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 262, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 262) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 262, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 262))) {
// line 263
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.', 263, $this->source); })()), "user", [], "any", false, false, false, 263)) {
// line 264
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 268
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 268, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 268)) ? (" opacity-05") : (""));
echo "\">
Онлайн-запись
</a>
</div>
</div>
</div>
";
} else {
// line 275
echo " <div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
<div id=\"buyButtonCard\" class=\"card\">
<div class=\"card-header\">
<a id=\"deliveryBtn\" href=\"";
// line 278
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.', 278, $this->source); })()), "getOnlineRegistrationLink", [], "method", false, false, false, 278), "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 279
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 279, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 279)) ? (" opacity-05") : (""));
echo "\">
Онлайн-запись
</a>
</div>
</div>
</div>
";
}
// line 286
echo "
";
}
// line 288
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.', 288, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 288)) {
// line 289
echo " <div id=\"fixedButtonsBottom\" class=\"accordion fixed py-3\">
";
// line 290
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 290, $this->source); })()), "isBuyCodeDisable", [], "method", false, false, false, 290)) {
// line 291
echo " <div id=\"buyButtonCard\" class=\"card\">
<div class=\"card-header\">
";
// line 293
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.', 293, $this->source); })()), "getID", [], "method", false, false, false, 293), twig_constant("Slivki\\Entity\\Offer::BOOKING_OFFER_ID")))) {
// line 294
echo " <a href=\"#\" class=\"m-0 card-link bg-slivki\" data-toggle=\"modal\"
data-target=\"#bookingItemPopup\">
";
// line 296
(((twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 296, $this->source); })()), "getBuyCodeButtonText", [], "method", false, false, false, 296) && (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.', 296, $this->source); })()), "getBuyCodeButtonText", [], "method", false, false, false, 296), "")))) ? (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.', 296, $this->source); })()), "getBuyCodeButtonText", [], "method", false, false, false, 296), "html", null, true))) : (print ("Забронировать номер")));
echo "
</a>
";
} else {
// line 299
echo " ";
if (( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 299, $this->source); })()) && (1 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 299, $this->source); })()), 0)))) {
// line 300
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.', 300, $this->source); })()), "user", [], "any", false, false, false, 300)) {
// line 301
echo " <a href=\"#\" class=\"m-0 card-link bg-slivki by-code-button text-uppercase\"
onclick=\"\$('.modal-auth').modal()\">
";
// line 303
if ((isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 303, $this->source); })())) {
// line 304
echo " БЕСПЛАТНЫЙ ПРОМОКОД
";
} else {
// line 306
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.', 306, $this->source); })()), "html", null, true);
echo "
";
}
// line 308
echo " </a>
";
} else {
// line 310
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 315
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.', 315, $this->source); })()), "getID", [], "method", false, false, false, 315), twig_constant("Slivki\\Entity\\Offer::PETROL_OFFER_ID")))) {
// line 316
echo " <a href=\"#\"
onclick=\"showFakeButton(); if (window.google_tag_manager) {ga('send', 'event', 'Buy code', 'Click', '";
// line 317
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Default:details", twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 317, $this->source); })()), "getID", [], "method", false, false, false, 317)), "html", null, true);
echo "');} document.location='/oplata-promokoda-azs'\"
class=\"m-0 card-link bg-slivki by-code-button\" id=\"buyCodeButton\">
";
// line 319
if ((isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 319, $this->source); })())) {
// line 320
echo " БЕСПЛАТНЫЙ ПРОМОКОД
";
} else {
// line 322
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.', 322, $this->source); })()), "html", null, true);
echo "
";
}
// line 324
echo " </a>
";
} else {
// line 326
echo " ";
if ((isset($context["isAllowedByOnlyCode"]) || array_key_exists("isAllowedByOnlyCode", $context) ? $context["isAllowedByOnlyCode"] : (function () { throw new RuntimeError('Variable "isAllowedByOnlyCode" does not exist.', 326, $this->source); })())) {
// line 327
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.', 327, $this->source); })()), "user", [], "any", false, false, false, 327) && ($this->env->getRuntime('Slivki\Twig\SubscriptionTwigRuntime')->isSubscriber(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 327, $this->source); })()), "user", [], "any", false, false, false, 327)) || (isset($context["isBatchCodesAllowed"]) || array_key_exists("isBatchCodesAllowed", $context) ? $context["isBatchCodesAllowed"] : (function () { throw new RuntimeError('Variable "isBatchCodesAllowed" does not exist.', 327, $this->source); })()))) && !(isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 327, $this->source); })())) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 327, $this->source); })()), "isBuyCodeInAppOnly", [], "method", false, false, false, 327))) {
// line 328
echo " <a href=\"#\" onclick=\"\$('#buyPromoPopup').modal()\"
class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
id=\"buyCodeButton\">
";
// line 331
echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel", $context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.', 331, $this->source); })()), "html", null, true);
echo "
</a>
";
} else {
// line 334
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.', 334, $this->source); })()), "user", [], "any", false, false, false, 334)) {
// line 335
echo " <a href=\"#\" onclick=\"\$('.modal-auth').modal()\"
class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
id=\"buyCodeButton\">
";
// line 338
echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel", $context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.', 338, $this->source); })()), "html", null, true);
echo "
</a>
";
}
// line 341
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.', 341, $this->source); })()), "isBuyCodeInAppOnly", [], "method", false, false, false, 341)) {
// line 342
echo " <a class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
id=\"buyCodeButton\"
onclick=\"\$('#byCodesAlwaysApp').modal()\">
";
// line 345
echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel", $context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.', 345, $this->source); })()), "html", null, true);
echo "
</a>
";
} elseif ( !twig_get_attribute($this->env, $this->source, // line 347
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 347, $this->source); })()), "isBuyCodeInAppOnly", [], "method", false, false, false, 347)) {
// line 348
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 349
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 354
echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel", $context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.', 354, $this->source); })()), "html", null, true);
echo "
</a>
";
} else {
// line 357
echo " <a href=\"#\"
onclick=\"if (window.google_tag_manager) {ga('send', 'event', 'Buy code', 'Click', '";
// line 358
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Default:details", twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 358, $this->source); })()), "getID", [], "method", false, false, false, 358)), "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.', 358, $this->source); })()), "#confirmBox")) && (isset($context["canBuyFromBalance"]) || array_key_exists("canBuyFromBalance", $context) ? $context["canBuyFromBalance"] : (function () { throw new RuntimeError('Variable "canBuyFromBalance" does not exist.', 358, $this->source); })()))) ? ("/oplata-balance/") : ("/oplata/"));
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.', 358, $this->source); })()), "getID", [], "method", false, false, false, 358), "html", null, true);
echo "'\"
class=\"m-0 card-link bg-slivki by-code-button text-uppercase my-1\"
id=\"buyCodeButton\">
";
// line 361
echo twig_escape_filter($this->env, (isset($context["buyButtonLabel"]) || array_key_exists("buyButtonLabel", $context) ? $context["buyButtonLabel"] : (function () { throw new RuntimeError('Variable "buyButtonLabel" does not exist.', 361, $this->source); })()), "html", null, true);
echo "
</a>
";
}
// line 364
echo " ";
}
// line 365
echo " ";
}
// line 366
echo " ";
}
// line 367
echo " ";
}
// line 368
echo " ";
}
// line 369
echo " ";
} else {
// line 370
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.', 370, $this->source); })()), "html", null, true);
echo "\" class=\"m-0 card-link bg-slivki color-white\">Посмотреть
похожие предложения</a>
";
}
// line 373
echo " ";
}
// line 374
echo " </div>
</div>
";
}
// line 377
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.', 377, $this->source); })())), 0))) {
// line 378
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 382
(((twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 382, $this->source); })()), "getBuyItemsButtonText", [], "method", false, false, false, 382) && (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.', 382, $this->source); })()), "getBuyItemsButtonText", [], "method", false, false, false, 382), "")))) ? (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.', 382, $this->source); })()), "getBuyItemsButtonText", [], "method", false, false, false, 382), "html", null, true))) : (print ("Оплатить сейчас по карте")));
echo "
</a>
</div>
</div>
";
}
// line 387
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.', 387, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 387), 0)))) {
// line 388
echo " <div id=\"deliveryButtonCard\" class=\"card\">
<div class=\"card-header bg-transparent\">
";
// line 390
if ( !twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 390, $this->source); })()), "user", [], "any", false, false, false, 390)) {
// line 391
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.', 391, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 391)) {
// line 392
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 393
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 393, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 393)) ? (" opacity-05") : (""));
echo "\">
Онлайн-запись
</a>
";
}
// line 397
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.', 397, $this->source); })()), "getID", [], "method", false, false, false, 397)))) {
// line 398
echo " <a href=\"#\" onclick=\"\$('.modal-auth').modal()\"
class=\"card-link ml-0 py-3 bg-violet text-white rounded-14 text-uppercase";
// line 399
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 399, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 399)) ? (" opacity-05") : (""));
echo "\">
ПОЛУЧИТЬ СКИДКУ ";
// line 400
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.', 400, $this->source); })()), "getDiscount", [], "method", false, false, false, 400), "html", null, true);
echo "
</a>
";
} else {
// line 403
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.', 403, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 403) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 403, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 403)) && (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.', 403, $this->source); })()), "getID", [], "method", false, false, false, 403), 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.', 403, $this->source); })()), "getID", [], "method", false, false, false, 403), 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.', 403, $this->source); })()), "getID", [], "method", false, false, false, 403), 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.', 403, $this->source); })()), "getID", [], "method", false, false, false, 403), 288772)))) {
// line 404
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.', 404, $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 405
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 405, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 405)) ? (" opacity-05") : (""));
echo "\">
Оплатить онлайн ";
// line 406
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.', 406, $this->source); })()), "getDiscount", [], "method", false, false, false, 406), "html", null, true);
echo "
</a>
";
} elseif ((((twig_get_attribute($this->env, $this->source, // line 408
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 408, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 408) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 408, $this->source); })()), "getID", [], "method", false, false, false, 408), 288763))) || (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 408, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 408) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 408, $this->source); })()), "getID", [], "method", false, false, false, 408), 288779)))) || (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 408, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 408) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 408, $this->source); })()), "getID", [], "method", false, false, false, 408), 288772))))) {
// line 409
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.', 409, $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 410
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 410, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 410)) ? (" opacity-05") : (""));
echo "\">
Получить скидку ";
// line 411
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.', 411, $this->source); })()), "getDiscount", [], "method", false, false, false, 411), "html", null, true);
echo "
</a>
";
} elseif (( !twig_get_attribute($this->env, $this->source, // line 413
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 413, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 413) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 413, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 413))) {
// line 414
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.', 414, $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 415
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 415, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 415)) ? (" opacity-05") : (""));
echo "\">
Заказать онлайн ";
// line 416
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.', 416, $this->source); })()), "getDiscount", [], "method", false, false, false, 416), "html", null, true);
echo "
</a>
";
}
// line 419
echo " ";
}
// line 420
echo " ";
} else {
// line 421
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.', 421, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 421)) {
// line 422
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.', 422, $this->source); })()), "getOnlineRegistrationLink", [], "method", false, false, false, 422), "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 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 "\">
Онлайн-запись
</a>
";
}
// line 427
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.', 427, $this->source); })()), "getID", [], "method", false, false, false, 427), twig_constant("Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS"))) {
// line 428
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.', 428, $this->source); })()));
// line 429
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.', 429, $this->source); })()), "html", null, true);
echo "\"
onclick=\"document.location = `";
// line 430
echo twig_escape_filter($this->env, (isset($context["deliveryBuyOnlyCodeLink"]) || array_key_exists("deliveryBuyOnlyCodeLink", $context) ? $context["deliveryBuyOnlyCodeLink"] : (function () { throw new RuntimeError('Variable "deliveryBuyOnlyCodeLink" does not exist.', 430, $this->source); })()), "html", null, true);
echo "`\"
class=\"card-link ml-0 py-3 bg-violet text-white rounded-14 text-uppercase";
// line 431
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 431, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 431)) ? (" opacity-05") : (""));
echo "\">
ПОЛУЧИТЬ СКИДКУ ";
// line 432
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.', 432, $this->source); })()), "getDiscount", [], "method", false, false, false, 432), "html", null, true);
echo "
</a>
";
} else {
// line 435
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.', 435, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 435) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 435, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 435))) {
// line 436
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.', 436, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 436) && (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.', 436, $this->source); })()), "getID", [], "method", false, false, false, 436), 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.', 436, $this->source); })()), "getID", [], "method", false, false, false, 436), 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.', 436, $this->source); })()), "getID", [], "method", false, false, false, 436), 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.', 436, $this->source); })()), "getID", [], "method", false, false, false, 436), 288772))) || (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 436, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 436) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 436, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 436)))) {
// line 437
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.', 437, $this->source); })())), "html", null, true);
echo "\"
onclick=\"document.location = `";
// line 438
echo twig_escape_filter($this->env, $this->env->getRuntime('Slivki\Twig\GetLinkOnlineOrderRuntime')->getLinkGiftCertificateOnlineOrder((isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 438, $this->source); })())), "html", 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>
";
} elseif ((((twig_get_attribute($this->env, $this->source, // line 442
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 442, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 442) && (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.', 442, $this->source); })()), "getID", [], "method", false, false, false, 442), 288763))) || (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 442, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 442) && (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.', 442, $this->source); })()), "getID", [], "method", false, false, false, 442), 288779)))) || (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 442, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 442) && (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.', 442, $this->source); })()), "getID", [], "method", false, false, false, 442), 288772))))) {
// line 443
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.', 443, $this->source); })())), "html", null, true);
echo "\"
onclick=\"document.location = `";
// line 444
echo twig_escape_filter($this->env, $this->env->getRuntime('Slivki\Twig\GetLinkOnlineOrderRuntime')->getLinkGiftCertificateOnlineOrder((isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 444, $this->source); })())), "html", null, true);
echo "`\"
class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
// line 445
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 445, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 445)) ? (" opacity-05") : (""));
echo "\">
Получить скидку ";
// line 446
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); })()), "getDiscount", [], "method", false, false, false, 446), "html", null, true);
echo "
</a>
";
}
// line 449
echo " ";
} else {
// line 450
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.', 450, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 450)) {
// line 451
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.', 451, $this->source); })()), "html", null, true);
echo "\"
onclick=\"document.location = `";
// line 452
echo twig_escape_filter($this->env, (isset($context["deliveryLink"]) || array_key_exists("deliveryLink", $context) ? $context["deliveryLink"] : (function () { throw new RuntimeError('Variable "deliveryLink" does not exist.', 452, $this->source); })()), "html", null, true);
echo "`\"
class=\"js-buy-online card-link py-3 bg-violet text-white rounded-14 mx-0 text-uppercase";
// line 453
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 453, $this->source); })()), "hasFreeCodes", [], "method", false, false, false, 453)) ? (" opacity-05") : (""));
echo "\">
Заказать онлайн ";
// line 454
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.', 454, $this->source); })()), "getDiscount", [], "method", false, false, false, 454), "html", null, true);
echo "
</a>
";
}
// line 457
echo " ";
}
// line 458
echo " ";
}
// line 459
echo " ";
}
// line 460
echo " </div>
</div>
";
}
// line 463
echo " </div>
";
}
// line 465
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 468
if (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 468, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 468) && (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.', 468, $this->source); })()), "getID", [], "method", false, false, false, 468), 140553)))) {
// line 469
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.', 469, $this->source); })()), "getCodeActiveTill", [], "method", false, false, false, 469);
// line 470
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.', 470, $this->source); })()), "getActiveTill", [], "method", false, false, false, 470), "-1 day");
// line 471
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.', 471, $this->source); })()), (isset($context["codeTill"]) || array_key_exists("codeTill", $context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.', 471, $this->source); })())))) ? ((isset($context["codeTill"]) || array_key_exists("codeTill", $context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.', 471, $this->source); })())) : ((isset($context["codeFrom"]) || array_key_exists("codeFrom", $context) ? $context["codeFrom"] : (function () { throw new RuntimeError('Variable "codeFrom" does not exist.', 471, $this->source); })())));
// line 472
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.', 472, $this->source); })()), "isHideFeatures", [], "method", false, false, false, 472)) {
// line 473
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.', 473, $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.', 473, $this->source); })()), "getID", [], "method", false, false, false, 473), 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.', 473, $this->source); })()), "d.m.y"), "html", null, true);
echo ".
<br/>
";
}
// line 476
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.', 476, $this->source); })()), "isShowPriceInConditions", [], "method", false, false, false, 476) && !(isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 476, $this->source); })()))) {
// line 477
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.', 477, $this->source); })()), "html", null, true);
echo " руб.
";
}
// line 478
echo "</p>
";
}
// line 480
echo "
";
// line 481
echo twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 481, $this->source); })()), "getConditions", [], "method", false, false, false, 481);
echo "
";
// line 483
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.', 483, $this->source); })()), "getID", [], "method", false, false, false, 483), 143528))) {
// line 484
echo " <br>
";
// line 485
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer2.html.twig", "Slivki/mobile/offer/details.html.twig", 485)->display($context);
// line 486
echo " <br>
";
} elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, // line 487
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 487, $this->source); })()), "getID", [], "method", false, false, false, 487), 282234))) {
// line 488
echo " ";
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer4.html.twig", "Slivki/mobile/offer/details.html.twig", 488)->display($context);
// line 489
echo " ";
}
// line 490
echo "
";
// line 491
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 491, $this->source); })()), "isHideFeatures", [], "method", false, false, false, 491)) {
// line 492
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.', 492, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 492)) {
// line 493
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.', 493, $this->source); })())) . "/phrase_subscription_in_offer_page.html.twig"), "Slivki/mobile/offer/details.html.twig", 493)->display($context);
// line 494
echo " ";
}
// line 495
echo " <br>
<div class=\"offer-titles\"><h5>Особенности</h5></div>
<div class=\"offer-details-conditions\">
";
// line 498
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 498, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 498)) {
// line 499
echo " - Скидка предоставляется только при наличии промокода.
";
}
// line 501
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.', 501, $this->source); })()), "getFeatures", [], "method", false, false, false, 501);
echo "
</div>
- Поставщик несет полную ответственность перед потребителем за достоверность информации.
";
}
// line 505
echo " <div id=\"endOfOfferCondition\"></div>
</div>
</div>
";
// line 508
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.', 508, $this->source); })()), "getShopMedias", [], "method", false, false, false, 508)), 0))) {
// line 509
echo " <div class=\"gallery-title offer-titles\"><h5>Галерея</h5></div>
";
}
// line 511
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.', 511, $this->source); })()), "getShopMedias", [], "method", false, false, false, 511)), 0)) || (0 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 511, $this->source); })()), 0)))) ? ("empty") : (""));
echo "\">
";
// line 512
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.', 512, $this->source); })()), "getShopMedias", [], "method", false, false, false, 512)), 0))) {
// line 513
echo " <div class=\"screenshot-container\">
";
// line 514
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 514) && (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.', 514, $this->source); })()), "getVideos", [], "method", false, false, false, 514)), 0)))) {
// line 515
echo " <div class=\"screenshot screenshot-story\" data-toggle=\"modal\"
data-target=\"#detailsStoryPopup\">
<img src=\"";
// line 517
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.', 517, $this->source); })()), "getImageUrl", [], "method", false, false, false, 517), "html", null, true);
echo "\" width=\"158\"
alt=\"Видео\" border=\"0\"/>
<div class=\"screenshot-story-btn\"></div>
<div class=\"screenshot-story-tittle\">";
// line 520
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.', 520, $this->source); })()), "getTitle", [], "method", false, false, false, 520), "html", null, true);
echo "</div>
</div>
";
}
// line 523
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.', 523, $this->source); })()), "getShopMedias", [], "method", false, false, false, 523));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 524
echo " <div class=\"screenshot\">
<a data-fancybox=\"gallery1\" href=\"";
// line 525
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 0, 0), "html", null, true);
echo "\"
title=\"";
// line 526
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 526), "html", null, true);
echo "\">
<img src=\"";
// line 527
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 300, 0), "html", null, true);
echo "\" width=\"158\"
alt=\"";
// line 528
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 528), "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 532
echo " </div>
";
}
// line 534
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 538
echo "</h5></div>
<div class=\"examples-works-tooltip-filter\">
<div class=\"tooltip-content\">
<div class=\"tooltip-title border-bottom-f d-flex\">Показать сначала:</div>
";
// line 542
$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 543
echo " <div class=\"radio\">
<input id=\"filter";
// line 544
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" type=\"radio\" name=\"filter\"
data-direction=\"";
// line 545
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "direction", [], "any", false, false, false, 545), "html", null, true);
echo "\"
value=\"";
// line 546
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "field", [], "any", false, false, false, 546), "html", null, true);
echo "\" ";
echo ((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 546)) ? ("checked") : (""));
echo ">
<label for=\"filter";
// line 547
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, 547), "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 550
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 580
$this->loadTemplate("Slivki/works-examples/examples_of_works_gallery.html.twig", "Slivki/mobile/offer/details.html.twig", 580)->display($context);
// line 581
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 585
echo ((((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 585, $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.', 585, $this->source); })()), 0, [], "array", false, false, false, 585), "getID", [], "method", false, false, false, 585), twig_constant("Slivki\\Entity\\Category::MEDICAL_CENTER_CATEGORY_ID"))))) ? ("Врачи") : ("Найти своего мастера"));
echo "</h5>
</div>
";
// line 587
$this->loadTemplate("Slivki/beauty/beauty_masters.html.twig", "Slivki/mobile/offer/details.html.twig", 587)->display($context);
// line 588
echo " </div>
<div id=\"offersDescription\" class=\"offers-conditions mt-2 js-parallax-banner-after\"
style=\"padding-bottom: 22px;\">
";
// line 591
if (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 591, $this->source); })()), "isShowProductsInOfferDescription", [], "method", false, false, false, 591)) {
// line 592
echo " <div id=\"foodItemsBlock\" class=\"my-3\">
<div class=\"offer-titles mt-2\"><h5>Описание</h5></div>
";
// line 594
if (((isset($context["isPickupEnabled"]) || array_key_exists("isPickupEnabled", $context) ? $context["isPickupEnabled"] : (function () { throw new RuntimeError('Variable "isPickupEnabled" does not exist.', 594, $this->source); })()) && (isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled", $context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.', 594, $this->source); })()))) {
// line 595
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 ";
// line 599
echo (((array_key_exists("defaultPickup", $context) && (isset($context["defaultPickup"]) || array_key_exists("defaultPickup", $context) ? $context["defaultPickup"] : (function () { throw new RuntimeError('Variable "defaultPickup" does not exist.', 599, $this->source); })()))) ? ("") : ("active"));
echo "\">
<p class=\"m-0\">Доставка</p>
<small>удобно👌</small>
</a>
<a data-type-delivery=\"2\"
class=\"switch-delivery-pickup-item pickup-type button-tab-pickup ";
// line 604
(((array_key_exists("defaultPickup", $context) && (isset($context["defaultPickup"]) || array_key_exists("defaultPickup", $context) ? $context["defaultPickup"] : (function () { throw new RuntimeError('Variable "defaultPickup" does not exist.', 604, $this->source); })()))) ? (print ("active")) : (print (twig_escape_filter($this->env, (isset($context["active"]) || array_key_exists("active", $context) ? $context["active"] : (function () { throw new RuntimeError('Variable "active" does not exist.', 604, $this->source); })()), "html", null, true))));
echo "\">
<p class=\"m-0\"> Самовывоз</p>
<small>еще дешевле🔥</small>
</a>
</div>
</div>
";
}
// line 611
echo " <div id=\"foodBlock\"></div>
<div id=\"foodOptionsBlock\"></div>
</div>
";
}
// line 615
echo " <div class=\"description\" id=\"descriptionText\">
";
// line 616
$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.', 616, $this->source); })()), "getDescriptionList", [], "method", false, false, false, 616));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescription"]) {
// line 617
echo " ";
$context["offerDescriptionSliderImages"] = twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getEntityDescriptionSliderImages", [], "method", false, false, false, 617);
// line 618
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.', 618, $this->source); })())), 0))) {
// line 619
echo " <div class=\"sale-description-carousel\">
<div id=\"saleDescriptionSliderFor";
// line 620
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getID", [], "method", false, false, false, 620), "html", null, true);
echo "\"
class=\"sale-description-slider-for\">
";
// line 622
$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.', 622, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescriptionSliderImage"]) {
// line 623
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, 623), "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 626
echo " </div>
</div>
";
}
// line 629
echo " ";
echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->addLazyAndLightboxImagesInDescription(twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getDescription", [], "method", false, false, false, 629));
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 631
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 636
echo twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 636, $this->source); })()), "getLogo", [], "method", false, false, false, 636);
echo "
</div>
<div class=\"p-m-0\">
";
// line 639
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.', 639, $this->source); })()), "count", [], "method", false, false, false, 639), 0))) {
// line 640
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.', 640, $this->source); })())), 0))) {
// line 641
echo " <div class=\"geo-location-block\">
";
// line 642
$this->loadTemplate("Slivki/offers/geo_location_data.html.twig", "Slivki/mobile/offer/details.html.twig", 642)->display(twig_to_array(["offer" => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 642, $this->source); })())]));
// line 643
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 648
echo twig_escape_filter($this->env, (isset($context["offerGeoLocationData"]) || array_key_exists("offerGeoLocationData", $context) ? $context["offerGeoLocationData"] : (function () { throw new RuntimeError('Variable "offerGeoLocationData" does not exist.', 648, $this->source); })()), "html", 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 659
echo " ";
}
// line 660
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.', 660, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["geoLocation"]) {
// line 661
echo " <div class=\"mb-3 my-3\">
<div class=\"sf-bold-font\">";
// line 662
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCity", [], "method", false, false, false, 662), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getStreet", [], "method", false, false, false, 662), "html", null, true);
echo "
, ";
// line 663
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getHouse", [], "method", false, false, false, 663), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getLabel", [], "method", false, false, false, 663), "html", null, true);
echo "</div>
";
// line 664
$context["phoneNumbers"] = twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getPhoneNumbers", [], "method", false, false, false, 664);
// line 665
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.', 665, $this->source); })())), 0))) {
// line 666
echo " ";
}
// line 667
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.', 667, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 668
echo " ";
$this->loadTemplate("Slivki/mobile/offer/phone_number_btn.html.twig", "Slivki/mobile/offer/details.html.twig", 668)->display(twig_to_array(["phoneNumber" => $context["phoneNumber"], "geoLocation" => $context["geoLocation"]]));
// line 669
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 670
echo " ";
if (((array_key_exists("geoLocation", $context) && twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCallbackChatId", [], "method", false, false, false, 670)) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCallbackChatId", [], "method", false, false, false, 670), "")))) {
// line 671
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, 671), "html", null, true);
echo "\">Обратный звонок</div>
";
}
// line 673
echo " ";
if ((0 !== twig_compare(twig_trim_filter(twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 673)), ""))) {
// line 674
echo " <div>Время работы:</div> ";
echo twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 674);
echo "
";
}
// line 676
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 679
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.', 679, $this->source); })())), 0))) {
// line 680
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.', 680, $this->source); })())), 0))) {
// line 681
echo " <br>
";
}
// line 683
echo " <div id=\"phoneOffers\" class=\"mb-2\">
<div class=\"mb-2\">
<strong>Телефон";
// line 685
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.', 685, $this->source); })())), 1))) ? ("ы") : (""));
echo ":</strong>
</div>
";
// line 687
$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.', 687, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 688
echo " ";
$this->loadTemplate("Slivki/mobile/offer/phone_number_btn.html.twig", "Slivki/mobile/offer/details.html.twig", 688)->display(twig_to_array(["phoneNumber" => $context["phoneNumber"]]));
// line 689
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 690
echo " </div>
</div>
";
}
// line 693
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.', 693, $this->source); })()), "getCommonWorkingHours", [], "method", false, false, false, 693);
// line 694
echo " ";
if ((0 !== twig_compare((isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 694, $this->source); })()), ""))) {
// line 695
echo " <br>
<div><strong>Время работы:</strong></div>
";
// line 697
echo (isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 697, $this->source); })());
echo "
<br><br>
";
}
// line 700
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.', 700, $this->source); })()), "getLegal", [], "method", false, false, false, 700);
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 704
(((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.', 704, $this->source); })()), "getTelegram", [], "method", false, false, false, 704), 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.', 704, $this->source); })()), "getTelegram", [], "method", false, false, false, 704), "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 709
$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.', 709, $this->source); })()), "getViber", [], "method", false, false, false, 709), null))) ? (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 709, $this->source); })()), "getViber", [], "method", false, false, false, 709)) : ("+375295084444"));
// line 710
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 711
echo twig_escape_filter($this->env, twig_replace_filter((isset($context["viberNumber"]) || array_key_exists("viberNumber", $context) ? $context["viberNumber"] : (function () { throw new RuntimeError('Variable "viberNumber" does not exist.', 711, $this->source); })()), ["+" => "%2B"]), "html", 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 718
$this->loadTemplate("Slivki/offers/share.html.twig", "Slivki/mobile/offer/details.html.twig", 718)->display($context);
// line 719
echo " </div>
<div id=\"offerCommentTab\" class=\"pt-2 px-0\">
<div>
";
// line 722
echo (isset($context["comments"]) || array_key_exists("comments", $context) ? $context["comments"] : (function () { throw new RuntimeError('Variable "comments" does not exist.', 722, $this->source); })());
echo "
</div>
</div>
</div>
</div>
";
// line 727
if ((isset($context["preview"]) || array_key_exists("preview", $context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.', 727, $this->source); })())) {
// line 728
echo " <input type=\"hidden\" id=\"offerPreview\" value=\"1\">
";
} else {
// line 730
echo " <input type=\"hidden\" id=\"offerPreview\" value=\"0\">
";
}
// line 732
echo " </div>
";
// line 733
if ((isset($context["showGlobalcard"]) || array_key_exists("showGlobalcard", $context) ? $context["showGlobalcard"] : (function () { throw new RuntimeError('Variable "showGlobalcard" does not exist.', 733, $this->source); })())) {
// line 734
echo " ";
$this->loadTemplate("Slivki/mobile/offer/globalcard.html.twig", "Slivki/mobile/offer/details.html.twig", 734)->display($context);
// line 735
echo " ";
} elseif ((isset($context["showGlobalcardFitness"]) || array_key_exists("showGlobalcardFitness", $context) ? $context["showGlobalcardFitness"] : (function () { throw new RuntimeError('Variable "showGlobalcardFitness" does not exist.', 735, $this->source); })())) {
// line 736
echo " ";
$this->loadTemplate("Slivki/mobile/offer/globalcard_fitness.html.twig", "Slivki/mobile/offer/details.html.twig", 736)->display($context);
// line 737
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 740
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 741
echo " ";
$this->loadTemplate("Slivki/popups/header_offers.html.twig", "Slivki/mobile/offer/details.html.twig", 741)->display($context);
// line 742
echo " ";
$this->loadTemplate("Slivki/popups/mail_offers.html.twig", "Slivki/mobile/offer/details.html.twig", 742)->display($context);
// line 743
echo " ";
$this->loadTemplate("Slivki/popups/callback.html.twig", "Slivki/mobile/offer/details.html.twig", 743)->display($context);
// line 744
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.', 744, $this->source); })())) . "/jivosite/modal_mobile.html.twig"), "Slivki/mobile/offer/details.html.twig", 744)->display($context);
// line 745
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 745) && (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.', 745, $this->source); })()), "getVideos", [], "method", false, false, false, 745)), 0)))) {
// line 746
echo " ";
$this->loadTemplate("Slivki/popups/details-story-popup.html.twig", "Slivki/mobile/offer/details.html.twig", 746)->display($context);
// line 747
echo " ";
}
// line 748
echo " ";
$this->loadTemplate("Slivki/orderAsGift/foodForGift.html.twig", "Slivki/mobile/offer/details.html.twig", 748)->display(twig_array_merge($context, ["deliveryLink" => (isset($context["deliveryLink"]) || array_key_exists("deliveryLink", $context) ? $context["deliveryLink"] : (function () { throw new RuntimeError('Variable "deliveryLink" does not exist.', 748, $this->source); })())]));
// line 749
echo " ";
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME"))) {
// line 750
echo " ";
$this->loadTemplate("Slivki/uz/mobile/buy_promo.twig", "Slivki/mobile/offer/details.html.twig", 750)->display($context);
// line 751
echo " ";
}
// line 752
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.', 752, $this->source); })()), "user", [], "any", false, false, false, 752)) {
// line 753
echo " ";
$this->loadTemplate("Slivki/popups/rating_edit_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 753)->display($context);
// line 754
echo " ";
$this->loadTemplate("Slivki/mobile/popup/popup_subscription_limited.html.twig", "Slivki/mobile/offer/details.html.twig", 754)->display($context);
// line 755
echo " ";
$this->loadTemplate("Slivki/mobile/subscription/buy_promo_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 755)->display($context);
// line 756
echo " ";
$this->loadTemplate("Slivki/mobile/popup/confirm_subscription_card_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 756)->display(twig_array_merge($context, ["creditCards" => twig_get_attribute($this->env, $this->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.', 756, $this->source); })()), "user", [], "any", false, false, false, 756), "getActiveCreditCards", [], "method", false, false, false, 756)]));
// line 757
echo " ";
$this->loadTemplate("Slivki/mobile/popup/buy_codes_avways_app.html.twig", "Slivki/mobile/offer/details.html.twig", 757)->display($context);
// line 758
echo " ";
$this->loadTemplate("Slivki/popups/add_favourite_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 758)->display($context);
// line 759
echo " ";
$this->loadTemplate("Slivki/popups/delete_favourite_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 759)->display($context);
// line 760
echo " ";
$this->loadTemplate("Slivki/popups/delete_comment_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 760)->display(twig_array_merge($context, ["id" => "deleteCommentConfirmPopup"]));
// line 761
echo " ";
} else {
// line 762
echo " ";
$this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 762)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
// line 763
echo " ";
}
// line 764
echo " ";
$this->loadTemplate("Slivki/popups/comment_media_block_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 764)->display($context);
// line 765
echo " ";
$this->loadTemplate("Slivki/mobile/popup/add_comment_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 765)->display($context);
// line 766
echo " ";
$this->loadTemplate("Slivki/popups/edit_comment_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 766)->display(twig_array_merge($context, ["id" => "editVoteBox"]));
// line 767
echo " ";
$this->loadTemplate("Slivki/popups/comment_censor_message.html.twig", "Slivki/mobile/offer/details.html.twig", 767)->display(twig_array_merge($context, ["id" => "commentCensorMessage"]));
// line 768
echo " ";
$this->loadTemplate("Slivki/mobile/share_block.html.twig", "Slivki/mobile/offer/details.html.twig", 768)->display($context);
// line 769
echo " ";
$this->loadTemplate("Slivki/mobile/popup/statistics_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 769)->display($context);
// line 770
echo " ";
$this->loadTemplate("Slivki/mobile/delivery/modal/details.html.twig", "Slivki/mobile/offer/details.html.twig", 770)->display(twig_array_merge($context, ["isOfferPage" => true]));
// line 771
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.', 771, $this->source); })())), 0))) {
// line 772
echo " ";
$this->loadTemplate("Slivki/mobile/offer/extension/item/items_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 772)->display($context);
// line 773
echo " ";
}
// line 774
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.', 774, $this->source); })()), "getID", [], "method", false, false, false, 774), twig_constant("Slivki\\Entity\\Offer::BOOKING_OFFER_ID")))) {
// line 775
echo " ";
$this->loadTemplate("Slivki/mobile/offer/booking_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 775)->display($context);
// line 776
echo " ";
}
// line 777
echo " ";
$this->displayParentBlock("popup", $context, $blocks);
echo "
";
// line 778
if (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 778, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 778)) {
// line 779
echo " ";
$this->loadTemplate("Slivki/popups/step_buy_certificate.twig", "Slivki/mobile/offer/details.html.twig", 779)->display(twig_array_merge($context, ["deliveryLink" => (isset($context["deliveryLink"]) || array_key_exists("deliveryLink", $context) ? $context["deliveryLink"] : (function () { throw new RuntimeError('Variable "deliveryLink" does not exist.', 779, $this->source); })())]));
// line 780
echo " ";
}
// line 781
echo " ";
$this->loadTemplate("Slivki/mobile/popup/loading_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 781)->display($context);
// line 782
echo " ";
$this->loadTemplate("Slivki/mobile/popup/contact_popup.html.twig", "Slivki/mobile/offer/details.html.twig", 782)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 784
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 785
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.', 785, $this->source); })()), "user", [], "any", false, false, false, 785) && 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.', 785, $this->source); })()), "user", [], "any", false, false, false, 785), "hasRole", [0 => twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method", false, false, false, 785))) {
// line 786
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.', 786, $this->source); })()), "user", [], "any", false, false, false, 786), ((array_key_exists("brandingBannerCategoryIDs", $context)) ? ((isset($context["brandingBannerCategoryIDs"]) || array_key_exists("brandingBannerCategoryIDs", $context) ? $context["brandingBannerCategoryIDs"] : (function () { throw new RuntimeError('Variable "brandingBannerCategoryIDs" does not exist.', 786, $this->source); })())) : ([])), ((array_key_exists("offer", $context)) ? (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 786, $this->source); })()), "getID", [], "method", false, false, false, 786)) : ("")));
// line 787
echo " ";
if (((isset($context["brandingBanner"]) || array_key_exists("brandingBanner", $context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.', 787, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner", $context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.', 787, $this->source); })()), "getMobileDivider", [], "method", false, false, false, 787))) {
// line 788
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.', 788, $this->source); })()), "getMobileDivider", [], "method", false, false, false, 788), "html", null, true);
echo "\"
data-oid=\"";
// line 789
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.', 789, $this->source); })()), "getID", [], "method", false, false, false, 789), "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.', 789, $this->source); })()), "getBannerID", [], "method", false, false, false, 789), "html", null, true);
echo "\"
data-branding=\"";
// line 790
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.', 790, $this->source); })()), "getBannerID", [], "method", false, false, false, 790), "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.', 790, $this->source); })()), "getUrl", [], "method", false, false, false, 790)), "html", null, true);
echo "\"
data-right-side-url=\"";
// line 791
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.', 791, $this->source); })()), "getRightSideUrl", [], "method", false, false, false, 791)), "html", null, true);
echo "\">
";
}
// line 793
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 796
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 797
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 799
echo twig_escape_filter($this->env, (isset($context["story_slider_js_version"]) || array_key_exists("story_slider_js_version", $context) ? $context["story_slider_js_version"] : (function () { throw new RuntimeError('Variable "story_slider_js_version" does not exist.', 799, $this->source); })()), "html", 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 813
echo twig_escape_filter($this->env, (isset($context["offer_new_js_version"]) || array_key_exists("offer_new_js_version", $context) ? $context["offer_new_js_version"] : (function () { throw new RuntimeError('Variable "offer_new_js_version" does not exist.', 813, $this->source); })()), "html", 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 829
echo twig_escape_filter($this->env, (isset($context["offer_js_version"]) || array_key_exists("offer_js_version", $context) ? $context["offer_js_version"] : (function () { throw new RuntimeError('Variable "offer_js_version" does not exist.', 829, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\" src=\"/js/statistics_offer/statistics_offer.js?v=";
// line 830
echo twig_escape_filter($this->env, (isset($context["statistics_offer_js_version"]) || array_key_exists("statistics_offer_js_version", $context) ? $context["statistics_offer_js_version"] : (function () { throw new RuntimeError('Variable "statistics_offer_js_version" does not exist.', 830, $this->source); })()), "html", 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 845
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.', 845, $this->source); })()), "request", [], "any", false, false, false, 845), "query", [], "any", false, false, false, 845), "has", [0 => "checkOrder"], "method", false, false, false, 845)) {
// line 846
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.', 846, $this->source); })()), "request", [], "any", false, false, false, 846), "get", [0 => "checkOrder"], "method", false, false, false, 846), "html", null, true);
echo ");
";
}
// line 848
echo " </script>
<script src=\"/js/offer/offerDescriptionItems.js?v=";
// line 849
echo twig_escape_filter($this->env, (isset($context["offer_description_items_js_version"]) || array_key_exists("offer_description_items_js_version", $context) ? $context["offer_description_items_js_version"] : (function () { throw new RuntimeError('Variable "offer_description_items_js_version" does not exist.', 849, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/work_examples/work_examples.js?v=";
// line 850
echo twig_escape_filter($this->env, (isset($context["work_examples_js_version"]) || array_key_exists("work_examples_js_version", $context) ? $context["work_examples_js_version"] : (function () { throw new RuntimeError('Variable "work_examples_js_version" does not exist.', 850, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/beauty/masters.js?v=";
// line 851
echo twig_escape_filter($this->env, (isset($context["beauty_masters_js_version"]) || array_key_exists("beauty_masters_js_version", $context) ? $context["beauty_masters_js_version"] : (function () { throw new RuntimeError('Variable "beauty_masters_js_version" does not exist.', 851, $this->source); })()), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 854
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 855
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 ( 2060 => 855, 2050 => 854, 2038 => 851, 2034 => 850, 2030 => 849, 2027 => 848, 2021 => 846, 2019 => 845, 2001 => 830, 1997 => 829, 1978 => 813, 1961 => 799, 1955 => 797, 1945 => 796, 1934 => 793, 1929 => 791, 1923 => 790, 1917 => 789, 1912 => 788, 1909 => 787, 1906 => 786, 1903 => 785, 1893 => 784, 1882 => 782, 1879 => 781, 1876 => 780, 1873 => 779, 1871 => 778, 1866 => 777, 1863 => 776, 1860 => 775, 1857 => 774, 1854 => 773, 1851 => 772, 1848 => 771, 1845 => 770, 1842 => 769, 1839 => 768, 1836 => 767, 1833 => 766, 1830 => 765, 1827 => 764, 1824 => 763, 1821 => 762, 1818 => 761, 1815 => 760, 1812 => 759, 1809 => 758, 1806 => 757, 1803 => 756, 1800 => 755, 1797 => 754, 1794 => 753, 1791 => 752, 1788 => 751, 1785 => 750, 1782 => 749, 1779 => 748, 1776 => 747, 1773 => 746, 1770 => 745, 1767 => 744, 1764 => 743, 1761 => 742, 1758 => 741, 1748 => 740, 1737 => 737, 1734 => 736, 1731 => 735, 1728 => 734, 1726 => 733, 1723 => 732, 1719 => 730, 1715 => 728, 1713 => 727, 1705 => 722, 1700 => 719, 1698 => 718, 1688 => 711, 1685 => 710, 1683 => 709, 1675 => 704, 1667 => 700, 1661 => 697, 1657 => 695, 1654 => 694, 1651 => 693, 1646 => 690, 1640 => 689, 1637 => 688, 1633 => 687, 1628 => 685, 1624 => 683, 1620 => 681, 1617 => 680, 1614 => 679, 1606 => 676, 1600 => 674, 1597 => 673, 1591 => 671, 1588 => 670, 1582 => 669, 1579 => 668, 1574 => 667, 1571 => 666, 1568 => 665, 1566 => 664, 1560 => 663, 1554 => 662, 1551 => 661, 1546 => 660, 1543 => 659, 1529 => 648, 1522 => 643, 1520 => 642, 1517 => 641, 1514 => 640, 1512 => 639, 1506 => 636, 1499 => 631, 1490 => 629, 1485 => 626, 1475 => 623, 1471 => 622, 1466 => 620, 1463 => 619, 1460 => 618, 1457 => 617, 1453 => 616, 1450 => 615, 1444 => 611, 1434 => 604, 1426 => 599, 1420 => 595, 1418 => 594, 1414 => 592, 1412 => 591, 1407 => 588, 1405 => 587, 1400 => 585, 1394 => 581, 1392 => 580, 1360 => 550, 1341 => 547, 1335 => 546, 1331 => 545, 1327 => 544, 1324 => 543, 1307 => 542, 1301 => 538, 1295 => 534, 1291 => 532, 1281 => 528, 1277 => 527, 1273 => 526, 1269 => 525, 1266 => 524, 1261 => 523, 1255 => 520, 1249 => 517, 1245 => 515, 1243 => 514, 1240 => 513, 1238 => 512, 1233 => 511, 1229 => 509, 1227 => 508, 1222 => 505, 1214 => 501, 1210 => 499, 1208 => 498, 1203 => 495, 1200 => 494, 1197 => 493, 1194 => 492, 1192 => 491, 1189 => 490, 1186 => 489, 1183 => 488, 1181 => 487, 1178 => 486, 1176 => 485, 1173 => 484, 1170 => 483, 1166 => 481, 1163 => 480, 1159 => 478, 1153 => 477, 1150 => 476, 1139 => 473, 1136 => 472, 1133 => 471, 1130 => 470, 1127 => 469, 1125 => 468, 1120 => 465, 1116 => 463, 1111 => 460, 1108 => 459, 1105 => 458, 1102 => 457, 1096 => 454, 1092 => 453, 1088 => 452, 1083 => 451, 1080 => 450, 1077 => 449, 1071 => 446, 1067 => 445, 1063 => 444, 1058 => 443, 1056 => 442, 1051 => 440, 1047 => 439, 1043 => 438, 1038 => 437, 1035 => 436, 1032 => 435, 1026 => 432, 1022 => 431, 1018 => 430, 1013 => 429, 1010 => 428, 1007 => 427, 1000 => 423, 995 => 422, 992 => 421, 989 => 420, 986 => 419, 980 => 416, 976 => 415, 971 => 414, 969 => 413, 964 => 411, 960 => 410, 955 => 409, 953 => 408, 948 => 406, 944 => 405, 939 => 404, 936 => 403, 930 => 400, 926 => 399, 923 => 398, 920 => 397, 913 => 393, 910 => 392, 907 => 391, 905 => 390, 901 => 388, 898 => 387, 890 => 382, 884 => 378, 881 => 377, 876 => 374, 873 => 373, 866 => 370, 863 => 369, 860 => 368, 857 => 367, 854 => 366, 851 => 365, 848 => 364, 842 => 361, 833 => 358, 830 => 357, 824 => 354, 817 => 349, 814 => 348, 812 => 347, 807 => 345, 802 => 342, 799 => 341, 793 => 338, 788 => 335, 785 => 334, 779 => 331, 774 => 328, 771 => 327, 768 => 326, 764 => 324, 758 => 322, 754 => 320, 752 => 319, 747 => 317, 744 => 316, 742 => 315, 735 => 310, 731 => 308, 725 => 306, 721 => 304, 719 => 303, 715 => 301, 712 => 300, 709 => 299, 703 => 296, 699 => 294, 697 => 293, 693 => 291, 691 => 290, 688 => 289, 685 => 288, 681 => 286, 671 => 279, 667 => 278, 662 => 275, 652 => 268, 646 => 264, 643 => 263, 641 => 262, 619 => 242, 615 => 240, 603 => 230, 591 => 220, 589 => 219, 586 => 218, 584 => 217, 583 => 216, 582 => 215, 579 => 214, 568 => 205, 566 => 204, 561 => 201, 552 => 194, 549 => 193, 543 => 190, 539 => 189, 534 => 187, 529 => 184, 526 => 183, 524 => 182, 517 => 180, 513 => 178, 508 => 175, 501 => 173, 497 => 172, 492 => 170, 488 => 169, 483 => 168, 481 => 167, 474 => 166, 472 => 165, 462 => 157, 460 => 156, 455 => 154, 447 => 148, 441 => 145, 433 => 139, 431 => 138, 425 => 135, 418 => 133, 412 => 129, 406 => 126, 396 => 123, 390 => 119, 388 => 118, 382 => 114, 376 => 110, 374 => 109, 371 => 108, 365 => 105, 361 => 104, 358 => 103, 355 => 102, 348 => 100, 343 => 98, 338 => 97, 332 => 95, 330 => 94, 327 => 93, 322 => 92, 319 => 91, 316 => 90, 314 => 89, 310 => 88, 307 => 87, 301 => 83, 298 => 82, 292 => 79, 289 => 78, 286 => 77, 280 => 74, 273 => 72, 270 => 71, 268 => 70, 260 => 64, 258 => 63, 251 => 60, 246 => 58, 241 => 57, 238 => 56, 232 => 54, 230 => 53, 225 => 51, 221 => 50, 217 => 49, 212 => 47, 209 => 46, 203 => 44, 200 => 43, 197 => 42, 194 => 41, 192 => 40, 189 => 39, 186 => 38, 183 => 37, 173 => 36, 159 => 30, 151 => 26, 148 => 25, 145 => 24, 135 => 23, 117 => 21, 102 => 15, 98 => 14, 94 => 13, 90 => 12, 80 => 4, 70 => 3, 59 => 2, 57 => 34, 55 => 1, 42 => 2,);
}
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=5\" 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 == '' or defaultPickup is defined and defaultPickup ? '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=\"Актуальность за 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\">{{ rating }}</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 %}
{% if not offer.isWithoutCodes() %}
<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>
{% endif %}
{% 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 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 or
offer.getAllowedPaymentMethodsForCertificate() is defined and offer.getAllowedPaymentMethodsForCertificate() is not null and offer.getAllowedPaymentMethodsForCertificate()[4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) %}
<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 + 5%</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 + 5%</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 {{ defaultPickup is defined and defaultPickup ? '' : 'active'}}\">
<p class=\"m-0\">Доставка</p>
<small>удобно👌</small>
</a>
<a data-type-delivery=\"2\"
class=\"switch-delivery-pickup-item pickup-type button-tab-pickup {{ defaultPickup is defined and defaultPickup ? 'active' : active }}\">
<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|replace({'+': '%2B'}) }}'
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");
}
}