<?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/offers/details.html.twig */
class __TwigTemplate_671d188d41c559f3e4b20d04dd0901420d5734d6d8780fb2ae46a6d677382c91 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'messenger' => [$this, 'block_messenger'],
'stylesheets' => [$this, 'block_stylesheets'],
'ogimage' => [$this, 'block_ogimage'],
'header' => [$this, 'block_header'],
'mainColumnClass' => [$this, 'block_mainColumnClass'],
'main_content' => [$this, 'block_main_content'],
'popups' => [$this, 'block_popups'],
'javascripts' => [$this, 'block_javascripts'],
'assetsBottom' => [$this, 'block_assetsBottom'],
'RTBHouse' => [$this, 'block_RTBHouse'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "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/offers/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/offers/details.html.twig"));
// line 28
$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.', 28, $this->source); })()), "user", [], "any", false, false, false, 28)) ? (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.', 28, $this->source); })()), "user", [], "any", false, false, false, 28), "isOfferFavourite", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 28, $this->source); })())], "method", false, false, false, 28)) : (false));
// line 30
$context["subscribed"] = (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.', 30, $this->source); })()), "user", [], "any", false, false, false, 30) && $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.', 30, $this->source); })()), "user", [], "any", false, false, false, 30)));
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "Slivki/offers/details.html.twig", 1);
$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_title($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", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$this->displayParentBlock("title", $context, $blocks);
(((array_key_exists("currentPage", $context) && (0 !== twig_compare((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 3, $this->source); })()), 1)))) ? (print (twig_escape_filter($this->env, (" - Страница №" . (isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 3, $this->source); })())), "html", null, true))) : (print ("")));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
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 7
public function block_stylesheets($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", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 8
echo " <link rel=\"stylesheet\" href=\"/css/statistics_modal.css?v=4\"/>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\"/>
<link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.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\">
<link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\"/>
<link href=\"/css/bootstrap3.3.6.min.css\" type=\"text/css\" rel=\"stylesheet\">
<link rel=\"stylesheet\"
href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker-standalone.min.css\"
integrity=\"sha512-L0/PNISezIYAoqFXBGP9EJ4qLH8XF356+Lo92vzloQqk7HUpZ4FN1x1dUOnsUAUjHTSxXxeaD0HXfrANhtJOEA==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
";
// line 21
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link href=\"/css/offers.min.css?v=";
// line 22
echo twig_escape_filter($this->env, (isset($context["offers_css"]) || array_key_exists("offers_css", $context) ? $context["offers_css"] : (function () { throw new RuntimeError('Variable "offers_css" does not exist.', 22, $this->source); })()), "html", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/foodForGift.css?v=";
// line 23
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.', 23, $this->source); })()), "html", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\"/>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css\"
integrity=\"sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 31
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 32
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.', 32, $this->source); })())), 0))) {
// line 33
echo " <meta property=\"og:image\"
content=\"";
// line 34
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.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "getSchemeAndHttpHost", [], "method", false, false, false, 34), "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.', 34, $this->source); })())), 522, 322), "html", null, true);
echo "\"/>
<meta property=\"og:image:width\" content=\"522\"/>
<meta property=\"og:image:height\" content=\"322\"/>
";
} else {
// line 38
echo " ";
$this->displayParentBlock("ogimage", $context, $blocks);
echo "
";
}
// line 40
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 42
public function block_header($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", "header"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 43
echo " ";
$this->loadTemplate("Slivki/offers/details.html.twig", "Slivki/offers/details.html.twig", 43, "66150554")->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 50
public function block_mainColumnClass($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", "mainColumnClass"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainColumnClass"));
echo " one-column bg-white";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 51
public function block_main_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", "main_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_content"));
// line 52
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, 52), "isPickupEnabled", [], "method", true, true, false, 52)) ? (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.', 52, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 52), "isPickupEnabled", [], "method", false, false, false, 52)) : (""));
// line 53
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, 53), "isDeliveryEnabled", [], "method", true, true, false, 53)) ? (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.', 53, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 53), "isDeliveryEnabled", [], "method", false, false, false, 53)) : (""));
// line 54
echo " ";
$context["ratingWithCount"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getEntityRatingWithCount(twig_constant("Slivki\\Entity\\Category::OFFER_CATEGORY_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.', 54, $this->source); })()), "getID", [], "method", false, false, false, 54));
// line 55
echo " ";
if (((isset($context["isPickupEnabled"]) || array_key_exists("isPickupEnabled", $context) ? $context["isPickupEnabled"] : (function () { throw new RuntimeError('Variable "isPickupEnabled" does not exist.', 55, $this->source); })()) || (isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled", $context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.', 55, $this->source); })()))) {
// line 56
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.', 56, $this->source); })()), ""))) ? ("2") : ("1"));
echo "\">
";
}
// line 58
echo " <input id=\"offerID\" type=\"hidden\" value=\"";
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.', 58, $this->source); })()), "getID", [], "method", false, false, false, 58), "html", null, true);
echo "\">
<input id=\"isMedicalCenter\" type=\"hidden\"
value=\"";
// line 60
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.', 60, $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.', 60, $this->source); })()), 0, [], "array", false, false, false, 60), "getID", [], "method", false, false, false, 60), twig_constant("Slivki\\Entity\\Category::MEDICAL_CENTER_CATEGORY_ID")))), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"stock-id\" value=\"";
// line 61
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.', 61, $this->source); })()), "getID", [], "method", false, false, false, 61), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"stock-link\" value=\"";
// line 62
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.', 62, $this->source); })()), "request", [], "any", false, false, false, 62), "getSchemeAndHttpHost", [], "method", false, false, false, 62) . 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.', 62, $this->source); })()), "request", [], "any", false, false, false, 62), "getRequestUri", [], "method", false, false, false, 62)), "html", null, true);
echo "\">
";
// line 64
if ((isset($context["subscribed"]) || array_key_exists("subscribed", $context) ? $context["subscribed"] : (function () { throw new RuntimeError('Variable "subscribed" does not exist.', 64, $this->source); })())) {
// line 65
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.', 65, $this->source); })()), "html", null, true);
echo "\">
";
}
// line 67
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.', 67, $this->source); })()), "user", [], "any", false, false, false, 67)) {
// line 68
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.', 68, $this->source); })()), "user", [], "any", false, false, false, 68), "getCodesCountByOffer", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 68, $this->source); })())], "method", false, false, false, 68), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"customerID\" value=\"";
// line 69
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.', 69, $this->source); })()), "user", [], "any", false, false, false, 69), "getID", [], "method", false, false, false, 69), "html", null, true);
echo "\"/>
";
}
// line 71
echo " <input type=\"hidden\" id=\"codeCost\" value=\"";
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.', 71, $this->source); })()), "html", null, true);
echo "\">
<input type=\"hidden\" class=\"buyOrderAmount form-element\" type=\"text\"
value=\"";
// line 73
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.', 73, $this->source); })()), "html", null, true);
echo "\"/>
<div class=\"content-wrapper\">
<div class=\"content-wrapper-offers\" itemscope itemtype=\"https://schema.org/Product\">
<div class=\"d-flex pb-2\" style=\"padding: 10px 34px;\">
<div class=\"col-6\">
";
// line 78
$this->loadTemplate("Slivki/breadcrumbs.html.twig", "Slivki/offers/details.html.twig", 78)->display(twig_to_array(["parentCategoryList" => (isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 78, $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.', 78, $this->source); })()), "getSupplierCategoryData", [], "method", false, false, false, 78)]));
// line 79
echo " </div>
<div class=\"col-6\">
<p class=\"color-violet text-end cursor-pointer\" data-toggle=\"modal\"
data-target=\"";
// line 82
echo ((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.', 82, $this->source); })()), "user", [], "any", false, false, false, 82)) ? ("#complaintModal") : (".modal-auth"));
echo "\">
Пожаловаться на акцию</p>
</div>
</div>
<h3 class=\"offers-tittle\" style=\"color: ";
// line 86
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.', 86, $this->source); })()), "getTitleFontColor", [], "method", false, false, false, 86), "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.', 86, $this->source); })()), "getTitle", [], "method", false, false, false, 86);
echo "</h3>
<div class=\"content-offers-top pb-0\">
<div class=\"left-top-block\">
";
// line 89
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.', 89, $this->source); })()), "user", [], "method", false, false, false, 89) && !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 89, $this->source); })()))) {
// line 90
echo " <div class=\"button-add-follow fovoutite-block\"
onclick=\"onFavouriteClickOffer(";
// line 91
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.', 91, $this->source); })()), "getID", [], "method", false, false, false, 91), "html", null, true);
echo ", ";
echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite", $context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.', 91, $this->source); })())) ? ("true") : ("false"));
echo ")\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Добавить в <br> избранное\"
>
<img src=\"";
// line 97
echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite", $context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.', 97, $this->source); })())) ? ("/images/heart_active.svg") : ("/images/offers/follow.svg"));
echo "\">
</div>
";
}
// line 100
echo " <div class=\"content-wrapper-carousel position-relative\" style=\"margin-bottom: 28px\">
<div class=\"stock-image\">
<div id=\"offerImageSlider\" class=\"m-0 swiper-container\">
";
// line 103
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.', 103, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 103))) {
// line 104
echo " <div id=\"statisticsButton\" data-toggle=\"modal\" data-target=\"#statisticOffersPopup\">
<img width=\"37\" height=\"37\" src=\"/images/statistics.png\"/>
</div>
";
}
// line 108
echo " <div class=\"swiper-wrapper\"
data-pixel=";
// line 109
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.', 109, $this->source); })()), "getID", [], "method", false, false, false, 109), 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 110
$context["medias"] = (isset($context["detailMediaList"]) || array_key_exists("detailMediaList", $context) ? $context["detailMediaList"] : (function () { throw new RuntimeError('Variable "detailMediaList" does not exist.', 110, $this->source); })());
// line 111
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.', 111, $this->source); })()));
// line 112
echo " ";
if ((1 === twig_compare((isset($context["mediaCount"]) || array_key_exists("mediaCount", $context) ? $context["mediaCount"] : (function () { throw new RuntimeError('Variable "mediaCount" does not exist.', 112, $this->source); })()), 1))) {
// line 113
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.', 113, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 114
echo " <div class=\"swiper-slide\">
";
// line 115
if (twig_get_attribute($this->env, $this->source, $context["media"], "isYoutube", [], "method", false, false, false, 115)) {
// line 116
echo " <input class=\"js-src-video\" type=\"hidden\"
value=\"https://www.youtube.com/embed/";
// line 117
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getName", [], "method", false, false, false, 117), "html", null, true);
echo "\">
";
} else {
// line 119
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, 119), "html", null, true);
echo "\"
src=\"";
// line 120
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 1044, 644), "html", null, true);
echo "\"/>
";
}
// line 122
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 124
echo " ";
} elseif ((0 === twig_compare((isset($context["mediaCount"]) || array_key_exists("mediaCount", $context) ? $context["mediaCount"] : (function () { throw new RuntimeError('Variable "mediaCount" does not exist.', 124, $this->source); })()), 1))) {
// line 125
echo " <div>
<img class=\"img-fluid lazyload\" alt=\"";
// line 126
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.', 126, $this->source); })()), 0, [], "array", false, false, false, 126), "getDescription", [], "method", false, false, false, 126), "html", null, true);
echo "\"
src=\"";
// line 127
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.', 127, $this->source); })()), 0, [], "array", false, false, false, 127), 1044, 644), "html", null, true);
echo "\"/>
</div>
";
}
// line 130
echo " </div>
";
// line 131
if ((1 === twig_compare((isset($context["mediaCount"]) || array_key_exists("mediaCount", $context) ? $context["mediaCount"] : (function () { throw new RuntimeError('Variable "mediaCount" does not exist.', 131, $this->source); })()), 1))) {
// line 132
echo " <div class=\"swiper-pagination mt-2\"></div>
<div class=\"swiper-button-next\"></div>
<div class=\"swiper-button-prev\"></div>
";
}
// line 136
echo " </div>
</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=\"discount-block\">
";
// line 140
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.', 140, $this->source); })()), "getDiscount", [], "method", false, false, false, 140), "html", null, true);
echo "
</div>
";
}
// line 143
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.', 143, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 143)) {
// line 144
echo " <div class=\"button-add-follow button-add-follow-teaser fovoutite-block\"
onclick=\"onFavouriteClickOffer(";
// line 145
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 145, $this->source); })()), "getID", [], "method", false, false, false, 145), "html", null, true);
echo ", ";
echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite", $context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.', 145, $this->source); })())) ? ("true") : ("false"));
echo ")\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Добавить в <br> избранное\"
>
<img src=\"";
// line 151
echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite", $context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.', 151, $this->source); })())) ? ("/images/heart_active.svg") : ("/images/offers/follow.svg"));
echo "\">
</div>
";
}
// line 154
echo " </div>
</div>
<div class=\"right-top-block\">
<div class=\"offers-description\">
";
// line 158
if (((isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 158, $this->source); })()) || (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.', 158, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 158), 0)))) {
// line 159
echo " <div class=\"past-offer mt-5 pt-5\">
<i class=\"slivki-icon-minus-circled\"></i>
<p>Упс, акция завершена!</p>
<a href=\"#offersConditions\" class=\"buttons-link-offers\">
Условия
</a>
<a href=\"#conditionAddress\" class=\"buttons-link-offers\">
Адрес, телефоны
</a>
<a href=\"#offersReview\" class=\"buttons-link-offers\">
Отзывы
</a>
</div>
";
} else {
// line 174
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.', 174, $this->source); })()), "isInFreeCodesCategory", [], "method", false, false, false, 174) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 174, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 174))) {
// line 175
echo " <div class=\"d-flex statistic-block ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
echo "justify-content-between";
}
echo " col px-2 my-0\">
<p class=\"text-dark-violet font-size-0750 text-end w-auto\"
data-toggle=\"tooltip\"
data-html=\"true\" data-placement=\"top\"
data-original-title=\"Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней\">
Конверсия ";
// line 180
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getOfferConversion(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 180, $this->source); })()), "getID", [], "method", false, false, false, 180)), "html", null, true);
echo "%</p>
</div>
";
}
// 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=\"d-flex offers-description--item\">
<div class=\"col\">
<p class=\"color-dark-gray px-0 mb-0\">Взято всего:</p>
</div>
<div class=\"col font-bold text-end\">
<p> ";
// line 189
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.', 189, $this->source); })())) : ((isset($context["usedCodesCount"]) || array_key_exists("usedCodesCount", $context) ? $context["usedCodesCount"] : (function () { throw new RuntimeError('Variable "usedCodesCount" does not exist.', 189, $this->source); })()))), "html", null, true);
echo "
";
// line 190
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "промокод", 1 => "промокода", 2 => "промокодов"], (isset($context["usedCodesCount"]) || array_key_exists("usedCodesCount", $context) ? $context["usedCodesCount"] : (function () { throw new RuntimeError('Variable "usedCodesCount" does not exist.', 190, $this->source); })())), "html", null, true);
echo "
из ";
// line 191
echo twig_escape_filter($this->env, (isset($context["allCodesCount"]) || array_key_exists("allCodesCount", $context) ? $context["allCodesCount"] : (function () { throw new RuntimeError('Variable "allCodesCount" does not exist.', 191, $this->source); })()), "html", null, true);
echo "</p>
</div>
</div>
<div class=\"d-flex px-2 my-0\">
<div class=\"col\">
<p class=\"color-dark-gray mb-0\">Взято сутки/месяц:</p>
</div>
<div class=\"col font-bold text-end pl-2\">
<p>";
// line 199
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.', 199, $this->source); })()), "html", null, true);
echo "
/";
// line 200
(((1 === twig_compare($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.', 200, $this->source); })()), "getID", [], "method", false, false, false, 200), 30), 0))) ? (print (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.', 200, $this->source); })()), "getID", [], "method", false, false, false, 200), 30), "html", null, true))) : (print (0)));
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "промокод", 1 => "промокода", 2 => "промокодов"], (isset($context["todayPurchaseCount"]) || array_key_exists("todayPurchaseCount", $context) ? $context["todayPurchaseCount"] : (function () { throw new RuntimeError('Variable "todayPurchaseCount" does not exist.', 200, $this->source); })())), "html", null, true);
echo "
</p>
</div>
</div>
";
}
// line 205
echo " <div class=\"d-flex ";
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.', 205, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 205)) ? ("pl-2") : ("offers-description--item"));
echo "\">
<div class=\"col\">
<p class=\"color-dark-gray\">Просмотров сутки/месяц:</p>
</div>
<div class=\"col font-bold text-end\">
<p>";
// line 210
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.', 210, $this->source); })()), "html", null, true);
echo "/";
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.', 210, $this->source); })()), "html", null, true);
echo "</p>
</div>
</div>
";
// line 213
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.', 213, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 213)) {
// line 214
echo " <div class=\"d-flex px-2 my-0\">
<div class=\"col\">
<p class=\"color-dark-gray\">До завершения: </p>
</div>
<div class=\"col text-end\">
";
// line 219
if ((1 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 219, $this->source); })()), 0))) {
// line 220
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.', 220, $this->source); })()), "html", null, true);
echo " \"/>
<input type=\"hidden\" id=\"hoursLeft\" value=\"";
// line 221
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.', 221, $this->source); })()), "html", null, true);
echo " \"/>
<input type=\"hidden\" id=\"minutesLeft\" value=\"";
// line 222
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.', 222, $this->source); })()), "html", null, true);
echo " \"/>
<input type=\"hidden\" id=\"secondsLeft\"
value=\"";
// line 224
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.', 224, $this->source); })()), "getActiveTill", [], "method", false, false, false, 224), "diff", [0 => twig_date_converter($this->env)], "method", false, false, false, 224), "format", [0 => "%s"], "method", false, false, false, 224), "html", null, true);
echo "\"/>
<span id=\"days\">";
// line 225
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.', 225, $this->source); })()), "html", null, true);
echo "
 </span>";
// line 226
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.', 226, $this->source); })())), "html", null, true);
echo ",
<span id=\"hours\">";
// line 227
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.', 227, $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.', 227, $this->source); })())), "html", null, true);
echo "
";
}
// line 229
echo " </div>
</div>
";
}
// line 232
echo " <div class=\"d-flex offers-description--item js-to-review-block\">
<div class=\"col\">
<p class=\"color-dark-gray\">Отзывы/оценка:</p>
</div>
<div class=\"col font-bold text-end\">
<p>";
// line 237
echo twig_escape_filter($this->env, (isset($context["commentsAmount"]) || array_key_exists("commentsAmount", $context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.', 237, $this->source); })()), "html", null, true);
echo " /
<r data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Рейтинг компании <br> за 90 дней\">
<span class=\"yellow-span\">★</span>";
// line 242
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.', 242, $this->source); })()), "getRating", [], "method", false, false, false, 242), "html", null, true);
echo "</r>
</p>
</div>
</div>
<div class=\"d-flex offer-price-block\">
<div class=\"col px-2\">
<p class=\"color-dark-gray\">Стоимость:</p>
</div>
<div class=\"col text-end\">
<span id=\"offerRegularPrice\"
class=\"regular-price\">";
// line 253
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.', 253, $this->source); })()), "getRegularPrice", [], "method", false, false, false, 253), "html", null, true);
echo "</span>
<span class=\"discount-price\"> ";
// line 254
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.', 254, $this->source); })()), "getOfferPrice", [], "method", false, false, false, 254), ["(" => "<span id=\"details-offer-price\">(", ")" => ")</span>"]);
echo "</span>
</div>
</div>
";
// line 257
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.', 257, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 257)) {
// line 258
echo " <a href=\"/moya_akciya\" target=\"_blank\">
<img class=\"mt-2\" src=\"/images/платидари.png\" style=\"border-radius: 8px\"/>
</a>
";
}
// line 262
echo " ";
}
// line 263
echo " </div>
";
// line 264
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.', 264, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 264) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 264, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 264))) {
// line 265
echo " <div class=\"buttons-wrapper-offers\">
<a id=\"deliveryBtn\" href=\"";
// line 267
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.', 267, $this->source); })()), "getOnlineRegistrationLink", [], "method", false, false, false, 267), "html", null, true);
echo "\" style=\"margin: 14px 0;\"
class=\"online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Онлайн-запись
</a>
</div>
";
}
// line 273
echo "
";
// line 275
if (((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.', 275, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 275), 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.', 275, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 275))) {
// line 276
echo " <div class=\"d-flex\" style=\"min-height: 90px;align-items: end;\">
<div class=\"buttons-wrapper-offers\">
";
// line 278
if (array_key_exists("hasDelivery", $context)) {
// line 279
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.', 279, $this->source); })()), "isBuyCodeDisable", [], "method", false, false, false, 279)) {
// line 280
echo " ";
$this->loadTemplate("Slivki/offers/buy_button.html.twig", "Slivki/offers/details.html.twig", 280)->display($context);
// line 281
echo " ";
}
// line 282
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.', 282, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 282)) {
// line 283
echo " <a id=\"deliveryBtn\" href=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Slivki\Twig\GetLinkOnlineOrderRuntime')->getLinkFoodOnlineOrder((isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 283, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
<div style=\"flex-direction: column;\">
<p>Заказать онлайн ";
// line 286
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.', 286, $this->source); })()), "getDiscount", [], "method", false, false, false, 286), "html", null, true);
echo "</p>
";
// line 287
if (((( !(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.', 287, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 287)) && (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.', 287, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 287), "allowedPaymentMethods", [], "any", false, false, false, 287), "delivery", [], "array", false, false, false, 287), 4, [], "array", false, false, false, 287), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) || (( !(null === twig_get_attribute($this->env, $this->source, // line 288
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 288, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 288)) && (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.', 288, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 288), "allowedPaymentMethods", [], "any", false, false, false, 288), "pickup", [], "array", false, false, false, 288), 4, [], "array", false, false, false, 288), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))))) {
// line 289
echo " <p style=\"text-transform: math-auto;\">доступна оплата SlivkiPay + 5%</p>
";
}
// line 291
echo " </div>
</a>
";
}
// line 294
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.', 294, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 294)) {
// line 295
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.', 295, $this->source); })()), "getID", [], "method", false, false, false, 295), twig_constant("Slivki\\Entity\\Offer::MINSK_WORLD_CERTIFICATE_OFFER_ID")))) {
// line 296
echo " <a id=\"deliveryBtn\" 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.', 296, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Получить скидку ";
// line 298
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.', 298, $this->source); })()), "getDiscount", [], "method", false, false, false, 298), "html", null, true);
echo "
</a>
";
} elseif (twig_in_filter(twig_get_attribute($this->env, $this->source, // line 300
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 300, $this->source); })()), "getID", [], "method", false, false, false, 300), twig_constant("Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS"))) {
// line 301
echo " <a id=\"deliveryBtn2\"
href=\"";
// line 302
echo twig_escape_filter($this->env, $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.', 302, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
ПОЛУЧИТЬ СКИДКУ ";
// line 304
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.', 304, $this->source); })()), "getDiscount", [], "method", false, false, false, 304), "html", null, true);
echo "
</a>
";
} elseif ( !twig_get_attribute($this->env, $this->source, // line 306
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 306, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 306)) {
// line 307
echo " <a id=\"deliveryBtn\" 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.', 307, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
<div style=\"flex-direction: column;\">
<p>Оплатить онлайн ";
// line 310
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.', 310, $this->source); })()), "getDiscount", [], "method", false, false, false, 310), "html", null, true);
echo "</p>
";
// line 311
if ((((twig_get_attribute($this->env, $this->source, ($context["offer"] ?? null), "getAllowedPaymentMethodsForCertificate", [], "method", true, true, false, 311) && !(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.', 311, $this->source); })()), "getAllowedPaymentMethodsForCertificate", [], "method", false, false, false, 311))) && (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.', 311, $this->source); })()), "getAllowedPaymentMethodsForCertificate", [], "method", false, false, false, 311), 4, [], "array", false, false, false, 311), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY")))) {
// line 312
echo " <p style=\"text-transform: math-auto;\">доступна оплата SlivkiPay + 5%</p>
";
}
// line 314
echo " </div>
</a>
";
}
// line 317
echo " ";
}
// line 318
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.', 318, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 318)) {
// line 319
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.', 319, $this->source); })()), "getOnlineRegistrationLink", [], "method", false, false, false, 319), "html", null, true);
echo "\"
class=\"online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Онлайн-запись
</a>
";
}
// line 324
echo " ";
} elseif ((isset($context["isAllowedByOnlyCode"]) || array_key_exists("isAllowedByOnlyCode", $context) ? $context["isAllowedByOnlyCode"] : (function () { throw new RuntimeError('Variable "isAllowedByOnlyCode" does not exist.', 324, $this->source); })())) {
// line 325
echo " <div class=\"col\">
";
// line 326
$this->loadTemplate("Slivki/offers/buy_button.html.twig", "Slivki/offers/details.html.twig", 326)->display($context);
// line 327
echo " </div>
";
}
// line 329
echo " ";
if (((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 329, $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.', 329, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 329), 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.', 329, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 329)) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 329, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 329))) {
// line 330
echo " <div class=\"col mb-2\">
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
<div class=\"button-gift-text\">
<p>ЕДА В ПОДАРОК 😋</p>
<p>Подарю сам или подарят мне</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
</div>
</div>
";
}
// line 343
echo " ";
if ((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 343, $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.', 343, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 343)) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE")))) {
// line 344
echo " <div class=\"col mb-3\" style=\"width: 350px;margin: 0 auto\">
</div>
";
}
// line 348
echo "
";
}
// line 350
echo " </div>
</div>
</div>
</div>
<div id=\"conditions_offers\" class=\"d-flex\" style=\"";
// line 354
echo (((isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 354, $this->source); })())) ? ("display: none!important") : (""));
echo "\">
<div class=\"content-wrapper-col-left pt-0\">
<div id=\"offersConditions\" class=\"offers-conditions active\" style=\"max-height: fit-content;\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Условия</h2></div>
";
// line 358
$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.', 358, $this->source); })()), "user", [], "any", false, false, false, 358)) ? (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.', 358, $this->source); })()), "user", [], "any", false, false, false, 358), "isOfferFavourite", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 358, $this->source); })())], "method", false, false, false, 358)) : (false));
// line 359
echo " <div id=\"startOfOfferCondition\"></div>
";
// line 360
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.', 360, $this->source); })()), "getID", [], "method", false, false, false, 360), 239232))) {
// line 361
echo " ";
}
// line 362
echo "
";
// line 363
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.', 363, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 363) && (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.', 363, $this->source); })()), "getID", [], "method", false, false, false, 363), 140553)))) {
// line 364
echo " <p>
";
// line 365
$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.', 365, $this->source); })()), "getCodeActiveTill", [], "method", false, false, false, 365);
// line 366
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.', 366, $this->source); })()), "getActiveTill", [], "method", false, false, false, 366), "-1 day");
// line 367
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.', 367, $this->source); })()), (isset($context["codeTill"]) || array_key_exists("codeTill", $context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.', 367, $this->source); })())))) ? ((isset($context["codeTill"]) || array_key_exists("codeTill", $context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.', 367, $this->source); })())) : ((isset($context["codeFrom"]) || array_key_exists("codeFrom", $context) ? $context["codeFrom"] : (function () { throw new RuntimeError('Variable "codeFrom" does not exist.', 367, $this->source); })())));
// line 368
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.', 368, $this->source); })()), "isHideFeatures", [], "method", false, false, false, 368)) {
// line 369
echo " - Получить промокод можно до ";
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.', 369, $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.', 369, $this->source); })()), "getID", [], "method", false, false, false, 369), 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.', 369, $this->source); })()), "d.m.y"), "html", null, true);
echo "
<br/>
";
}
// line 372
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.', 372, $this->source); })()), "isShowPriceInConditions", [], "method", false, false, false, 372) && !(isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 372, $this->source); })()))) {
// line 373
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.', 373, $this->source); })()), "html", null, true);
echo " руб.
";
}
// line 375
echo " </p>
";
}
// line 377
echo "
<div class=\"offer-details-conditions offers-conditions p-0\">
";
// line 379
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.', 379, $this->source); })()), "getConditions", [], "method", false, false, false, 379);
echo "
";
// line 381
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.', 381, $this->source); })()), "getID", [], "method", false, false, false, 381), 143528))) {
// line 382
echo " ";
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer2.html.twig", "Slivki/offers/details.html.twig", 382)->display($context);
// line 383
echo " ";
} elseif ((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.', 383, $this->source); })()), "getID", [], "method", false, false, false, 383), 282234))) {
// line 384
echo " ";
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer4.html.twig", "Slivki/offers/details.html.twig", 384)->display($context);
// line 385
echo " ";
}
// line 386
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.', 386, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 386)) {
// line 387
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.', 387, $this->source); })())) . "/phrase_subscription_in_offer_page.html.twig"), "Slivki/offers/details.html.twig", 387)->display($context);
// line 388
echo " ";
}
// line 389
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.', 389, $this->source); })()), "isHideFeatures", [], "method", false, false, false, 389)) {
// line 390
echo " </br>
<div class=\"offer-titles mb-2 mt-0\"><h2>Особенности</h2></div>
<div class=\"offer-details-conditions\">
";
// line 393
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 393, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 393)) {
// line 394
echo " - Скидка предоставляется только при наличии промокода.
";
}
// line 396
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.', 396, $this->source); })()), "getFeatures", [], "method", false, false, false, 396);
echo "
</div>
- Поставщик несет полную ответственность перед потребителем за достоверность информации.
";
}
// line 400
echo " </div>
<div id=\"endOfOfferCondition\"></div>
<div class=\"clear\"></div>
</div>
";
// line 404
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.', 404, $this->source); })()), "getShopMedias", [], "method", false, false, false, 404)), 0))) {
// line 405
echo " <div class=\"offer-titles mb-2 mt-0\"><h2>Галерея</h2></div>
";
}
// line 407
echo " <div id=\"offerConditionsSlider\"
class=\"my-4 screenshots ";
// line 408
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.', 408, $this->source); })()), "getShopMedias", [], "method", false, false, false, 408)), 0)) || (0 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 408, $this->source); })()), 0)))) ? ("empty") : (""));
echo "\">
";
// line 409
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.', 409, $this->source); })()), "getShopMedias", [], "method", false, false, false, 409)), 0))) {
// line 410
echo " <div class=\"screenshot-container\">
";
// line 411
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 411) && (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.', 411, $this->source); })()), "getVideos", [], "method", false, false, false, 411)), 0)))) {
// line 412
echo " <div class=\"screenshot screenshot-story\" data-toggle=\"modal\"
data-target=\"#detailsStoryPopup\">
<img src=\"";
// line 414
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.', 414, $this->source); })()), "getImageUrl", [], "method", false, false, false, 414), "html", null, true);
echo "\" width=\"300\"
alt=\"Видео\" border=\"0\"/>
<div class=\"screenshot-story-btn\"></div>
<div class=\"screenshot-story-tittle\">";
// line 417
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.', 417, $this->source); })()), "getTitle", [], "method", false, false, false, 417), "html", null, true);
echo "</div>
</div>
";
}
// line 420
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.', 420, $this->source); })()), "getShopMedias", [], "method", false, false, false, 420));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 421
echo " <div class=\"screenshot\">
<a href=\"";
// line 422
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 0, 0), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 422), "html", null, true);
echo "\"
data-lightbox=\"image\">
<img src=\"";
// line 424
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 300, 0), "html", null, true);
echo "\" width=\"300\"
alt=\"";
// line 425
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 425), "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 429
echo " </div>
";
}
// line 431
echo " </div>
<div id=\"examplesOfWorksBlock\" class=\"\">
<div class=\"headerBlockCategory examples d-none bg-white px-0 pb-0 bg-transpanent examples-block-offer-header\">
<div class=\"offer-titles\"><h5 class=\"m-0\">Фото
работ";
// line 435
echo "</h5>
</div>
<div class=\"examples-works-tooltip-filter\">
<div class=\"tooltip-content\">
<div class=\"tooltip-title border-bottom-f d-flex\">Показать сначала:</div>
";
// line 440
$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 441
echo " <div class=\"radio\">
<input id=\"filter";
// line 442
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" type=\"radio\" name=\"filter\"
data-direction=\"";
// line 443
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "direction", [], "any", false, false, false, 443), "html", null, true);
echo "\"
value=\"";
// line 444
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "field", [], "any", false, false, false, 444), "html", null, true);
echo "\" ";
echo ((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 444)) ? ("checked") : (""));
echo ">
<label for=\"filter";
// line 445
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\"
class=\"cursor-pointer\">";
// line 446
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "name", [], "any", false, false, false, 446), "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 449
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\" name=\"startRange\"
id=\"startRange\">
<input class=\"work-simples-input\" type=\"range\" name=\"finishRange\"
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 484
$this->loadTemplate("Slivki/works-examples/examples_of_works_gallery.html.twig", "Slivki/offers/details.html.twig", 484)->display($context);
// line 485
echo " </div>
<div id=\"beautyMastersBlock\" class=\"beauty-masters-container beauty-masters-offer desk\">
<div id=\"beautyMastersHeader\"
class=\"tittleBlockCategory position-relative offer-titles mb-2 mt-0 d-none\"><h2>
";
// line 489
echo ((((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 489, $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.', 489, $this->source); })()), 0, [], "array", false, false, false, 489), "getID", [], "method", false, false, false, 489), twig_constant("Slivki\\Entity\\Category::MEDICAL_CENTER_CATEGORY_ID"))))) ? ("Врачи") : ("Найти своего мастера"));
echo "</h2>
</div>
";
// line 491
$this->loadTemplate("Slivki/beauty/beauty_masters.html.twig", "Slivki/offers/details.html.twig", 491)->display($context);
// line 492
echo " </div>
<div id=\"offersDescription\" class=\"offers-conditions mt-3\">
";
// line 494
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.', 494, $this->source); })()), "isShowProductsInOfferDescription", [], "method", false, false, false, 494)) {
// line 495
echo " <div id=\"foodItemsBlock\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Описание</h2></div>
";
// line 497
if (((isset($context["isPickupEnabled"]) || array_key_exists("isPickupEnabled", $context) ? $context["isPickupEnabled"] : (function () { throw new RuntimeError('Variable "isPickupEnabled" does not exist.', 497, $this->source); })()) && (isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled", $context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.', 497, $this->source); })()))) {
// line 498
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=\"col d-flex align-items-center text-white justify-content-end px-0\"></div>
<div class=\"switch-delivery-pickup-block px-0 \">
<a data-type-delivery=\"1\"
class=\"switch-delivery-pickup-item button-tab-delivery delivery-type active\">
<p class=\"m-0\">Доставка</p>
<small>удобно👌</small>
</a>
<a data-type-delivery=\"2\"
class=\"switch-delivery-pickup-item pickup-type button-tab-pickup\">
<p class=\"m-0\"> Самовывоз</p>
<small>еще дешевле🔥</small>
</a>
</div>
</div>
";
}
// line 515
echo "
<div id=\"foodBlock\"></div>
<div id=\"foodOptionsBlock\"></div>
</div>
";
}
// line 520
echo " <div class=\"description\" id=\"descriptionText\">
";
// line 521
$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.', 521, $this->source); })()), "getDescriptionList", [], "method", false, false, false, 521));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescription"]) {
// line 522
echo "
";
// line 523
$context["offerDescriptionSliderImages"] = twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getEntityDescriptionSliderImages", [], "method", false, false, false, 523);
// line 524
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.', 524, $this->source); })())), 0))) {
// line 525
echo " <div class=\"sale-description-carousel\">
<div id=\"saleDescriptionSliderFor";
// line 526
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getID", [], "method", false, false, false, 526), "html", null, true);
echo "\"
class=\"sale-description-slider-for\">
";
// line 528
$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.', 528, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescriptionSliderImage"]) {
// line 529
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, 529), "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 532
echo " </div>
</div>
";
}
// line 535
echo " ";
echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->addLazyAndLightboxImagesInDescription(twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getDescription", [], "method", false, false, false, 535));
echo "
";
// line 537
echo " ";
// line 538
echo " ";
// line 539
echo " ";
// line 540
echo " ";
// line 541
echo " ";
// line 542
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 543
echo " </div>
</div>
<div class=\"tab-pane fade\" id=\"offerLocationTab\">
<i class=\"fa fa-spinner fa-spin\"></i>
</div>
<div id=\"offersReview\" class=\"offers-review\">
";
// line 550
echo (isset($context["comments"]) || array_key_exists("comments", $context) ? $context["comments"] : (function () { throw new RuntimeError('Variable "comments" does not exist.', 550, $this->source); })());
echo "
</div>
</div>
<div class=\"content-wrapper-col-right\">
<div id=\"conditionAddress\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Контакты</h2></div>
<div style=\"display:none\">";
// line 556
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.', 556, $this->source); })()), "getAddress", [], "method", false, false, false, 556), "html", null, true);
echo "</div>
<div id=\"offerConditionLogo\">
";
// line 558
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.', 558, $this->source); })()), "getLogo", [], "method", false, false, false, 558);
echo "
</div>
<div id=\"dataFromLocation\">
<div class=\"move-data\">
";
// line 562
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.', 562, $this->source); })())), 0))) {
// line 563
echo " <div class=\"geo-location-block\" style=\"display: block\">
";
// line 564
$this->loadTemplate("Slivki/offers/geo_location_data.html.twig", "Slivki/offers/details.html.twig", 564)->display(twig_to_array(["offer" => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 564, $this->source); })())]));
// line 565
echo " <div id=\"offerGeoLocationData\" data-json=\"";
echo twig_escape_filter($this->env, (isset($context["offerGeoLocationData"]) || array_key_exists("offerGeoLocationData", $context) ? $context["offerGeoLocationData"] : (function () { throw new RuntimeError('Variable "offerGeoLocationData" does not exist.', 565, $this->source); })()), "html", null, true);
echo "\"></div>
<div class=\"distance d-none\">
<i class=\"slivki-icon slivki-icon-direction\"></i> <img class='ajaxLoader'
src='/images/ajax-loader-16x16.gif'
alt='Загрузка...'/><span></span>
</div>
<div class=\"offer-details-map category-map-wrapper category-map\"
id=\"offerMapCanvas\">
<div id=\"mapCollapseBtn\" class=\"button button--map-collapse capsuled\"
onclick=\"offerMapToggleSize();\">Развернуть
</div>
<a id=\"setUserLocationBtn\" href=\"#\" class=\"capsuled\">Указать
местоположение</a>
<div id=\"zoomIn\"></div>
<div id=\"zoomOut\"></div>
</div>
</div>
";
}
// line 583
echo " <div class=\"before-map\" style=\"clear:both;\"></div>
</div>
</div>
";
// line 586
if ((0 !== twig_compare(twig_replace_filter($this->extensions['Slivki\Twig\SlivkiTwigExtension']->pregReplaceFilter(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 586, $this->source); })()), "getLocation", [], "method", false, false, false, 586), "/<[^>]*>/", ""), ["
" => "", "
" => "", " " => "", " " => ""]), ""))) {
// line 587
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.', 587, $this->source); })()), "getLocation", [], "method", false, false, false, 587);
echo "
";
// line 588
$context["phoneNumbers"] = twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 588, $this->source); })()), "getPhoneNumbers", [], "method", false, false, false, 588);
// line 589
echo " ";
if ((1 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["phoneNumbers"]) || array_key_exists("phoneNumbers", $context) ? $context["phoneNumbers"] : (function () { throw new RuntimeError('Variable "phoneNumbers" does not exist.', 589, $this->source); })()), "count", [], "method", false, false, false, 589), 0))) {
// line 590
echo " <div class=\"text-bold\">Телефон";
echo (((1 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["phoneNumbers"]) || array_key_exists("phoneNumbers", $context) ? $context["phoneNumbers"] : (function () { throw new RuntimeError('Variable "phoneNumbers" does not exist.', 590, $this->source); })()), "count", [], "method", false, false, false, 590), 1))) ? ("ы") : (""));
echo ":</div>
";
}
// line 592
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.', 592, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 593
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 593), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 593), "html", null, true);
echo "<br/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phoneNumber'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 595
echo " ";
} else {
// line 596
echo " ";
$context["geoLocationsCount"] = 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.', 596, $this->source); })()), "count", [], "method", false, false, false, 596);
// line 597
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.', 597, $this->source); })()), "getCommonWorkingHours", [], "method", false, false, false, 597);
// line 598
echo " ";
if ((0 !== twig_compare((isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 598, $this->source); })()), ""))) {
// line 599
echo " <br>
<div class=\"text-bold\">Время работы:</div>
";
// line 601
echo (isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 601, $this->source); })());
echo "
";
}
// line 603
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.', 603, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["geoLocation"]) {
// line 604
echo " ";
$context["margin"] = false;
// line 605
echo " <div class=\"offer-details-geolocation-item my-3\">
<div class=\"font-bold font-size-17\">г. ";
// line 606
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCity", [], "method", false, false, false, 606), "html", null, true);
echo "
, ";
// line 607
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getStreet", [], "method", false, false, false, 607), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getHouse", [], "method", false, false, false, 607), "html", null, true);
echo "
<br>";
// line 608
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getLabel", [], "method", false, false, false, 608), "html", null, true);
echo "</div>
<div class=\"location-more-info ";
// line 609
echo (((1 === twig_compare((isset($context["geoLocationsCount"]) || array_key_exists("geoLocationsCount", $context) ? $context["geoLocationsCount"] : (function () { throw new RuntimeError('Variable "geoLocationsCount" does not exist.', 609, $this->source); })()), 2))) ? ("hidden") : (""));
echo "\">
";
// line 610
if ((0 !== twig_compare(twig_trim_filter(twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 610)), ""))) {
// line 611
echo " ";
$context["margin"] = true;
// line 612
echo " <div class=\"offer-details-work-hours\">Время работы:
</div> ";
// line 613
echo twig_nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 613), "html", null, true));
echo "
";
}
// line 615
echo " ";
$context["phoneNumbers"] = twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getPhoneNumbers", [], "method", false, false, false, 615);
// line 616
echo " ";
if ((1 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["phoneNumbers"]) || array_key_exists("phoneNumbers", $context) ? $context["phoneNumbers"] : (function () { throw new RuntimeError('Variable "phoneNumbers" does not exist.', 616, $this->source); })()), "count", [], "method", false, false, false, 616), 0))) {
// line 617
echo " ";
$context["margin"] = true;
// line 618
echo " <span>
<div class=\"offer-details-phone-item\">
<div class=\"full-phone-item\">
";
// line 621
$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.', 621, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 622
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 622), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 622), "html", null, true);
echo "<br/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phoneNumber'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 624
echo " </div>
</div>
";
}
// line 630
echo " </span>
";
// line 631
if ((twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCallbackChatId", [], "method", false, false, false, 631) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCallbackChatId", [], "method", false, false, false, 631), "")))) {
// line 632
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, 632), "html", null, true);
echo "\">Обратный
звонок
</div>
";
}
// line 636
echo " </div>
";
// line 637
if ((1 === twig_compare((isset($context["geoLocationsCount"]) || array_key_exists("geoLocationsCount", $context) ? $context["geoLocationsCount"] : (function () { throw new RuntimeError('Variable "geoLocationsCount" does not exist.', 637, $this->source); })()), 2))) {
// line 638
echo " <a data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getID", [], "method", false, false, false, 638), "html", null, true);
echo "\"
class=\"text-slivki location-more-info-toggle\">Подробнее</a>
";
}
// line 641
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 644
echo " ";
// line 645
echo " ";
// line 646
echo " ";
// line 647
echo " ";
// line 648
echo " ";
// line 649
echo "
";
// line 650
$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.', 650, $this->source); })()), "getPhoneNumbersWithoutGeoLocations", [], "method", false, false, false, 650);
// line 651
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.', 651, $this->source); })())), 0))) {
// line 652
echo " <div class=\"text-bold\">Телефон";
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.', 652, $this->source); })())), 1))) ? ("ы") : (""));
echo ":
</div>
<div class=\"offer-details-phone-item\">
<div class=\"full-phone-item\">
";
// line 656
$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.', 656, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 657
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 657), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 657), "html", null, true);
echo "<br/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phoneNumber'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 659
echo " </div>
</div>
";
// line 661
if (((array_key_exists("phoneNumber", $context) && twig_get_attribute($this->env, $this->source, (isset($context["phoneNumber"]) || array_key_exists("phoneNumber", $context) ? $context["phoneNumber"] : (function () { throw new RuntimeError('Variable "phoneNumber" does not exist.', 661, $this->source); })()), "getCallbackChatId", [], "method", false, false, false, 661)) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["phoneNumber"]) || array_key_exists("phoneNumber", $context) ? $context["phoneNumber"] : (function () { throw new RuntimeError('Variable "phoneNumber" does not exist.', 661, $this->source); })()), "getCallbackChatId", [], "method", false, false, false, 661), "")))) {
// line 662
echo " <div class=\"callback-button\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["phoneNumber"]) || array_key_exists("phoneNumber", $context) ? $context["phoneNumber"] : (function () { throw new RuntimeError('Variable "phoneNumber" does not exist.', 662, $this->source); })()), "getId", [], "method", false, false, false, 662), "html", null, true);
echo "\">Обратный звонок
</div>
";
}
// line 665
echo " ";
}
// line 666
echo "
";
}
// line 668
echo " <div id=\"phoneOffersBlock\" class=\"offer-details-legal-info\">";
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.', 668, $this->source); })()), "getLegal", [], "method", false, false, false, 668);
echo "</div>
<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 673
(((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.', 673, $this->source); })()), "getTelegram", [], "method", false, false, false, 673), 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.', 673, $this->source); })()), "getTelegram", [], "method", false, false, false, 673), "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 678
$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.', 678, $this->source); })()), "getViber", [], "method", false, false, false, 678), 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.', 678, $this->source); })()), "getViber", [], "method", false, false, false, 678)) : ("+375295084444"));
// line 684
echo " </div>
</div>
";
// line 686
$this->loadTemplate("Slivki/offers/share.html.twig", "Slivki/offers/details.html.twig", 686)->display($context);
// line 687
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.', 687, $this->source); })())) . "/jivosite/button_offers_page.html.twig"), "Slivki/offers/details.html.twig", 687)->display($context);
// line 688
echo " <p class=\"tittle-messenger-offers d-none\">Мы всегда рады помочь: служба поддержки Slivki.by ответит
на
любой
ваш вопрос</p>
</div>
</div>
</div>
";
// line 696
if ((((isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 696, $this->source); })()) || (0 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 696, $this->source); })()), 0))) && array_key_exists("relatedOfferListHtml", $context))) {
// line 697
echo " <div class=\"col px-3\">
<div class=\"related-offers-title\">Другие похожие предложения:</div>
<div class=\"related-offers-list stock-group-list\">
";
// line 700
echo (isset($context["relatedOfferListHtml"]) || array_key_exists("relatedOfferListHtml", $context) ? $context["relatedOfferListHtml"] : (function () { throw new RuntimeError('Variable "relatedOfferListHtml" does not exist.', 700, $this->source); })());
echo "
</div>
</div>
";
}
// line 704
echo " </div>
";
// line 705
if (array_key_exists("lastPurchaseText", $context)) {
// line 706
echo " <div id=\"lastPurchaseNofify\"><a href=\"#\"><i class=\"slivki-icon-close-thin\"></i></a>Последний раз промокод<br>получен ";
echo twig_escape_filter($this->env, (isset($context["lastPurchaseText"]) || array_key_exists("lastPurchaseText", $context) ? $context["lastPurchaseText"] : (function () { throw new RuntimeError('Variable "lastPurchaseText" does not exist.', 706, $this->source); })()), "html", null, true);
echo "
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 711
public function block_popups($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", "popups"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "popups"));
// line 712
echo " ";
$this->displayParentBlock("popups", $context, $blocks);
echo "
";
// line 713
if ( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 713, $this->source); })())) {
// line 714
echo " ";
$this->loadTemplate("Slivki/popups/header_offers.html.twig", "Slivki/offers/details.html.twig", 714)->display($context);
// line 715
echo " ";
}
// line 716
echo " ";
$this->loadTemplate("Slivki/share_block.html.twig", "Slivki/offers/details.html.twig", 716)->display($context);
// line 717
echo " ";
$this->loadTemplate("Slivki/popups/callback.html.twig", "Slivki/offers/details.html.twig", 717)->display($context);
// line 718
echo " ";
$this->loadTemplate("Slivki/offers/complaint.html.twig", "Slivki/offers/details.html.twig", 718)->display($context);
// line 719
echo " ";
$this->loadTemplate("Slivki/orderAsGift/foodForGift.html.twig", "Slivki/offers/details.html.twig", 719)->display($context);
// line 720
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 720) && (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.', 720, $this->source); })()), "getVideos", [], "method", false, false, false, 720)), 0)))) {
// line 721
echo " ";
$this->loadTemplate("Slivki/popups/details-story-popup.html.twig", "Slivki/offers/details.html.twig", 721)->display($context);
// line 722
echo " ";
}
// line 723
echo " ";
$this->loadTemplate("Slivki/popups/comment_media_block_popup.html.twig", "Slivki/offers/details.html.twig", 723)->display($context);
// line 724
echo " ";
$this->loadTemplate("Slivki/popups/statistics_popup.html.twig", "Slivki/offers/details.html.twig", 724)->display($context);
// line 725
echo " ";
$this->loadTemplate("Slivki/mobile/popup/buy_codes_avways_app.html.twig", "Slivki/offers/details.html.twig", 725)->display($context);
// line 726
echo " ";
$this->loadTemplate("Slivki/delivery/modal/details.html.twig", "Slivki/offers/details.html.twig", 726)->display(twig_array_merge($context, ["isOfferPage" => true]));
// line 727
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.', 727, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 727)) {
// line 728
echo " ";
$this->loadTemplate("Slivki/popups/step_buy_certificate.twig", "Slivki/offers/details.html.twig", 728)->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.', 728, $this->source); })())]));
// line 729
echo " ";
}
// line 730
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.', 730, $this->source); })()), "user", [], "any", false, false, false, 730)) {
// line 731
echo " ";
$this->loadTemplate("Slivki/popups/mail_offers.html.twig", "Slivki/offers/details.html.twig", 731)->display($context);
// line 732
echo " ";
$this->loadTemplate("Slivki/popups/rating_edit_popup.html.twig", "Slivki/offers/details.html.twig", 732)->display($context);
// line 733
echo " ";
$this->loadTemplate("Slivki/popups/popup_subscription_limited.html.twig", "Slivki/offers/details.html.twig", 733)->display($context);
// line 734
echo " ";
if (( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice() || (isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 734, $this->source); })()))) {
// line 735
echo " ";
if (( !array_key_exists("codeCostInCurrency", $context) && !(null === (isset($context["codeCostInCurrency"]) || array_key_exists("codeCostInCurrency", $context) ? $context["codeCostInCurrency"] : (function () { throw new RuntimeError('Variable "codeCostInCurrency" does not exist.', 735, $this->source); })())))) {
// line 736
echo " ";
$context["codeCostInCurrency"] = null;
// line 737
echo " ";
}
// line 738
echo " ";
$this->loadTemplate("Slivki/popups/confirm_box.html.twig", "Slivki/offers/details.html.twig", 738)->display(twig_array_merge($context, ["codeCost" => (isset($context["codeCost"]) || array_key_exists("codeCost", $context) ? $context["codeCost"] : (function () { throw new RuntimeError('Variable "codeCost" does not exist.', 738, $this->source); })()), "offerID" => twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 738, $this->source); })()), "getID", [], "method", false, false, false, 738), "codeCostInCurrency" => (isset($context["codeCostInCurrency"]) || array_key_exists("codeCostInCurrency", $context) ? $context["codeCostInCurrency"] : (function () { throw new RuntimeError('Variable "codeCostInCurrency" does not exist.', 738, $this->source); })())]));
// line 739
echo " ";
$this->loadTemplate("Slivki/popups/confirm_subscription_card_popup.html.twig", "Slivki/offers/details.html.twig", 739)->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.', 739, $this->source); })()), "user", [], "any", false, false, false, 739), "getActiveCreditCards", [], "method", false, false, false, 739)]));
// line 740
echo " ";
}
// line 741
echo "
";
// line 742
if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
// line 743
echo " ";
$this->loadTemplate("Slivki/popups/add_comment_popup.html.twig", "Slivki/offers/details.html.twig", 743)->display(twig_array_merge($context, ["id" => "addVoteBox"]));
// line 744
echo " ";
$this->loadTemplate("Slivki/popups/edit_comment_popup.html.twig", "Slivki/offers/details.html.twig", 744)->display(twig_array_merge($context, ["id" => "editVoteBox"]));
// line 745
echo " ";
$this->loadTemplate("Slivki/popups/comment_censor_message.html.twig", "Slivki/offers/details.html.twig", 745)->display(twig_array_merge($context, ["id" => "commentCensorMessage"]));
// line 746
echo " ";
}
// line 747
echo " ";
} else {
// line 748
echo " ";
if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
// line 749
echo " ";
$this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig", "Slivki/offers/details.html.twig", 749)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
// line 750
echo " ";
}
// line 751
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 754
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 755
echo " <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 src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
<script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/locale/ru.min.js\"
integrity=\"sha512-QezkC2mljFGA2zQBPe+FrNA7i2RVFaYOfdQHk6icEap1TZX/Q6MNx+0AOTr9msSec0LsMrpURxfgJSbodYoiLg==\"
crossorigin=\"anonymous\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/fecha/2.3.3/fecha.min.js\"></script>
<script src=\"/js/hotel-datepicker-3.6.5/hotel-datepicker.min.js\"></script>
<script src=\"/js/swiper-js/swiper.min.js\"></script>
<script src=\"/js/story-slider/story-slider-js.js?v=";
// line 767
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.', 767, $this->source); })()), "html", null, true);
echo "\"></script>
";
// line 768
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"/js/offer.js?v=";
// line 769
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.', 769, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/offer/offerDescriptionItems.js?v=";
// line 770
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.', 770, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/common-old.js?v=";
// line 771
echo twig_escape_filter($this->env, (isset($context["common_old_js_version"]) || array_key_exists("common_old_js_version", $context) ? $context["common_old_js_version"] : (function () { throw new RuntimeError('Variable "common_old_js_version" does not exist.', 771, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\">
";
// line 773
if ((array_key_exists("preview", $context) && (isset($context["preview"]) || array_key_exists("preview", $context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.', 773, $this->source); })()))) {
// line 774
echo " var offerPreview = 1;
";
} else {
// line 776
echo " var offerPreview = 0;
";
}
// line 778
echo " ";
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.', 778, $this->source); })()), "request", [], "any", false, false, false, 778), "query", [], "any", false, false, false, 778), "has", [0 => "checkOrder"], "method", false, false, false, 778)) {
// line 779
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.', 779, $this->source); })()), "request", [], "any", false, false, false, 779), "get", [0 => "checkOrder"], "method", false, false, false, 779), "html", null, true);
echo ");
";
}
// line 781
echo " </script>
<script src=\"/js/offer-new.js?v=";
// line 782
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.', 782, $this->source); })()), "html", null, true);
echo "\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 784
public function block_assetsBottom($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", "assetsBottom"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "assetsBottom"));
// line 785
echo " ";
$this->displayParentBlock("assetsBottom", $context, $blocks);
echo "
<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=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js\"
integrity=\"sha512-Y+0b10RbVUTf3Mi0EgJue0FoheNzentTMMIE2OreNbqnUPNbQj8zmjK3fs5D2WhQeGWIem2G2UkKjAL/bJ/UXQ==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
";
// line 793
echo " <script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
<script async src=\"//embedr.flickr.com/assets/client-code.js\" charset=\"utf-8\"></script>
<script type=\"text/javascript\" src=\"/js/statistics_offer/statistics_offer.js?v=";
// line 795
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.', 795, $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=\"https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js\"></script>
<script type=\"module\" src=\"/js/work_examples/work_examples.js?v=";
// line 804
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.', 804, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/beauty/masters.js?v=";
// line 805
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.', 805, $this->source); })()), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 809
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 810
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/offers/details.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1935 => 810, 1925 => 809, 1912 => 805, 1908 => 804, 1896 => 795, 1892 => 793, 1881 => 785, 1871 => 784, 1859 => 782, 1856 => 781, 1850 => 779, 1847 => 778, 1843 => 776, 1839 => 774, 1837 => 773, 1832 => 771, 1828 => 770, 1824 => 769, 1820 => 768, 1816 => 767, 1802 => 755, 1792 => 754, 1781 => 751, 1778 => 750, 1775 => 749, 1772 => 748, 1769 => 747, 1766 => 746, 1763 => 745, 1760 => 744, 1757 => 743, 1755 => 742, 1752 => 741, 1749 => 740, 1746 => 739, 1743 => 738, 1740 => 737, 1737 => 736, 1734 => 735, 1731 => 734, 1728 => 733, 1725 => 732, 1722 => 731, 1719 => 730, 1716 => 729, 1713 => 728, 1710 => 727, 1707 => 726, 1704 => 725, 1701 => 724, 1698 => 723, 1695 => 722, 1692 => 721, 1689 => 720, 1686 => 719, 1683 => 718, 1680 => 717, 1677 => 716, 1674 => 715, 1671 => 714, 1669 => 713, 1664 => 712, 1654 => 711, 1639 => 706, 1637 => 705, 1634 => 704, 1627 => 700, 1622 => 697, 1620 => 696, 1610 => 688, 1607 => 687, 1605 => 686, 1601 => 684, 1599 => 678, 1591 => 673, 1582 => 668, 1578 => 666, 1575 => 665, 1568 => 662, 1566 => 661, 1562 => 659, 1551 => 657, 1547 => 656, 1539 => 652, 1536 => 651, 1534 => 650, 1531 => 649, 1529 => 648, 1527 => 647, 1525 => 646, 1523 => 645, 1521 => 644, 1513 => 641, 1506 => 638, 1504 => 637, 1501 => 636, 1493 => 632, 1491 => 631, 1488 => 630, 1483 => 624, 1472 => 622, 1468 => 621, 1463 => 618, 1460 => 617, 1457 => 616, 1454 => 615, 1449 => 613, 1446 => 612, 1443 => 611, 1441 => 610, 1437 => 609, 1433 => 608, 1427 => 607, 1423 => 606, 1420 => 605, 1417 => 604, 1412 => 603, 1407 => 601, 1403 => 599, 1400 => 598, 1397 => 597, 1394 => 596, 1391 => 595, 1380 => 593, 1375 => 592, 1369 => 590, 1366 => 589, 1364 => 588, 1359 => 587, 1356 => 586, 1351 => 583, 1329 => 565, 1327 => 564, 1324 => 563, 1322 => 562, 1315 => 558, 1310 => 556, 1301 => 550, 1292 => 543, 1286 => 542, 1284 => 541, 1282 => 540, 1280 => 539, 1278 => 538, 1276 => 537, 1271 => 535, 1266 => 532, 1256 => 529, 1252 => 528, 1247 => 526, 1244 => 525, 1241 => 524, 1239 => 523, 1236 => 522, 1232 => 521, 1229 => 520, 1222 => 515, 1203 => 498, 1201 => 497, 1197 => 495, 1195 => 494, 1191 => 492, 1189 => 491, 1184 => 489, 1178 => 485, 1176 => 484, 1139 => 449, 1122 => 446, 1118 => 445, 1112 => 444, 1108 => 443, 1104 => 442, 1101 => 441, 1084 => 440, 1077 => 435, 1071 => 431, 1067 => 429, 1057 => 425, 1053 => 424, 1046 => 422, 1043 => 421, 1038 => 420, 1032 => 417, 1026 => 414, 1022 => 412, 1020 => 411, 1017 => 410, 1015 => 409, 1011 => 408, 1008 => 407, 1004 => 405, 1002 => 404, 996 => 400, 988 => 396, 984 => 394, 982 => 393, 977 => 390, 974 => 389, 971 => 388, 968 => 387, 965 => 386, 962 => 385, 959 => 384, 956 => 383, 953 => 382, 950 => 381, 946 => 379, 942 => 377, 938 => 375, 932 => 373, 929 => 372, 918 => 369, 915 => 368, 912 => 367, 909 => 366, 907 => 365, 904 => 364, 902 => 363, 899 => 362, 896 => 361, 894 => 360, 891 => 359, 889 => 358, 882 => 354, 876 => 350, 872 => 348, 866 => 344, 863 => 343, 848 => 330, 845 => 329, 841 => 327, 839 => 326, 836 => 325, 833 => 324, 824 => 319, 821 => 318, 818 => 317, 813 => 314, 809 => 312, 807 => 311, 803 => 310, 796 => 307, 794 => 306, 789 => 304, 784 => 302, 781 => 301, 779 => 300, 774 => 298, 768 => 296, 765 => 295, 762 => 294, 757 => 291, 753 => 289, 751 => 288, 750 => 287, 746 => 286, 739 => 283, 736 => 282, 733 => 281, 730 => 280, 727 => 279, 725 => 278, 721 => 276, 719 => 275, 715 => 273, 706 => 267, 702 => 265, 700 => 264, 697 => 263, 694 => 262, 688 => 258, 686 => 257, 680 => 254, 676 => 253, 662 => 242, 654 => 237, 647 => 232, 642 => 229, 635 => 227, 631 => 226, 627 => 225, 623 => 224, 618 => 222, 614 => 221, 609 => 220, 607 => 219, 600 => 214, 598 => 213, 590 => 210, 581 => 205, 571 => 200, 567 => 199, 556 => 191, 552 => 190, 548 => 189, 541 => 184, 538 => 183, 532 => 180, 521 => 175, 518 => 174, 501 => 159, 499 => 158, 493 => 154, 487 => 151, 476 => 145, 473 => 144, 470 => 143, 464 => 140, 461 => 139, 459 => 138, 455 => 136, 449 => 132, 447 => 131, 444 => 130, 438 => 127, 434 => 126, 431 => 125, 428 => 124, 421 => 122, 416 => 120, 411 => 119, 406 => 117, 403 => 116, 401 => 115, 398 => 114, 393 => 113, 390 => 112, 387 => 111, 385 => 110, 381 => 109, 378 => 108, 372 => 104, 370 => 103, 365 => 100, 359 => 97, 348 => 91, 345 => 90, 343 => 89, 335 => 86, 328 => 82, 323 => 79, 321 => 78, 313 => 73, 307 => 71, 302 => 69, 297 => 68, 294 => 67, 288 => 65, 286 => 64, 281 => 62, 277 => 61, 273 => 60, 267 => 58, 261 => 56, 258 => 55, 255 => 54, 252 => 53, 249 => 52, 239 => 51, 220 => 50, 209 => 43, 199 => 42, 189 => 40, 183 => 38, 175 => 34, 172 => 33, 169 => 32, 159 => 31, 144 => 23, 140 => 22, 136 => 21, 121 => 8, 111 => 7, 93 => 5, 73 => 3, 62 => 1, 60 => 30, 58 => 28, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{{ parent() }}{{ currentPage is defined and currentPage != 1 ? ' - Страница №' ~ currentPage }}{% endblock %}
{% block messenger %}{% endblock %}
{% block stylesheets %}
<link rel=\"stylesheet\" href=\"/css/statistics_modal.css?v=4\"/>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\"/>
<link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.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\">
<link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\"/>
<link href=\"/css/bootstrap3.3.6.min.css\" type=\"text/css\" rel=\"stylesheet\">
<link rel=\"stylesheet\"
href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker-standalone.min.css\"
integrity=\"sha512-L0/PNISezIYAoqFXBGP9EJ4qLH8XF356+Lo92vzloQqk7HUpZ4FN1x1dUOnsUAUjHTSxXxeaD0HXfrANhtJOEA==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
{{ parent() }}
<link href=\"/css/offers.min.css?v={{ offers_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/foodForGift.css?v={{ food_for_gift_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css\"
integrity=\"sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
{% endblock %}
{% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
{% set subscribed = app.user and isSubscriber(app.user) %}
{% 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 %}
{% block header %}
{% embed 'header.html.twig' %}
{% block headerTopMenu %}
{{ parent() }}
{% endblock %}
{% endembed %}
{% endblock %}
{% block mainColumnClass %} one-column bg-white{% endblock %}
{% block main_content %}
{% set isPickupEnabled = offer.getOnlineOrderSettings().isPickupEnabled() is defined ? offer.getOnlineOrderSettings().isPickupEnabled() %}
{% set isDeliveryEnabled = offer.getOnlineOrderSettings().isDeliveryEnabled() is defined ? offer.getOnlineOrderSettings().isDeliveryEnabled() %}
{% set ratingWithCount = getEntityRatingWithCount(constant('Slivki\\\\Entity\\\\Category::OFFER_CATEGORY_ID'), offer.getID()) %}
{% if isPickupEnabled or isDeliveryEnabled %}
<input id=\"deliveryMethodEnabled\" type=\"hidden\" value=\"{{ isDeliveryEnabled == '' ? '2' : '1' }}\">
{% endif %}
<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() }}\">
{% if subscribed %}
<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 %}
<input type=\"hidden\" id=\"codeCost\" value=\"{{ codeCost }}\">
<input type=\"hidden\" class=\"buyOrderAmount form-element\" type=\"text\"
value=\"{{ codeCost }}\"/>
<div class=\"content-wrapper\">
<div class=\"content-wrapper-offers\" itemscope itemtype=\"https://schema.org/Product\">
<div class=\"d-flex pb-2\" style=\"padding: 10px 34px;\">
<div class=\"col-6\">
{% include 'Slivki/breadcrumbs.html.twig' with { 'parentCategoryList': parentCategoryList, 'supplierCategoryData': offer.getSupplierCategoryData() } only %}
</div>
<div class=\"col-6\">
<p class=\"color-violet text-end cursor-pointer\" data-toggle=\"modal\"
data-target=\"{{ app.user ? '#complaintModal' : '.modal-auth' }}\">
Пожаловаться на акцию</p>
</div>
</div>
<h3 class=\"offers-tittle\" style=\"color: {{ offer.getTitleFontColor() }};\">{{ offer.getTitle()|raw }}</h3>
<div class=\"content-offers-top pb-0\">
<div class=\"left-top-block\">
{% if app.user() and not pastOffer %}
<div class=\"button-add-follow fovoutite-block\"
onclick=\"onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Добавить в <br> избранное\"
>
<img src=\"{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/offers/follow.svg' }}\">
</div>
{% endif %}
<div class=\"content-wrapper-carousel position-relative\" style=\"margin-bottom: 28px\">
<div class=\"stock-image\">
<div id=\"offerImageSlider\" class=\"m-0 swiper-container\">
{% 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 = detailMediaList %}
{% 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>
{% if not offer.isWithoutCodes() %}
<div class=\"discount-block\">
{{ offer.getDiscount() }}
</div>
{% endif %}
{% if offer.isWithoutCodes() %}
<div class=\"button-add-follow button-add-follow-teaser fovoutite-block\"
onclick=\"onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Добавить в <br> избранное\"
>
<img src=\"{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/offers/follow.svg' }}\">
</div>
{% endif %}
</div>
</div>
<div class=\"right-top-block\">
<div class=\"offers-description\">
{% if pastOffer or offer.getFreeCodesCount() == 0 %}
<div class=\"past-offer mt-5 pt-5\">
<i class=\"slivki-icon-minus-circled\"></i>
<p>Упс, акция завершена!</p>
<a href=\"#offersConditions\" class=\"buttons-link-offers\">
Условия
</a>
<a href=\"#conditionAddress\" class=\"buttons-link-offers\">
Адрес, телефоны
</a>
<a href=\"#offersReview\" class=\"buttons-link-offers\">
Отзывы
</a>
</div>
{% else %}
{% if not offer.isInFreeCodesCategory() and not offer.isWithoutCodes() %}
<div class=\"d-flex statistic-block {% if is_granted('ROLE_ADMIN') %}justify-content-between{% endif %} col px-2 my-0\">
<p class=\"text-dark-violet font-size-0750 text-end w-auto\"
data-toggle=\"tooltip\"
data-html=\"true\" data-placement=\"top\"
data-original-title=\"Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней\">
Конверсия {{ getOfferConversion(offer.getID()) }}%</p>
</div>
{% endif %}
{% if not offer.isWithoutCodes() %}
<div class=\"d-flex offers-description--item\">
<div class=\"col\">
<p class=\"color-dark-gray px-0 mb-0\">Взято всего:</p>
</div>
<div class=\"col font-bold text-end\">
<p> {{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }}
{{ ['промокод', 'промокода', 'промокодов']|plural(usedCodesCount) }}
из {{ allCodesCount }}</p>
</div>
</div>
<div class=\"d-flex px-2 my-0\">
<div class=\"col\">
<p class=\"color-dark-gray mb-0\">Взято сутки/месяц:</p>
</div>
<div class=\"col font-bold text-end pl-2\">
<p>{{ todayPurchaseCount }}
/{{ getOfferMonthlyPurchaseCount(offer.getID(), 30) > 0 ? getOfferMonthlyPurchaseCount(offer.getID(), 30) : 0 }} {{ ['промокод', 'промокода', 'промокодов']|plural(todayPurchaseCount) }}
</p>
</div>
</div>
{% endif %}
<div class=\"d-flex {{ offer.isWithoutCodes() ? 'pl-2' : 'offers-description--item' }}\">
<div class=\"col\">
<p class=\"color-dark-gray\">Просмотров сутки/месяц:</p>
</div>
<div class=\"col font-bold text-end\">
<p>{{ todayVisitCount }}/{{ visitCount }}</p>
</div>
</div>
{% if not offer.isWithoutCodes() %}
<div class=\"d-flex px-2 my-0\">
<div class=\"col\">
<p class=\"color-dark-gray\">До завершения: </p>
</div>
<div class=\"col text-end\">
{% if freeCodesCount > 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=\"days\">{{ daysLeft }}
 </span>{{ ['день', 'дня', 'дней']|plural(daysLeft) }},
<span id=\"hours\">{{ hoursLeft }} </span>час{{ ['', 'а', 'ов']|plural(hoursLeft) }}
{% endif %}
</div>
</div>
{% endif %}
<div class=\"d-flex offers-description--item js-to-review-block\">
<div class=\"col\">
<p class=\"color-dark-gray\">Отзывы/оценка:</p>
</div>
<div class=\"col font-bold text-end\">
<p>{{ commentsAmount }} /
<r data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Рейтинг компании <br> за 90 дней\">
<span class=\"yellow-span\">★</span>{{ offer.getRating() }}</r>
</p>
</div>
</div>
<div class=\"d-flex offer-price-block\">
<div class=\"col px-2\">
<p class=\"color-dark-gray\">Стоимость:</p>
</div>
<div class=\"col text-end\">
<span id=\"offerRegularPrice\"
class=\"regular-price\">{{ offer.getRegularPrice() }}</span>
<span class=\"discount-price\"> {{ offer.getOfferPrice()|replace({'(': '<span id=\"details-offer-price\">(', ')': ')</span>'})|raw }}</span>
</div>
</div>
{% if offer.isWithoutCodes() %}
<a href=\"/moya_akciya\" target=\"_blank\">
<img class=\"mt-2\" src=\"/images/платидари.png\" style=\"border-radius: 8px\"/>
</a>
{% endif %}
{% endif %}
</div>
{% if offer.isTireOnlineOrderAllowedOnSite() and offer.isWithoutCodes() %}
<div class=\"buttons-wrapper-offers\">
<a id=\"deliveryBtn\" href=\"{{ offer.getOnlineRegistrationLink() }}\" style=\"margin: 14px 0;\"
class=\"online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Онлайн-запись
</a>
</div>
{% endif %}
{% if offer.getFreeCodesCount() > 0 and not offer.isWithoutCodes() %}
<div class=\"d-flex\" style=\"min-height: 90px;align-items: end;\">
<div class=\"buttons-wrapper-offers\">
{% if hasDelivery is defined %}
{% if not offer.isBuyCodeDisable() %}
{% include 'Slivki/offers/buy_button.html.twig' %}
{% endif %}
{% if offer.isFoodOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"{{ getLinkFoodOnlineOrder(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
<div style=\"flex-direction: column;\">
<p>Заказать онлайн {{ offer.getDiscount() }}</p>
{% if offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) or
offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY'))%}
<p style=\"text-transform: math-auto;\">доступна оплата SlivkiPay + 5%</p>
{% endif %}
</div>
</a>
{% endif %}
{% if offer.isGiftCertificateOnlineOrderAllowedOnSite() %}
{% if offer.getID() == constant('Slivki\\\\Entity\\\\Offer::MINSK_WORLD_CERTIFICATE_OFFER_ID') %}
<a id=\"deliveryBtn\" href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Получить скидку {{ offer.getDiscount() }}
</a>
{% elseif offer.getID() in constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_OFFER_IDS') %}
<a id=\"deliveryBtn2\"
href=\"{{ getLinkGiftCertificateOnlineOrderByOnlyCode(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
ПОЛУЧИТЬ СКИДКУ {{ offer.getDiscount() }}
</a>
{% elseif not offer.isFoodOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
<div style=\"flex-direction: column;\">
<p>Оплатить онлайн {{ offer.getDiscount() }}</p>
{% if offer.getAllowedPaymentMethodsForCertificate() is defined and offer.getAllowedPaymentMethodsForCertificate() is not null and offer.getAllowedPaymentMethodsForCertificate()[4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) %}
<p style=\"text-transform: math-auto;\">доступна оплата SlivkiPay + 5%</p>
{% endif %}
</div>
</a>
{% endif %}
{% endif %}
{% if offer.isTireOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"{{ offer.getOnlineRegistrationLink() }}\"
class=\"online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Онлайн-запись
</a>
{% endif %}
{% elseif isAllowedByOnlyCode %}
<div class=\"col\">
{% include 'Slivki/offers/buy_button.html.twig' %}
</div>
{% endif %}
{% if not pastOffer and offer.getFreeCodesCount() > 0 and offer.isOnlineOrderGiftEnabled() and offer.isFoodOnlineOrderAllowedOnSite() %}
<div class=\"col mb-2\">
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
<div class=\"button-gift-text\">
<p>ЕДА В ПОДАРОК 😋</p>
<p>Подарю сам или подарят мне</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
</div>
</div>
{% endif %}
{% if not pastOffer and offer.isGiftCertificateOnlineOrderAllowedOnSite() and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE')) %}
<div class=\"col mb-3\" style=\"width: 350px;margin: 0 auto\">
</div>
{% endif %}
{% endif %}
</div>
</div>
</div>
</div>
<div id=\"conditions_offers\" class=\"d-flex\" style=\"{{ pastOffer ? 'display: none!important' : '' }}\">
<div class=\"content-wrapper-col-left pt-0\">
<div id=\"offersConditions\" class=\"offers-conditions active\" style=\"max-height: fit-content;\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Условия</h2></div>
{% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
<div id=\"startOfOfferCondition\"></div>
{% if offer.getID() != 239232 %}
{% endif %}
{% if not offer.isWithoutCodes() and offer.getID() != 140553 %}
<p>
{% set codeTill = offer.getCodeActiveTill() %}
{% set codeFrom = offer.getActiveTill()|date_modify('-1 day') %}
{% set codeFrom = codeFrom > codeTill ? codeTill : codeFrom %}
{% if not offer.isHideFeatures() %}
- Получить промокод можно до {{ codeFrom|date('d.m') }}, воспользоваться {{ offer.getID() != 134390 ? 'до' }} {{ codeTill|date('d.m.y') }}
<br/>
{% endif %}
{% if offer.isShowPriceInConditions() and not offerIsFreeForUser %}
- Стоимость промокода: {{ codeCost }} руб.
{% endif %}
</p>
{% endif %}
<div class=\"offer-details-conditions offers-conditions p-0\">
{{ offer.getConditions()|raw }}
{# Таблица с прейскурантом для акции с квестами \"Ящик Пандоры\" #}
{% if offer.getID() == 143528 %}
{% include 'Slivki/offers/table_for_pandorra_box_offer2.html.twig' %}
{% elseif offer.getID() == 282234 %}
{% include 'Slivki/offers/table_for_pandorra_box_offer4.html.twig' %}
{% endif %}
{% if not offer.isWithoutCodes() %}
{% include \"Slivki#{regional_template_path}/phrase_subscription_in_offer_page.html.twig\" %}
{% endif %}
{% if not offer.isHideFeatures() %}
</br>
<div class=\"offer-titles mb-2 mt-0\"><h2>Особенности</h2></div>
<div class=\"offer-details-conditions\">
{% if not offer.isWithoutCodes() %}
- Скидка предоставляется только при наличии промокода.
{% endif %}
{{ offer.getFeatures()|raw }}
</div>
- Поставщик несет полную ответственность перед потребителем за достоверность информации.
{% endif %}
</div>
<div id=\"endOfOfferCondition\"></div>
<div class=\"clear\"></div>
</div>
{% if offer.getShopMedias()|length > 0 %}
<div class=\"offer-titles mb-2 mt-0\"><h2>Галерея</h2></div>
{% endif %}
<div id=\"offerConditionsSlider\"
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=\"300\"
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 href=\"{{ getImageURL(media, 0, 0) }}\" title=\"{{ media.getDescription() }}\"
data-lightbox=\"image\">
<img src=\"{{ getImageURL(media, 300, 0) }}\" width=\"300\"
alt=\"{{ media.getDescription() }}\" border=\"0\"/>
</a>
</div>
{% endfor %}
</div>
{% endif %}
</div>
<div id=\"examplesOfWorksBlock\" class=\"\">
<div class=\"headerBlockCategory examples d-none bg-white px-0 pb-0 bg-transpanent examples-block-offer-header\">
<div class=\"offer-titles\"><h5 class=\"m-0\">Фото
работ{# <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\" name=\"startRange\"
id=\"startRange\">
<input class=\"work-simples-input\" type=\"range\" name=\"finishRange\"
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 desk\">
<div id=\"beautyMastersHeader\"
class=\"tittleBlockCategory position-relative offer-titles mb-2 mt-0 d-none\"><h2>
{{ parentCategoryList and parentCategoryList[0].getID() == constant('Slivki\\\\Entity\\\\Category::MEDICAL_CENTER_CATEGORY_ID') ? 'Врачи' : 'Найти своего мастера' }}</h2>
</div>
{% include 'Slivki/beauty/beauty_masters.html.twig' %}
</div>
<div id=\"offersDescription\" class=\"offers-conditions mt-3\">
{% if offer.isShowProductsInOfferDescription() %}
<div id=\"foodItemsBlock\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Описание</h2></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=\"col d-flex align-items-center text-white justify-content-end px-0\"></div>
<div class=\"switch-delivery-pickup-block px-0 \">
<a data-type-delivery=\"1\"
class=\"switch-delivery-pickup-item button-tab-delivery delivery-type active\">
<p class=\"m-0\">Доставка</p>
<small>удобно👌</small>
</a>
<a data-type-delivery=\"2\"
class=\"switch-delivery-pickup-item pickup-type button-tab-pickup\">
<p class=\"m-0\"> Самовывоз</p>
<small>еще дешевле🔥</small>
</a>
</div>
</div>
{% endif %}
<div id=\"foodBlock\"></div>
<div id=\"foodOptionsBlock\"></div>
</div>
{% endif %}
<div class=\"description\" id=\"descriptionText\">
{% for offerDescription in offer.getDescriptionList() %}
{% set offerDescriptionSliderImages = offerDescription.getEntityDescriptionSliderImages() %}
{% if offerDescriptionSliderImages|length > 0 %}
<div class=\"sale-description-carousel\">
<div id=\"saleDescriptionSliderFor{{ offerDescription.getID() }}\"
class=\"sale-description-slider-for\">
{% for offerDescriptionSliderImage in offerDescriptionSliderImages %}
<div><img data-lazy=\"{{ offerDescriptionSliderImage.getImageUrl() }}\"/>
</div>
{% endfor %}
</div>
</div>
{% endif %}
{{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw }}
{# <div id=\"showMoreDescription\" #}
{# class=\"{{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw == \"\" or addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw == '<p><span style=\"color: #ecf0f1;\">.</span></p>' ? 'd-none' : \"\" }}\"> #}
{# <div class=\"w-100 position-absolute bottom-0\" #}
{# style=\"background: linear-gradient(360deg, #FFFFFF 15.15%, rgba(255, 255, 255, 0) 206.06%);\"></div> #}
{# <p class=\"w-100 position-absolute bottom-0\">Подробнее</p> #}
{# </div> #}
{% endfor %}
</div>
</div>
<div class=\"tab-pane fade\" id=\"offerLocationTab\">
<i class=\"fa fa-spinner fa-spin\"></i>
</div>
<div id=\"offersReview\" class=\"offers-review\">
{{ comments|raw }}
</div>
</div>
<div class=\"content-wrapper-col-right\">
<div id=\"conditionAddress\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Контакты</h2></div>
<div style=\"display:none\">{{ offer.getAddress() }}</div>
<div id=\"offerConditionLogo\">
{{ offer.getLogo()|raw }}
</div>
<div id=\"dataFromLocation\">
<div class=\"move-data\">
{% if geoLocations|length > 0 %}
<div class=\"geo-location-block\" style=\"display: block\">
{% include 'Slivki/offers/geo_location_data.html.twig' with {'offer': offer} only %}
<div id=\"offerGeoLocationData\" data-json=\"{{ offerGeoLocationData }}\"></div>
<div class=\"distance d-none\">
<i class=\"slivki-icon slivki-icon-direction\"></i> <img class='ajaxLoader'
src='/images/ajax-loader-16x16.gif'
alt='Загрузка...'/><span></span>
</div>
<div class=\"offer-details-map category-map-wrapper category-map\"
id=\"offerMapCanvas\">
<div id=\"mapCollapseBtn\" class=\"button button--map-collapse capsuled\"
onclick=\"offerMapToggleSize();\">Развернуть
</div>
<a id=\"setUserLocationBtn\" href=\"#\" class=\"capsuled\">Указать
местоположение</a>
<div id=\"zoomIn\"></div>
<div id=\"zoomOut\"></div>
</div>
</div>
{% endif %}
<div class=\"before-map\" style=\"clear:both;\"></div>
</div>
</div>
{% if (offer.getLocation()|preg_replace(\"/<[^>]*>/\", '')|replace({\"\\n\": '', \"\\r\": '', ' ': '', ' ': ''}) != '') %}
{{ offer.getLocation()|raw }}
{% set phoneNumbers = offer.getPhoneNumbers() %}
{% if phoneNumbers.count() > 0 %}
<div class=\"text-bold\">Телефон{{ phoneNumbers.count() > 1 ? 'ы' }}:</div>
{% endif %}
{% for phoneNumber in phoneNumbers %}
{{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
{% endfor %}
{% else %}
{% set geoLocationsCount = geoLocations.count() %}
{% set commonWoringHours = offer.getCommonWorkingHours() %}
{% if commonWoringHours != '' %}
<br>
<div class=\"text-bold\">Время работы:</div>
{{ commonWoringHours|raw }}
{% endif %}
{% for geoLocation in geoLocations %}
{% set margin = false %}
<div class=\"offer-details-geolocation-item my-3\">
<div class=\"font-bold font-size-17\">г. {{ geoLocation.getCity() }}
, {{ geoLocation.getStreet() }}, {{ geoLocation.getHouse() }}
<br>{{ geoLocation.getLabel() }}</div>
<div class=\"location-more-info {{ geoLocationsCount > 2 ? 'hidden' }}\">
{% if geoLocation.getWorkingHours()|trim != '' %}
{% set margin = true %}
<div class=\"offer-details-work-hours\">Время работы:
</div> {{ geoLocation.getWorkingHours()|nl2br|raw }}
{% endif %}
{% set phoneNumbers = geoLocation.getPhoneNumbers() %}
{% if phoneNumbers.count() > 0 %}
{% set margin = true %}
<span>
<div class=\"offer-details-phone-item\">
<div class=\"full-phone-item\">
{% for phoneNumber in phoneNumbers %}
{{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
{% endfor %}
</div>
</div>
{% endif %}
{# {% if margin %}#}
{# <br>#}
{# {% endif %}#}
</span>
{% if geoLocation.getCallbackChatId() and geoLocation.getCallbackChatId() != '' %}
<div class=\"callback-button\" data-id=\"{{ geoLocation.getId() }}\">Обратный
звонок
</div>
{% endif %}
</div>
{% if geoLocationsCount > 2 %}
<a data-id=\"{{ geoLocation.getID() }}\"
class=\"text-slivki location-more-info-toggle\">Подробнее</a>
{% endif %}
</div>
{% endfor %}
{# {% if geoLocationsCount > 4 %} #}
{# <div class=\"text-center\"> #}
{# <a id=\"showMoreAddressInDetailsLink\" class=\"button\" href=\"#\">Еще адреса</a> #}
{# </div> #}
{# {% endif %} #}
{% set phoneNumbersWithoutGeoLocations = offer.getPhoneNumbersWithoutGeoLocations() %}
{% if phoneNumbersWithoutGeoLocations|length > 0 %}
<div class=\"text-bold\">Телефон{{ phoneNumbersWithoutGeoLocations|length > 1 ? 'ы' }}:
</div>
<div class=\"offer-details-phone-item\">
<div class=\"full-phone-item\">
{% for phoneNumber in phoneNumbersWithoutGeoLocations %}
{{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
{% endfor %}
</div>
</div>
{% if phoneNumber is defined and phoneNumber.getCallbackChatId() and phoneNumber.getCallbackChatId() != '' %}
<div class=\"callback-button\" data-id=\"{{ phoneNumber.getId() }}\">Обратный звонок
</div>
{% endif %}
{% endif %}
{% endif %}
<div id=\"phoneOffersBlock\" class=\"offer-details-legal-info\">{{ offer.getLegal()|raw }}</div>
<div class=\"offer-titles offer-titles-mobile mt-0 mb-0\"><h5 class=\"mt-0 mb-0\">Написать</h5>
</div>
<div class=\"col px-0\">
<a class=\"tg-button offer-phone-mob btn btn-block bg-slivki text-white py-1 no-decoration my-2 d-flex justify-content-center align-items-center\"
href=\"https://t.me/{{ offer.getTelegram() != null ? offer.getTelegram() : 'slivkislivkiby' }}\"
style=\"width: 200px\">
<img class=\"mr-2\" src=\"/images/tg.svg\" width=\"20\" height=\"18\">
<span class=\"float-right\">Telegram</span>
</a>
{% set viberNumber = offer.getViber() != null ? offer.getViber() : '+375295084444' %}
{# <a class=\"vb-button offer-phone-mob btn btn-block bg-slivki text-white py-1 no-decoration my-2 d-flex justify-content-center align-items-center\"#}
{# href='viber://chat?number=\" {{ viberNumber }} \"' style=\"width: 200px\">#}
{# <img class=\"mr-2\" src=\"/images/vb.svg\" width=\"20\" height=\"18\">#}
{# <span class=\"float-right\">Viber</span>#}
{# </a>#}
</div>
</div>
{% include 'Slivki/offers/share.html.twig' %}
{% include \"Slivki#{regional_template_path}/jivosite/button_offers_page.html.twig\" %}
<p class=\"tittle-messenger-offers d-none\">Мы всегда рады помочь: служба поддержки Slivki.by ответит
на
любой
ваш вопрос</p>
</div>
</div>
</div>
{% if (pastOffer or freeCodesCount == 0) and relatedOfferListHtml is defined %}
<div class=\"col px-3\">
<div class=\"related-offers-title\">Другие похожие предложения:</div>
<div class=\"related-offers-list stock-group-list\">
{{ relatedOfferListHtml|raw }}
</div>
</div>
{% endif %}
</div>
{% if lastPurchaseText is defined %}
<div id=\"lastPurchaseNofify\"><a href=\"#\"><i class=\"slivki-icon-close-thin\"></i></a>Последний раз промокод<br>получен {{ lastPurchaseText }}
</div>
{% endif %}
{% endblock %}
{% block popups %}
{{ parent() }}
{% if not pastOffer %}
{% include 'Slivki/popups/header_offers.html.twig' %}
{% endif %}
{% include 'Slivki/share_block.html.twig' %}
{% include 'Slivki/popups/callback.html.twig' %}
{% include 'Slivki/offers/complaint.html.twig' %}
{% include 'Slivki/orderAsGift/foodForGift.html.twig' %}
{% if galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
{% include 'Slivki/popups/details-story-popup.html.twig' %}
{% endif %}
{% include 'Slivki/popups/comment_media_block_popup.html.twig' %}
{% include 'Slivki/popups/statistics_popup.html.twig' %}
{% include 'Slivki/mobile/popup/buy_codes_avways_app.html.twig' %}
{% include 'Slivki/delivery/modal/details.html.twig' with {'isOfferPage': true} %}
{% if offer.isGiftCertificateOffer() %}
{% include 'Slivki/popups/step_buy_certificate.twig' with {'deliveryLink': deliveryLink} %}
{% endif %}
{% if app.user %}
{% include 'Slivki/popups/mail_offers.html.twig' %}
{% include 'Slivki/popups/rating_edit_popup.html.twig' %}
{% include 'Slivki/popups/popup_subscription_limited.html.twig' %}
{% if not isMobileDevice() or offerIsFreeForUser %}
{% if not codeCostInCurrency is defined and codeCostInCurrency is not null %}
{% set codeCostInCurrency = null %}
{% endif %}
{% include 'Slivki/popups/confirm_box.html.twig' with {'codeCost': codeCost, 'offerID': offer.getID(), 'codeCostInCurrency': codeCostInCurrency} %}
{% include 'Slivki/popups/confirm_subscription_card_popup.html.twig' with {'creditCards': app.user.getActiveCreditCards()} %}
{% endif %}
{% if not isMobileDevice() %}
{% include 'Slivki/popups/add_comment_popup.html.twig' with {'id': 'addVoteBox'} %}
{% include 'Slivki/popups/edit_comment_popup.html.twig' with {'id': 'editVoteBox'} %}
{% include 'Slivki/popups/comment_censor_message.html.twig' with {'id': 'commentCensorMessage'} %}
{% endif %}
{% else %}
{% if not isMobileDevice() %}
{% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
{% endif %}
{% endif %}
{% endblock %}
{% block javascripts %}
<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 src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
<script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/locale/ru.min.js\"
integrity=\"sha512-QezkC2mljFGA2zQBPe+FrNA7i2RVFaYOfdQHk6icEap1TZX/Q6MNx+0AOTr9msSec0LsMrpURxfgJSbodYoiLg==\"
crossorigin=\"anonymous\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/fecha/2.3.3/fecha.min.js\"></script>
<script src=\"/js/hotel-datepicker-3.6.5/hotel-datepicker.min.js\"></script>
<script src=\"/js/swiper-js/swiper.min.js\"></script>
<script src=\"/js/story-slider/story-slider-js.js?v={{ story_slider_js_version }}\"></script>
{{ parent() }}
<script src=\"/js/offer.js?v={{ offer_js_version }}\"></script>
<script src=\"/js/offer/offerDescriptionItems.js?v={{ offer_description_items_js_version }}\"></script>
<script src=\"/js/common-old.js?v={{ common_old_js_version }}\"></script>
<script type=\"text/javascript\">
{% if preview is defined and preview %}
var offerPreview = 1;
{% else %}
var offerPreview = 0;
{% endif %}
{% if app.request.query.has('checkOrder') %}
initCheckOfferOrderStatus({{ app.request.get('checkOrder') }});
{% endif %}
</script>
<script src=\"/js/offer-new.js?v={{ offer_new_js_version }}\"/>
{% endblock %}
{% block assetsBottom %}
{{ parent() }}
<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=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js\"
integrity=\"sha512-Y+0b10RbVUTf3Mi0EgJue0FoheNzentTMMIE2OreNbqnUPNbQj8zmjK3fs5D2WhQeGWIem2G2UkKjAL/bJ/UXQ==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
{# <script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script>#}
<script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
<script async src=\"//embedr.flickr.com/assets/client-code.js\" charset=\"utf-8\"></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=\"https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js\"></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/offers/details.html.twig", "/mnt/data/virtwww/dima/templates/Slivki/offers/details.html.twig");
}
}
/* Slivki/offers/details.html.twig */
class __TwigTemplate_671d188d41c559f3e4b20d04dd0901420d5734d6d8780fb2ae46a6d677382c91___66150554 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'headerTopMenu' => [$this, 'block_headerTopMenu'],
];
}
protected function doGetParent(array $context)
{
// line 43
return "header.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/offers/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/offers/details.html.twig"));
$this->parent = $this->loadTemplate("header.html.twig", "Slivki/offers/details.html.twig", 43);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 44
public function block_headerTopMenu($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", "headerTopMenu"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerTopMenu"));
// line 45
echo " ";
$this->displayParentBlock("headerTopMenu", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/offers/details.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 2908 => 45, 2898 => 44, 2875 => 43, 1935 => 810, 1925 => 809, 1912 => 805, 1908 => 804, 1896 => 795, 1892 => 793, 1881 => 785, 1871 => 784, 1859 => 782, 1856 => 781, 1850 => 779, 1847 => 778, 1843 => 776, 1839 => 774, 1837 => 773, 1832 => 771, 1828 => 770, 1824 => 769, 1820 => 768, 1816 => 767, 1802 => 755, 1792 => 754, 1781 => 751, 1778 => 750, 1775 => 749, 1772 => 748, 1769 => 747, 1766 => 746, 1763 => 745, 1760 => 744, 1757 => 743, 1755 => 742, 1752 => 741, 1749 => 740, 1746 => 739, 1743 => 738, 1740 => 737, 1737 => 736, 1734 => 735, 1731 => 734, 1728 => 733, 1725 => 732, 1722 => 731, 1719 => 730, 1716 => 729, 1713 => 728, 1710 => 727, 1707 => 726, 1704 => 725, 1701 => 724, 1698 => 723, 1695 => 722, 1692 => 721, 1689 => 720, 1686 => 719, 1683 => 718, 1680 => 717, 1677 => 716, 1674 => 715, 1671 => 714, 1669 => 713, 1664 => 712, 1654 => 711, 1639 => 706, 1637 => 705, 1634 => 704, 1627 => 700, 1622 => 697, 1620 => 696, 1610 => 688, 1607 => 687, 1605 => 686, 1601 => 684, 1599 => 678, 1591 => 673, 1582 => 668, 1578 => 666, 1575 => 665, 1568 => 662, 1566 => 661, 1562 => 659, 1551 => 657, 1547 => 656, 1539 => 652, 1536 => 651, 1534 => 650, 1531 => 649, 1529 => 648, 1527 => 647, 1525 => 646, 1523 => 645, 1521 => 644, 1513 => 641, 1506 => 638, 1504 => 637, 1501 => 636, 1493 => 632, 1491 => 631, 1488 => 630, 1483 => 624, 1472 => 622, 1468 => 621, 1463 => 618, 1460 => 617, 1457 => 616, 1454 => 615, 1449 => 613, 1446 => 612, 1443 => 611, 1441 => 610, 1437 => 609, 1433 => 608, 1427 => 607, 1423 => 606, 1420 => 605, 1417 => 604, 1412 => 603, 1407 => 601, 1403 => 599, 1400 => 598, 1397 => 597, 1394 => 596, 1391 => 595, 1380 => 593, 1375 => 592, 1369 => 590, 1366 => 589, 1364 => 588, 1359 => 587, 1356 => 586, 1351 => 583, 1329 => 565, 1327 => 564, 1324 => 563, 1322 => 562, 1315 => 558, 1310 => 556, 1301 => 550, 1292 => 543, 1286 => 542, 1284 => 541, 1282 => 540, 1280 => 539, 1278 => 538, 1276 => 537, 1271 => 535, 1266 => 532, 1256 => 529, 1252 => 528, 1247 => 526, 1244 => 525, 1241 => 524, 1239 => 523, 1236 => 522, 1232 => 521, 1229 => 520, 1222 => 515, 1203 => 498, 1201 => 497, 1197 => 495, 1195 => 494, 1191 => 492, 1189 => 491, 1184 => 489, 1178 => 485, 1176 => 484, 1139 => 449, 1122 => 446, 1118 => 445, 1112 => 444, 1108 => 443, 1104 => 442, 1101 => 441, 1084 => 440, 1077 => 435, 1071 => 431, 1067 => 429, 1057 => 425, 1053 => 424, 1046 => 422, 1043 => 421, 1038 => 420, 1032 => 417, 1026 => 414, 1022 => 412, 1020 => 411, 1017 => 410, 1015 => 409, 1011 => 408, 1008 => 407, 1004 => 405, 1002 => 404, 996 => 400, 988 => 396, 984 => 394, 982 => 393, 977 => 390, 974 => 389, 971 => 388, 968 => 387, 965 => 386, 962 => 385, 959 => 384, 956 => 383, 953 => 382, 950 => 381, 946 => 379, 942 => 377, 938 => 375, 932 => 373, 929 => 372, 918 => 369, 915 => 368, 912 => 367, 909 => 366, 907 => 365, 904 => 364, 902 => 363, 899 => 362, 896 => 361, 894 => 360, 891 => 359, 889 => 358, 882 => 354, 876 => 350, 872 => 348, 866 => 344, 863 => 343, 848 => 330, 845 => 329, 841 => 327, 839 => 326, 836 => 325, 833 => 324, 824 => 319, 821 => 318, 818 => 317, 813 => 314, 809 => 312, 807 => 311, 803 => 310, 796 => 307, 794 => 306, 789 => 304, 784 => 302, 781 => 301, 779 => 300, 774 => 298, 768 => 296, 765 => 295, 762 => 294, 757 => 291, 753 => 289, 751 => 288, 750 => 287, 746 => 286, 739 => 283, 736 => 282, 733 => 281, 730 => 280, 727 => 279, 725 => 278, 721 => 276, 719 => 275, 715 => 273, 706 => 267, 702 => 265, 700 => 264, 697 => 263, 694 => 262, 688 => 258, 686 => 257, 680 => 254, 676 => 253, 662 => 242, 654 => 237, 647 => 232, 642 => 229, 635 => 227, 631 => 226, 627 => 225, 623 => 224, 618 => 222, 614 => 221, 609 => 220, 607 => 219, 600 => 214, 598 => 213, 590 => 210, 581 => 205, 571 => 200, 567 => 199, 556 => 191, 552 => 190, 548 => 189, 541 => 184, 538 => 183, 532 => 180, 521 => 175, 518 => 174, 501 => 159, 499 => 158, 493 => 154, 487 => 151, 476 => 145, 473 => 144, 470 => 143, 464 => 140, 461 => 139, 459 => 138, 455 => 136, 449 => 132, 447 => 131, 444 => 130, 438 => 127, 434 => 126, 431 => 125, 428 => 124, 421 => 122, 416 => 120, 411 => 119, 406 => 117, 403 => 116, 401 => 115, 398 => 114, 393 => 113, 390 => 112, 387 => 111, 385 => 110, 381 => 109, 378 => 108, 372 => 104, 370 => 103, 365 => 100, 359 => 97, 348 => 91, 345 => 90, 343 => 89, 335 => 86, 328 => 82, 323 => 79, 321 => 78, 313 => 73, 307 => 71, 302 => 69, 297 => 68, 294 => 67, 288 => 65, 286 => 64, 281 => 62, 277 => 61, 273 => 60, 267 => 58, 261 => 56, 258 => 55, 255 => 54, 252 => 53, 249 => 52, 239 => 51, 220 => 50, 209 => 43, 199 => 42, 189 => 40, 183 => 38, 175 => 34, 172 => 33, 169 => 32, 159 => 31, 144 => 23, 140 => 22, 136 => 21, 121 => 8, 111 => 7, 93 => 5, 73 => 3, 62 => 1, 60 => 30, 58 => 28, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{{ parent() }}{{ currentPage is defined and currentPage != 1 ? ' - Страница №' ~ currentPage }}{% endblock %}
{% block messenger %}{% endblock %}
{% block stylesheets %}
<link rel=\"stylesheet\" href=\"/css/statistics_modal.css?v=4\"/>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\"/>
<link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.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\">
<link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\"/>
<link href=\"/css/bootstrap3.3.6.min.css\" type=\"text/css\" rel=\"stylesheet\">
<link rel=\"stylesheet\"
href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker-standalone.min.css\"
integrity=\"sha512-L0/PNISezIYAoqFXBGP9EJ4qLH8XF356+Lo92vzloQqk7HUpZ4FN1x1dUOnsUAUjHTSxXxeaD0HXfrANhtJOEA==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
{{ parent() }}
<link href=\"/css/offers.min.css?v={{ offers_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/foodForGift.css?v={{ food_for_gift_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css\"
integrity=\"sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
{% endblock %}
{% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
{% set subscribed = app.user and isSubscriber(app.user) %}
{% 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 %}
{% block header %}
{% embed 'header.html.twig' %}
{% block headerTopMenu %}
{{ parent() }}
{% endblock %}
{% endembed %}
{% endblock %}
{% block mainColumnClass %} one-column bg-white{% endblock %}
{% block main_content %}
{% set isPickupEnabled = offer.getOnlineOrderSettings().isPickupEnabled() is defined ? offer.getOnlineOrderSettings().isPickupEnabled() %}
{% set isDeliveryEnabled = offer.getOnlineOrderSettings().isDeliveryEnabled() is defined ? offer.getOnlineOrderSettings().isDeliveryEnabled() %}
{% set ratingWithCount = getEntityRatingWithCount(constant('Slivki\\\\Entity\\\\Category::OFFER_CATEGORY_ID'), offer.getID()) %}
{% if isPickupEnabled or isDeliveryEnabled %}
<input id=\"deliveryMethodEnabled\" type=\"hidden\" value=\"{{ isDeliveryEnabled == '' ? '2' : '1' }}\">
{% endif %}
<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() }}\">
{% if subscribed %}
<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 %}
<input type=\"hidden\" id=\"codeCost\" value=\"{{ codeCost }}\">
<input type=\"hidden\" class=\"buyOrderAmount form-element\" type=\"text\"
value=\"{{ codeCost }}\"/>
<div class=\"content-wrapper\">
<div class=\"content-wrapper-offers\" itemscope itemtype=\"https://schema.org/Product\">
<div class=\"d-flex pb-2\" style=\"padding: 10px 34px;\">
<div class=\"col-6\">
{% include 'Slivki/breadcrumbs.html.twig' with { 'parentCategoryList': parentCategoryList, 'supplierCategoryData': offer.getSupplierCategoryData() } only %}
</div>
<div class=\"col-6\">
<p class=\"color-violet text-end cursor-pointer\" data-toggle=\"modal\"
data-target=\"{{ app.user ? '#complaintModal' : '.modal-auth' }}\">
Пожаловаться на акцию</p>
</div>
</div>
<h3 class=\"offers-tittle\" style=\"color: {{ offer.getTitleFontColor() }};\">{{ offer.getTitle()|raw }}</h3>
<div class=\"content-offers-top pb-0\">
<div class=\"left-top-block\">
{% if app.user() and not pastOffer %}
<div class=\"button-add-follow fovoutite-block\"
onclick=\"onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Добавить в <br> избранное\"
>
<img src=\"{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/offers/follow.svg' }}\">
</div>
{% endif %}
<div class=\"content-wrapper-carousel position-relative\" style=\"margin-bottom: 28px\">
<div class=\"stock-image\">
<div id=\"offerImageSlider\" class=\"m-0 swiper-container\">
{% 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 = detailMediaList %}
{% 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>
{% if not offer.isWithoutCodes() %}
<div class=\"discount-block\">
{{ offer.getDiscount() }}
</div>
{% endif %}
{% if offer.isWithoutCodes() %}
<div class=\"button-add-follow button-add-follow-teaser fovoutite-block\"
onclick=\"onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Добавить в <br> избранное\"
>
<img src=\"{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/offers/follow.svg' }}\">
</div>
{% endif %}
</div>
</div>
<div class=\"right-top-block\">
<div class=\"offers-description\">
{% if pastOffer or offer.getFreeCodesCount() == 0 %}
<div class=\"past-offer mt-5 pt-5\">
<i class=\"slivki-icon-minus-circled\"></i>
<p>Упс, акция завершена!</p>
<a href=\"#offersConditions\" class=\"buttons-link-offers\">
Условия
</a>
<a href=\"#conditionAddress\" class=\"buttons-link-offers\">
Адрес, телефоны
</a>
<a href=\"#offersReview\" class=\"buttons-link-offers\">
Отзывы
</a>
</div>
{% else %}
{% if not offer.isInFreeCodesCategory() and not offer.isWithoutCodes() %}
<div class=\"d-flex statistic-block {% if is_granted('ROLE_ADMIN') %}justify-content-between{% endif %} col px-2 my-0\">
<p class=\"text-dark-violet font-size-0750 text-end w-auto\"
data-toggle=\"tooltip\"
data-html=\"true\" data-placement=\"top\"
data-original-title=\"Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней\">
Конверсия {{ getOfferConversion(offer.getID()) }}%</p>
</div>
{% endif %}
{% if not offer.isWithoutCodes() %}
<div class=\"d-flex offers-description--item\">
<div class=\"col\">
<p class=\"color-dark-gray px-0 mb-0\">Взято всего:</p>
</div>
<div class=\"col font-bold text-end\">
<p> {{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }}
{{ ['промокод', 'промокода', 'промокодов']|plural(usedCodesCount) }}
из {{ allCodesCount }}</p>
</div>
</div>
<div class=\"d-flex px-2 my-0\">
<div class=\"col\">
<p class=\"color-dark-gray mb-0\">Взято сутки/месяц:</p>
</div>
<div class=\"col font-bold text-end pl-2\">
<p>{{ todayPurchaseCount }}
/{{ getOfferMonthlyPurchaseCount(offer.getID(), 30) > 0 ? getOfferMonthlyPurchaseCount(offer.getID(), 30) : 0 }} {{ ['промокод', 'промокода', 'промокодов']|plural(todayPurchaseCount) }}
</p>
</div>
</div>
{% endif %}
<div class=\"d-flex {{ offer.isWithoutCodes() ? 'pl-2' : 'offers-description--item' }}\">
<div class=\"col\">
<p class=\"color-dark-gray\">Просмотров сутки/месяц:</p>
</div>
<div class=\"col font-bold text-end\">
<p>{{ todayVisitCount }}/{{ visitCount }}</p>
</div>
</div>
{% if not offer.isWithoutCodes() %}
<div class=\"d-flex px-2 my-0\">
<div class=\"col\">
<p class=\"color-dark-gray\">До завершения: </p>
</div>
<div class=\"col text-end\">
{% if freeCodesCount > 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=\"days\">{{ daysLeft }}
 </span>{{ ['день', 'дня', 'дней']|plural(daysLeft) }},
<span id=\"hours\">{{ hoursLeft }} </span>час{{ ['', 'а', 'ов']|plural(hoursLeft) }}
{% endif %}
</div>
</div>
{% endif %}
<div class=\"d-flex offers-description--item js-to-review-block\">
<div class=\"col\">
<p class=\"color-dark-gray\">Отзывы/оценка:</p>
</div>
<div class=\"col font-bold text-end\">
<p>{{ commentsAmount }} /
<r data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Рейтинг компании <br> за 90 дней\">
<span class=\"yellow-span\">★</span>{{ offer.getRating() }}</r>
</p>
</div>
</div>
<div class=\"d-flex offer-price-block\">
<div class=\"col px-2\">
<p class=\"color-dark-gray\">Стоимость:</p>
</div>
<div class=\"col text-end\">
<span id=\"offerRegularPrice\"
class=\"regular-price\">{{ offer.getRegularPrice() }}</span>
<span class=\"discount-price\"> {{ offer.getOfferPrice()|replace({'(': '<span id=\"details-offer-price\">(', ')': ')</span>'})|raw }}</span>
</div>
</div>
{% if offer.isWithoutCodes() %}
<a href=\"/moya_akciya\" target=\"_blank\">
<img class=\"mt-2\" src=\"/images/платидари.png\" style=\"border-radius: 8px\"/>
</a>
{% endif %}
{% endif %}
</div>
{% if offer.isTireOnlineOrderAllowedOnSite() and offer.isWithoutCodes() %}
<div class=\"buttons-wrapper-offers\">
<a id=\"deliveryBtn\" href=\"{{ offer.getOnlineRegistrationLink() }}\" style=\"margin: 14px 0;\"
class=\"online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Онлайн-запись
</a>
</div>
{% endif %}
{% if offer.getFreeCodesCount() > 0 and not offer.isWithoutCodes() %}
<div class=\"d-flex\" style=\"min-height: 90px;align-items: end;\">
<div class=\"buttons-wrapper-offers\">
{% if hasDelivery is defined %}
{% if not offer.isBuyCodeDisable() %}
{% include 'Slivki/offers/buy_button.html.twig' %}
{% endif %}
{% if offer.isFoodOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"{{ getLinkFoodOnlineOrder(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
<div style=\"flex-direction: column;\">
<p>Заказать онлайн {{ offer.getDiscount() }}</p>
{% if offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) or
offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY'))%}
<p style=\"text-transform: math-auto;\">доступна оплата SlivkiPay + 5%</p>
{% endif %}
</div>
</a>
{% endif %}
{% if offer.isGiftCertificateOnlineOrderAllowedOnSite() %}
{% if offer.getID() == constant('Slivki\\\\Entity\\\\Offer::MINSK_WORLD_CERTIFICATE_OFFER_ID') %}
<a id=\"deliveryBtn\" href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Получить скидку {{ offer.getDiscount() }}
</a>
{% elseif offer.getID() in constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_OFFER_IDS') %}
<a id=\"deliveryBtn2\"
href=\"{{ getLinkGiftCertificateOnlineOrderByOnlyCode(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
ПОЛУЧИТЬ СКИДКУ {{ offer.getDiscount() }}
</a>
{% elseif not offer.isFoodOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
<div style=\"flex-direction: column;\">
<p>Оплатить онлайн {{ offer.getDiscount() }}</p>
{% if offer.getAllowedPaymentMethodsForCertificate() is defined and offer.getAllowedPaymentMethodsForCertificate() is not null and offer.getAllowedPaymentMethodsForCertificate()[4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) %}
<p style=\"text-transform: math-auto;\">доступна оплата SlivkiPay + 5%</p>
{% endif %}
</div>
</a>
{% endif %}
{% endif %}
{% if offer.isTireOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"{{ offer.getOnlineRegistrationLink() }}\"
class=\"online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Онлайн-запись
</a>
{% endif %}
{% elseif isAllowedByOnlyCode %}
<div class=\"col\">
{% include 'Slivki/offers/buy_button.html.twig' %}
</div>
{% endif %}
{% if not pastOffer and offer.getFreeCodesCount() > 0 and offer.isOnlineOrderGiftEnabled() and offer.isFoodOnlineOrderAllowedOnSite() %}
<div class=\"col mb-2\">
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
<div class=\"button-gift-text\">
<p>ЕДА В ПОДАРОК 😋</p>
<p>Подарю сам или подарят мне</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
</div>
</div>
{% endif %}
{% if not pastOffer and offer.isGiftCertificateOnlineOrderAllowedOnSite() and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE')) %}
<div class=\"col mb-3\" style=\"width: 350px;margin: 0 auto\">
</div>
{% endif %}
{% endif %}
</div>
</div>
</div>
</div>
<div id=\"conditions_offers\" class=\"d-flex\" style=\"{{ pastOffer ? 'display: none!important' : '' }}\">
<div class=\"content-wrapper-col-left pt-0\">
<div id=\"offersConditions\" class=\"offers-conditions active\" style=\"max-height: fit-content;\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Условия</h2></div>
{% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
<div id=\"startOfOfferCondition\"></div>
{% if offer.getID() != 239232 %}
{% endif %}
{% if not offer.isWithoutCodes() and offer.getID() != 140553 %}
<p>
{% set codeTill = offer.getCodeActiveTill() %}
{% set codeFrom = offer.getActiveTill()|date_modify('-1 day') %}
{% set codeFrom = codeFrom > codeTill ? codeTill : codeFrom %}
{% if not offer.isHideFeatures() %}
- Получить промокод можно до {{ codeFrom|date('d.m') }}, воспользоваться {{ offer.getID() != 134390 ? 'до' }} {{ codeTill|date('d.m.y') }}
<br/>
{% endif %}
{% if offer.isShowPriceInConditions() and not offerIsFreeForUser %}
- Стоимость промокода: {{ codeCost }} руб.
{% endif %}
</p>
{% endif %}
<div class=\"offer-details-conditions offers-conditions p-0\">
{{ offer.getConditions()|raw }}
{# Таблица с прейскурантом для акции с квестами \"Ящик Пандоры\" #}
{% if offer.getID() == 143528 %}
{% include 'Slivki/offers/table_for_pandorra_box_offer2.html.twig' %}
{% elseif offer.getID() == 282234 %}
{% include 'Slivki/offers/table_for_pandorra_box_offer4.html.twig' %}
{% endif %}
{% if not offer.isWithoutCodes() %}
{% include \"Slivki#{regional_template_path}/phrase_subscription_in_offer_page.html.twig\" %}
{% endif %}
{% if not offer.isHideFeatures() %}
</br>
<div class=\"offer-titles mb-2 mt-0\"><h2>Особенности</h2></div>
<div class=\"offer-details-conditions\">
{% if not offer.isWithoutCodes() %}
- Скидка предоставляется только при наличии промокода.
{% endif %}
{{ offer.getFeatures()|raw }}
</div>
- Поставщик несет полную ответственность перед потребителем за достоверность информации.
{% endif %}
</div>
<div id=\"endOfOfferCondition\"></div>
<div class=\"clear\"></div>
</div>
{% if offer.getShopMedias()|length > 0 %}
<div class=\"offer-titles mb-2 mt-0\"><h2>Галерея</h2></div>
{% endif %}
<div id=\"offerConditionsSlider\"
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=\"300\"
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 href=\"{{ getImageURL(media, 0, 0) }}\" title=\"{{ media.getDescription() }}\"
data-lightbox=\"image\">
<img src=\"{{ getImageURL(media, 300, 0) }}\" width=\"300\"
alt=\"{{ media.getDescription() }}\" border=\"0\"/>
</a>
</div>
{% endfor %}
</div>
{% endif %}
</div>
<div id=\"examplesOfWorksBlock\" class=\"\">
<div class=\"headerBlockCategory examples d-none bg-white px-0 pb-0 bg-transpanent examples-block-offer-header\">
<div class=\"offer-titles\"><h5 class=\"m-0\">Фото
работ{# <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\" name=\"startRange\"
id=\"startRange\">
<input class=\"work-simples-input\" type=\"range\" name=\"finishRange\"
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 desk\">
<div id=\"beautyMastersHeader\"
class=\"tittleBlockCategory position-relative offer-titles mb-2 mt-0 d-none\"><h2>
{{ parentCategoryList and parentCategoryList[0].getID() == constant('Slivki\\\\Entity\\\\Category::MEDICAL_CENTER_CATEGORY_ID') ? 'Врачи' : 'Найти своего мастера' }}</h2>
</div>
{% include 'Slivki/beauty/beauty_masters.html.twig' %}
</div>
<div id=\"offersDescription\" class=\"offers-conditions mt-3\">
{% if offer.isShowProductsInOfferDescription() %}
<div id=\"foodItemsBlock\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Описание</h2></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=\"col d-flex align-items-center text-white justify-content-end px-0\"></div>
<div class=\"switch-delivery-pickup-block px-0 \">
<a data-type-delivery=\"1\"
class=\"switch-delivery-pickup-item button-tab-delivery delivery-type active\">
<p class=\"m-0\">Доставка</p>
<small>удобно👌</small>
</a>
<a data-type-delivery=\"2\"
class=\"switch-delivery-pickup-item pickup-type button-tab-pickup\">
<p class=\"m-0\"> Самовывоз</p>
<small>еще дешевле🔥</small>
</a>
</div>
</div>
{% endif %}
<div id=\"foodBlock\"></div>
<div id=\"foodOptionsBlock\"></div>
</div>
{% endif %}
<div class=\"description\" id=\"descriptionText\">
{% for offerDescription in offer.getDescriptionList() %}
{% set offerDescriptionSliderImages = offerDescription.getEntityDescriptionSliderImages() %}
{% if offerDescriptionSliderImages|length > 0 %}
<div class=\"sale-description-carousel\">
<div id=\"saleDescriptionSliderFor{{ offerDescription.getID() }}\"
class=\"sale-description-slider-for\">
{% for offerDescriptionSliderImage in offerDescriptionSliderImages %}
<div><img data-lazy=\"{{ offerDescriptionSliderImage.getImageUrl() }}\"/>
</div>
{% endfor %}
</div>
</div>
{% endif %}
{{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw }}
{# <div id=\"showMoreDescription\" #}
{# class=\"{{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw == \"\" or addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw == '<p><span style=\"color: #ecf0f1;\">.</span></p>' ? 'd-none' : \"\" }}\"> #}
{# <div class=\"w-100 position-absolute bottom-0\" #}
{# style=\"background: linear-gradient(360deg, #FFFFFF 15.15%, rgba(255, 255, 255, 0) 206.06%);\"></div> #}
{# <p class=\"w-100 position-absolute bottom-0\">Подробнее</p> #}
{# </div> #}
{% endfor %}
</div>
</div>
<div class=\"tab-pane fade\" id=\"offerLocationTab\">
<i class=\"fa fa-spinner fa-spin\"></i>
</div>
<div id=\"offersReview\" class=\"offers-review\">
{{ comments|raw }}
</div>
</div>
<div class=\"content-wrapper-col-right\">
<div id=\"conditionAddress\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Контакты</h2></div>
<div style=\"display:none\">{{ offer.getAddress() }}</div>
<div id=\"offerConditionLogo\">
{{ offer.getLogo()|raw }}
</div>
<div id=\"dataFromLocation\">
<div class=\"move-data\">
{% if geoLocations|length > 0 %}
<div class=\"geo-location-block\" style=\"display: block\">
{% include 'Slivki/offers/geo_location_data.html.twig' with {'offer': offer} only %}
<div id=\"offerGeoLocationData\" data-json=\"{{ offerGeoLocationData }}\"></div>
<div class=\"distance d-none\">
<i class=\"slivki-icon slivki-icon-direction\"></i> <img class='ajaxLoader'
src='/images/ajax-loader-16x16.gif'
alt='Загрузка...'/><span></span>
</div>
<div class=\"offer-details-map category-map-wrapper category-map\"
id=\"offerMapCanvas\">
<div id=\"mapCollapseBtn\" class=\"button button--map-collapse capsuled\"
onclick=\"offerMapToggleSize();\">Развернуть
</div>
<a id=\"setUserLocationBtn\" href=\"#\" class=\"capsuled\">Указать
местоположение</a>
<div id=\"zoomIn\"></div>
<div id=\"zoomOut\"></div>
</div>
</div>
{% endif %}
<div class=\"before-map\" style=\"clear:both;\"></div>
</div>
</div>
{% if (offer.getLocation()|preg_replace(\"/<[^>]*>/\", '')|replace({\"\\n\": '', \"\\r\": '', ' ': '', ' ': ''}) != '') %}
{{ offer.getLocation()|raw }}
{% set phoneNumbers = offer.getPhoneNumbers() %}
{% if phoneNumbers.count() > 0 %}
<div class=\"text-bold\">Телефон{{ phoneNumbers.count() > 1 ? 'ы' }}:</div>
{% endif %}
{% for phoneNumber in phoneNumbers %}
{{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
{% endfor %}
{% else %}
{% set geoLocationsCount = geoLocations.count() %}
{% set commonWoringHours = offer.getCommonWorkingHours() %}
{% if commonWoringHours != '' %}
<br>
<div class=\"text-bold\">Время работы:</div>
{{ commonWoringHours|raw }}
{% endif %}
{% for geoLocation in geoLocations %}
{% set margin = false %}
<div class=\"offer-details-geolocation-item my-3\">
<div class=\"font-bold font-size-17\">г. {{ geoLocation.getCity() }}
, {{ geoLocation.getStreet() }}, {{ geoLocation.getHouse() }}
<br>{{ geoLocation.getLabel() }}</div>
<div class=\"location-more-info {{ geoLocationsCount > 2 ? 'hidden' }}\">
{% if geoLocation.getWorkingHours()|trim != '' %}
{% set margin = true %}
<div class=\"offer-details-work-hours\">Время работы:
</div> {{ geoLocation.getWorkingHours()|nl2br|raw }}
{% endif %}
{% set phoneNumbers = geoLocation.getPhoneNumbers() %}
{% if phoneNumbers.count() > 0 %}
{% set margin = true %}
<span>
<div class=\"offer-details-phone-item\">
<div class=\"full-phone-item\">
{% for phoneNumber in phoneNumbers %}
{{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
{% endfor %}
</div>
</div>
{% endif %}
{# {% if margin %}#}
{# <br>#}
{# {% endif %}#}
</span>
{% if geoLocation.getCallbackChatId() and geoLocation.getCallbackChatId() != '' %}
<div class=\"callback-button\" data-id=\"{{ geoLocation.getId() }}\">Обратный
звонок
</div>
{% endif %}
</div>
{% if geoLocationsCount > 2 %}
<a data-id=\"{{ geoLocation.getID() }}\"
class=\"text-slivki location-more-info-toggle\">Подробнее</a>
{% endif %}
</div>
{% endfor %}
{# {% if geoLocationsCount > 4 %} #}
{# <div class=\"text-center\"> #}
{# <a id=\"showMoreAddressInDetailsLink\" class=\"button\" href=\"#\">Еще адреса</a> #}
{# </div> #}
{# {% endif %} #}
{% set phoneNumbersWithoutGeoLocations = offer.getPhoneNumbersWithoutGeoLocations() %}
{% if phoneNumbersWithoutGeoLocations|length > 0 %}
<div class=\"text-bold\">Телефон{{ phoneNumbersWithoutGeoLocations|length > 1 ? 'ы' }}:
</div>
<div class=\"offer-details-phone-item\">
<div class=\"full-phone-item\">
{% for phoneNumber in phoneNumbersWithoutGeoLocations %}
{{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
{% endfor %}
</div>
</div>
{% if phoneNumber is defined and phoneNumber.getCallbackChatId() and phoneNumber.getCallbackChatId() != '' %}
<div class=\"callback-button\" data-id=\"{{ phoneNumber.getId() }}\">Обратный звонок
</div>
{% endif %}
{% endif %}
{% endif %}
<div id=\"phoneOffersBlock\" class=\"offer-details-legal-info\">{{ offer.getLegal()|raw }}</div>
<div class=\"offer-titles offer-titles-mobile mt-0 mb-0\"><h5 class=\"mt-0 mb-0\">Написать</h5>
</div>
<div class=\"col px-0\">
<a class=\"tg-button offer-phone-mob btn btn-block bg-slivki text-white py-1 no-decoration my-2 d-flex justify-content-center align-items-center\"
href=\"https://t.me/{{ offer.getTelegram() != null ? offer.getTelegram() : 'slivkislivkiby' }}\"
style=\"width: 200px\">
<img class=\"mr-2\" src=\"/images/tg.svg\" width=\"20\" height=\"18\">
<span class=\"float-right\">Telegram</span>
</a>
{% set viberNumber = offer.getViber() != null ? offer.getViber() : '+375295084444' %}
{# <a class=\"vb-button offer-phone-mob btn btn-block bg-slivki text-white py-1 no-decoration my-2 d-flex justify-content-center align-items-center\"#}
{# href='viber://chat?number=\" {{ viberNumber }} \"' style=\"width: 200px\">#}
{# <img class=\"mr-2\" src=\"/images/vb.svg\" width=\"20\" height=\"18\">#}
{# <span class=\"float-right\">Viber</span>#}
{# </a>#}
</div>
</div>
{% include 'Slivki/offers/share.html.twig' %}
{% include \"Slivki#{regional_template_path}/jivosite/button_offers_page.html.twig\" %}
<p class=\"tittle-messenger-offers d-none\">Мы всегда рады помочь: служба поддержки Slivki.by ответит
на
любой
ваш вопрос</p>
</div>
</div>
</div>
{% if (pastOffer or freeCodesCount == 0) and relatedOfferListHtml is defined %}
<div class=\"col px-3\">
<div class=\"related-offers-title\">Другие похожие предложения:</div>
<div class=\"related-offers-list stock-group-list\">
{{ relatedOfferListHtml|raw }}
</div>
</div>
{% endif %}
</div>
{% if lastPurchaseText is defined %}
<div id=\"lastPurchaseNofify\"><a href=\"#\"><i class=\"slivki-icon-close-thin\"></i></a>Последний раз промокод<br>получен {{ lastPurchaseText }}
</div>
{% endif %}
{% endblock %}
{% block popups %}
{{ parent() }}
{% if not pastOffer %}
{% include 'Slivki/popups/header_offers.html.twig' %}
{% endif %}
{% include 'Slivki/share_block.html.twig' %}
{% include 'Slivki/popups/callback.html.twig' %}
{% include 'Slivki/offers/complaint.html.twig' %}
{% include 'Slivki/orderAsGift/foodForGift.html.twig' %}
{% if galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
{% include 'Slivki/popups/details-story-popup.html.twig' %}
{% endif %}
{% include 'Slivki/popups/comment_media_block_popup.html.twig' %}
{% include 'Slivki/popups/statistics_popup.html.twig' %}
{% include 'Slivki/mobile/popup/buy_codes_avways_app.html.twig' %}
{% include 'Slivki/delivery/modal/details.html.twig' with {'isOfferPage': true} %}
{% if offer.isGiftCertificateOffer() %}
{% include 'Slivki/popups/step_buy_certificate.twig' with {'deliveryLink': deliveryLink} %}
{% endif %}
{% if app.user %}
{% include 'Slivki/popups/mail_offers.html.twig' %}
{% include 'Slivki/popups/rating_edit_popup.html.twig' %}
{% include 'Slivki/popups/popup_subscription_limited.html.twig' %}
{% if not isMobileDevice() or offerIsFreeForUser %}
{% if not codeCostInCurrency is defined and codeCostInCurrency is not null %}
{% set codeCostInCurrency = null %}
{% endif %}
{% include 'Slivki/popups/confirm_box.html.twig' with {'codeCost': codeCost, 'offerID': offer.getID(), 'codeCostInCurrency': codeCostInCurrency} %}
{% include 'Slivki/popups/confirm_subscription_card_popup.html.twig' with {'creditCards': app.user.getActiveCreditCards()} %}
{% endif %}
{% if not isMobileDevice() %}
{% include 'Slivki/popups/add_comment_popup.html.twig' with {'id': 'addVoteBox'} %}
{% include 'Slivki/popups/edit_comment_popup.html.twig' with {'id': 'editVoteBox'} %}
{% include 'Slivki/popups/comment_censor_message.html.twig' with {'id': 'commentCensorMessage'} %}
{% endif %}
{% else %}
{% if not isMobileDevice() %}
{% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
{% endif %}
{% endif %}
{% endblock %}
{% block javascripts %}
<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 src=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js\"></script>
<script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/locale/ru.min.js\"
integrity=\"sha512-QezkC2mljFGA2zQBPe+FrNA7i2RVFaYOfdQHk6icEap1TZX/Q6MNx+0AOTr9msSec0LsMrpURxfgJSbodYoiLg==\"
crossorigin=\"anonymous\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/fecha/2.3.3/fecha.min.js\"></script>
<script src=\"/js/hotel-datepicker-3.6.5/hotel-datepicker.min.js\"></script>
<script src=\"/js/swiper-js/swiper.min.js\"></script>
<script src=\"/js/story-slider/story-slider-js.js?v={{ story_slider_js_version }}\"></script>
{{ parent() }}
<script src=\"/js/offer.js?v={{ offer_js_version }}\"></script>
<script src=\"/js/offer/offerDescriptionItems.js?v={{ offer_description_items_js_version }}\"></script>
<script src=\"/js/common-old.js?v={{ common_old_js_version }}\"></script>
<script type=\"text/javascript\">
{% if preview is defined and preview %}
var offerPreview = 1;
{% else %}
var offerPreview = 0;
{% endif %}
{% if app.request.query.has('checkOrder') %}
initCheckOfferOrderStatus({{ app.request.get('checkOrder') }});
{% endif %}
</script>
<script src=\"/js/offer-new.js?v={{ offer_new_js_version }}\"/>
{% endblock %}
{% block assetsBottom %}
{{ parent() }}
<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=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js\"
integrity=\"sha512-Y+0b10RbVUTf3Mi0EgJue0FoheNzentTMMIE2OreNbqnUPNbQj8zmjK3fs5D2WhQeGWIem2G2UkKjAL/bJ/UXQ==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
{# <script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script>#}
<script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
<script async src=\"//embedr.flickr.com/assets/client-code.js\" charset=\"utf-8\"></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=\"https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js\"></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/offers/details.html.twig", "/mnt/data/virtwww/dima/templates/Slivki/offers/details.html.twig");
}
}