<?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, "1266864445")->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 50
public function block_mainColumnClass($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainColumnClass"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainColumnClass"));
echo " one-column bg-white";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 51
public function block_main_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_content"));
// line 52
echo " ";
$context["isPickupEnabled"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["offer"] ?? null), "getOnlineOrderSettings", [], "method", false, true, false, 52), "isPickupEnabled", [], "method", true, true, false, 52)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 52, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 52), "isPickupEnabled", [], "method", false, false, false, 52)) : (""));
// line 53
echo " ";
$context["isDeliveryEnabled"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["offer"] ?? null), "getOnlineOrderSettings", [], "method", false, true, false, 53), "isDeliveryEnabled", [], "method", true, true, false, 53)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 53, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 53), "isDeliveryEnabled", [], "method", false, false, false, 53)) : (""));
// line 54
echo " ";
$context["ratingWithCount"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getEntityRatingWithCount(twig_constant("Slivki\\Entity\\Category::OFFER_CATEGORY_ID"), twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 54, $this->source); })()), "getID", [], "method", false, false, false, 54));
// line 55
echo " ";
if (((isset($context["isPickupEnabled"]) || array_key_exists("isPickupEnabled", $context) ? $context["isPickupEnabled"] : (function () { throw new RuntimeError('Variable "isPickupEnabled" does not exist.', 55, $this->source); })()) || (isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled", $context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.', 55, $this->source); })()))) {
// line 56
echo " <input id=\"deliveryMethodEnabled\" type=\"hidden\" value=\"";
echo (((0 === twig_compare((isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled", $context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.', 56, $this->source); })()), ""))) ? ("2") : ("1"));
echo "\">
";
}
// line 58
echo " <input id=\"offerID\" type=\"hidden\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 58, $this->source); })()), "getID", [], "method", false, false, false, 58), "html", null, true);
echo "\">
<input id=\"isMedicalCenter\" type=\"hidden\"
value=\"";
// line 60
echo twig_escape_filter($this->env, ((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 60, $this->source); })()) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 60, $this->source); })()), 0, [], "array", false, false, false, 60), "getID", [], "method", false, false, false, 60), twig_constant("Slivki\\Entity\\Category::MEDICAL_CENTER_CATEGORY_ID")))), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"stock-id\" value=\"";
// line 61
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 61, $this->source); })()), "getID", [], "method", false, false, false, 61), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"stock-link\" value=\"";
// line 62
echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 62, $this->source); })()), "request", [], "any", false, false, false, 62), "getSchemeAndHttpHost", [], "method", false, false, false, 62) . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 62, $this->source); })()), "request", [], "any", false, false, false, 62), "getRequestUri", [], "method", false, false, false, 62)), "html", null, true);
echo "\">
";
// line 64
if ((isset($context["subscribed"]) || array_key_exists("subscribed", $context) ? $context["subscribed"] : (function () { throw new RuntimeError('Variable "subscribed" does not exist.', 64, $this->source); })())) {
// line 65
echo " <input id=\"allowedCodesCountBySubscription\" type=\"hidden\" value=\"";
echo twig_escape_filter($this->env, (isset($context["allowedCodesCountBySubscription"]) || array_key_exists("allowedCodesCountBySubscription", $context) ? $context["allowedCodesCountBySubscription"] : (function () { throw new RuntimeError('Variable "allowedCodesCountBySubscription" does not exist.', 65, $this->source); })()), "html", null, true);
echo "\">
";
}
// line 67
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 67, $this->source); })()), "user", [], "any", false, false, false, 67)) {
// line 68
echo " <input id=\"splitTotalCodesCountByUser\" type=\"hidden\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 68, $this->source); })()), "user", [], "any", false, false, false, 68), "getCodesCountByOffer", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 68, $this->source); })())], "method", false, false, false, 68), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"customerID\" value=\"";
// line 69
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 69, $this->source); })()), "user", [], "any", false, false, false, 69), "getID", [], "method", false, false, false, 69), "html", null, true);
echo "\"/>
";
}
// line 71
echo " <input type=\"hidden\" id=\"codeCost\" value=\"";
echo twig_escape_filter($this->env, (isset($context["codeCost"]) || array_key_exists("codeCost", $context) ? $context["codeCost"] : (function () { throw new RuntimeError('Variable "codeCost" does not exist.', 71, $this->source); })()), "html", null, true);
echo "\">
<input type=\"hidden\" class=\"buyOrderAmount form-element\" type=\"text\"
value=\"";
// line 73
echo twig_escape_filter($this->env, (isset($context["codeCost"]) || array_key_exists("codeCost", $context) ? $context["codeCost"] : (function () { throw new RuntimeError('Variable "codeCost" does not exist.', 73, $this->source); })()), "html", null, true);
echo "\"/>
<div class=\"content-wrapper\">
<div class=\"content-wrapper-offers\" itemscope itemtype=\"https://schema.org/Product\">
<div class=\"d-flex pb-2\" style=\"padding: 10px 34px;\">
<div class=\"col-6\">
";
// line 78
$this->loadTemplate("Slivki/breadcrumbs.html.twig", "Slivki/offers/details.html.twig", 78)->display(twig_to_array(["parentCategoryList" => (isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 78, $this->source); })()), "supplierCategoryData" => twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 78, $this->source); })()), "getSupplierCategoryData", [], "method", false, false, false, 78)]));
// line 79
echo " </div>
<div class=\"col-6\">
<p class=\"color-violet text-end cursor-pointer\" data-toggle=\"modal\"
data-target=\"";
// line 82
echo ((twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 82, $this->source); })()), "user", [], "any", false, false, false, 82)) ? ("#complaintModal") : (".modal-auth"));
echo "\">
Пожаловаться на акцию</p>
</div>
</div>
<h3 class=\"offers-tittle\" style=\"color: ";
// line 86
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 86, $this->source); })()), "getTitleFontColor", [], "method", false, false, false, 86), "html", null, true);
echo ";\">";
echo twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 86, $this->source); })()), "getTitle", [], "method", false, false, false, 86);
echo "</h3>
<div class=\"content-offers-top pb-0\">
<div class=\"left-top-block\">
";
// line 89
if ((twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 89, $this->source); })()), "user", [], "method", false, false, false, 89) && !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 89, $this->source); })()))) {
// line 90
echo " <div class=\"button-add-follow fovoutite-block\"
onclick=\"onFavouriteClickOffer(";
// line 91
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 91, $this->source); })()), "getID", [], "method", false, false, false, 91), "html", null, true);
echo ", ";
echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite", $context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.', 91, $this->source); })())) ? ("true") : ("false"));
echo ")\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Добавить в <br> избранное\"
>
<img src=\"";
// line 97
echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite", $context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.', 97, $this->source); })())) ? ("/images/heart_active.svg") : ("/images/offers/follow.svg"));
echo "\">
</div>
";
}
// line 100
echo " <div class=\"content-wrapper-carousel position-relative\" style=\"margin-bottom: 28px\">
<div class=\"stock-image\">
<div id=\"offerImageSlider\" class=\"m-0 swiper-container\">
";
// line 103
if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 103, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 103))) {
// line 104
echo " <div id=\"statisticsButton\" data-toggle=\"modal\" data-target=\"#statisticOffersPopup\">
<img width=\"37\" height=\"37\" src=\"/images/statistics.png\"/>
</div>
";
}
// line 108
echo " <div class=\"swiper-wrapper\"
data-pixel=";
// line 109
echo (((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 109, $this->source); })()), "getID", [], "method", false, false, false, 109), twig_constant("Slivki\\Entity\\Offer::BETERA_OFFER_ID")))) ? ("https://amc.yandex.ru/show?cmn_id=26372&plt_id=194140&crv_id=464042&evt_t=render&ad_type=banner&rnd=%system.random%") : (""));
echo ">
";
// line 110
$context["medias"] = (isset($context["detailMediaList"]) || array_key_exists("detailMediaList", $context) ? $context["detailMediaList"] : (function () { throw new RuntimeError('Variable "detailMediaList" does not exist.', 110, $this->source); })());
// line 111
echo " ";
$context["mediaCount"] = twig_length_filter($this->env, (isset($context["medias"]) || array_key_exists("medias", $context) ? $context["medias"] : (function () { throw new RuntimeError('Variable "medias" does not exist.', 111, $this->source); })()));
// line 112
echo " ";
if ((1 === twig_compare((isset($context["mediaCount"]) || array_key_exists("mediaCount", $context) ? $context["mediaCount"] : (function () { throw new RuntimeError('Variable "mediaCount" does not exist.', 112, $this->source); })()), 1))) {
// line 113
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["medias"]) || array_key_exists("medias", $context) ? $context["medias"] : (function () { throw new RuntimeError('Variable "medias" does not exist.', 113, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 114
echo " <div class=\"swiper-slide\">
";
// line 115
if (twig_get_attribute($this->env, $this->source, $context["media"], "isYoutube", [], "method", false, false, false, 115)) {
// line 116
echo " <input class=\"js-src-video\" type=\"hidden\"
value=\"https://www.youtube.com/embed/";
// line 117
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getName", [], "method", false, false, false, 117), "html", null, true);
echo "\">
";
} else {
// line 119
echo " <img class=\"img-fluid lazyload\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 119), "html", null, true);
echo "\"
src=\"";
// line 120
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 1044, 644), "html", null, true);
echo "\"/>
";
}
// line 122
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 124
echo " ";
} elseif ((0 === twig_compare((isset($context["mediaCount"]) || array_key_exists("mediaCount", $context) ? $context["mediaCount"] : (function () { throw new RuntimeError('Variable "mediaCount" does not exist.', 124, $this->source); })()), 1))) {
// line 125
echo " <div>
<img class=\"img-fluid lazyload\" alt=\"";
// line 126
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["medias"]) || array_key_exists("medias", $context) ? $context["medias"] : (function () { throw new RuntimeError('Variable "medias" does not exist.', 126, $this->source); })()), 0, [], "array", false, false, false, 126), "getDescription", [], "method", false, false, false, 126), "html", null, true);
echo "\"
src=\"";
// line 127
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL(twig_get_attribute($this->env, $this->source, (isset($context["medias"]) || array_key_exists("medias", $context) ? $context["medias"] : (function () { throw new RuntimeError('Variable "medias" does not exist.', 127, $this->source); })()), 0, [], "array", false, false, false, 127), 1044, 644), "html", null, true);
echo "\"/>
</div>
";
}
// line 130
echo " </div>
";
// line 131
if ((1 === twig_compare((isset($context["mediaCount"]) || array_key_exists("mediaCount", $context) ? $context["mediaCount"] : (function () { throw new RuntimeError('Variable "mediaCount" does not exist.', 131, $this->source); })()), 1))) {
// line 132
echo " <div class=\"swiper-pagination mt-2\"></div>
<div class=\"swiper-button-next\"></div>
<div class=\"swiper-button-prev\"></div>
";
}
// line 136
echo " </div>
</div>
";
// line 138
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 138, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 138)) {
// line 139
echo " <div class=\"discount-block\">
";
// line 140
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 140, $this->source); })()), "getDiscount", [], "method", false, false, false, 140), "html", null, true);
echo "
</div>
";
}
// line 143
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 143, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 143)) {
// line 144
echo " <div class=\"button-add-follow button-add-follow-teaser fovoutite-block\"
onclick=\"onFavouriteClickOffer(";
// line 145
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 145, $this->source); })()), "getID", [], "method", false, false, false, 145), "html", null, true);
echo ", ";
echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite", $context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.', 145, $this->source); })())) ? ("true") : ("false"));
echo ")\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Добавить в <br> избранное\"
>
<img src=\"";
// line 151
echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite", $context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.', 151, $this->source); })())) ? ("/images/heart_active.svg") : ("/images/offers/follow.svg"));
echo "\">
</div>
";
}
// line 154
echo " </div>
</div>
<div class=\"right-top-block\">
<div class=\"offers-description\">
";
// line 158
if (((isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 158, $this->source); })()) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 158, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 158), 0)))) {
// line 159
echo " <div class=\"past-offer mt-5 pt-5\">
<i class=\"slivki-icon-minus-circled\"></i>
<p>Упс, акция завершена!</p>
<a href=\"#offersConditions\" class=\"buttons-link-offers\">
Условия
</a>
<a href=\"#conditionAddress\" class=\"buttons-link-offers\">
Адрес, телефоны
</a>
<a href=\"#offersReview\" class=\"buttons-link-offers\">
Отзывы
</a>
</div>
";
} else {
// line 174
echo " ";
if (( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 174, $this->source); })()), "isInFreeCodesCategory", [], "method", false, false, false, 174) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 174, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 174))) {
// line 175
echo " <div class=\"d-flex statistic-block ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
echo "justify-content-between";
}
echo " col px-2 my-0\">
<p class=\"text-dark-violet font-size-0750 text-end w-auto\"
data-toggle=\"tooltip\"
data-html=\"true\" data-placement=\"top\"
data-original-title=\"Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней\">
Конверсия ";
// line 180
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getOfferConversion(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 180, $this->source); })()), "getID", [], "method", false, false, false, 180)), "html", null, true);
echo "%</p>
</div>
";
}
// line 183
echo " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 183, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 183)) {
// line 184
echo " <div class=\"d-flex offers-description--item\">
<div class=\"col\">
<p class=\"color-dark-gray px-0 mb-0\">Взято всего:</p>
</div>
<div class=\"col font-bold text-end\">
<p> ";
// line 189
echo twig_escape_filter($this->env, ((array_key_exists("multiplePoolOfferUsedCodesCount", $context)) ? ((isset($context["multiplePoolOfferUsedCodesCount"]) || array_key_exists("multiplePoolOfferUsedCodesCount", $context) ? $context["multiplePoolOfferUsedCodesCount"] : (function () { throw new RuntimeError('Variable "multiplePoolOfferUsedCodesCount" does not exist.', 189, $this->source); })())) : ((isset($context["usedCodesCount"]) || array_key_exists("usedCodesCount", $context) ? $context["usedCodesCount"] : (function () { throw new RuntimeError('Variable "usedCodesCount" does not exist.', 189, $this->source); })()))), "html", null, true);
echo "
";
// line 190
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "промокод", 1 => "промокода", 2 => "промокодов"], (isset($context["usedCodesCount"]) || array_key_exists("usedCodesCount", $context) ? $context["usedCodesCount"] : (function () { throw new RuntimeError('Variable "usedCodesCount" does not exist.', 190, $this->source); })())), "html", null, true);
echo "
из ";
// line 191
echo twig_escape_filter($this->env, (isset($context["allCodesCount"]) || array_key_exists("allCodesCount", $context) ? $context["allCodesCount"] : (function () { throw new RuntimeError('Variable "allCodesCount" does not exist.', 191, $this->source); })()), "html", null, true);
echo "</p>
</div>
</div>
<div class=\"d-flex px-2 my-0\">
<div class=\"col\">
<p class=\"color-dark-gray mb-0\">Взято сутки/месяц:</p>
</div>
<div class=\"col font-bold text-end pl-2\">
<p>";
// line 199
echo twig_escape_filter($this->env, (isset($context["todayPurchaseCount"]) || array_key_exists("todayPurchaseCount", $context) ? $context["todayPurchaseCount"] : (function () { throw new RuntimeError('Variable "todayPurchaseCount" does not exist.', 199, $this->source); })()), "html", null, true);
echo "
/";
// line 200
(((1 === twig_compare($this->extensions['Slivki\Twig\SlivkiTwigExtension']->getOfferMonthlyPurchaseCount(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 200, $this->source); })()), "getID", [], "method", false, false, false, 200), 30), 0))) ? (print (twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getOfferMonthlyPurchaseCount(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 200, $this->source); })()), "getID", [], "method", false, false, false, 200), 30), "html", null, true))) : (print (0)));
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "промокод", 1 => "промокода", 2 => "промокодов"], (isset($context["todayPurchaseCount"]) || array_key_exists("todayPurchaseCount", $context) ? $context["todayPurchaseCount"] : (function () { throw new RuntimeError('Variable "todayPurchaseCount" does not exist.', 200, $this->source); })())), "html", null, true);
echo "
</p>
</div>
</div>
";
}
// line 205
echo " <div class=\"d-flex ";
echo ((twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 205, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 205)) ? ("pl-2") : ("offers-description--item"));
echo "\">
<div class=\"col\">
<p class=\"color-dark-gray\">Просмотров сутки/месяц:</p>
</div>
<div class=\"col font-bold text-end\">
<p>";
// line 210
echo twig_escape_filter($this->env, (isset($context["todayVisitCount"]) || array_key_exists("todayVisitCount", $context) ? $context["todayVisitCount"] : (function () { throw new RuntimeError('Variable "todayVisitCount" does not exist.', 210, $this->source); })()), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, (isset($context["visitCount"]) || array_key_exists("visitCount", $context) ? $context["visitCount"] : (function () { throw new RuntimeError('Variable "visitCount" does not exist.', 210, $this->source); })()), "html", null, true);
echo "</p>
</div>
</div>
";
// line 213
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 213, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 213)) {
// line 214
echo " <div class=\"d-flex px-2 my-0\">
<div class=\"col\">
<p class=\"color-dark-gray\">До завершения: </p>
</div>
<div class=\"col text-end\">
";
// line 219
if ((1 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 219, $this->source); })()), 0))) {
// line 220
echo " <input type=\"hidden\" id=\"daysLeft\" value=\"";
echo twig_escape_filter($this->env, (isset($context["daysLeft"]) || array_key_exists("daysLeft", $context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.', 220, $this->source); })()), "html", null, true);
echo " \"/>
<input type=\"hidden\" id=\"hoursLeft\" value=\"";
// line 221
echo twig_escape_filter($this->env, (isset($context["hoursLeft"]) || array_key_exists("hoursLeft", $context) ? $context["hoursLeft"] : (function () { throw new RuntimeError('Variable "hoursLeft" does not exist.', 221, $this->source); })()), "html", null, true);
echo " \"/>
<input type=\"hidden\" id=\"minutesLeft\" value=\"";
// line 222
echo twig_escape_filter($this->env, (isset($context["minutesLeft"]) || array_key_exists("minutesLeft", $context) ? $context["minutesLeft"] : (function () { throw new RuntimeError('Variable "minutesLeft" does not exist.', 222, $this->source); })()), "html", null, true);
echo " \"/>
<input type=\"hidden\" id=\"secondsLeft\"
value=\"";
// line 224
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 224, $this->source); })()), "getActiveTill", [], "method", false, false, false, 224), "diff", [0 => twig_date_converter($this->env)], "method", false, false, false, 224), "format", [0 => "%s"], "method", false, false, false, 224), "html", null, true);
echo "\"/>
<span id=\"days\">";
// line 225
echo twig_escape_filter($this->env, (isset($context["daysLeft"]) || array_key_exists("daysLeft", $context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.', 225, $this->source); })()), "html", null, true);
echo "
 </span>";
// line 226
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "день", 1 => "дня", 2 => "дней"], (isset($context["daysLeft"]) || array_key_exists("daysLeft", $context) ? $context["daysLeft"] : (function () { throw new RuntimeError('Variable "daysLeft" does not exist.', 226, $this->source); })())), "html", null, true);
echo ",
<span id=\"hours\">";
// line 227
echo twig_escape_filter($this->env, (isset($context["hoursLeft"]) || array_key_exists("hoursLeft", $context) ? $context["hoursLeft"] : (function () { throw new RuntimeError('Variable "hoursLeft" does not exist.', 227, $this->source); })()), "html", null, true);
echo " </span>час";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "", 1 => "а", 2 => "ов"], (isset($context["hoursLeft"]) || array_key_exists("hoursLeft", $context) ? $context["hoursLeft"] : (function () { throw new RuntimeError('Variable "hoursLeft" does not exist.', 227, $this->source); })())), "html", null, true);
echo "
";
}
// line 229
echo " </div>
</div>
";
}
// line 232
echo " <div class=\"d-flex offers-description--item js-to-review-block\">
<div class=\"col\">
<p class=\"color-dark-gray\">Отзывы/оценка:</p>
</div>
<div class=\"col font-bold text-end\">
<p>";
// line 237
echo twig_escape_filter($this->env, (isset($context["commentsAmount"]) || array_key_exists("commentsAmount", $context) ? $context["commentsAmount"] : (function () { throw new RuntimeError('Variable "commentsAmount" does not exist.', 237, $this->source); })()), "html", null, true);
echo " /
<r data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Рейтинг компании <br> за 90 дней\">
<span class=\"yellow-span\">★</span>";
// line 242
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 242, $this->source); })()), "getRating", [], "method", false, false, false, 242), "html", null, true);
echo "</r>
</p>
</div>
</div>
<div class=\"d-flex offer-price-block\">
<div class=\"col px-2\">
<p class=\"color-dark-gray\">Стоимость:</p>
</div>
<div class=\"col text-end\">
<span id=\"offerRegularPrice\"
class=\"regular-price\">";
// line 253
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 253, $this->source); })()), "getRegularPrice", [], "method", false, false, false, 253), "html", null, true);
echo "</span>
<span class=\"discount-price\"> ";
// line 254
echo twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 254, $this->source); })()), "getOfferPrice", [], "method", false, false, false, 254), ["(" => "<span id=\"details-offer-price\">(", ")" => ")</span>"]);
echo "</span>
</div>
</div>
";
// line 257
if (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 257, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 257)) {
// line 258
echo " <a href=\"/moya_akciya\" target=\"_blank\">
<img class=\"mt-2\" src=\"/images/платидари.png\" style=\"border-radius: 8px\"/>
</a>
";
}
// line 262
echo " ";
}
// line 263
echo " </div>
";
// line 264
if ((twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 264, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 264) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 264, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 264))) {
// line 265
echo " <div class=\"buttons-wrapper-offers\">
<a id=\"deliveryBtn\" href=\"";
// line 267
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 267, $this->source); })()), "getOnlineRegistrationLink", [], "method", false, false, false, 267), "html", null, true);
echo "\" style=\"margin: 14px 0;\"
class=\"online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Онлайн-запись
</a>
</div>
";
}
// line 273
echo "
";
// line 275
if (((1 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 275, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 275), 0)) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 275, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 275))) {
// line 276
echo " <div class=\"d-flex\" style=\"min-height: 90px;align-items: end;\">
<div class=\"buttons-wrapper-offers\">
";
// line 278
if (array_key_exists("hasDelivery", $context)) {
// line 279
echo " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 279, $this->source); })()), "isBuyCodeDisable", [], "method", false, false, false, 279)) {
// line 280
echo " ";
$this->loadTemplate("Slivki/offers/buy_button.html.twig", "Slivki/offers/details.html.twig", 280)->display($context);
// line 281
echo " ";
}
// line 282
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 282, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 282)) {
// line 283
echo " <a id=\"deliveryBtn\" href=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Slivki\Twig\GetLinkOnlineOrderRuntime')->getLinkFoodOnlineOrder((isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 283, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Заказать онлайн ";
// line 285
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.', 285, $this->source); })()), "getDiscount", [], "method", false, false, false, 285), "html", null, true);
echo "
</a>
";
}
// line 288
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 288, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 288)) {
// line 289
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.', 289, $this->source); })()), "getID", [], "method", false, false, false, 289), twig_constant("Slivki\\Entity\\Offer::MINSK_WORLD_CERTIFICATE_OFFER_ID")))) {
// 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>
";
} elseif (twig_in_filter(twig_get_attribute($this->env, $this->source, // line 294
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 294, $this->source); })()), "getID", [], "method", false, false, false, 294), twig_constant("Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS"))) {
// line 295
echo " <a id=\"deliveryBtn2\"
href=\"";
// line 296
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.', 296, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
ПОЛУЧИТЬ СКИДКУ ";
// line 298
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 298, $this->source); })()), "getDiscount", [], "method", false, false, false, 298), "html", null, true);
echo "
</a>
";
} elseif ( !twig_get_attribute($this->env, $this->source, // line 300
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 300, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 300)) {
// line 301
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.', 301, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Оплатить онлайн ";
// line 303
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.', 303, $this->source); })()), "getDiscount", [], "method", false, false, false, 303), "html", null, true);
echo "
</a>
";
}
// line 306
echo " ";
}
// line 307
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.', 307, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 307)) {
// line 308
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.', 308, $this->source); })()), "getOnlineRegistrationLink", [], "method", false, false, false, 308), "html", null, true);
echo "\"
class=\"online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Онлайн-запись
</a>
";
}
// line 313
echo " ";
} elseif ((isset($context["isAllowedByOnlyCode"]) || array_key_exists("isAllowedByOnlyCode", $context) ? $context["isAllowedByOnlyCode"] : (function () { throw new RuntimeError('Variable "isAllowedByOnlyCode" does not exist.', 313, $this->source); })())) {
// line 314
echo " <div class=\"col\">
";
// line 315
$this->loadTemplate("Slivki/offers/buy_button.html.twig", "Slivki/offers/details.html.twig", 315)->display($context);
// line 316
echo " </div>
";
}
// line 318
echo " ";
if (((((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 318, $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.', 318, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 318)) && !(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.', 318, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 318))) && (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.', 318, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 318), "allowedPaymentMethods", [], "any", false, false, false, 318), "delivery", [], "array", false, false, false, 318), 4, [], "array", false, false, false, 318), 1))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) || ((( ! // line 319
(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 319, $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.', 319, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 319)) && (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.', 319, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 319))) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))))) {
// line 320
echo " <div class=\"col mb-2\">
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
<div class=\"button-gift-text\">
<p>ЕДА В ПОДАРОК 😋</p>
<p>Подарю сам или подарят мне</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
</div>
</div>
";
}
// line 333
echo " ";
if ((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 333, $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.', 333, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 333)) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE")))) {
// line 334
echo " <div class=\"col mb-3\" style=\"width: 350px;margin: 0 auto\">
";
// line 335
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.', 335, $this->source); })()), "user", [], "any", false, false, false, 335)) {
// line 336
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 346
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 356
echo " </div>
";
}
// line 358
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.', 358, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 358)) && (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.', 358, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 358), "allowedPaymentMethods", [], "any", false, false, false, 358), "delivery", [], "array", false, false, false, 358), 4, [], "array", false, false, false, 358), 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.', 358, $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.', 358, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 358)) || (((( !(null === twig_get_attribute($this->env, $this->source, // line 359
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 359, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 359)) && (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.', 359, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 359), "allowedPaymentMethods", [], "any", false, false, false, 359), "pickup", [], "array", false, false, false, 359), 4, [], "array", false, false, false, 359), 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.', 359, $this->source); })())) && !twig_get_attribute($this->env, $this->source, // line 360
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 360, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 360)))) {
// line 361
echo " <div class=\"col\">
";
// line 362
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.', 362, $this->source); })()), "user", [], "any", false, false, false, 362)) {
// line 363
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 373
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 383
echo " </div>
";
}
// line 385
echo " ";
}
// line 386
echo " </div>
</div>
</div>
</div>
<div id=\"conditions_offers\" class=\"d-flex\" style=\"";
// line 390
echo (((isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 390, $this->source); })())) ? ("display: none!important") : (""));
echo "\">
<div class=\"content-wrapper-col-left pt-0\">
";
// line 392
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.', 392, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 392) && (((( !(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.', 392, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 392)) && (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.', 392, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 392), "allowedPaymentMethods", [], "any", false, false, false, 392), "delivery", [], "array", false, false, false, 392), 4, [], "array", false, false, false, 392), 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.', 392, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 392)) || ((((twig_get_attribute($this->env, $this->source, // line 393
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 393, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 393) && !(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.', 393, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 393))) && (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.', 393, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 393), "allowedPaymentMethods", [], "any", false, false, false, 393), "delivery", [], "array", false, false, false, 393), 4, [], "array", false, false, false, 393), 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.', 393, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 393))))) {
// line 394
echo "
<div class=\"d-flex mb-2\" style=\"max-width: 625px;\">
";
// line 396
if (((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 396, $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.', 396, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 396), 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.', 396, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 396)) && twig_get_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); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 396))) {
// line 397
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 406
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.', 406, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 406) && !(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.', 406, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 406))) && (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.', 406, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 406), "allowedPaymentMethods", [], "any", false, false, false, 406), "delivery", [], "array", false, false, false, 406), 4, [], "array", false, false, false, 406), 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.', 406, $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.', 406, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 406)) || (((( !(null === twig_get_attribute($this->env, $this->source, // line 407
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 407, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 407)) && (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.', 407, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 407), "allowedPaymentMethods", [], "any", false, false, false, 407), "pickup", [], "array", false, false, false, 407), 4, [], "array", false, false, false, 407), 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.', 407, $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.', 407, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 407))) || (twig_get_attribute($this->env, $this->source, // line 408
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 408, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 408) && $this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE"))))) {
// line 409
echo " <div class=\"col\">
";
// line 410
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.', 410, $this->source); })()), "user", [], "any", false, false, false, 410)) {
// line 411
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 421
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 431
echo " </div>
";
}
// line 433
echo " </div>
";
}
// line 435
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 437
$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.', 437, $this->source); })()), "user", [], "any", false, false, false, 437)) ? (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.', 437, $this->source); })()), "user", [], "any", false, false, false, 437), "isOfferFavourite", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 437, $this->source); })())], "method", false, false, false, 437)) : (false));
// line 438
echo " <div id=\"startOfOfferCondition\"></div>
";
// line 439
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.', 439, $this->source); })()), "getID", [], "method", false, false, false, 439), 239232))) {
// line 440
echo " ";
}
// line 441
echo "
";
// line 442
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.', 442, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 442) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 442, $this->source); })()), "getID", [], "method", false, false, false, 442), 140553)))) {
// line 443
echo " <p>
";
// line 444
$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.', 444, $this->source); })()), "getCodeActiveTill", [], "method", false, false, false, 444);
// line 445
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.', 445, $this->source); })()), "getActiveTill", [], "method", false, false, false, 445), "-1 day");
// line 446
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.', 446, $this->source); })()), (isset($context["codeTill"]) || array_key_exists("codeTill", $context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.', 446, $this->source); })())))) ? ((isset($context["codeTill"]) || array_key_exists("codeTill", $context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.', 446, $this->source); })())) : ((isset($context["codeFrom"]) || array_key_exists("codeFrom", $context) ? $context["codeFrom"] : (function () { throw new RuntimeError('Variable "codeFrom" does not exist.', 446, $this->source); })())));
// line 447
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.', 447, $this->source); })()), "isHideFeatures", [], "method", false, false, false, 447)) {
// line 448
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.', 448, $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.', 448, $this->source); })()), "getID", [], "method", false, false, false, 448), 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.', 448, $this->source); })()), "d.m.y"), "html", null, true);
echo "
<br/>
";
}
// line 451
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.', 451, $this->source); })()), "isShowPriceInConditions", [], "method", false, false, false, 451) && !(isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 451, $this->source); })()))) {
// line 452
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.', 452, $this->source); })()), "html", null, true);
echo " руб.
";
}
// line 454
echo " </p>
";
}
// line 456
echo "
<div class=\"offer-details-conditions offers-conditions p-0\">
";
// line 458
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.', 458, $this->source); })()), "getConditions", [], "method", false, false, false, 458);
echo "
";
// line 460
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.', 460, $this->source); })()), "getID", [], "method", false, false, false, 460), 143528))) {
// line 461
echo " ";
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer2.html.twig", "Slivki/offers/details.html.twig", 461)->display($context);
// line 462
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.', 462, $this->source); })()), "getID", [], "method", false, false, false, 462), 282234))) {
// line 463
echo " ";
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer4.html.twig", "Slivki/offers/details.html.twig", 463)->display($context);
// line 464
echo " ";
}
// line 465
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.', 465, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 465)) {
// line 466
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.', 466, $this->source); })())) . "/phrase_subscription_in_offer_page.html.twig"), "Slivki/offers/details.html.twig", 466)->display($context);
// line 467
echo " ";
}
// line 468
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.', 468, $this->source); })()), "isHideFeatures", [], "method", false, false, false, 468)) {
// line 469
echo " </br>
<div class=\"offer-titles mb-2 mt-0\"><h2>Особенности</h2></div>
<div class=\"offer-details-conditions\">
";
// line 472
if ( !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 472, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 472)) {
// line 473
echo " - Скидка предоставляется только при наличии промокода.
";
}
// line 475
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.', 475, $this->source); })()), "getFeatures", [], "method", false, false, false, 475);
echo "
</div>
- Поставщик несет полную ответственность перед потребителем за достоверность информации.
";
}
// line 479
echo " </div>
<div id=\"endOfOfferCondition\"></div>
<div class=\"clear\"></div>
</div>
";
// line 483
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.', 483, $this->source); })()), "getShopMedias", [], "method", false, false, false, 483)), 0))) {
// line 484
echo " <div class=\"offer-titles mb-2 mt-0\"><h2>Галерея</h2></div>
";
}
// line 486
echo " <div id=\"offerConditionsSlider\"
class=\"my-4 screenshots ";
// line 487
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.', 487, $this->source); })()), "getShopMedias", [], "method", false, false, false, 487)), 0)) || (0 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 487, $this->source); })()), 0)))) ? ("empty") : (""));
echo "\">
";
// line 488
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.', 488, $this->source); })()), "getShopMedias", [], "method", false, false, false, 488)), 0))) {
// line 489
echo " <div class=\"screenshot-container\">
";
// line 490
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 490) && (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.', 490, $this->source); })()), "getVideos", [], "method", false, false, false, 490)), 0)))) {
// line 491
echo " <div class=\"screenshot screenshot-story\" data-toggle=\"modal\"
data-target=\"#detailsStoryPopup\">
<img src=\"";
// line 493
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.', 493, $this->source); })()), "getImageUrl", [], "method", false, false, false, 493), "html", null, true);
echo "\" width=\"300\"
alt=\"Видео\" border=\"0\"/>
<div class=\"screenshot-story-btn\"></div>
<div class=\"screenshot-story-tittle\">";
// line 496
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.', 496, $this->source); })()), "getTitle", [], "method", false, false, false, 496), "html", null, true);
echo "</div>
</div>
";
}
// line 499
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.', 499, $this->source); })()), "getShopMedias", [], "method", false, false, false, 499));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 500
echo " <div class=\"screenshot\">
<a href=\"";
// line 501
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, 501), "html", null, true);
echo "\"
data-lightbox=\"image\">
<img src=\"";
// line 503
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 300, 0), "html", null, true);
echo "\" width=\"300\"
alt=\"";
// line 504
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 504), "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 508
echo " </div>
";
}
// line 510
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 514
echo "</h5>
</div>
<div class=\"examples-works-tooltip-filter\">
<div class=\"tooltip-content\">
<div class=\"tooltip-title border-bottom-f d-flex\">Показать сначала:</div>
";
// line 519
$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 520
echo " <div class=\"radio\">
<input id=\"filter";
// line 521
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" type=\"radio\" name=\"filter\"
data-direction=\"";
// line 522
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "direction", [], "any", false, false, false, 522), "html", null, true);
echo "\"
value=\"";
// line 523
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "field", [], "any", false, false, false, 523), "html", null, true);
echo "\" ";
echo ((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 523)) ? ("checked") : (""));
echo ">
<label for=\"filter";
// line 524
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\"
class=\"cursor-pointer\">";
// line 525
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sortItem"], "name", [], "any", false, false, false, 525), "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 528
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 563
$this->loadTemplate("Slivki/works-examples/examples_of_works_gallery.html.twig", "Slivki/offers/details.html.twig", 563)->display($context);
// line 564
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 568
echo ((((isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 568, $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.', 568, $this->source); })()), 0, [], "array", false, false, false, 568), "getID", [], "method", false, false, false, 568), twig_constant("Slivki\\Entity\\Category::MEDICAL_CENTER_CATEGORY_ID"))))) ? ("Врачи") : ("Найти своего мастера"));
echo "</h2>
</div>
";
// line 570
$this->loadTemplate("Slivki/beauty/beauty_masters.html.twig", "Slivki/offers/details.html.twig", 570)->display($context);
// line 571
echo " </div>
<div id=\"offersDescription\" class=\"offers-conditions mt-3\">
";
// line 573
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.', 573, $this->source); })()), "isShowProductsInOfferDescription", [], "method", false, false, false, 573)) {
// line 574
echo " <div id=\"foodItemsBlock\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Описание</h2></div>
";
// line 576
if (((isset($context["isPickupEnabled"]) || array_key_exists("isPickupEnabled", $context) ? $context["isPickupEnabled"] : (function () { throw new RuntimeError('Variable "isPickupEnabled" does not exist.', 576, $this->source); })()) && (isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled", $context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.', 576, $this->source); })()))) {
// line 577
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 594
echo "
<div id=\"foodBlock\"></div>
<div id=\"foodOptionsBlock\"></div>
</div>
";
}
// line 599
echo " <div class=\"description\" id=\"descriptionText\">
";
// line 600
$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.', 600, $this->source); })()), "getDescriptionList", [], "method", false, false, false, 600));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescription"]) {
// line 601
echo "
";
// line 602
$context["offerDescriptionSliderImages"] = twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getEntityDescriptionSliderImages", [], "method", false, false, false, 602);
// line 603
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.', 603, $this->source); })())), 0))) {
// line 604
echo " <div class=\"sale-description-carousel\">
<div id=\"saleDescriptionSliderFor";
// line 605
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getID", [], "method", false, false, false, 605), "html", null, true);
echo "\"
class=\"sale-description-slider-for\">
";
// line 607
$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.', 607, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescriptionSliderImage"]) {
// line 608
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, 608), "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 611
echo " </div>
</div>
";
}
// line 614
echo " ";
echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->addLazyAndLightboxImagesInDescription(twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getDescription", [], "method", false, false, false, 614));
echo "
";
// line 616
echo " ";
// line 617
echo " ";
// line 618
echo " ";
// line 619
echo " ";
// line 620
echo " ";
// line 621
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 622
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 629
echo (isset($context["comments"]) || array_key_exists("comments", $context) ? $context["comments"] : (function () { throw new RuntimeError('Variable "comments" does not exist.', 629, $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 635
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.', 635, $this->source); })()), "getAddress", [], "method", false, false, false, 635), "html", null, true);
echo "</div>
<div id=\"offerConditionLogo\">
";
// line 637
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.', 637, $this->source); })()), "getLogo", [], "method", false, false, false, 637);
echo "
</div>
<div id=\"dataFromLocation\">
<div class=\"move-data\">
";
// line 641
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.', 641, $this->source); })())), 0))) {
// line 642
echo " <div class=\"geo-location-block\" style=\"display: block\">
";
// line 643
$this->loadTemplate("Slivki/offers/geo_location_data.html.twig", "Slivki/offers/details.html.twig", 643)->display(twig_to_array(["offer" => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 643, $this->source); })())]));
// line 644
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.', 644, $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 662
echo " <div class=\"before-map\" style=\"clear:both;\"></div>
</div>
</div>
";
// line 665
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.', 665, $this->source); })()), "getLocation", [], "method", false, false, false, 665), "/<[^>]*>/", ""), ["
" => "", "
" => "", " " => "", " " => ""]), ""))) {
// line 666
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.', 666, $this->source); })()), "getLocation", [], "method", false, false, false, 666);
echo "
";
// line 667
$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.', 667, $this->source); })()), "getPhoneNumbers", [], "method", false, false, false, 667);
// line 668
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.', 668, $this->source); })()), "count", [], "method", false, false, false, 668), 0))) {
// line 669
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.', 669, $this->source); })()), "count", [], "method", false, false, false, 669), 1))) ? ("ы") : (""));
echo ":</div>
";
}
// line 671
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.', 671, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 672
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 672), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 672), "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 674
echo " ";
} else {
// line 675
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.', 675, $this->source); })()), "count", [], "method", false, false, false, 675);
// line 676
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.', 676, $this->source); })()), "getCommonWorkingHours", [], "method", false, false, false, 676);
// line 677
echo " ";
if ((0 !== twig_compare((isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 677, $this->source); })()), ""))) {
// line 678
echo " <br>
<div class=\"text-bold\">Время работы:</div>
";
// line 680
echo (isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 680, $this->source); })());
echo "
";
}
// line 682
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.', 682, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["geoLocation"]) {
// line 683
echo " ";
$context["margin"] = false;
// line 684
echo " <div class=\"offer-details-geolocation-item my-3\">
<div class=\"font-bold font-size-17\">г. ";
// line 685
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCity", [], "method", false, false, false, 685), "html", null, true);
echo "
, ";
// line 686
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getStreet", [], "method", false, false, false, 686), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getHouse", [], "method", false, false, false, 686), "html", null, true);
echo "
<br>";
// line 687
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getLabel", [], "method", false, false, false, 687), "html", null, true);
echo "</div>
<div class=\"location-more-info ";
// line 688
echo (((1 === twig_compare((isset($context["geoLocationsCount"]) || array_key_exists("geoLocationsCount", $context) ? $context["geoLocationsCount"] : (function () { throw new RuntimeError('Variable "geoLocationsCount" does not exist.', 688, $this->source); })()), 2))) ? ("hidden") : (""));
echo "\">
";
// line 689
if ((0 !== twig_compare(twig_trim_filter(twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 689)), ""))) {
// line 690
echo " ";
$context["margin"] = true;
// line 691
echo " <div class=\"offer-details-work-hours\">Время работы:
</div> ";
// line 692
echo twig_nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 692), "html", null, true));
echo "
";
}
// line 694
echo " ";
$context["phoneNumbers"] = twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getPhoneNumbers", [], "method", false, false, false, 694);
// line 695
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.', 695, $this->source); })()), "count", [], "method", false, false, false, 695), 0))) {
// line 696
echo " ";
$context["margin"] = true;
// line 697
echo " <span>
<div class=\"offer-details-phone-item\">
<div class=\"full-phone-item\">
";
// line 700
$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.', 700, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 701
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 701), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 701), "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 703
echo " </div>
</div>
";
}
// line 706
echo " ";
if ((isset($context["margin"]) || array_key_exists("margin", $context) ? $context["margin"] : (function () { throw new RuntimeError('Variable "margin" does not exist.', 706, $this->source); })())) {
// line 707
echo " <br>
";
}
// line 709
echo " </span>
";
// line 710
if ((twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCallbackChatId", [], "method", false, false, false, 710) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCallbackChatId", [], "method", false, false, false, 710), "")))) {
// line 711
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, 711), "html", null, true);
echo "\">Обратный
звонок
</div>
";
}
// line 715
echo " </div>
";
// line 716
if ((1 === twig_compare((isset($context["geoLocationsCount"]) || array_key_exists("geoLocationsCount", $context) ? $context["geoLocationsCount"] : (function () { throw new RuntimeError('Variable "geoLocationsCount" does not exist.', 716, $this->source); })()), 2))) {
// line 717
echo " <a data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getID", [], "method", false, false, false, 717), "html", null, true);
echo "\"
class=\"text-slivki location-more-info-toggle\">Подробнее</a>
";
}
// line 720
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 723
echo " ";
// line 724
echo " ";
// line 725
echo " ";
// line 726
echo " ";
// line 727
echo " ";
// line 728
echo "
";
// line 729
$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.', 729, $this->source); })()), "getPhoneNumbersWithoutGeoLocations", [], "method", false, false, false, 729);
// line 730
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.', 730, $this->source); })())), 0))) {
// line 731
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.', 731, $this->source); })())), 1))) ? ("ы") : (""));
echo ":
</div>
<div class=\"offer-details-phone-item\">
<div class=\"full-phone-item\">
";
// line 735
$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.', 735, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 736
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 736), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 736), "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 738
echo " </div>
</div>
";
// line 740
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.', 740, $this->source); })()), "getCallbackChatId", [], "method", false, false, false, 740)) && (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.', 740, $this->source); })()), "getCallbackChatId", [], "method", false, false, false, 740), "")))) {
// line 741
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.', 741, $this->source); })()), "getId", [], "method", false, false, false, 741), "html", null, true);
echo "\">Обратный звонок
</div>
";
}
// line 744
echo " ";
}
// line 745
echo "
";
}
// line 747
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.', 747, $this->source); })()), "getLegal", [], "method", false, false, false, 747);
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 752
(((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.', 752, $this->source); })()), "getTelegram", [], "method", false, false, false, 752), 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.', 752, $this->source); })()), "getTelegram", [], "method", false, false, false, 752), "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 757
$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.', 757, $this->source); })()), "getViber", [], "method", false, false, false, 757), 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.', 757, $this->source); })()), "getViber", [], "method", false, false, false, 757)) : ("+375295084444"));
// line 763
echo " </div>
</div>
";
// line 765
$this->loadTemplate("Slivki/offers/share.html.twig", "Slivki/offers/details.html.twig", 765)->display($context);
// line 766
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.', 766, $this->source); })())) . "/jivosite/button_offers_page.html.twig"), "Slivki/offers/details.html.twig", 766)->display($context);
// line 767
echo " <p class=\"tittle-messenger-offers d-none\">Мы всегда рады помочь: служба поддержки Slivki.by ответит
на
любой
ваш вопрос</p>
</div>
</div>
</div>
";
// line 775
if ((((isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 775, $this->source); })()) || (0 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 775, $this->source); })()), 0))) && array_key_exists("relatedOfferListHtml", $context))) {
// line 776
echo " <div class=\"col px-3\">
<div class=\"related-offers-title\">Другие похожие предложения:</div>
<div class=\"related-offers-list stock-group-list\">
";
// line 779
echo (isset($context["relatedOfferListHtml"]) || array_key_exists("relatedOfferListHtml", $context) ? $context["relatedOfferListHtml"] : (function () { throw new RuntimeError('Variable "relatedOfferListHtml" does not exist.', 779, $this->source); })());
echo "
</div>
</div>
";
}
// line 783
echo " </div>
";
// line 784
if (array_key_exists("lastPurchaseText", $context)) {
// line 785
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.', 785, $this->source); })()), "html", null, true);
echo "
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 790
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 791
echo " ";
$this->displayParentBlock("popups", $context, $blocks);
echo "
";
// line 792
if ( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 792, $this->source); })())) {
// line 793
echo " ";
$this->loadTemplate("Slivki/popups/header_offers.html.twig", "Slivki/offers/details.html.twig", 793)->display($context);
// line 794
echo " ";
}
// line 795
echo " ";
$this->loadTemplate("Slivki/share_block.html.twig", "Slivki/offers/details.html.twig", 795)->display($context);
// line 796
echo " ";
$this->loadTemplate("Slivki/popups/callback.html.twig", "Slivki/offers/details.html.twig", 796)->display($context);
// line 797
echo " ";
$this->loadTemplate("Slivki/offers/complaint.html.twig", "Slivki/offers/details.html.twig", 797)->display($context);
// line 798
echo " ";
$this->loadTemplate("Slivki/orderAsGift/foodForGift.html.twig", "Slivki/offers/details.html.twig", 798)->display($context);
// line 799
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 799) && (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.', 799, $this->source); })()), "getVideos", [], "method", false, false, false, 799)), 0)))) {
// line 800
echo " ";
$this->loadTemplate("Slivki/popups/details-story-popup.html.twig", "Slivki/offers/details.html.twig", 800)->display($context);
// line 801
echo " ";
}
// line 802
echo " ";
$this->loadTemplate("Slivki/popups/comment_media_block_popup.html.twig", "Slivki/offers/details.html.twig", 802)->display($context);
// line 803
echo " ";
$this->loadTemplate("Slivki/popups/statistics_popup.html.twig", "Slivki/offers/details.html.twig", 803)->display($context);
// line 804
echo " ";
$this->loadTemplate("Slivki/mobile/popup/buy_codes_avways_app.html.twig", "Slivki/offers/details.html.twig", 804)->display($context);
// line 805
echo " ";
$this->loadTemplate("Slivki/delivery/modal/details.html.twig", "Slivki/offers/details.html.twig", 805)->display(twig_array_merge($context, ["isOfferPage" => true]));
// line 806
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.', 806, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 806)) {
// line 807
echo " ";
$this->loadTemplate("Slivki/popups/step_buy_certificate.twig", "Slivki/offers/details.html.twig", 807)->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.', 807, $this->source); })())]));
// line 808
echo " ";
}
// line 809
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 809, $this->source); })()), "user", [], "any", false, false, false, 809)) {
// line 810
echo " ";
$this->loadTemplate("Slivki/popups/mail_offers.html.twig", "Slivki/offers/details.html.twig", 810)->display($context);
// line 811
echo " ";
$this->loadTemplate("Slivki/popups/rating_edit_popup.html.twig", "Slivki/offers/details.html.twig", 811)->display($context);
// line 812
echo " ";
$this->loadTemplate("Slivki/popups/popup_subscription_limited.html.twig", "Slivki/offers/details.html.twig", 812)->display($context);
// line 813
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.', 813, $this->source); })()))) {
// line 814
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.', 814, $this->source); })())))) {
// line 815
echo " ";
$context["codeCostInCurrency"] = null;
// line 816
echo " ";
}
// line 817
echo " ";
$this->loadTemplate("Slivki/popups/confirm_box.html.twig", "Slivki/offers/details.html.twig", 817)->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.', 817, $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.', 817, $this->source); })()), "getID", [], "method", false, false, false, 817), "codeCostInCurrency" => (isset($context["codeCostInCurrency"]) || array_key_exists("codeCostInCurrency", $context) ? $context["codeCostInCurrency"] : (function () { throw new RuntimeError('Variable "codeCostInCurrency" does not exist.', 817, $this->source); })())]));
// line 818
echo " ";
$this->loadTemplate("Slivki/popups/confirm_subscription_card_popup.html.twig", "Slivki/offers/details.html.twig", 818)->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.', 818, $this->source); })()), "user", [], "any", false, false, false, 818), "getActiveCreditCards", [], "method", false, false, false, 818)]));
// line 819
echo " ";
}
// line 820
echo "
";
// line 821
if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
// line 822
echo " ";
$this->loadTemplate("Slivki/popups/add_comment_popup.html.twig", "Slivki/offers/details.html.twig", 822)->display(twig_array_merge($context, ["id" => "addVoteBox"]));
// line 823
echo " ";
$this->loadTemplate("Slivki/popups/edit_comment_popup.html.twig", "Slivki/offers/details.html.twig", 823)->display(twig_array_merge($context, ["id" => "editVoteBox"]));
// line 824
echo " ";
$this->loadTemplate("Slivki/popups/comment_censor_message.html.twig", "Slivki/offers/details.html.twig", 824)->display(twig_array_merge($context, ["id" => "commentCensorMessage"]));
// line 825
echo " ";
}
// line 826
echo " ";
} else {
// line 827
echo " ";
if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
// line 828
echo " ";
$this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig", "Slivki/offers/details.html.twig", 828)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
// line 829
echo " ";
}
// line 830
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 833
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 834
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 846
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.', 846, $this->source); })()), "html", null, true);
echo "\"></script>
";
// line 847
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"/js/offer.js?v=";
// line 848
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.', 848, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/offer/offerDescriptionItems.js?v=";
// line 849
echo twig_escape_filter($this->env, (isset($context["offer_description_items_js_version"]) || array_key_exists("offer_description_items_js_version", $context) ? $context["offer_description_items_js_version"] : (function () { throw new RuntimeError('Variable "offer_description_items_js_version" does not exist.', 849, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/common-old.js?v=";
// line 850
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.', 850, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\">
";
// line 852
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.', 852, $this->source); })()))) {
// line 853
echo " var offerPreview = 1;
";
} else {
// line 855
echo " var offerPreview = 0;
";
}
// line 857
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.', 857, $this->source); })()), "request", [], "any", false, false, false, 857), "query", [], "any", false, false, false, 857), "has", [0 => "checkOrder"], "method", false, false, false, 857)) {
// line 858
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.', 858, $this->source); })()), "request", [], "any", false, false, false, 858), "get", [0 => "checkOrder"], "method", false, false, false, 858), "html", null, true);
echo ");
";
}
// line 860
echo " </script>
<script src=\"/js/offer-new.js?v=";
// line 861
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.', 861, $this->source); })()), "html", null, true);
echo "\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 863
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 864
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 872
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 874
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.', 874, $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 883
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.', 883, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/beauty/masters.js?v=";
// line 884
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.', 884, $this->source); })()), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 888
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 889
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 ( 2050 => 889, 2040 => 888, 2027 => 884, 2023 => 883, 2011 => 874, 2007 => 872, 1996 => 864, 1986 => 863, 1974 => 861, 1971 => 860, 1965 => 858, 1962 => 857, 1958 => 855, 1954 => 853, 1952 => 852, 1947 => 850, 1943 => 849, 1939 => 848, 1935 => 847, 1931 => 846, 1917 => 834, 1907 => 833, 1896 => 830, 1893 => 829, 1890 => 828, 1887 => 827, 1884 => 826, 1881 => 825, 1878 => 824, 1875 => 823, 1872 => 822, 1870 => 821, 1867 => 820, 1864 => 819, 1861 => 818, 1858 => 817, 1855 => 816, 1852 => 815, 1849 => 814, 1846 => 813, 1843 => 812, 1840 => 811, 1837 => 810, 1834 => 809, 1831 => 808, 1828 => 807, 1825 => 806, 1822 => 805, 1819 => 804, 1816 => 803, 1813 => 802, 1810 => 801, 1807 => 800, 1804 => 799, 1801 => 798, 1798 => 797, 1795 => 796, 1792 => 795, 1789 => 794, 1786 => 793, 1784 => 792, 1779 => 791, 1769 => 790, 1754 => 785, 1752 => 784, 1749 => 783, 1742 => 779, 1737 => 776, 1735 => 775, 1725 => 767, 1722 => 766, 1720 => 765, 1716 => 763, 1714 => 757, 1706 => 752, 1697 => 747, 1693 => 745, 1690 => 744, 1683 => 741, 1681 => 740, 1677 => 738, 1666 => 736, 1662 => 735, 1654 => 731, 1651 => 730, 1649 => 729, 1646 => 728, 1644 => 727, 1642 => 726, 1640 => 725, 1638 => 724, 1636 => 723, 1628 => 720, 1621 => 717, 1619 => 716, 1616 => 715, 1608 => 711, 1606 => 710, 1603 => 709, 1599 => 707, 1596 => 706, 1591 => 703, 1580 => 701, 1576 => 700, 1571 => 697, 1568 => 696, 1565 => 695, 1562 => 694, 1557 => 692, 1554 => 691, 1551 => 690, 1549 => 689, 1545 => 688, 1541 => 687, 1535 => 686, 1531 => 685, 1528 => 684, 1525 => 683, 1520 => 682, 1515 => 680, 1511 => 678, 1508 => 677, 1505 => 676, 1502 => 675, 1499 => 674, 1488 => 672, 1483 => 671, 1477 => 669, 1474 => 668, 1472 => 667, 1467 => 666, 1464 => 665, 1459 => 662, 1437 => 644, 1435 => 643, 1432 => 642, 1430 => 641, 1423 => 637, 1418 => 635, 1409 => 629, 1400 => 622, 1394 => 621, 1392 => 620, 1390 => 619, 1388 => 618, 1386 => 617, 1384 => 616, 1379 => 614, 1374 => 611, 1364 => 608, 1360 => 607, 1355 => 605, 1352 => 604, 1349 => 603, 1347 => 602, 1344 => 601, 1340 => 600, 1337 => 599, 1330 => 594, 1311 => 577, 1309 => 576, 1305 => 574, 1303 => 573, 1299 => 571, 1297 => 570, 1292 => 568, 1286 => 564, 1284 => 563, 1247 => 528, 1230 => 525, 1226 => 524, 1220 => 523, 1216 => 522, 1212 => 521, 1209 => 520, 1192 => 519, 1185 => 514, 1179 => 510, 1175 => 508, 1165 => 504, 1161 => 503, 1154 => 501, 1151 => 500, 1146 => 499, 1140 => 496, 1134 => 493, 1130 => 491, 1128 => 490, 1125 => 489, 1123 => 488, 1119 => 487, 1116 => 486, 1112 => 484, 1110 => 483, 1104 => 479, 1096 => 475, 1092 => 473, 1090 => 472, 1085 => 469, 1082 => 468, 1079 => 467, 1076 => 466, 1073 => 465, 1070 => 464, 1067 => 463, 1064 => 462, 1061 => 461, 1058 => 460, 1054 => 458, 1050 => 456, 1046 => 454, 1040 => 452, 1037 => 451, 1026 => 448, 1023 => 447, 1020 => 446, 1017 => 445, 1015 => 444, 1012 => 443, 1010 => 442, 1007 => 441, 1004 => 440, 1002 => 439, 999 => 438, 997 => 437, 993 => 435, 989 => 433, 985 => 431, 973 => 421, 961 => 411, 959 => 410, 956 => 409, 954 => 408, 953 => 407, 951 => 406, 940 => 397, 938 => 396, 934 => 394, 932 => 393, 931 => 392, 926 => 390, 920 => 386, 917 => 385, 913 => 383, 901 => 373, 889 => 363, 887 => 362, 884 => 361, 882 => 360, 881 => 359, 879 => 358, 875 => 356, 863 => 346, 851 => 336, 849 => 335, 846 => 334, 843 => 333, 828 => 320, 826 => 319, 824 => 318, 820 => 316, 818 => 315, 815 => 314, 812 => 313, 803 => 308, 800 => 307, 797 => 306, 791 => 303, 785 => 301, 783 => 300, 778 => 298, 773 => 296, 770 => 295, 768 => 294, 763 => 292, 757 => 290, 754 => 289, 751 => 288, 745 => 285, 739 => 283, 736 => 282, 733 => 281, 730 => 280, 727 => 279, 725 => 278, 721 => 276, 719 => 275, 715 => 273, 706 => 267, 702 => 265, 700 => 264, 697 => 263, 694 => 262, 688 => 258, 686 => 257, 680 => 254, 676 => 253, 662 => 242, 654 => 237, 647 => 232, 642 => 229, 635 => 227, 631 => 226, 627 => 225, 623 => 224, 618 => 222, 614 => 221, 609 => 220, 607 => 219, 600 => 214, 598 => 213, 590 => 210, 581 => 205, 571 => 200, 567 => 199, 556 => 191, 552 => 190, 548 => 189, 541 => 184, 538 => 183, 532 => 180, 521 => 175, 518 => 174, 501 => 159, 499 => 158, 493 => 154, 487 => 151, 476 => 145, 473 => 144, 470 => 143, 464 => 140, 461 => 139, 459 => 138, 455 => 136, 449 => 132, 447 => 131, 444 => 130, 438 => 127, 434 => 126, 431 => 125, 428 => 124, 421 => 122, 416 => 120, 411 => 119, 406 => 117, 403 => 116, 401 => 115, 398 => 114, 393 => 113, 390 => 112, 387 => 111, 385 => 110, 381 => 109, 378 => 108, 372 => 104, 370 => 103, 365 => 100, 359 => 97, 348 => 91, 345 => 90, 343 => 89, 335 => 86, 328 => 82, 323 => 79, 321 => 78, 313 => 73, 307 => 71, 302 => 69, 297 => 68, 294 => 67, 288 => 65, 286 => 64, 281 => 62, 277 => 61, 273 => 60, 267 => 58, 261 => 56, 258 => 55, 255 => 54, 252 => 53, 249 => 52, 239 => 51, 220 => 50, 209 => 43, 199 => 42, 189 => 40, 183 => 38, 175 => 34, 172 => 33, 169 => 32, 159 => 31, 144 => 23, 140 => 22, 136 => 21, 121 => 8, 111 => 7, 93 => 5, 73 => 3, 62 => 1, 60 => 30, 58 => 28, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{{ parent() }}{{ currentPage is defined and currentPage != 1 ? ' - Страница №' ~ currentPage }}{% endblock %}
{% block messenger %}{% endblock %}
{% block stylesheets %}
<link rel=\"stylesheet\" href=\"/css/statistics_modal.css?v=4\"/>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\"/>
<link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css\">
<link rel=\"stylesheet\" href=\"/admin/plugins/datetimepicker/css/bootstrap-datetimepicker.min.css\">
<link rel=\"stylesheet\" href=\"/admin/plugins/datatables/jquery.dataTables.min.css\"/>
<link rel=\"stylesheet\" href=\"/admin/plugins/colorpicker/bootstrap-colorpicker.min.css\"/>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.css\">
<link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\"/>
<link href=\"/css/bootstrap3.3.6.min.css\" type=\"text/css\" rel=\"stylesheet\">
<link rel=\"stylesheet\"
href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker-standalone.min.css\"
integrity=\"sha512-L0/PNISezIYAoqFXBGP9EJ4qLH8XF356+Lo92vzloQqk7HUpZ4FN1x1dUOnsUAUjHTSxXxeaD0HXfrANhtJOEA==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
{{ parent() }}
<link href=\"/css/offers.min.css?v={{ offers_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/foodForGift.css?v={{ food_for_gift_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css\"
integrity=\"sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
{% endblock %}
{% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
{% set subscribed = app.user and isSubscriber(app.user) %}
{% block ogimage %}
{% if detailMediaList|length > 0 %}
<meta property=\"og:image\"
content=\"{{ app.request.getSchemeAndHttpHost() }}{{ getImageURL(detailMediaList|first, 522, 322) }}\"/>
<meta property=\"og:image:width\" content=\"522\"/>
<meta property=\"og:image:height\" content=\"322\"/>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block header %}
{% embed 'header.html.twig' %}
{% block headerTopMenu %}
{{ parent() }}
{% endblock %}
{% endembed %}
{% endblock %}
{% block mainColumnClass %} one-column bg-white{% endblock %}
{% block main_content %}
{% set isPickupEnabled = offer.getOnlineOrderSettings().isPickupEnabled() is defined ? offer.getOnlineOrderSettings().isPickupEnabled() %}
{% set isDeliveryEnabled = offer.getOnlineOrderSettings().isDeliveryEnabled() is defined ? offer.getOnlineOrderSettings().isDeliveryEnabled() %}
{% set ratingWithCount = getEntityRatingWithCount(constant('Slivki\\\\Entity\\\\Category::OFFER_CATEGORY_ID'), offer.getID()) %}
{% if isPickupEnabled or isDeliveryEnabled %}
<input id=\"deliveryMethodEnabled\" type=\"hidden\" value=\"{{ isDeliveryEnabled == '' ? '2' : '1' }}\">
{% endif %}
<input id=\"offerID\" type=\"hidden\" value=\"{{ offer.getID() }}\">
<input id=\"isMedicalCenter\" type=\"hidden\"
value=\"{{ parentCategoryList and parentCategoryList[0].getID() == constant('Slivki\\\\Entity\\\\Category::MEDICAL_CENTER_CATEGORY_ID') }}\">
<input type=\"hidden\" id=\"stock-id\" value=\"{{ offer.getID() }}\">
<input type=\"hidden\" id=\"stock-link\" value=\"{{ app.request.getSchemeAndHttpHost() ~ app.request.getRequestUri() }}\">
{% if subscribed %}
<input id=\"allowedCodesCountBySubscription\" type=\"hidden\" value=\"{{ allowedCodesCountBySubscription }}\">
{% endif %}
{% if app.user %}
<input id=\"splitTotalCodesCountByUser\" type=\"hidden\" value=\"{{ app.user.getCodesCountByOffer(offer) }}\">
<input type=\"hidden\" id=\"customerID\" value=\"{{ app.user.getID() }}\"/>
{% endif %}
<input type=\"hidden\" id=\"codeCost\" value=\"{{ codeCost }}\">
<input type=\"hidden\" class=\"buyOrderAmount form-element\" type=\"text\"
value=\"{{ codeCost }}\"/>
<div class=\"content-wrapper\">
<div class=\"content-wrapper-offers\" itemscope itemtype=\"https://schema.org/Product\">
<div class=\"d-flex pb-2\" style=\"padding: 10px 34px;\">
<div class=\"col-6\">
{% include 'Slivki/breadcrumbs.html.twig' with { 'parentCategoryList': parentCategoryList, 'supplierCategoryData': offer.getSupplierCategoryData() } only %}
</div>
<div class=\"col-6\">
<p class=\"color-violet text-end cursor-pointer\" data-toggle=\"modal\"
data-target=\"{{ app.user ? '#complaintModal' : '.modal-auth' }}\">
Пожаловаться на акцию</p>
</div>
</div>
<h3 class=\"offers-tittle\" style=\"color: {{ offer.getTitleFontColor() }};\">{{ offer.getTitle()|raw }}</h3>
<div class=\"content-offers-top pb-0\">
<div class=\"left-top-block\">
{% if app.user() and not pastOffer %}
<div class=\"button-add-follow fovoutite-block\"
onclick=\"onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Добавить в <br> избранное\"
>
<img src=\"{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/offers/follow.svg' }}\">
</div>
{% endif %}
<div class=\"content-wrapper-carousel position-relative\" style=\"margin-bottom: 28px\">
<div class=\"stock-image\">
<div id=\"offerImageSlider\" class=\"m-0 swiper-container\">
{% if is_granted('ROLE_ADMIN') and not offer.isWithoutCodes() %}
<div id=\"statisticsButton\" data-toggle=\"modal\" data-target=\"#statisticOffersPopup\">
<img width=\"37\" height=\"37\" src=\"/images/statistics.png\"/>
</div>
{% endif %}
<div class=\"swiper-wrapper\"
data-pixel={{ offer.getID() == constant('Slivki\\\\Entity\\\\Offer::BETERA_OFFER_ID') ? 'https://amc.yandex.ru/show?cmn_id=26372&plt_id=194140&crv_id=464042&evt_t=render&ad_type=banner&rnd=%system.random%' }}>
{% set medias = detailMediaList %}
{% set mediaCount = medias|length %}
{% if mediaCount > 1 %}
{% for media in medias %}
<div class=\"swiper-slide\">
{% if media.isYoutube() %}
<input class=\"js-src-video\" type=\"hidden\"
value=\"https://www.youtube.com/embed/{{ media.getName() }}\">
{% else %}
<img class=\"img-fluid lazyload\" alt=\"{{ media.getDescription() }}\"
src=\"{{ getImageURL(media, 1044, 644) }}\"/>
{% endif %}
</div>
{% endfor %}
{% elseif mediaCount == 1 %}
<div>
<img class=\"img-fluid lazyload\" alt=\"{{ medias[0].getDescription() }}\"
src=\"{{ getImageURL(medias[0], 1044, 644) }}\"/>
</div>
{% endif %}
</div>
{% if mediaCount > 1 %}
<div class=\"swiper-pagination mt-2\"></div>
<div class=\"swiper-button-next\"></div>
<div class=\"swiper-button-prev\"></div>
{% endif %}
</div>
</div>
{% if not offer.isWithoutCodes() %}
<div class=\"discount-block\">
{{ offer.getDiscount() }}
</div>
{% endif %}
{% if offer.isWithoutCodes() %}
<div class=\"button-add-follow button-add-follow-teaser fovoutite-block\"
onclick=\"onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Добавить в <br> избранное\"
>
<img src=\"{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/offers/follow.svg' }}\">
</div>
{% endif %}
</div>
</div>
<div class=\"right-top-block\">
<div class=\"offers-description\">
{% if pastOffer or offer.getFreeCodesCount() == 0 %}
<div class=\"past-offer mt-5 pt-5\">
<i class=\"slivki-icon-minus-circled\"></i>
<p>Упс, акция завершена!</p>
<a href=\"#offersConditions\" class=\"buttons-link-offers\">
Условия
</a>
<a href=\"#conditionAddress\" class=\"buttons-link-offers\">
Адрес, телефоны
</a>
<a href=\"#offersReview\" class=\"buttons-link-offers\">
Отзывы
</a>
</div>
{% else %}
{% if not offer.isInFreeCodesCategory() and not offer.isWithoutCodes() %}
<div class=\"d-flex statistic-block {% if is_granted('ROLE_ADMIN') %}justify-content-between{% endif %} col px-2 my-0\">
<p class=\"text-dark-violet font-size-0750 text-end w-auto\"
data-toggle=\"tooltip\"
data-html=\"true\" data-placement=\"top\"
data-original-title=\"Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней\">
Конверсия {{ getOfferConversion(offer.getID()) }}%</p>
</div>
{% endif %}
{% if not offer.isWithoutCodes() %}
<div class=\"d-flex offers-description--item\">
<div class=\"col\">
<p class=\"color-dark-gray px-0 mb-0\">Взято всего:</p>
</div>
<div class=\"col font-bold text-end\">
<p> {{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }}
{{ ['промокод', 'промокода', 'промокодов']|plural(usedCodesCount) }}
из {{ allCodesCount }}</p>
</div>
</div>
<div class=\"d-flex px-2 my-0\">
<div class=\"col\">
<p class=\"color-dark-gray mb-0\">Взято сутки/месяц:</p>
</div>
<div class=\"col font-bold text-end pl-2\">
<p>{{ todayPurchaseCount }}
/{{ getOfferMonthlyPurchaseCount(offer.getID(), 30) > 0 ? getOfferMonthlyPurchaseCount(offer.getID(), 30) : 0 }} {{ ['промокод', 'промокода', 'промокодов']|plural(todayPurchaseCount) }}
</p>
</div>
</div>
{% endif %}
<div class=\"d-flex {{ offer.isWithoutCodes() ? 'pl-2' : 'offers-description--item' }}\">
<div class=\"col\">
<p class=\"color-dark-gray\">Просмотров сутки/месяц:</p>
</div>
<div class=\"col font-bold text-end\">
<p>{{ todayVisitCount }}/{{ visitCount }}</p>
</div>
</div>
{% if not offer.isWithoutCodes() %}
<div class=\"d-flex px-2 my-0\">
<div class=\"col\">
<p class=\"color-dark-gray\">До завершения: </p>
</div>
<div class=\"col text-end\">
{% if freeCodesCount > 0 %}
<input type=\"hidden\" id=\"daysLeft\" value=\"{{ daysLeft }} \"/>
<input type=\"hidden\" id=\"hoursLeft\" value=\"{{ hoursLeft }} \"/>
<input type=\"hidden\" id=\"minutesLeft\" value=\"{{ minutesLeft }} \"/>
<input type=\"hidden\" id=\"secondsLeft\"
value=\"{{ offer.getActiveTill().diff(date()).format('%s') }}\"/>
<span id=\"days\">{{ daysLeft }}
 </span>{{ ['день', 'дня', 'дней']|plural(daysLeft) }},
<span id=\"hours\">{{ hoursLeft }} </span>час{{ ['', 'а', 'ов']|plural(hoursLeft) }}
{% endif %}
</div>
</div>
{% endif %}
<div class=\"d-flex offers-description--item js-to-review-block\">
<div class=\"col\">
<p class=\"color-dark-gray\">Отзывы/оценка:</p>
</div>
<div class=\"col font-bold text-end\">
<p>{{ commentsAmount }} /
<r data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Рейтинг компании <br> за 90 дней\">
<span class=\"yellow-span\">★</span>{{ offer.getRating() }}</r>
</p>
</div>
</div>
<div class=\"d-flex offer-price-block\">
<div class=\"col px-2\">
<p class=\"color-dark-gray\">Стоимость:</p>
</div>
<div class=\"col text-end\">
<span id=\"offerRegularPrice\"
class=\"regular-price\">{{ offer.getRegularPrice() }}</span>
<span class=\"discount-price\"> {{ offer.getOfferPrice()|replace({'(': '<span id=\"details-offer-price\">(', ')': ')</span>'})|raw }}</span>
</div>
</div>
{% if offer.isWithoutCodes() %}
<a href=\"/moya_akciya\" target=\"_blank\">
<img class=\"mt-2\" src=\"/images/платидари.png\" style=\"border-radius: 8px\"/>
</a>
{% endif %}
{% endif %}
</div>
{% if offer.isTireOnlineOrderAllowedOnSite() and offer.isWithoutCodes() %}
<div class=\"buttons-wrapper-offers\">
<a id=\"deliveryBtn\" href=\"{{ offer.getOnlineRegistrationLink() }}\" style=\"margin: 14px 0;\"
class=\"online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Онлайн-запись
</a>
</div>
{% endif %}
{% if offer.getFreeCodesCount() > 0 and not offer.isWithoutCodes() %}
<div class=\"d-flex\" style=\"min-height: 90px;align-items: end;\">
<div class=\"buttons-wrapper-offers\">
{% if hasDelivery is defined %}
{% if not offer.isBuyCodeDisable() %}
{% include 'Slivki/offers/buy_button.html.twig' %}
{% endif %}
{% if offer.isFoodOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"{{ getLinkFoodOnlineOrder(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Заказать онлайн {{ 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>
</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/anna/templates/Slivki/offers/details.html.twig");
}
}
/* Slivki/offers/details.html.twig */
class __TwigTemplate_671d188d41c559f3e4b20d04dd0901420d5734d6d8780fb2ae46a6d677382c91___1266864445 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 ( 3102 => 45, 3092 => 44, 3069 => 43, 2050 => 889, 2040 => 888, 2027 => 884, 2023 => 883, 2011 => 874, 2007 => 872, 1996 => 864, 1986 => 863, 1974 => 861, 1971 => 860, 1965 => 858, 1962 => 857, 1958 => 855, 1954 => 853, 1952 => 852, 1947 => 850, 1943 => 849, 1939 => 848, 1935 => 847, 1931 => 846, 1917 => 834, 1907 => 833, 1896 => 830, 1893 => 829, 1890 => 828, 1887 => 827, 1884 => 826, 1881 => 825, 1878 => 824, 1875 => 823, 1872 => 822, 1870 => 821, 1867 => 820, 1864 => 819, 1861 => 818, 1858 => 817, 1855 => 816, 1852 => 815, 1849 => 814, 1846 => 813, 1843 => 812, 1840 => 811, 1837 => 810, 1834 => 809, 1831 => 808, 1828 => 807, 1825 => 806, 1822 => 805, 1819 => 804, 1816 => 803, 1813 => 802, 1810 => 801, 1807 => 800, 1804 => 799, 1801 => 798, 1798 => 797, 1795 => 796, 1792 => 795, 1789 => 794, 1786 => 793, 1784 => 792, 1779 => 791, 1769 => 790, 1754 => 785, 1752 => 784, 1749 => 783, 1742 => 779, 1737 => 776, 1735 => 775, 1725 => 767, 1722 => 766, 1720 => 765, 1716 => 763, 1714 => 757, 1706 => 752, 1697 => 747, 1693 => 745, 1690 => 744, 1683 => 741, 1681 => 740, 1677 => 738, 1666 => 736, 1662 => 735, 1654 => 731, 1651 => 730, 1649 => 729, 1646 => 728, 1644 => 727, 1642 => 726, 1640 => 725, 1638 => 724, 1636 => 723, 1628 => 720, 1621 => 717, 1619 => 716, 1616 => 715, 1608 => 711, 1606 => 710, 1603 => 709, 1599 => 707, 1596 => 706, 1591 => 703, 1580 => 701, 1576 => 700, 1571 => 697, 1568 => 696, 1565 => 695, 1562 => 694, 1557 => 692, 1554 => 691, 1551 => 690, 1549 => 689, 1545 => 688, 1541 => 687, 1535 => 686, 1531 => 685, 1528 => 684, 1525 => 683, 1520 => 682, 1515 => 680, 1511 => 678, 1508 => 677, 1505 => 676, 1502 => 675, 1499 => 674, 1488 => 672, 1483 => 671, 1477 => 669, 1474 => 668, 1472 => 667, 1467 => 666, 1464 => 665, 1459 => 662, 1437 => 644, 1435 => 643, 1432 => 642, 1430 => 641, 1423 => 637, 1418 => 635, 1409 => 629, 1400 => 622, 1394 => 621, 1392 => 620, 1390 => 619, 1388 => 618, 1386 => 617, 1384 => 616, 1379 => 614, 1374 => 611, 1364 => 608, 1360 => 607, 1355 => 605, 1352 => 604, 1349 => 603, 1347 => 602, 1344 => 601, 1340 => 600, 1337 => 599, 1330 => 594, 1311 => 577, 1309 => 576, 1305 => 574, 1303 => 573, 1299 => 571, 1297 => 570, 1292 => 568, 1286 => 564, 1284 => 563, 1247 => 528, 1230 => 525, 1226 => 524, 1220 => 523, 1216 => 522, 1212 => 521, 1209 => 520, 1192 => 519, 1185 => 514, 1179 => 510, 1175 => 508, 1165 => 504, 1161 => 503, 1154 => 501, 1151 => 500, 1146 => 499, 1140 => 496, 1134 => 493, 1130 => 491, 1128 => 490, 1125 => 489, 1123 => 488, 1119 => 487, 1116 => 486, 1112 => 484, 1110 => 483, 1104 => 479, 1096 => 475, 1092 => 473, 1090 => 472, 1085 => 469, 1082 => 468, 1079 => 467, 1076 => 466, 1073 => 465, 1070 => 464, 1067 => 463, 1064 => 462, 1061 => 461, 1058 => 460, 1054 => 458, 1050 => 456, 1046 => 454, 1040 => 452, 1037 => 451, 1026 => 448, 1023 => 447, 1020 => 446, 1017 => 445, 1015 => 444, 1012 => 443, 1010 => 442, 1007 => 441, 1004 => 440, 1002 => 439, 999 => 438, 997 => 437, 993 => 435, 989 => 433, 985 => 431, 973 => 421, 961 => 411, 959 => 410, 956 => 409, 954 => 408, 953 => 407, 951 => 406, 940 => 397, 938 => 396, 934 => 394, 932 => 393, 931 => 392, 926 => 390, 920 => 386, 917 => 385, 913 => 383, 901 => 373, 889 => 363, 887 => 362, 884 => 361, 882 => 360, 881 => 359, 879 => 358, 875 => 356, 863 => 346, 851 => 336, 849 => 335, 846 => 334, 843 => 333, 828 => 320, 826 => 319, 824 => 318, 820 => 316, 818 => 315, 815 => 314, 812 => 313, 803 => 308, 800 => 307, 797 => 306, 791 => 303, 785 => 301, 783 => 300, 778 => 298, 773 => 296, 770 => 295, 768 => 294, 763 => 292, 757 => 290, 754 => 289, 751 => 288, 745 => 285, 739 => 283, 736 => 282, 733 => 281, 730 => 280, 727 => 279, 725 => 278, 721 => 276, 719 => 275, 715 => 273, 706 => 267, 702 => 265, 700 => 264, 697 => 263, 694 => 262, 688 => 258, 686 => 257, 680 => 254, 676 => 253, 662 => 242, 654 => 237, 647 => 232, 642 => 229, 635 => 227, 631 => 226, 627 => 225, 623 => 224, 618 => 222, 614 => 221, 609 => 220, 607 => 219, 600 => 214, 598 => 213, 590 => 210, 581 => 205, 571 => 200, 567 => 199, 556 => 191, 552 => 190, 548 => 189, 541 => 184, 538 => 183, 532 => 180, 521 => 175, 518 => 174, 501 => 159, 499 => 158, 493 => 154, 487 => 151, 476 => 145, 473 => 144, 470 => 143, 464 => 140, 461 => 139, 459 => 138, 455 => 136, 449 => 132, 447 => 131, 444 => 130, 438 => 127, 434 => 126, 431 => 125, 428 => 124, 421 => 122, 416 => 120, 411 => 119, 406 => 117, 403 => 116, 401 => 115, 398 => 114, 393 => 113, 390 => 112, 387 => 111, 385 => 110, 381 => 109, 378 => 108, 372 => 104, 370 => 103, 365 => 100, 359 => 97, 348 => 91, 345 => 90, 343 => 89, 335 => 86, 328 => 82, 323 => 79, 321 => 78, 313 => 73, 307 => 71, 302 => 69, 297 => 68, 294 => 67, 288 => 65, 286 => 64, 281 => 62, 277 => 61, 273 => 60, 267 => 58, 261 => 56, 258 => 55, 255 => 54, 252 => 53, 249 => 52, 239 => 51, 220 => 50, 209 => 43, 199 => 42, 189 => 40, 183 => 38, 175 => 34, 172 => 33, 169 => 32, 159 => 31, 144 => 23, 140 => 22, 136 => 21, 121 => 8, 111 => 7, 93 => 5, 73 => 3, 62 => 1, 60 => 30, 58 => 28, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{{ parent() }}{{ currentPage is defined and currentPage != 1 ? ' - Страница №' ~ currentPage }}{% endblock %}
{% block messenger %}{% endblock %}
{% block stylesheets %}
<link rel=\"stylesheet\" href=\"/css/statistics_modal.css?v=4\"/>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css\"/>
<link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css\">
<link rel=\"stylesheet\" href=\"/admin/plugins/datetimepicker/css/bootstrap-datetimepicker.min.css\">
<link rel=\"stylesheet\" href=\"/admin/plugins/datatables/jquery.dataTables.min.css\"/>
<link rel=\"stylesheet\" href=\"/admin/plugins/colorpicker/bootstrap-colorpicker.min.css\"/>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.css\">
<link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\"/>
<link href=\"/css/bootstrap3.3.6.min.css\" type=\"text/css\" rel=\"stylesheet\">
<link rel=\"stylesheet\"
href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker-standalone.min.css\"
integrity=\"sha512-L0/PNISezIYAoqFXBGP9EJ4qLH8XF356+Lo92vzloQqk7HUpZ4FN1x1dUOnsUAUjHTSxXxeaD0HXfrANhtJOEA==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
{{ parent() }}
<link href=\"/css/offers.min.css?v={{ offers_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/foodForGift.css?v={{ food_for_gift_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css\"
integrity=\"sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
{% endblock %}
{% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
{% set subscribed = app.user and isSubscriber(app.user) %}
{% block ogimage %}
{% if detailMediaList|length > 0 %}
<meta property=\"og:image\"
content=\"{{ app.request.getSchemeAndHttpHost() }}{{ getImageURL(detailMediaList|first, 522, 322) }}\"/>
<meta property=\"og:image:width\" content=\"522\"/>
<meta property=\"og:image:height\" content=\"322\"/>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block header %}
{% embed 'header.html.twig' %}
{% block headerTopMenu %}
{{ parent() }}
{% endblock %}
{% endembed %}
{% endblock %}
{% block mainColumnClass %} one-column bg-white{% endblock %}
{% block main_content %}
{% set isPickupEnabled = offer.getOnlineOrderSettings().isPickupEnabled() is defined ? offer.getOnlineOrderSettings().isPickupEnabled() %}
{% set isDeliveryEnabled = offer.getOnlineOrderSettings().isDeliveryEnabled() is defined ? offer.getOnlineOrderSettings().isDeliveryEnabled() %}
{% set ratingWithCount = getEntityRatingWithCount(constant('Slivki\\\\Entity\\\\Category::OFFER_CATEGORY_ID'), offer.getID()) %}
{% if isPickupEnabled or isDeliveryEnabled %}
<input id=\"deliveryMethodEnabled\" type=\"hidden\" value=\"{{ isDeliveryEnabled == '' ? '2' : '1' }}\">
{% endif %}
<input id=\"offerID\" type=\"hidden\" value=\"{{ offer.getID() }}\">
<input id=\"isMedicalCenter\" type=\"hidden\"
value=\"{{ parentCategoryList and parentCategoryList[0].getID() == constant('Slivki\\\\Entity\\\\Category::MEDICAL_CENTER_CATEGORY_ID') }}\">
<input type=\"hidden\" id=\"stock-id\" value=\"{{ offer.getID() }}\">
<input type=\"hidden\" id=\"stock-link\" value=\"{{ app.request.getSchemeAndHttpHost() ~ app.request.getRequestUri() }}\">
{% if subscribed %}
<input id=\"allowedCodesCountBySubscription\" type=\"hidden\" value=\"{{ allowedCodesCountBySubscription }}\">
{% endif %}
{% if app.user %}
<input id=\"splitTotalCodesCountByUser\" type=\"hidden\" value=\"{{ app.user.getCodesCountByOffer(offer) }}\">
<input type=\"hidden\" id=\"customerID\" value=\"{{ app.user.getID() }}\"/>
{% endif %}
<input type=\"hidden\" id=\"codeCost\" value=\"{{ codeCost }}\">
<input type=\"hidden\" class=\"buyOrderAmount form-element\" type=\"text\"
value=\"{{ codeCost }}\"/>
<div class=\"content-wrapper\">
<div class=\"content-wrapper-offers\" itemscope itemtype=\"https://schema.org/Product\">
<div class=\"d-flex pb-2\" style=\"padding: 10px 34px;\">
<div class=\"col-6\">
{% include 'Slivki/breadcrumbs.html.twig' with { 'parentCategoryList': parentCategoryList, 'supplierCategoryData': offer.getSupplierCategoryData() } only %}
</div>
<div class=\"col-6\">
<p class=\"color-violet text-end cursor-pointer\" data-toggle=\"modal\"
data-target=\"{{ app.user ? '#complaintModal' : '.modal-auth' }}\">
Пожаловаться на акцию</p>
</div>
</div>
<h3 class=\"offers-tittle\" style=\"color: {{ offer.getTitleFontColor() }};\">{{ offer.getTitle()|raw }}</h3>
<div class=\"content-offers-top pb-0\">
<div class=\"left-top-block\">
{% if app.user() and not pastOffer %}
<div class=\"button-add-follow fovoutite-block\"
onclick=\"onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Добавить в <br> избранное\"
>
<img src=\"{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/offers/follow.svg' }}\">
</div>
{% endif %}
<div class=\"content-wrapper-carousel position-relative\" style=\"margin-bottom: 28px\">
<div class=\"stock-image\">
<div id=\"offerImageSlider\" class=\"m-0 swiper-container\">
{% if is_granted('ROLE_ADMIN') and not offer.isWithoutCodes() %}
<div id=\"statisticsButton\" data-toggle=\"modal\" data-target=\"#statisticOffersPopup\">
<img width=\"37\" height=\"37\" src=\"/images/statistics.png\"/>
</div>
{% endif %}
<div class=\"swiper-wrapper\"
data-pixel={{ offer.getID() == constant('Slivki\\\\Entity\\\\Offer::BETERA_OFFER_ID') ? 'https://amc.yandex.ru/show?cmn_id=26372&plt_id=194140&crv_id=464042&evt_t=render&ad_type=banner&rnd=%system.random%' }}>
{% set medias = detailMediaList %}
{% set mediaCount = medias|length %}
{% if mediaCount > 1 %}
{% for media in medias %}
<div class=\"swiper-slide\">
{% if media.isYoutube() %}
<input class=\"js-src-video\" type=\"hidden\"
value=\"https://www.youtube.com/embed/{{ media.getName() }}\">
{% else %}
<img class=\"img-fluid lazyload\" alt=\"{{ media.getDescription() }}\"
src=\"{{ getImageURL(media, 1044, 644) }}\"/>
{% endif %}
</div>
{% endfor %}
{% elseif mediaCount == 1 %}
<div>
<img class=\"img-fluid lazyload\" alt=\"{{ medias[0].getDescription() }}\"
src=\"{{ getImageURL(medias[0], 1044, 644) }}\"/>
</div>
{% endif %}
</div>
{% if mediaCount > 1 %}
<div class=\"swiper-pagination mt-2\"></div>
<div class=\"swiper-button-next\"></div>
<div class=\"swiper-button-prev\"></div>
{% endif %}
</div>
</div>
{% if not offer.isWithoutCodes() %}
<div class=\"discount-block\">
{{ offer.getDiscount() }}
</div>
{% endif %}
{% if offer.isWithoutCodes() %}
<div class=\"button-add-follow button-add-follow-teaser fovoutite-block\"
onclick=\"onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Добавить в <br> избранное\"
>
<img src=\"{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/offers/follow.svg' }}\">
</div>
{% endif %}
</div>
</div>
<div class=\"right-top-block\">
<div class=\"offers-description\">
{% if pastOffer or offer.getFreeCodesCount() == 0 %}
<div class=\"past-offer mt-5 pt-5\">
<i class=\"slivki-icon-minus-circled\"></i>
<p>Упс, акция завершена!</p>
<a href=\"#offersConditions\" class=\"buttons-link-offers\">
Условия
</a>
<a href=\"#conditionAddress\" class=\"buttons-link-offers\">
Адрес, телефоны
</a>
<a href=\"#offersReview\" class=\"buttons-link-offers\">
Отзывы
</a>
</div>
{% else %}
{% if not offer.isInFreeCodesCategory() and not offer.isWithoutCodes() %}
<div class=\"d-flex statistic-block {% if is_granted('ROLE_ADMIN') %}justify-content-between{% endif %} col px-2 my-0\">
<p class=\"text-dark-violet font-size-0750 text-end w-auto\"
data-toggle=\"tooltip\"
data-html=\"true\" data-placement=\"top\"
data-original-title=\"Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней\">
Конверсия {{ getOfferConversion(offer.getID()) }}%</p>
</div>
{% endif %}
{% if not offer.isWithoutCodes() %}
<div class=\"d-flex offers-description--item\">
<div class=\"col\">
<p class=\"color-dark-gray px-0 mb-0\">Взято всего:</p>
</div>
<div class=\"col font-bold text-end\">
<p> {{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }}
{{ ['промокод', 'промокода', 'промокодов']|plural(usedCodesCount) }}
из {{ allCodesCount }}</p>
</div>
</div>
<div class=\"d-flex px-2 my-0\">
<div class=\"col\">
<p class=\"color-dark-gray mb-0\">Взято сутки/месяц:</p>
</div>
<div class=\"col font-bold text-end pl-2\">
<p>{{ todayPurchaseCount }}
/{{ getOfferMonthlyPurchaseCount(offer.getID(), 30) > 0 ? getOfferMonthlyPurchaseCount(offer.getID(), 30) : 0 }} {{ ['промокод', 'промокода', 'промокодов']|plural(todayPurchaseCount) }}
</p>
</div>
</div>
{% endif %}
<div class=\"d-flex {{ offer.isWithoutCodes() ? 'pl-2' : 'offers-description--item' }}\">
<div class=\"col\">
<p class=\"color-dark-gray\">Просмотров сутки/месяц:</p>
</div>
<div class=\"col font-bold text-end\">
<p>{{ todayVisitCount }}/{{ visitCount }}</p>
</div>
</div>
{% if not offer.isWithoutCodes() %}
<div class=\"d-flex px-2 my-0\">
<div class=\"col\">
<p class=\"color-dark-gray\">До завершения: </p>
</div>
<div class=\"col text-end\">
{% if freeCodesCount > 0 %}
<input type=\"hidden\" id=\"daysLeft\" value=\"{{ daysLeft }} \"/>
<input type=\"hidden\" id=\"hoursLeft\" value=\"{{ hoursLeft }} \"/>
<input type=\"hidden\" id=\"minutesLeft\" value=\"{{ minutesLeft }} \"/>
<input type=\"hidden\" id=\"secondsLeft\"
value=\"{{ offer.getActiveTill().diff(date()).format('%s') }}\"/>
<span id=\"days\">{{ daysLeft }}
 </span>{{ ['день', 'дня', 'дней']|plural(daysLeft) }},
<span id=\"hours\">{{ hoursLeft }} </span>час{{ ['', 'а', 'ов']|plural(hoursLeft) }}
{% endif %}
</div>
</div>
{% endif %}
<div class=\"d-flex offers-description--item js-to-review-block\">
<div class=\"col\">
<p class=\"color-dark-gray\">Отзывы/оценка:</p>
</div>
<div class=\"col font-bold text-end\">
<p>{{ commentsAmount }} /
<r data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Рейтинг компании <br> за 90 дней\">
<span class=\"yellow-span\">★</span>{{ offer.getRating() }}</r>
</p>
</div>
</div>
<div class=\"d-flex offer-price-block\">
<div class=\"col px-2\">
<p class=\"color-dark-gray\">Стоимость:</p>
</div>
<div class=\"col text-end\">
<span id=\"offerRegularPrice\"
class=\"regular-price\">{{ offer.getRegularPrice() }}</span>
<span class=\"discount-price\"> {{ offer.getOfferPrice()|replace({'(': '<span id=\"details-offer-price\">(', ')': ')</span>'})|raw }}</span>
</div>
</div>
{% if offer.isWithoutCodes() %}
<a href=\"/moya_akciya\" target=\"_blank\">
<img class=\"mt-2\" src=\"/images/платидари.png\" style=\"border-radius: 8px\"/>
</a>
{% endif %}
{% endif %}
</div>
{% if offer.isTireOnlineOrderAllowedOnSite() and offer.isWithoutCodes() %}
<div class=\"buttons-wrapper-offers\">
<a id=\"deliveryBtn\" href=\"{{ offer.getOnlineRegistrationLink() }}\" style=\"margin: 14px 0;\"
class=\"online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Онлайн-запись
</a>
</div>
{% endif %}
{% if offer.getFreeCodesCount() > 0 and not offer.isWithoutCodes() %}
<div class=\"d-flex\" style=\"min-height: 90px;align-items: end;\">
<div class=\"buttons-wrapper-offers\">
{% if hasDelivery is defined %}
{% if not offer.isBuyCodeDisable() %}
{% include 'Slivki/offers/buy_button.html.twig' %}
{% endif %}
{% if offer.isFoodOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"{{ getLinkFoodOnlineOrder(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Заказать онлайн {{ 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>
</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/anna/templates/Slivki/offers/details.html.twig");
}
}