<?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, "1785774776")->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 ((( !(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); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 321)) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE")))) {
// line 323
echo " <div class=\"col mb-3\" style=\"width: 350px;margin: 0 auto\">
";
// line 324
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 324, $this->source); })()), "user", [], "any", false, false, false, 324)) {
// line 325
echo " <a 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 335
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 345
echo " </div>
";
}
// line 347
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.', 347, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 347)) && (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.', 347, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 347), "allowedPaymentMethods", [], "any", false, false, false, 347), "delivery", [], "array", false, false, false, 347), 4, [], "array", false, false, false, 347), 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.', 347, $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.', 347, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 347)) || (((( !(null === twig_get_attribute($this->env, $this->source, // line 348
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 348, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 348)) && (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.', 348, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 348), "allowedPaymentMethods", [], "any", false, false, false, 348), "pickup", [], "array", false, false, false, 348), 4, [], "array", false, false, false, 348), 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.', 348, $this->source); })())) && !twig_get_attribute($this->env, $this->source, // line 349
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 349, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 349)))) {
// line 350
echo " <div class=\"col\">
";
// line 351
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 351, $this->source); })()), "user", [], "any", false, false, false, 351)) {
// line 352
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 362
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 372
echo " </div>
";
}
// line 374
echo " ";
}
// line 375
echo " </div>
</div>
</div>
</div>
<div id=\"conditions_offers\" class=\"d-flex\" style=\"";
// line 379
echo (((isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 379, $this->source); })())) ? ("display: none!important") : (""));
echo "\">
<div class=\"content-wrapper-col-left pt-0\">
";
// line 381
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.', 381, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 381) && (((( !(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.', 381, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 381)) && (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.', 381, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 381), "allowedPaymentMethods", [], "any", false, false, false, 381), "delivery", [], "array", false, false, false, 381), 4, [], "array", false, false, false, 381), 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.', 381, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 381)) || ((((twig_get_attribute($this->env, $this->source, // line 382
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 382, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 382) && !(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.', 382, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 382))) && (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.', 382, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 382), "allowedPaymentMethods", [], "any", false, false, false, 382), "delivery", [], "array", false, false, false, 382), 4, [], "array", false, false, false, 382), 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.', 382, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 382))))) {
// line 383
echo "
<div class=\"d-flex mb-2\" style=\"max-width: 625px;\">
";
// line 385
if (((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 385, $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.', 385, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 385), 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.', 385, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 385)) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 385, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 385))) {
// line 386
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 395
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.', 395, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 395) && !(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.', 395, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 395))) && (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.', 395, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 395), "allowedPaymentMethods", [], "any", false, false, false, 395), "delivery", [], "array", false, false, false, 395), 4, [], "array", false, false, false, 395), 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.', 395, $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.', 395, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 395)) || (((( !(null === twig_get_attribute($this->env, $this->source, // line 396
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 396, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 396)) && (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.', 396, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 396), "allowedPaymentMethods", [], "any", false, false, false, 396), "pickup", [], "array", false, false, false, 396), 4, [], "array", false, false, false, 396), 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.', 396, $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.', 396, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 396))) || (twig_get_attribute($this->env, $this->source, // line 397
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 397, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 397) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE"))))) {
// line 399
echo " <div class=\"col\">
";
// line 400
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.', 400, $this->source); })()), "user", [], "any", false, false, false, 400)) {
// line 401
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 411
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 421
echo " </div>
";
}
// line 423
echo " </div>
";
}
// line 425
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 427
$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.', 427, $this->source); })()), "user", [], "any", false, false, false, 427)) ? (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.', 427, $this->source); })()), "user", [], "any", false, false, false, 427), "isOfferFavourite", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 427, $this->source); })())], "method", false, false, false, 427)) : (false));
// line 428
echo " <div id=\"startOfOfferCondition\"></div>
";
// line 429
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.', 429, $this->source); })()), "getID", [], "method", false, false, false, 429), 239232))) {
// line 430
echo " ";
}
// line 431
echo "
";
// line 432
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.', 432, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 432) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 432, $this->source); })()), "getID", [], "method", false, false, false, 432), 140553)))) {
// line 433
echo " <p>
";
// line 434
$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.', 434, $this->source); })()), "getCodeActiveTill", [], "method", false, false, false, 434);
// line 435
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.', 435, $this->source); })()), "getActiveTill", [], "method", false, false, false, 435), "-1 day");
// line 436
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.', 436, $this->source); })()), (isset($context["codeTill"]) || array_key_exists("codeTill", $context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.', 436, $this->source); })())))) ? ((isset($context["codeTill"]) || array_key_exists("codeTill", $context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.', 436, $this->source); })())) : ((isset($context["codeFrom"]) || array_key_exists("codeFrom", $context) ? $context["codeFrom"] : (function () { throw new RuntimeError('Variable "codeFrom" does not exist.', 436, $this->source); })())));
// line 437
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.', 437, $this->source); })()), "isHideFeatures", [], "method", false, false, false, 437)) {
// line 438
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.', 438, $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.', 438, $this->source); })()), "getID", [], "method", false, false, false, 438), 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.', 438, $this->source); })()), "d.m.y"), "html", null, true);
echo "
<br/>
";
}
// line 441
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.', 441, $this->source); })()), "isShowPriceInConditions", [], "method", false, false, false, 441) && !(isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 441, $this->source); })()))) {
// line 442
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.', 442, $this->source); })()), "html", null, true);
echo " руб.
";
}
// line 444
echo " </p>
";
}
// line 446
echo "
<div class=\"offer-details-conditions offers-conditions p-0\">
";
// line 448
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.', 448, $this->source); })()), "getConditions", [], "method", false, false, false, 448);
echo "
";
// line 450
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.', 450, $this->source); })()), "getID", [], "method", false, false, false, 450), 143528))) {
// line 451
echo " ";
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer2.html.twig", "Slivki/offers/details.html.twig", 451)->display($context);
// line 452
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.', 452, $this->source); })()), "getID", [], "method", false, false, false, 452), 282234))) {
// line 453
echo " ";
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer4.html.twig", "Slivki/offers/details.html.twig", 453)->display($context);
// line 454
echo " ";
}
// line 455
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.', 455, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 455)) {
// line 456
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.', 456, $this->source); })())) . "/phrase_subscription_in_offer_page.html.twig"), "Slivki/offers/details.html.twig", 456)->display($context);
// line 457
echo " ";
}
// line 458
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.', 458, $this->source); })()), "isHideFeatures", [], "method", false, false, false, 458)) {
// line 459
echo " </br>
<div class=\"offer-titles mb-2 mt-0\"><h2>Особенности</h2></div>
<div class=\"offer-details-conditions\">
";
// line 462
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.', 462, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 462)) {
// line 463
echo " - Скидка предоставляется только при наличии промокода.
";
}
// line 465
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.', 465, $this->source); })()), "getFeatures", [], "method", false, false, false, 465);
echo "
</div>
- Поставщик несет полную ответственность перед потребителем за достоверность информации.
";
}
// line 469
echo " </div>
<div id=\"endOfOfferCondition\"></div>
<div class=\"clear\"></div>
</div>
";
// line 473
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.', 473, $this->source); })()), "getShopMedias", [], "method", false, false, false, 473)), 0))) {
// line 474
echo " <div class=\"offer-titles mb-2 mt-0\"><h2>Галерея</h2></div>
";
}
// line 476
echo " <div id=\"offerConditionsSlider\"
class=\"my-4 screenshots ";
// line 477
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.', 477, $this->source); })()), "getShopMedias", [], "method", false, false, false, 477)), 0)) || (0 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 477, $this->source); })()), 0)))) ? ("empty") : (""));
echo "\">
";
// line 478
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.', 478, $this->source); })()), "getShopMedias", [], "method", false, false, false, 478)), 0))) {
// line 479
echo " <div class=\"screenshot-container\">
";
// line 480
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 480) && (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.', 480, $this->source); })()), "getVideos", [], "method", false, false, false, 480)), 0)))) {
// line 481
echo " <div class=\"screenshot screenshot-story\" data-toggle=\"modal\"
data-target=\"#detailsStoryPopup\">
<img src=\"";
// line 483
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.', 483, $this->source); })()), "getImageUrl", [], "method", false, false, false, 483), "html", null, true);
echo "\" width=\"300\"
alt=\"Видео\" border=\"0\"/>
<div class=\"screenshot-story-btn\"></div>
<div class=\"screenshot-story-tittle\">";
// line 486
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.', 486, $this->source); })()), "getTitle", [], "method", false, false, false, 486), "html", null, true);
echo "</div>
</div>
";
}
// line 489
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.', 489, $this->source); })()), "getShopMedias", [], "method", false, false, false, 489));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 490
echo " <div class=\"screenshot\">
<a href=\"";
// line 491
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, 491), "html", null, true);
echo "\"
data-lightbox=\"image\">
<img src=\"";
// line 493
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 300, 0), "html", null, true);
echo "\" width=\"300\"
alt=\"";
// line 494
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 494), "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 498
echo " </div>
";
}
// line 500
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 504
echo "</h5>
</div>
<div class=\"examples-works-tooltip-filter\">
<div class=\"tooltip-content\">
<div class=\"tooltip-title border-bottom-f d-flex\">Показать сначала:</div>
";
// line 509
$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 510
echo " <div class=\"radio\">
<input id=\"filter";
// line 511
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" type=\"radio\" name=\"filter\"
data-direction=\"";
// line 512
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "direction", [], "any", false, false, false, 512), "html", null, true);
echo "\"
value=\"";
// line 513
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "field", [], "any", false, false, false, 513), "html", null, true);
echo "\" ";
echo ((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 513)) ? ("checked") : (""));
echo ">
<label for=\"filter";
// line 514
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\"
class=\"cursor-pointer\">";
// line 515
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "name", [], "any", false, false, false, 515), "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 518
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 553
$this->loadTemplate("Slivki/works-examples/examples_of_works_gallery.html.twig", "Slivki/offers/details.html.twig", 553)->display($context);
// line 554
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 558
echo ((((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 558, $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.', 558, $this->source); })()), 0, [], "array", false, false, false, 558), "getID", [], "method", false, false, false, 558), twig_constant("Slivki\\Entity\\Category::MEDICAL_CENTER_CATEGORY_ID"))))) ? ("Врачи") : ("Найти своего мастера"));
echo "</h2>
</div>
";
// line 560
$this->loadTemplate("Slivki/beauty/beauty_masters.html.twig", "Slivki/offers/details.html.twig", 560)->display($context);
// line 561
echo " </div>
<div id=\"offersDescription\" class=\"offers-conditions mt-3\">
";
// line 563
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.', 563, $this->source); })()), "isShowProductsInOfferDescription", [], "method", false, false, false, 563)) {
// line 564
echo " <div id=\"foodItemsBlock\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Описание</h2></div>
";
// line 566
if (((isset($context["isPickupEnabled"]) || array_key_exists("isPickupEnabled", $context) ? $context["isPickupEnabled"] : (function () { throw new RuntimeError('Variable "isPickupEnabled" does not exist.', 566, $this->source); })()) && (isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled", $context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.', 566, $this->source); })()))) {
// line 567
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 584
echo "
<div id=\"foodBlock\"></div>
<div id=\"foodOptionsBlock\"></div>
</div>
";
}
// line 589
echo " <div class=\"description\" id=\"descriptionText\">
";
// line 590
$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.', 590, $this->source); })()), "getDescriptionList", [], "method", false, false, false, 590));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescription"]) {
// line 591
echo "
";
// line 592
$context["offerDescriptionSliderImages"] = twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getEntityDescriptionSliderImages", [], "method", false, false, false, 592);
// line 593
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.', 593, $this->source); })())), 0))) {
// line 594
echo " <div class=\"sale-description-carousel\">
<div id=\"saleDescriptionSliderFor";
// line 595
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getID", [], "method", false, false, false, 595), "html", null, true);
echo "\"
class=\"sale-description-slider-for\">
";
// line 597
$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.', 597, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescriptionSliderImage"]) {
// line 598
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, 598), "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 601
echo " </div>
</div>
";
}
// line 604
echo " ";
echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->addLazyAndLightboxImagesInDescription(twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getDescription", [], "method", false, false, false, 604));
echo "
";
// line 606
echo " ";
// line 607
echo " ";
// line 608
echo " ";
// line 609
echo " ";
// line 610
echo " ";
// line 611
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 612
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 619
echo (isset($context["comments"]) || array_key_exists("comments", $context) ? $context["comments"] : (function () { throw new RuntimeError('Variable "comments" does not exist.', 619, $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 625
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.', 625, $this->source); })()), "getAddress", [], "method", false, false, false, 625), "html", null, true);
echo "</div>
<div id=\"offerConditionLogo\">
";
// line 627
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.', 627, $this->source); })()), "getLogo", [], "method", false, false, false, 627);
echo "
</div>
<div id=\"dataFromLocation\">
<div class=\"move-data\">
";
// line 631
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.', 631, $this->source); })())), 0))) {
// line 632
echo " <div class=\"geo-location-block\" style=\"display: block\">
";
// line 633
$this->loadTemplate("Slivki/offers/geo_location_data.html.twig", "Slivki/offers/details.html.twig", 633)->display(twig_to_array(["offer" => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 633, $this->source); })())]));
// line 634
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.', 634, $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 652
echo " <div class=\"before-map\" style=\"clear:both;\"></div>
</div>
</div>
";
// line 655
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.', 655, $this->source); })()), "getLocation", [], "method", false, false, false, 655), "/<[^>]*>/", ""), ["
" => "", "
" => "", " " => "", " " => ""]), ""))) {
// line 656
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.', 656, $this->source); })()), "getLocation", [], "method", false, false, false, 656);
echo "
";
// line 657
$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.', 657, $this->source); })()), "getPhoneNumbers", [], "method", false, false, false, 657);
// line 658
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.', 658, $this->source); })()), "count", [], "method", false, false, false, 658), 0))) {
// line 659
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.', 659, $this->source); })()), "count", [], "method", false, false, false, 659), 1))) ? ("ы") : (""));
echo ":</div>
";
}
// line 661
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.', 661, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 662
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 662), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 662), "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 664
echo " ";
} else {
// line 665
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.', 665, $this->source); })()), "count", [], "method", false, false, false, 665);
// line 666
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.', 666, $this->source); })()), "getCommonWorkingHours", [], "method", false, false, false, 666);
// line 667
echo " ";
if ((0 !== twig_compare((isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 667, $this->source); })()), ""))) {
// line 668
echo " <br>
<div class=\"text-bold\">Время работы:</div>
";
// line 670
echo (isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 670, $this->source); })());
echo "
";
}
// line 672
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.', 672, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["geoLocation"]) {
// line 673
echo " ";
$context["margin"] = false;
// line 674
echo " <div class=\"offer-details-geolocation-item my-3\">
<div class=\"font-bold font-size-17\">г. ";
// line 675
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCity", [], "method", false, false, false, 675), "html", null, true);
echo "
, ";
// line 676
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getStreet", [], "method", false, false, false, 676), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getHouse", [], "method", false, false, false, 676), "html", null, true);
echo "
<br>";
// line 677
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getLabel", [], "method", false, false, false, 677), "html", null, true);
echo "</div>
<div class=\"location-more-info ";
// line 678
echo (((1 === twig_compare((isset($context["geoLocationsCount"]) || array_key_exists("geoLocationsCount", $context) ? $context["geoLocationsCount"] : (function () { throw new RuntimeError('Variable "geoLocationsCount" does not exist.', 678, $this->source); })()), 2))) ? ("hidden") : (""));
echo "\">
";
// line 679
if ((0 !== twig_compare(twig_trim_filter(twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 679)), ""))) {
// line 680
echo " ";
$context["margin"] = true;
// line 681
echo " <div class=\"offer-details-work-hours\">Время работы:
</div> ";
// line 682
echo twig_nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 682), "html", null, true));
echo "
";
}
// line 684
echo " ";
$context["phoneNumbers"] = twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getPhoneNumbers", [], "method", false, false, false, 684);
// line 685
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.', 685, $this->source); })()), "count", [], "method", false, false, false, 685), 0))) {
// line 686
echo " ";
$context["margin"] = true;
// line 687
echo " <span>
<div class=\"offer-details-phone-item\">
<div class=\"full-phone-item\">
";
// line 690
$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.', 690, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 691
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 691), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 691), "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 693
echo " </div>
</div>
";
}
// line 696
echo " ";
if ((isset($context["margin"]) || array_key_exists("margin", $context) ? $context["margin"] : (function () { throw new RuntimeError('Variable "margin" does not exist.', 696, $this->source); })())) {
// line 697
echo " <br>
";
}
// line 699
echo " </span>
";
// line 700
if ((twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCallbackChatId", [], "method", false, false, false, 700) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["geoLocation"], "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, $context["geoLocation"], "getId", [], "method", false, false, false, 701), "html", null, true);
echo "\">Обратный звонок</div>
";
}
// line 703
echo " </div>
";
// line 704
if ((1 === twig_compare((isset($context["geoLocationsCount"]) || array_key_exists("geoLocationsCount", $context) ? $context["geoLocationsCount"] : (function () { throw new RuntimeError('Variable "geoLocationsCount" does not exist.', 704, $this->source); })()), 2))) {
// line 705
echo " <a data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getID", [], "method", false, false, false, 705), "html", null, true);
echo "\"
class=\"text-slivki location-more-info-toggle\">Подробнее</a>
";
}
// line 708
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 711
echo " ";
// line 712
echo " ";
// line 713
echo " ";
// line 714
echo " ";
// line 715
echo " ";
// line 716
echo "
";
// line 717
$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.', 717, $this->source); })()), "getPhoneNumbersWithoutGeoLocations", [], "method", false, false, false, 717);
// line 718
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.', 718, $this->source); })())), 0))) {
// line 719
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.', 719, $this->source); })())), 1))) ? ("ы") : (""));
echo ":
</div>
<div class=\"offer-details-phone-item\">
<div class=\"full-phone-item\">
";
// line 723
$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.', 723, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 724
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 724), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 724), "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 726
echo " </div>
</div>
";
// line 728
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.', 728, $this->source); })()), "getCallbackChatId", [], "method", false, false, false, 728)) && (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.', 728, $this->source); })()), "getCallbackChatId", [], "method", false, false, false, 728), "")))) {
// line 729
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.', 729, $this->source); })()), "getId", [], "method", false, false, false, 729), "html", null, true);
echo "\">Обратный звонок</div>
";
}
// line 731
echo " ";
}
// line 732
echo "
";
}
// line 734
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.', 734, $this->source); })()), "getLegal", [], "method", false, false, false, 734);
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 739
(((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.', 739, $this->source); })()), "getTelegram", [], "method", false, false, false, 739), 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.', 739, $this->source); })()), "getTelegram", [], "method", false, false, false, 739), "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 744
$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.', 744, $this->source); })()), "getViber", [], "method", false, false, false, 744), 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.', 744, $this->source); })()), "getViber", [], "method", false, false, false, 744)) : ("+375295084444"));
// line 745
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 746
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.', 746, $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 752
$this->loadTemplate("Slivki/offers/share.html.twig", "Slivki/offers/details.html.twig", 752)->display($context);
// line 753
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.', 753, $this->source); })())) . "/jivosite/button_offers_page.html.twig"), "Slivki/offers/details.html.twig", 753)->display($context);
// line 754
echo " <p class=\"tittle-messenger-offers d-none\">Мы всегда рады помочь: служба поддержки Slivki.by ответит
на
любой
ваш вопрос</p>
</div>
</div>
</div>
";
// line 762
if ((((isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 762, $this->source); })()) || (0 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 762, $this->source); })()), 0))) && array_key_exists("relatedOfferListHtml", $context))) {
// line 763
echo " <div class=\"col px-3\">
<div class=\"related-offers-title\">Другие похожие предложения:</div>
<div class=\"related-offers-list stock-group-list\">
";
// line 766
echo (isset($context["relatedOfferListHtml"]) || array_key_exists("relatedOfferListHtml", $context) ? $context["relatedOfferListHtml"] : (function () { throw new RuntimeError('Variable "relatedOfferListHtml" does not exist.', 766, $this->source); })());
echo "
</div>
</div>
";
}
// line 770
echo " </div>
";
// line 771
if (array_key_exists("lastPurchaseText", $context)) {
// line 772
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.', 772, $this->source); })()), "html", null, true);
echo "
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 777
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 778
echo " ";
$this->displayParentBlock("popups", $context, $blocks);
echo "
";
// line 779
if ( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 779, $this->source); })())) {
// line 780
echo " ";
$this->loadTemplate("Slivki/popups/header_offers.html.twig", "Slivki/offers/details.html.twig", 780)->display($context);
// line 781
echo " ";
}
// line 782
echo " ";
$this->loadTemplate("Slivki/share_block.html.twig", "Slivki/offers/details.html.twig", 782)->display($context);
// line 783
echo " ";
$this->loadTemplate("Slivki/popups/callback.html.twig", "Slivki/offers/details.html.twig", 783)->display($context);
// line 784
echo " ";
$this->loadTemplate("Slivki/offers/complaint.html.twig", "Slivki/offers/details.html.twig", 784)->display($context);
// line 785
echo " ";
$this->loadTemplate("Slivki/orderAsGift/foodForGift.html.twig", "Slivki/offers/details.html.twig", 785)->display($context);
// line 786
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 786) && (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.', 786, $this->source); })()), "getVideos", [], "method", false, false, false, 786)), 0)))) {
// line 787
echo " ";
$this->loadTemplate("Slivki/popups/details-story-popup.html.twig", "Slivki/offers/details.html.twig", 787)->display($context);
// line 788
echo " ";
}
// line 789
echo " ";
$this->loadTemplate("Slivki/popups/comment_media_block_popup.html.twig", "Slivki/offers/details.html.twig", 789)->display($context);
// line 790
echo " ";
$this->loadTemplate("Slivki/popups/statistics_popup.html.twig", "Slivki/offers/details.html.twig", 790)->display($context);
// line 791
echo " ";
$this->loadTemplate("Slivki/mobile/popup/buy_codes_avways_app.html.twig", "Slivki/offers/details.html.twig", 791)->display($context);
// line 792
echo " ";
$this->loadTemplate("Slivki/delivery/modal/details.html.twig", "Slivki/offers/details.html.twig", 792)->display(twig_array_merge($context, ["isOfferPage" => true]));
// line 793
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.', 793, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 793)) {
// line 794
echo " ";
$this->loadTemplate("Slivki/popups/step_buy_certificate.twig", "Slivki/offers/details.html.twig", 794)->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.', 794, $this->source); })())]));
// line 795
echo " ";
}
// line 796
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.', 796, $this->source); })()), "user", [], "any", false, false, false, 796)) {
// line 797
echo " ";
$this->loadTemplate("Slivki/popups/mail_offers.html.twig", "Slivki/offers/details.html.twig", 797)->display($context);
// line 798
echo " ";
$this->loadTemplate("Slivki/popups/rating_edit_popup.html.twig", "Slivki/offers/details.html.twig", 798)->display($context);
// line 799
echo " ";
$this->loadTemplate("Slivki/popups/popup_subscription_limited.html.twig", "Slivki/offers/details.html.twig", 799)->display($context);
// line 800
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.', 800, $this->source); })()))) {
// line 801
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.', 801, $this->source); })())))) {
// line 802
echo " ";
$context["codeCostInCurrency"] = null;
// line 803
echo " ";
}
// line 804
echo " ";
$this->loadTemplate("Slivki/popups/confirm_box.html.twig", "Slivki/offers/details.html.twig", 804)->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.', 804, $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.', 804, $this->source); })()), "getID", [], "method", false, false, false, 804), "codeCostInCurrency" => (isset($context["codeCostInCurrency"]) || array_key_exists("codeCostInCurrency", $context) ? $context["codeCostInCurrency"] : (function () { throw new RuntimeError('Variable "codeCostInCurrency" does not exist.', 804, $this->source); })())]));
// line 805
echo " ";
$this->loadTemplate("Slivki/popups/confirm_subscription_card_popup.html.twig", "Slivki/offers/details.html.twig", 805)->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.', 805, $this->source); })()), "user", [], "any", false, false, false, 805), "getActiveCreditCards", [], "method", false, false, false, 805)]));
// line 806
echo " ";
}
// line 807
echo "
";
// line 808
if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
// line 809
echo " ";
$this->loadTemplate("Slivki/popups/add_comment_popup.html.twig", "Slivki/offers/details.html.twig", 809)->display(twig_array_merge($context, ["id" => "addVoteBox"]));
// line 810
echo " ";
$this->loadTemplate("Slivki/popups/edit_comment_popup.html.twig", "Slivki/offers/details.html.twig", 810)->display(twig_array_merge($context, ["id" => "editVoteBox"]));
// line 811
echo " ";
$this->loadTemplate("Slivki/popups/comment_censor_message.html.twig", "Slivki/offers/details.html.twig", 811)->display(twig_array_merge($context, ["id" => "commentCensorMessage"]));
// line 812
echo " ";
}
// line 813
echo " ";
} else {
// line 814
echo " ";
if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
// line 815
echo " ";
$this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig", "Slivki/offers/details.html.twig", 815)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
// line 816
echo " ";
}
// line 817
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 820
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 821
echo " <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 833
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.', 833, $this->source); })()), "html", null, true);
echo "\"></script>
";
// line 834
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"/js/offer.js?v=";
// line 835
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.', 835, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/offer/offerDescriptionItems.js?v=";
// line 836
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.', 836, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/common-old.js?v=";
// line 837
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.', 837, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\">
";
// line 839
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.', 839, $this->source); })()))) {
// line 840
echo " var offerPreview = 1;
";
} else {
// line 842
echo " var offerPreview = 0;
";
}
// line 844
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.', 844, $this->source); })()), "request", [], "any", false, false, false, 844), "query", [], "any", false, false, false, 844), "has", [0 => "checkOrder"], "method", false, false, false, 844)) {
// line 845
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.', 845, $this->source); })()), "request", [], "any", false, false, false, 845), "get", [0 => "checkOrder"], "method", false, false, false, 845), "html", null, true);
echo ");
";
}
// line 847
echo " </script>
<script src=\"/js/offer-new.js?v=";
// line 848
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.', 848, $this->source); })()), "html", null, true);
echo "\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 850
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 851
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 859
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 861
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.', 861, $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 870
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.', 870, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/beauty/masters.js?v=";
// line 871
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.', 871, $this->source); })()), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 875
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 876
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 ( 2035 => 876, 2025 => 875, 2012 => 871, 2008 => 870, 1996 => 861, 1992 => 859, 1981 => 851, 1971 => 850, 1959 => 848, 1956 => 847, 1950 => 845, 1947 => 844, 1943 => 842, 1939 => 840, 1937 => 839, 1932 => 837, 1928 => 836, 1924 => 835, 1920 => 834, 1916 => 833, 1902 => 821, 1892 => 820, 1881 => 817, 1878 => 816, 1875 => 815, 1872 => 814, 1869 => 813, 1866 => 812, 1863 => 811, 1860 => 810, 1857 => 809, 1855 => 808, 1852 => 807, 1849 => 806, 1846 => 805, 1843 => 804, 1840 => 803, 1837 => 802, 1834 => 801, 1831 => 800, 1828 => 799, 1825 => 798, 1822 => 797, 1819 => 796, 1816 => 795, 1813 => 794, 1810 => 793, 1807 => 792, 1804 => 791, 1801 => 790, 1798 => 789, 1795 => 788, 1792 => 787, 1789 => 786, 1786 => 785, 1783 => 784, 1780 => 783, 1777 => 782, 1774 => 781, 1771 => 780, 1769 => 779, 1764 => 778, 1754 => 777, 1739 => 772, 1737 => 771, 1734 => 770, 1727 => 766, 1722 => 763, 1720 => 762, 1710 => 754, 1707 => 753, 1705 => 752, 1696 => 746, 1693 => 745, 1691 => 744, 1683 => 739, 1674 => 734, 1670 => 732, 1667 => 731, 1661 => 729, 1659 => 728, 1655 => 726, 1644 => 724, 1640 => 723, 1632 => 719, 1629 => 718, 1627 => 717, 1624 => 716, 1622 => 715, 1620 => 714, 1618 => 713, 1616 => 712, 1614 => 711, 1606 => 708, 1599 => 705, 1597 => 704, 1594 => 703, 1588 => 701, 1586 => 700, 1583 => 699, 1579 => 697, 1576 => 696, 1571 => 693, 1560 => 691, 1556 => 690, 1551 => 687, 1548 => 686, 1545 => 685, 1542 => 684, 1537 => 682, 1534 => 681, 1531 => 680, 1529 => 679, 1525 => 678, 1521 => 677, 1515 => 676, 1511 => 675, 1508 => 674, 1505 => 673, 1500 => 672, 1495 => 670, 1491 => 668, 1488 => 667, 1485 => 666, 1482 => 665, 1479 => 664, 1468 => 662, 1463 => 661, 1457 => 659, 1454 => 658, 1452 => 657, 1447 => 656, 1444 => 655, 1439 => 652, 1417 => 634, 1415 => 633, 1412 => 632, 1410 => 631, 1403 => 627, 1398 => 625, 1389 => 619, 1380 => 612, 1374 => 611, 1372 => 610, 1370 => 609, 1368 => 608, 1366 => 607, 1364 => 606, 1359 => 604, 1354 => 601, 1344 => 598, 1340 => 597, 1335 => 595, 1332 => 594, 1329 => 593, 1327 => 592, 1324 => 591, 1320 => 590, 1317 => 589, 1310 => 584, 1291 => 567, 1289 => 566, 1285 => 564, 1283 => 563, 1279 => 561, 1277 => 560, 1272 => 558, 1266 => 554, 1264 => 553, 1227 => 518, 1210 => 515, 1206 => 514, 1200 => 513, 1196 => 512, 1192 => 511, 1189 => 510, 1172 => 509, 1165 => 504, 1159 => 500, 1155 => 498, 1145 => 494, 1141 => 493, 1134 => 491, 1131 => 490, 1126 => 489, 1120 => 486, 1114 => 483, 1110 => 481, 1108 => 480, 1105 => 479, 1103 => 478, 1099 => 477, 1096 => 476, 1092 => 474, 1090 => 473, 1084 => 469, 1076 => 465, 1072 => 463, 1070 => 462, 1065 => 459, 1062 => 458, 1059 => 457, 1056 => 456, 1053 => 455, 1050 => 454, 1047 => 453, 1044 => 452, 1041 => 451, 1038 => 450, 1034 => 448, 1030 => 446, 1026 => 444, 1020 => 442, 1017 => 441, 1006 => 438, 1003 => 437, 1000 => 436, 997 => 435, 995 => 434, 992 => 433, 990 => 432, 987 => 431, 984 => 430, 982 => 429, 979 => 428, 977 => 427, 973 => 425, 969 => 423, 965 => 421, 953 => 411, 941 => 401, 939 => 400, 936 => 399, 934 => 397, 933 => 396, 931 => 395, 920 => 386, 918 => 385, 914 => 383, 912 => 382, 911 => 381, 906 => 379, 900 => 375, 897 => 374, 893 => 372, 881 => 362, 869 => 352, 867 => 351, 864 => 350, 862 => 349, 861 => 348, 859 => 347, 855 => 345, 843 => 335, 831 => 325, 829 => 324, 826 => 323, 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 not pastOffer and offer.isGiftCertificateOnlineOrderAllowedOnSite() and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE'))
%}
<div class=\"col mb-3\" style=\"width: 350px;margin: 0 auto\">
{% 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 %}
{% 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()
or offer.isGiftCertificateOnlineOrderAllowedOnSite() and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE'))
%}
<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___1785774776 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 ( 3074 => 45, 3064 => 44, 3041 => 43, 2035 => 876, 2025 => 875, 2012 => 871, 2008 => 870, 1996 => 861, 1992 => 859, 1981 => 851, 1971 => 850, 1959 => 848, 1956 => 847, 1950 => 845, 1947 => 844, 1943 => 842, 1939 => 840, 1937 => 839, 1932 => 837, 1928 => 836, 1924 => 835, 1920 => 834, 1916 => 833, 1902 => 821, 1892 => 820, 1881 => 817, 1878 => 816, 1875 => 815, 1872 => 814, 1869 => 813, 1866 => 812, 1863 => 811, 1860 => 810, 1857 => 809, 1855 => 808, 1852 => 807, 1849 => 806, 1846 => 805, 1843 => 804, 1840 => 803, 1837 => 802, 1834 => 801, 1831 => 800, 1828 => 799, 1825 => 798, 1822 => 797, 1819 => 796, 1816 => 795, 1813 => 794, 1810 => 793, 1807 => 792, 1804 => 791, 1801 => 790, 1798 => 789, 1795 => 788, 1792 => 787, 1789 => 786, 1786 => 785, 1783 => 784, 1780 => 783, 1777 => 782, 1774 => 781, 1771 => 780, 1769 => 779, 1764 => 778, 1754 => 777, 1739 => 772, 1737 => 771, 1734 => 770, 1727 => 766, 1722 => 763, 1720 => 762, 1710 => 754, 1707 => 753, 1705 => 752, 1696 => 746, 1693 => 745, 1691 => 744, 1683 => 739, 1674 => 734, 1670 => 732, 1667 => 731, 1661 => 729, 1659 => 728, 1655 => 726, 1644 => 724, 1640 => 723, 1632 => 719, 1629 => 718, 1627 => 717, 1624 => 716, 1622 => 715, 1620 => 714, 1618 => 713, 1616 => 712, 1614 => 711, 1606 => 708, 1599 => 705, 1597 => 704, 1594 => 703, 1588 => 701, 1586 => 700, 1583 => 699, 1579 => 697, 1576 => 696, 1571 => 693, 1560 => 691, 1556 => 690, 1551 => 687, 1548 => 686, 1545 => 685, 1542 => 684, 1537 => 682, 1534 => 681, 1531 => 680, 1529 => 679, 1525 => 678, 1521 => 677, 1515 => 676, 1511 => 675, 1508 => 674, 1505 => 673, 1500 => 672, 1495 => 670, 1491 => 668, 1488 => 667, 1485 => 666, 1482 => 665, 1479 => 664, 1468 => 662, 1463 => 661, 1457 => 659, 1454 => 658, 1452 => 657, 1447 => 656, 1444 => 655, 1439 => 652, 1417 => 634, 1415 => 633, 1412 => 632, 1410 => 631, 1403 => 627, 1398 => 625, 1389 => 619, 1380 => 612, 1374 => 611, 1372 => 610, 1370 => 609, 1368 => 608, 1366 => 607, 1364 => 606, 1359 => 604, 1354 => 601, 1344 => 598, 1340 => 597, 1335 => 595, 1332 => 594, 1329 => 593, 1327 => 592, 1324 => 591, 1320 => 590, 1317 => 589, 1310 => 584, 1291 => 567, 1289 => 566, 1285 => 564, 1283 => 563, 1279 => 561, 1277 => 560, 1272 => 558, 1266 => 554, 1264 => 553, 1227 => 518, 1210 => 515, 1206 => 514, 1200 => 513, 1196 => 512, 1192 => 511, 1189 => 510, 1172 => 509, 1165 => 504, 1159 => 500, 1155 => 498, 1145 => 494, 1141 => 493, 1134 => 491, 1131 => 490, 1126 => 489, 1120 => 486, 1114 => 483, 1110 => 481, 1108 => 480, 1105 => 479, 1103 => 478, 1099 => 477, 1096 => 476, 1092 => 474, 1090 => 473, 1084 => 469, 1076 => 465, 1072 => 463, 1070 => 462, 1065 => 459, 1062 => 458, 1059 => 457, 1056 => 456, 1053 => 455, 1050 => 454, 1047 => 453, 1044 => 452, 1041 => 451, 1038 => 450, 1034 => 448, 1030 => 446, 1026 => 444, 1020 => 442, 1017 => 441, 1006 => 438, 1003 => 437, 1000 => 436, 997 => 435, 995 => 434, 992 => 433, 990 => 432, 987 => 431, 984 => 430, 982 => 429, 979 => 428, 977 => 427, 973 => 425, 969 => 423, 965 => 421, 953 => 411, 941 => 401, 939 => 400, 936 => 399, 934 => 397, 933 => 396, 931 => 395, 920 => 386, 918 => 385, 914 => 383, 912 => 382, 911 => 381, 906 => 379, 900 => 375, 897 => 374, 893 => 372, 881 => 362, 869 => 352, 867 => 351, 864 => 350, 862 => 349, 861 => 348, 859 => 347, 855 => 345, 843 => 335, 831 => 325, 829 => 324, 826 => 323, 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 not pastOffer and offer.isGiftCertificateOnlineOrderAllowedOnSite() and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE'))
%}
<div class=\"col mb-3\" style=\"width: 350px;margin: 0 auto\">
{% 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 %}
{% 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()
or offer.isGiftCertificateOnlineOrderAllowedOnSite() and isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE'))
%}
<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");
}
}