<?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, "1328676851")->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-3\" src=\"/images/without_codes.png\"/>
</a>
";
}
// line 262
echo " ";
}
// line 263
echo " </div>
<div class=\"d-flex\" style=\"min-height: 90px;align-items: end;\">
";
// line 265
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.', 265, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 265), 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.', 265, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 265))) {
// line 266
echo " <div class=\"buttons-wrapper-offers\">
";
// line 267
if (array_key_exists("hasDelivery", $context)) {
// line 268
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.', 268, $this->source); })()), "isBuyCodeDisable", [], "method", false, false, false, 268)) {
// line 269
echo " ";
$this->loadTemplate("Slivki/offers/buy_button.html.twig", "Slivki/offers/details.html.twig", 269)->display($context);
// line 270
echo " ";
}
// line 271
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.', 271, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 271)) {
// line 272
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.', 272, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Заказать онлайн ";
// line 274
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.', 274, $this->source); })()), "getDiscount", [], "method", false, false, false, 274), "html", null, true);
echo "
</a>
";
}
// line 277
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.', 277, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 277)) {
// line 278
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.', 278, $this->source); })()), "getID", [], "method", false, false, false, 278), twig_constant("Slivki\\Entity\\Offer::MINSK_WORLD_CERTIFICATE_OFFER_ID")))) {
// line 279
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.', 279, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Получить скидку ";
// line 281
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.', 281, $this->source); })()), "getDiscount", [], "method", false, false, false, 281), "html", null, true);
echo "
</a>
";
} elseif (twig_in_filter(twig_get_attribute($this->env, $this->source, // line 283
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 283, $this->source); })()), "getID", [], "method", false, false, false, 283), twig_constant("Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS"))) {
// line 284
echo " <a id=\"deliveryBtn2\"
href=\"";
// line 285
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.', 285, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
ПОЛУЧИТЬ СКИДКУ ";
// line 287
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.', 287, $this->source); })()), "getDiscount", [], "method", false, false, false, 287), "html", null, true);
echo "
</a>
";
} elseif ( !twig_get_attribute($this->env, $this->source, // line 289
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 289, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 289)) {
// line 290
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.', 290, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Оплатить онлайн ";
// line 292
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.', 292, $this->source); })()), "getDiscount", [], "method", false, false, false, 292), "html", null, true);
echo "
</a>
";
}
// line 295
echo " ";
}
// line 296
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.', 296, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 296)) {
// line 297
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.', 297, $this->source); })()), "getOnlineRegistrationLink", [], "method", false, false, false, 297), "html", null, true);
echo "\"
class=\"online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Онлайн-запись
</a>
";
}
// line 302
echo " ";
} elseif ((isset($context["isAllowedByOnlyCode"]) || array_key_exists("isAllowedByOnlyCode", $context) ? $context["isAllowedByOnlyCode"] : (function () { throw new RuntimeError('Variable "isAllowedByOnlyCode" does not exist.', 302, $this->source); })())) {
// line 303
echo " <div class=\"col\">
";
// line 304
$this->loadTemplate("Slivki/offers/buy_button.html.twig", "Slivki/offers/details.html.twig", 304)->display($context);
// line 305
echo " </div>
";
}
// line 307
echo " ";
if (((((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 307, $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.', 307, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 307)) && !(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.', 307, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 307))) && (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.', 307, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 307), "allowedPaymentMethods", [], "any", false, false, false, 307), "delivery", [], "array", false, false, false, 307), 4, [], "array", false, false, false, 307), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) || ((( ! // line 308
(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 308, $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.', 308, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 308)) && (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.', 308, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 308))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))))) {
// line 309
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>
";
}
// line 321
echo " ";
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.', 321, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 321)) && (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.', 321, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 321), "allowedPaymentMethods", [], "any", false, false, false, 321), "delivery", [], "array", false, false, false, 321), 4, [], "array", false, false, false, 321), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) && !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 321, $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.', 321, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 321)) || (((( !(null === twig_get_attribute($this->env, $this->source, // line 322
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 322, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 322)) && (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.', 322, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 322), "allowedPaymentMethods", [], "any", false, false, false, 322), "pickup", [], "array", false, false, false, 322), 4, [], "array", false, false, false, 322), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) && !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 322, $this->source); })())) && !twig_get_attribute($this->env, $this->source, // line 323
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 323, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 323)))) {
// line 324
echo " <div class=\"col\">
";
// line 325
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.', 325, $this->source); })()), "user", [], "any", false, false, false, 325)) {
// line 326
echo " <a class=\"button-gift\" href=\"/virtual-wallet-pay\">
<div class=\"button-gift-text\">
<p>ТЕПЕРЬ МОЖНО</p>
<p class=\"color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
";
} else {
// line 336
echo " <a class=\"button-gift\" data-toggle=\"modal\" data-target=\".modal-auth\">
<div class=\"button-gift-text\">
<p>ТЕПЕРЬ МОЖНО</p>
<p class=\"color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
";
}
// line 346
echo " </div>
";
}
// line 348
echo " ";
}
// line 349
echo " </div>
</div>
</div>
</div>
<div id=\"conditions_offers\" class=\"d-flex\" style=\"";
// line 353
echo (((isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 353, $this->source); })())) ? ("display: none!important") : (""));
echo "\">
<div class=\"content-wrapper-col-left pt-0\">
";
// line 355
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.', 355, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 355) && (((( !(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.', 355, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 355)) && (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.', 355, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 355), "allowedPaymentMethods", [], "any", false, false, false, 355), "delivery", [], "array", false, false, false, 355), 4, [], "array", false, false, false, 355), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 355, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 355)) || ((((twig_get_attribute($this->env, $this->source, // line 356
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 356, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 356) && !(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.', 356, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 356))) && (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.', 356, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 356), "allowedPaymentMethods", [], "any", false, false, false, 356), "delivery", [], "array", false, false, false, 356), 4, [], "array", false, false, false, 356), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 356, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 356))))) {
// line 357
echo "
<div class=\"d-flex mb-2\" style=\"max-width: 625px;\">
";
// line 359
if (((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 359, $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.', 359, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 359), 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.', 359, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 359)) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 359, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 359))) {
// line 360
echo " <div class=\"col mb-2 mr-2\">
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
<div class=\"button-gift-text\">
<p>ЕДА В ПОДАРОК 😋</p>
<p>Подарю сам или подарят мне</p>
</div>
</a>
</div>
";
}
// line 369
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.', 369, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 369) && !(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.', 369, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 369))) && (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.', 369, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 369), "allowedPaymentMethods", [], "any", false, false, false, 369), "delivery", [], "array", false, false, false, 369), 4, [], "array", false, false, false, 369), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) && !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 369, $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.', 369, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 369)) || (((( !(null === twig_get_attribute($this->env, $this->source, // line 370
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 370, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 370)) && (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.', 370, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 370), "allowedPaymentMethods", [], "any", false, false, false, 370), "pickup", [], "array", false, false, false, 370), 4, [], "array", false, false, false, 370), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) && !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 370, $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.', 370, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 370)))) {
// line 371
echo " <div class=\"col\">
";
// line 372
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.', 372, $this->source); })()), "user", [], "any", false, false, false, 372)) {
// line 373
echo " <a class=\"button-gift\" href=\"/virtual-wallet-pay\">
<div class=\"button-gift-text\">
<p>ТЕПЕРЬ МОЖНО</p>
<p class=\"color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
";
} else {
// line 383
echo " <a class=\"button-gift\" data-toggle=\"modal\" data-target=\".modal-auth\">
<div class=\"button-gift-text\">
<p>ТЕПЕРЬ МОЖНО</p>
<p class=\"color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
";
}
// line 393
echo " </div>
";
}
// line 395
echo " </div>
";
}
// line 397
echo " <div id=\"offersConditions\" class=\"offers-conditions active\" style=\"max-height: fit-content;\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Условия</h2></div>
";
// line 399
$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.', 399, $this->source); })()), "user", [], "any", false, false, false, 399)) ? (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.', 399, $this->source); })()), "user", [], "any", false, false, false, 399), "isOfferFavourite", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 399, $this->source); })())], "method", false, false, false, 399)) : (false));
// line 400
echo " <div id=\"startOfOfferCondition\"></div>
";
// line 401
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.', 401, $this->source); })()), "getID", [], "method", false, false, false, 401), 239232))) {
// line 402
echo " ";
}
// line 403
echo "
";
// line 404
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.', 404, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 404) && (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.', 404, $this->source); })()), "getID", [], "method", false, false, false, 404), 140553)))) {
// line 405
echo " <p>
";
// line 406
$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.', 406, $this->source); })()), "getCodeActiveTill", [], "method", false, false, false, 406);
// line 407
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.', 407, $this->source); })()), "getActiveTill", [], "method", false, false, false, 407), "-1 day");
// line 408
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.', 408, $this->source); })()), (isset($context["codeTill"]) || array_key_exists("codeTill", $context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.', 408, $this->source); })())))) ? ((isset($context["codeTill"]) || array_key_exists("codeTill", $context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.', 408, $this->source); })())) : ((isset($context["codeFrom"]) || array_key_exists("codeFrom", $context) ? $context["codeFrom"] : (function () { throw new RuntimeError('Variable "codeFrom" does not exist.', 408, $this->source); })())));
// line 409
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.', 409, $this->source); })()), "isHideFeatures", [], "method", false, false, false, 409)) {
// line 410
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.', 410, $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.', 410, $this->source); })()), "getID", [], "method", false, false, false, 410), 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.', 410, $this->source); })()), "d.m.y"), "html", null, true);
echo "
<br/>
";
}
// line 413
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.', 413, $this->source); })()), "isShowPriceInConditions", [], "method", false, false, false, 413) && !(isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 413, $this->source); })()))) {
// line 414
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.', 414, $this->source); })()), "html", null, true);
echo " руб.
";
}
// line 416
echo " </p>
";
}
// line 418
echo "
<div class=\"offer-details-conditions offers-conditions p-0\">
";
// line 420
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.', 420, $this->source); })()), "getConditions", [], "method", false, false, false, 420);
echo "
";
// line 422
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.', 422, $this->source); })()), "getID", [], "method", false, false, false, 422), 143528))) {
// line 423
echo " ";
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer2.html.twig", "Slivki/offers/details.html.twig", 423)->display($context);
// line 424
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.', 424, $this->source); })()), "getID", [], "method", false, false, false, 424), 282234))) {
// line 425
echo " ";
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer4.html.twig", "Slivki/offers/details.html.twig", 425)->display($context);
// line 426
echo " ";
}
// line 427
echo " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 427, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 427)) {
// line 428
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.', 428, $this->source); })())) . "/phrase_subscription_in_offer_page.html.twig"), "Slivki/offers/details.html.twig", 428)->display($context);
// line 429
echo " ";
}
// line 430
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.', 430, $this->source); })()), "isHideFeatures", [], "method", false, false, false, 430)) {
// line 431
echo " </br>
<div class=\"offer-titles mb-2 mt-0\"><h2>Особенности</h2></div>
<div class=\"offer-details-conditions\">
";
// line 434
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.', 434, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 434)) {
// line 435
echo " - Скидка предоставляется только при наличии промокода.
";
}
// line 437
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.', 437, $this->source); })()), "getFeatures", [], "method", false, false, false, 437);
echo "
</div>
- Поставщик несет полную ответственность перед потребителем за достоверность информации.
";
}
// line 441
echo " </div>
<div id=\"endOfOfferCondition\"></div>
<div class=\"clear\"></div>
</div>
";
// line 445
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.', 445, $this->source); })()), "getShopMedias", [], "method", false, false, false, 445)), 0))) {
// line 446
echo " <div class=\"offer-titles mb-2 mt-0\"><h2>Галерея</h2></div>
";
}
// line 448
echo " <div id=\"offerConditionsSlider\"
class=\"my-4 screenshots ";
// line 449
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.', 449, $this->source); })()), "getShopMedias", [], "method", false, false, false, 449)), 0)) || (0 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 449, $this->source); })()), 0)))) ? ("empty") : (""));
echo "\">
";
// line 450
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.', 450, $this->source); })()), "getShopMedias", [], "method", false, false, false, 450)), 0))) {
// line 451
echo " <div class=\"screenshot-container\">
";
// line 452
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 452) && (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.', 452, $this->source); })()), "getVideos", [], "method", false, false, false, 452)), 0)))) {
// line 453
echo " <div class=\"screenshot screenshot-story\" data-toggle=\"modal\"
data-target=\"#detailsStoryPopup\">
<img src=\"";
// line 455
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.', 455, $this->source); })()), "getImageUrl", [], "method", false, false, false, 455), "html", null, true);
echo "\" width=\"300\"
alt=\"Видео\" border=\"0\"/>
<div class=\"screenshot-story-btn\"></div>
<div class=\"screenshot-story-tittle\">";
// line 458
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.', 458, $this->source); })()), "getTitle", [], "method", false, false, false, 458), "html", null, true);
echo "</div>
</div>
";
}
// line 461
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.', 461, $this->source); })()), "getShopMedias", [], "method", false, false, false, 461));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 462
echo " <div class=\"screenshot\">
<a href=\"";
// line 463
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, 463), "html", null, true);
echo "\"
data-lightbox=\"image\">
<img src=\"";
// line 465
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 300, 0), "html", null, true);
echo "\" width=\"300\"
alt=\"";
// line 466
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 466), "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 470
echo " </div>
";
}
// line 472
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 476
echo "</h5>
</div>
<div class=\"examples-works-tooltip-filter\">
<div class=\"tooltip-content\">
<div class=\"tooltip-title border-bottom-f d-flex\">Показать сначала:</div>
";
// line 481
$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 482
echo " <div class=\"radio\">
<input id=\"filter";
// line 483
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" type=\"radio\" name=\"filter\"
data-direction=\"";
// line 484
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "direction", [], "any", false, false, false, 484), "html", null, true);
echo "\"
value=\"";
// line 485
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "field", [], "any", false, false, false, 485), "html", null, true);
echo "\" ";
echo ((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 485)) ? ("checked") : (""));
echo ">
<label for=\"filter";
// line 486
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\"
class=\"cursor-pointer\">";
// line 487
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "name", [], "any", false, false, false, 487), "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 490
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 525
$this->loadTemplate("Slivki/works-examples/examples_of_works_gallery.html.twig", "Slivki/offers/details.html.twig", 525)->display($context);
// line 526
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 530
echo ((((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 530, $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.', 530, $this->source); })()), 0, [], "array", false, false, false, 530), "getID", [], "method", false, false, false, 530), twig_constant("Slivki\\Entity\\Category::MEDICAL_CENTER_CATEGORY_ID"))))) ? ("Врачи") : ("Найти своего мастера"));
echo "</h2>
</div>
";
// line 532
$this->loadTemplate("Slivki/beauty/beauty_masters.html.twig", "Slivki/offers/details.html.twig", 532)->display($context);
// line 533
echo " </div>
<div id=\"offersDescription\" class=\"offers-conditions mt-3\">
";
// line 535
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.', 535, $this->source); })()), "isShowProductsInOfferDescription", [], "method", false, false, false, 535)) {
// line 536
echo " <div id=\"foodItemsBlock\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Описание</h2></div>
";
// line 538
if (((isset($context["isPickupEnabled"]) || array_key_exists("isPickupEnabled", $context) ? $context["isPickupEnabled"] : (function () { throw new RuntimeError('Variable "isPickupEnabled" does not exist.', 538, $this->source); })()) && (isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled", $context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.', 538, $this->source); })()))) {
// line 539
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 556
echo "
<div id=\"foodBlock\"></div>
<div id=\"foodOptionsBlock\"></div>
</div>
";
}
// line 561
echo " <div class=\"description\" id=\"descriptionText\">
";
// line 562
$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.', 562, $this->source); })()), "getDescriptionList", [], "method", false, false, false, 562));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescription"]) {
// line 563
echo "
";
// line 564
$context["offerDescriptionSliderImages"] = twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getEntityDescriptionSliderImages", [], "method", false, false, false, 564);
// line 565
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.', 565, $this->source); })())), 0))) {
// line 566
echo " <div class=\"sale-description-carousel\">
<div id=\"saleDescriptionSliderFor";
// line 567
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getID", [], "method", false, false, false, 567), "html", null, true);
echo "\"
class=\"sale-description-slider-for\">
";
// line 569
$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.', 569, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescriptionSliderImage"]) {
// line 570
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, 570), "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 573
echo " </div>
</div>
";
}
// line 576
echo " ";
echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->addLazyAndLightboxImagesInDescription(twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getDescription", [], "method", false, false, false, 576));
echo "
";
// line 578
echo " ";
// line 579
echo " ";
// line 580
echo " ";
// line 581
echo " ";
// line 582
echo " ";
// line 583
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 584
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 591
echo (isset($context["comments"]) || array_key_exists("comments", $context) ? $context["comments"] : (function () { throw new RuntimeError('Variable "comments" does not exist.', 591, $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 597
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.', 597, $this->source); })()), "getAddress", [], "method", false, false, false, 597), "html", null, true);
echo "</div>
<div id=\"offerConditionLogo\">
";
// line 599
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.', 599, $this->source); })()), "getLogo", [], "method", false, false, false, 599);
echo "
</div>
<div id=\"dataFromLocation\">
<div class=\"move-data\">
";
// line 603
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.', 603, $this->source); })())), 0))) {
// line 604
echo " <div class=\"geo-location-block\" style=\"display: block\">
";
// line 605
$this->loadTemplate("Slivki/offers/geo_location_data.html.twig", "Slivki/offers/details.html.twig", 605)->display(twig_to_array(["offer" => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 605, $this->source); })())]));
// line 606
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.', 606, $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 624
echo " <div class=\"before-map\" style=\"clear:both;\"></div>
</div>
</div>
";
// line 627
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.', 627, $this->source); })()), "getLocation", [], "method", false, false, false, 627), "/<[^>]*>/", ""), ["
" => "", "
" => "", " " => "", " " => ""]), ""))) {
// line 628
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.', 628, $this->source); })()), "getLocation", [], "method", false, false, false, 628);
echo "
";
// line 629
$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.', 629, $this->source); })()), "getPhoneNumbers", [], "method", false, false, false, 629);
// line 630
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.', 630, $this->source); })()), "count", [], "method", false, false, false, 630), 0))) {
// line 631
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.', 631, $this->source); })()), "count", [], "method", false, false, false, 631), 1))) ? ("ы") : (""));
echo ":</div>
";
}
// line 633
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.', 633, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 634
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 634), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 634), "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 636
echo " ";
} else {
// line 637
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.', 637, $this->source); })()), "count", [], "method", false, false, false, 637);
// line 638
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.', 638, $this->source); })()), "getCommonWorkingHours", [], "method", false, false, false, 638);
// line 639
echo " ";
if ((0 !== twig_compare((isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 639, $this->source); })()), ""))) {
// line 640
echo " <br>
<div class=\"text-bold\">Время работы:</div>
";
// line 642
echo (isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 642, $this->source); })());
echo "
";
}
// line 644
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.', 644, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["geoLocation"]) {
// line 645
echo " ";
$context["margin"] = false;
// line 646
echo " <div class=\"offer-details-geolocation-item my-3\">
<div class=\"font-bold font-size-17\">г. ";
// line 647
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCity", [], "method", false, false, false, 647), "html", null, true);
echo "
, ";
// line 648
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getStreet", [], "method", false, false, false, 648), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getHouse", [], "method", false, false, false, 648), "html", null, true);
echo "
<br>";
// line 649
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getLabel", [], "method", false, false, false, 649), "html", null, true);
echo "</div>
<div class=\"location-more-info ";
// line 650
echo (((1 === twig_compare((isset($context["geoLocationsCount"]) || array_key_exists("geoLocationsCount", $context) ? $context["geoLocationsCount"] : (function () { throw new RuntimeError('Variable "geoLocationsCount" does not exist.', 650, $this->source); })()), 2))) ? ("hidden") : (""));
echo "\">
";
// line 651
if ((0 !== twig_compare(twig_trim_filter(twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 651)), ""))) {
// line 652
echo " ";
$context["margin"] = true;
// line 653
echo " <div class=\"offer-details-work-hours\">Время работы:
</div> ";
// line 654
echo twig_nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 654), "html", null, true));
echo "
";
}
// line 656
echo " ";
$context["phoneNumbers"] = twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getPhoneNumbers", [], "method", false, false, false, 656);
// line 657
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.', 657, $this->source); })()), "count", [], "method", false, false, false, 657), 0))) {
// line 658
echo " ";
$context["margin"] = true;
// line 659
echo " <span>
<div class=\"offer-details-phone-item\">
<div class=\"full-phone-item\">
";
// line 662
$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.', 662, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 663
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 663), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 663), "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 665
echo " </div>
</div>
";
}
// line 668
echo " ";
if ((isset($context["margin"]) || array_key_exists("margin", $context) ? $context["margin"] : (function () { throw new RuntimeError('Variable "margin" does not exist.', 668, $this->source); })())) {
// line 669
echo " <br>
";
}
// line 671
echo " </span>
";
// line 672
if ((twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCallbackChatId", [], "method", false, false, false, 672) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCallbackChatId", [], "method", false, false, false, 672), "")))) {
// line 673
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, 673), "html", null, true);
echo "\">Обратный звонок</div>
";
}
// line 675
echo " </div>
";
// line 676
if ((1 === twig_compare((isset($context["geoLocationsCount"]) || array_key_exists("geoLocationsCount", $context) ? $context["geoLocationsCount"] : (function () { throw new RuntimeError('Variable "geoLocationsCount" does not exist.', 676, $this->source); })()), 2))) {
// line 677
echo " <a data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getID", [], "method", false, false, false, 677), "html", null, true);
echo "\"
class=\"text-slivki location-more-info-toggle\">Подробнее</a>
";
}
// line 680
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 683
echo " ";
// line 684
echo " ";
// line 685
echo " ";
// line 686
echo " ";
// line 687
echo " ";
// line 688
echo "
";
// line 689
$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.', 689, $this->source); })()), "getPhoneNumbersWithoutGeoLocations", [], "method", false, false, false, 689);
// line 690
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.', 690, $this->source); })())), 0))) {
// line 691
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.', 691, $this->source); })())), 1))) ? ("ы") : (""));
echo ":
</div>
<div class=\"offer-details-phone-item\">
<div class=\"full-phone-item\">
";
// line 695
$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.', 695, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 696
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 696), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 696), "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 698
echo " </div>
</div>
";
// line 700
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.', 700, $this->source); })()), "getCallbackChatId", [], "method", false, false, false, 700)) && (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.', 700, $this->source); })()), "getCallbackChatId", [], "method", false, false, false, 700), "")))) {
// line 701
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.', 701, $this->source); })()), "getId", [], "method", false, false, false, 701), "html", null, true);
echo "\">Обратный звонок</div>
";
}
// line 703
echo " ";
}
// line 704
echo "
";
}
// line 706
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.', 706, $this->source); })()), "getLegal", [], "method", false, false, false, 706);
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 711
(((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.', 711, $this->source); })()), "getTelegram", [], "method", false, false, false, 711), 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.', 711, $this->source); })()), "getTelegram", [], "method", false, false, false, 711), "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 716
$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.', 716, $this->source); })()), "getViber", [], "method", false, false, false, 716), 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.', 716, $this->source); })()), "getViber", [], "method", false, false, false, 716)) : ("+375295084444"));
// line 717
echo " <a class=\"vb-button offer-phone-mob btn btn-block bg-slivki text-white py-1 no-decoration my-2 d-flex justify-content-center align-items-center\"
href='viber://chat?number=\" ";
// line 718
echo twig_escape_filter($this->env, (isset($context["viberNumber"]) || array_key_exists("viberNumber", $context) ? $context["viberNumber"] : (function () { throw new RuntimeError('Variable "viberNumber" does not exist.', 718, $this->source); })()), "html", null, true);
echo " \"' style=\"width: 200px\">
<img class=\"mr-2\" src=\"/images/vb.svg\" width=\"20\" height=\"18\">
<span class=\"float-right\">Viber</span>
</a>
</div>
</div>
";
// line 724
$this->loadTemplate("Slivki/offers/share.html.twig", "Slivki/offers/details.html.twig", 724)->display($context);
// line 725
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.', 725, $this->source); })())) . "/jivosite/button_offers_page.html.twig"), "Slivki/offers/details.html.twig", 725)->display($context);
// line 726
echo " <p class=\"tittle-messenger-offers d-none\">Мы всегда рады помочь: служба поддержки Slivki.by ответит
на
любой
ваш вопрос</p>
</div>
</div>
</div>
";
// line 734
if ((((isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 734, $this->source); })()) || (0 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 734, $this->source); })()), 0))) && array_key_exists("relatedOfferListHtml", $context))) {
// line 735
echo " <div class=\"col px-3\">
<div class=\"related-offers-title\">Другие похожие предложения:</div>
<div class=\"related-offers-list stock-group-list\">
";
// line 738
echo (isset($context["relatedOfferListHtml"]) || array_key_exists("relatedOfferListHtml", $context) ? $context["relatedOfferListHtml"] : (function () { throw new RuntimeError('Variable "relatedOfferListHtml" does not exist.', 738, $this->source); })());
echo "
</div>
</div>
";
}
// line 742
echo " </div>
";
// line 743
if (array_key_exists("lastPurchaseText", $context)) {
// line 744
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.', 744, $this->source); })()), "html", null, true);
echo "
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 749
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 750
echo " ";
$this->displayParentBlock("popups", $context, $blocks);
echo "
";
// line 751
if ( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 751, $this->source); })())) {
// line 752
echo " ";
$this->loadTemplate("Slivki/popups/header_offers.html.twig", "Slivki/offers/details.html.twig", 752)->display($context);
// line 753
echo " ";
}
// line 754
echo " ";
$this->loadTemplate("Slivki/share_block.html.twig", "Slivki/offers/details.html.twig", 754)->display($context);
// line 755
echo " ";
$this->loadTemplate("Slivki/popups/callback.html.twig", "Slivki/offers/details.html.twig", 755)->display($context);
// line 756
echo " ";
$this->loadTemplate("Slivki/offers/complaint.html.twig", "Slivki/offers/details.html.twig", 756)->display($context);
// line 757
echo " ";
$this->loadTemplate("Slivki/orderAsGift/foodForGift.html.twig", "Slivki/offers/details.html.twig", 757)->display($context);
// line 758
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 758) && (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.', 758, $this->source); })()), "getVideos", [], "method", false, false, false, 758)), 0)))) {
// line 759
echo " ";
$this->loadTemplate("Slivki/popups/details-story-popup.html.twig", "Slivki/offers/details.html.twig", 759)->display($context);
// line 760
echo " ";
}
// line 761
echo " ";
$this->loadTemplate("Slivki/popups/comment_media_block_popup.html.twig", "Slivki/offers/details.html.twig", 761)->display($context);
// line 762
echo " ";
$this->loadTemplate("Slivki/popups/statistics_popup.html.twig", "Slivki/offers/details.html.twig", 762)->display($context);
// line 763
echo " ";
$this->loadTemplate("Slivki/mobile/popup/buy_codes_avways_app.html.twig", "Slivki/offers/details.html.twig", 763)->display($context);
// line 764
echo " ";
$this->loadTemplate("Slivki/delivery/modal/details.html.twig", "Slivki/offers/details.html.twig", 764)->display(twig_array_merge($context, ["isOfferPage" => true]));
// line 765
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.', 765, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 765)) {
// line 766
echo " ";
$this->loadTemplate("Slivki/popups/step_buy_certificate.twig", "Slivki/offers/details.html.twig", 766)->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.', 766, $this->source); })())]));
// line 767
echo " ";
}
// line 768
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.', 768, $this->source); })()), "user", [], "any", false, false, false, 768)) {
// line 769
echo " ";
$this->loadTemplate("Slivki/popups/mail_offers.html.twig", "Slivki/offers/details.html.twig", 769)->display($context);
// line 770
echo " ";
$this->loadTemplate("Slivki/popups/rating_edit_popup.html.twig", "Slivki/offers/details.html.twig", 770)->display($context);
// line 771
echo " ";
$this->loadTemplate("Slivki/popups/popup_subscription_limited.html.twig", "Slivki/offers/details.html.twig", 771)->display($context);
// line 772
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.', 772, $this->source); })()))) {
// line 773
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.', 773, $this->source); })())))) {
// line 774
echo " ";
$context["codeCostInCurrency"] = null;
// line 775
echo " ";
}
// line 776
echo " ";
$this->loadTemplate("Slivki/popups/confirm_box.html.twig", "Slivki/offers/details.html.twig", 776)->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.', 776, $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.', 776, $this->source); })()), "getID", [], "method", false, false, false, 776), "codeCostInCurrency" => (isset($context["codeCostInCurrency"]) || array_key_exists("codeCostInCurrency", $context) ? $context["codeCostInCurrency"] : (function () { throw new RuntimeError('Variable "codeCostInCurrency" does not exist.', 776, $this->source); })())]));
// line 777
echo " ";
$this->loadTemplate("Slivki/popups/confirm_subscription_card_popup.html.twig", "Slivki/offers/details.html.twig", 777)->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.', 777, $this->source); })()), "user", [], "any", false, false, false, 777), "getActiveCreditCards", [], "method", false, false, false, 777)]));
// line 778
echo " ";
}
// line 779
echo "
";
// line 780
if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
// line 781
echo " ";
$this->loadTemplate("Slivki/popups/add_comment_popup.html.twig", "Slivki/offers/details.html.twig", 781)->display(twig_array_merge($context, ["id" => "addVoteBox"]));
// line 782
echo " ";
$this->loadTemplate("Slivki/popups/edit_comment_popup.html.twig", "Slivki/offers/details.html.twig", 782)->display(twig_array_merge($context, ["id" => "editVoteBox"]));
// line 783
echo " ";
$this->loadTemplate("Slivki/popups/comment_censor_message.html.twig", "Slivki/offers/details.html.twig", 783)->display(twig_array_merge($context, ["id" => "commentCensorMessage"]));
// line 784
echo " ";
}
// line 785
echo " ";
} else {
// line 786
echo " ";
if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
// line 787
echo " ";
$this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig", "Slivki/offers/details.html.twig", 787)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
// line 788
echo " ";
}
// line 789
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 792
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 793
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 805
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.', 805, $this->source); })()), "html", null, true);
echo "\"></script>
";
// line 806
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"/js/offer.js?v=";
// line 807
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.', 807, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/offer/offerDescriptionItems.js?v=";
// line 808
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.', 808, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/common-old.js?v=";
// line 809
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.', 809, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\">
";
// line 811
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.', 811, $this->source); })()))) {
// line 812
echo " var offerPreview = 1;
";
} else {
// line 814
echo " var offerPreview = 0;
";
}
// line 816
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.', 816, $this->source); })()), "request", [], "any", false, false, false, 816), "query", [], "any", false, false, false, 816), "has", [0 => "checkOrder"], "method", false, false, false, 816)) {
// line 817
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.', 817, $this->source); })()), "request", [], "any", false, false, false, 817), "get", [0 => "checkOrder"], "method", false, false, false, 817), "html", null, true);
echo ");
";
}
// line 819
echo " </script>
<script src=\"/js/offer-new.js?v=";
// line 820
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.', 820, $this->source); })()), "html", null, true);
echo "\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 822
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 823
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 831
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 833
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.', 833, $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 842
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.', 842, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/beauty/masters.js?v=";
// line 843
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.', 843, $this->source); })()), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 847
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 848
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 ( 1998 => 848, 1988 => 847, 1975 => 843, 1971 => 842, 1959 => 833, 1955 => 831, 1944 => 823, 1934 => 822, 1922 => 820, 1919 => 819, 1913 => 817, 1910 => 816, 1906 => 814, 1902 => 812, 1900 => 811, 1895 => 809, 1891 => 808, 1887 => 807, 1883 => 806, 1879 => 805, 1865 => 793, 1855 => 792, 1844 => 789, 1841 => 788, 1838 => 787, 1835 => 786, 1832 => 785, 1829 => 784, 1826 => 783, 1823 => 782, 1820 => 781, 1818 => 780, 1815 => 779, 1812 => 778, 1809 => 777, 1806 => 776, 1803 => 775, 1800 => 774, 1797 => 773, 1794 => 772, 1791 => 771, 1788 => 770, 1785 => 769, 1782 => 768, 1779 => 767, 1776 => 766, 1773 => 765, 1770 => 764, 1767 => 763, 1764 => 762, 1761 => 761, 1758 => 760, 1755 => 759, 1752 => 758, 1749 => 757, 1746 => 756, 1743 => 755, 1740 => 754, 1737 => 753, 1734 => 752, 1732 => 751, 1727 => 750, 1717 => 749, 1702 => 744, 1700 => 743, 1697 => 742, 1690 => 738, 1685 => 735, 1683 => 734, 1673 => 726, 1670 => 725, 1668 => 724, 1659 => 718, 1656 => 717, 1654 => 716, 1646 => 711, 1637 => 706, 1633 => 704, 1630 => 703, 1624 => 701, 1622 => 700, 1618 => 698, 1607 => 696, 1603 => 695, 1595 => 691, 1592 => 690, 1590 => 689, 1587 => 688, 1585 => 687, 1583 => 686, 1581 => 685, 1579 => 684, 1577 => 683, 1569 => 680, 1562 => 677, 1560 => 676, 1557 => 675, 1551 => 673, 1549 => 672, 1546 => 671, 1542 => 669, 1539 => 668, 1534 => 665, 1523 => 663, 1519 => 662, 1514 => 659, 1511 => 658, 1508 => 657, 1505 => 656, 1500 => 654, 1497 => 653, 1494 => 652, 1492 => 651, 1488 => 650, 1484 => 649, 1478 => 648, 1474 => 647, 1471 => 646, 1468 => 645, 1463 => 644, 1458 => 642, 1454 => 640, 1451 => 639, 1448 => 638, 1445 => 637, 1442 => 636, 1431 => 634, 1426 => 633, 1420 => 631, 1417 => 630, 1415 => 629, 1410 => 628, 1407 => 627, 1402 => 624, 1380 => 606, 1378 => 605, 1375 => 604, 1373 => 603, 1366 => 599, 1361 => 597, 1352 => 591, 1343 => 584, 1337 => 583, 1335 => 582, 1333 => 581, 1331 => 580, 1329 => 579, 1327 => 578, 1322 => 576, 1317 => 573, 1307 => 570, 1303 => 569, 1298 => 567, 1295 => 566, 1292 => 565, 1290 => 564, 1287 => 563, 1283 => 562, 1280 => 561, 1273 => 556, 1254 => 539, 1252 => 538, 1248 => 536, 1246 => 535, 1242 => 533, 1240 => 532, 1235 => 530, 1229 => 526, 1227 => 525, 1190 => 490, 1173 => 487, 1169 => 486, 1163 => 485, 1159 => 484, 1155 => 483, 1152 => 482, 1135 => 481, 1128 => 476, 1122 => 472, 1118 => 470, 1108 => 466, 1104 => 465, 1097 => 463, 1094 => 462, 1089 => 461, 1083 => 458, 1077 => 455, 1073 => 453, 1071 => 452, 1068 => 451, 1066 => 450, 1062 => 449, 1059 => 448, 1055 => 446, 1053 => 445, 1047 => 441, 1039 => 437, 1035 => 435, 1033 => 434, 1028 => 431, 1025 => 430, 1022 => 429, 1019 => 428, 1016 => 427, 1013 => 426, 1010 => 425, 1007 => 424, 1004 => 423, 1001 => 422, 997 => 420, 993 => 418, 989 => 416, 983 => 414, 980 => 413, 969 => 410, 966 => 409, 963 => 408, 960 => 407, 958 => 406, 955 => 405, 953 => 404, 950 => 403, 947 => 402, 945 => 401, 942 => 400, 940 => 399, 936 => 397, 932 => 395, 928 => 393, 916 => 383, 904 => 373, 902 => 372, 899 => 371, 897 => 370, 895 => 369, 884 => 360, 882 => 359, 878 => 357, 876 => 356, 875 => 355, 870 => 353, 864 => 349, 861 => 348, 857 => 346, 845 => 336, 833 => 326, 831 => 325, 828 => 324, 826 => 323, 825 => 322, 823 => 321, 809 => 309, 807 => 308, 805 => 307, 801 => 305, 799 => 304, 796 => 303, 793 => 302, 784 => 297, 781 => 296, 778 => 295, 772 => 292, 766 => 290, 764 => 289, 759 => 287, 754 => 285, 751 => 284, 749 => 283, 744 => 281, 738 => 279, 735 => 278, 732 => 277, 726 => 274, 720 => 272, 717 => 271, 714 => 270, 711 => 269, 708 => 268, 706 => 267, 703 => 266, 701 => 265, 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-3\" src=\"/images/without_codes.png\"/>
</a>
{% endif %}
{% endif %}
</div>
<div class=\"d-flex\" style=\"min-height: 90px;align-items: end;\">
{% if offer.getFreeCodesCount() > 0 and not offer.isWithoutCodes() %}
<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\">
Заказать онлайн {{ offer.getDiscount() }}
</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\">
Оплатить онлайн {{ offer.getDiscount() }}
</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.isOnlineOrderGiftEnabled() and offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] != 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY'))
or not pastOffer and offer.isOnlineOrderGiftEnabled() and offer.getOnlineOrderSettings() is null and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) %}
<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>
{% endif %}
{% if offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and not pastOffer and not offer.isOnlineOrderGiftEnabled() or
offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and not pastOffer
and not offer.isOnlineOrderGiftEnabled()%}
<div class=\"col\">
{% if app.user %}
<a class=\"button-gift\" href=\"/virtual-wallet-pay\">
<div class=\"button-gift-text\">
<p>ТЕПЕРЬ МОЖНО</p>
<p class=\"color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
{% else %}
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\".modal-auth\">
<div class=\"button-gift-text\">
<p>ТЕПЕРЬ МОЖНО</p>
<p class=\"color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
{% endif %}
</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\">
{% if offer.isFoodOnlineOrderAllowedOnSite() and (offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and offer.isFoodOnlineOrderAllowedOnSite() or
offer.isFoodOnlineOrderAllowedOnSite() and offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and offer.isOnlineOrderGiftEnabled()) %}
<div class=\"d-flex mb-2\" style=\"max-width: 625px;\">
{% if not pastOffer and offer.getFreeCodesCount() > 0 and offer.isOnlineOrderGiftEnabled() and offer.isFoodOnlineOrderAllowedOnSite() %}
<div class=\"col mb-2 mr-2\">
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
<div class=\"button-gift-text\">
<p>ЕДА В ПОДАРОК 😋</p>
<p>Подарю сам или подарят мне</p>
</div>
</a>
</div>
{% endif %}
{% if offer.isFoodOnlineOrderAllowedOnSite() and offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and not pastOffer and offer.isOnlineOrderGiftEnabled() or
offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and not pastOffer and offer.isOnlineOrderGiftEnabled() %}
<div class=\"col\">
{% if app.user %}
<a class=\"button-gift\" href=\"/virtual-wallet-pay\">
<div class=\"button-gift-text\">
<p>ТЕПЕРЬ МОЖНО</p>
<p class=\"color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
{% else %}
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\".modal-auth\">
<div class=\"button-gift-text\">
<p>ТЕПЕРЬ МОЖНО</p>
<p class=\"color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
{% endif %}
</div>
{% endif %}
</div>
{% endif %}
<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___1328676851 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 ( 3009 => 45, 2999 => 44, 2976 => 43, 1998 => 848, 1988 => 847, 1975 => 843, 1971 => 842, 1959 => 833, 1955 => 831, 1944 => 823, 1934 => 822, 1922 => 820, 1919 => 819, 1913 => 817, 1910 => 816, 1906 => 814, 1902 => 812, 1900 => 811, 1895 => 809, 1891 => 808, 1887 => 807, 1883 => 806, 1879 => 805, 1865 => 793, 1855 => 792, 1844 => 789, 1841 => 788, 1838 => 787, 1835 => 786, 1832 => 785, 1829 => 784, 1826 => 783, 1823 => 782, 1820 => 781, 1818 => 780, 1815 => 779, 1812 => 778, 1809 => 777, 1806 => 776, 1803 => 775, 1800 => 774, 1797 => 773, 1794 => 772, 1791 => 771, 1788 => 770, 1785 => 769, 1782 => 768, 1779 => 767, 1776 => 766, 1773 => 765, 1770 => 764, 1767 => 763, 1764 => 762, 1761 => 761, 1758 => 760, 1755 => 759, 1752 => 758, 1749 => 757, 1746 => 756, 1743 => 755, 1740 => 754, 1737 => 753, 1734 => 752, 1732 => 751, 1727 => 750, 1717 => 749, 1702 => 744, 1700 => 743, 1697 => 742, 1690 => 738, 1685 => 735, 1683 => 734, 1673 => 726, 1670 => 725, 1668 => 724, 1659 => 718, 1656 => 717, 1654 => 716, 1646 => 711, 1637 => 706, 1633 => 704, 1630 => 703, 1624 => 701, 1622 => 700, 1618 => 698, 1607 => 696, 1603 => 695, 1595 => 691, 1592 => 690, 1590 => 689, 1587 => 688, 1585 => 687, 1583 => 686, 1581 => 685, 1579 => 684, 1577 => 683, 1569 => 680, 1562 => 677, 1560 => 676, 1557 => 675, 1551 => 673, 1549 => 672, 1546 => 671, 1542 => 669, 1539 => 668, 1534 => 665, 1523 => 663, 1519 => 662, 1514 => 659, 1511 => 658, 1508 => 657, 1505 => 656, 1500 => 654, 1497 => 653, 1494 => 652, 1492 => 651, 1488 => 650, 1484 => 649, 1478 => 648, 1474 => 647, 1471 => 646, 1468 => 645, 1463 => 644, 1458 => 642, 1454 => 640, 1451 => 639, 1448 => 638, 1445 => 637, 1442 => 636, 1431 => 634, 1426 => 633, 1420 => 631, 1417 => 630, 1415 => 629, 1410 => 628, 1407 => 627, 1402 => 624, 1380 => 606, 1378 => 605, 1375 => 604, 1373 => 603, 1366 => 599, 1361 => 597, 1352 => 591, 1343 => 584, 1337 => 583, 1335 => 582, 1333 => 581, 1331 => 580, 1329 => 579, 1327 => 578, 1322 => 576, 1317 => 573, 1307 => 570, 1303 => 569, 1298 => 567, 1295 => 566, 1292 => 565, 1290 => 564, 1287 => 563, 1283 => 562, 1280 => 561, 1273 => 556, 1254 => 539, 1252 => 538, 1248 => 536, 1246 => 535, 1242 => 533, 1240 => 532, 1235 => 530, 1229 => 526, 1227 => 525, 1190 => 490, 1173 => 487, 1169 => 486, 1163 => 485, 1159 => 484, 1155 => 483, 1152 => 482, 1135 => 481, 1128 => 476, 1122 => 472, 1118 => 470, 1108 => 466, 1104 => 465, 1097 => 463, 1094 => 462, 1089 => 461, 1083 => 458, 1077 => 455, 1073 => 453, 1071 => 452, 1068 => 451, 1066 => 450, 1062 => 449, 1059 => 448, 1055 => 446, 1053 => 445, 1047 => 441, 1039 => 437, 1035 => 435, 1033 => 434, 1028 => 431, 1025 => 430, 1022 => 429, 1019 => 428, 1016 => 427, 1013 => 426, 1010 => 425, 1007 => 424, 1004 => 423, 1001 => 422, 997 => 420, 993 => 418, 989 => 416, 983 => 414, 980 => 413, 969 => 410, 966 => 409, 963 => 408, 960 => 407, 958 => 406, 955 => 405, 953 => 404, 950 => 403, 947 => 402, 945 => 401, 942 => 400, 940 => 399, 936 => 397, 932 => 395, 928 => 393, 916 => 383, 904 => 373, 902 => 372, 899 => 371, 897 => 370, 895 => 369, 884 => 360, 882 => 359, 878 => 357, 876 => 356, 875 => 355, 870 => 353, 864 => 349, 861 => 348, 857 => 346, 845 => 336, 833 => 326, 831 => 325, 828 => 324, 826 => 323, 825 => 322, 823 => 321, 809 => 309, 807 => 308, 805 => 307, 801 => 305, 799 => 304, 796 => 303, 793 => 302, 784 => 297, 781 => 296, 778 => 295, 772 => 292, 766 => 290, 764 => 289, 759 => 287, 754 => 285, 751 => 284, 749 => 283, 744 => 281, 738 => 279, 735 => 278, 732 => 277, 726 => 274, 720 => 272, 717 => 271, 714 => 270, 711 => 269, 708 => 268, 706 => 267, 703 => 266, 701 => 265, 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-3\" src=\"/images/without_codes.png\"/>
</a>
{% endif %}
{% endif %}
</div>
<div class=\"d-flex\" style=\"min-height: 90px;align-items: end;\">
{% if offer.getFreeCodesCount() > 0 and not offer.isWithoutCodes() %}
<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\">
Заказать онлайн {{ offer.getDiscount() }}
</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\">
Оплатить онлайн {{ offer.getDiscount() }}
</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.isOnlineOrderGiftEnabled() and offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] != 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY'))
or not pastOffer and offer.isOnlineOrderGiftEnabled() and offer.getOnlineOrderSettings() is null and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) %}
<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>
{% endif %}
{% if offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and not pastOffer and not offer.isOnlineOrderGiftEnabled() or
offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and not pastOffer
and not offer.isOnlineOrderGiftEnabled()%}
<div class=\"col\">
{% if app.user %}
<a class=\"button-gift\" href=\"/virtual-wallet-pay\">
<div class=\"button-gift-text\">
<p>ТЕПЕРЬ МОЖНО</p>
<p class=\"color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
{% else %}
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\".modal-auth\">
<div class=\"button-gift-text\">
<p>ТЕПЕРЬ МОЖНО</p>
<p class=\"color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
{% endif %}
</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\">
{% if offer.isFoodOnlineOrderAllowedOnSite() and (offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and offer.isFoodOnlineOrderAllowedOnSite() or
offer.isFoodOnlineOrderAllowedOnSite() and offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and offer.isOnlineOrderGiftEnabled()) %}
<div class=\"d-flex mb-2\" style=\"max-width: 625px;\">
{% if not pastOffer and offer.getFreeCodesCount() > 0 and offer.isOnlineOrderGiftEnabled() and offer.isFoodOnlineOrderAllowedOnSite() %}
<div class=\"col mb-2 mr-2\">
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
<div class=\"button-gift-text\">
<p>ЕДА В ПОДАРОК 😋</p>
<p>Подарю сам или подарят мне</p>
</div>
</a>
</div>
{% endif %}
{% if offer.isFoodOnlineOrderAllowedOnSite() and offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and not pastOffer and offer.isOnlineOrderGiftEnabled() or
offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) and not pastOffer and offer.isOnlineOrderGiftEnabled() %}
<div class=\"col\">
{% if app.user %}
<a class=\"button-gift\" href=\"/virtual-wallet-pay\">
<div class=\"button-gift-text\">
<p>ТЕПЕРЬ МОЖНО</p>
<p class=\"color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
{% else %}
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\".modal-auth\">
<div class=\"button-gift-text\">
<p>ТЕПЕРЬ МОЖНО</p>
<p class=\"color-violet\">ОПЛАТИТЬ SLIVKI.PAY</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
{% endif %}
</div>
{% endif %}
</div>
{% endif %}
<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");
}
}