<?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 25
$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.', 25, $this->source); })()), "user", [], "any", false, false, false, 25)) ? (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.', 25, $this->source); })()), "user", [], "any", false, false, false, 25), "isOfferFavourite", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 25, $this->source); })())], "method", false, false, false, 25)) : (false));
// line 27
$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.', 27, $this->source); })()), "user", [], "any", false, false, false, 27) && $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.', 27, $this->source); })()), "user", [], "any", false, false, false, 27)));
// 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=\"//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.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 18
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link href=\"/css/offers.css?v=";
// line 19
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.', 19, $this->source); })()), "html", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/foodForGift.css?v=";
// line 20
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.', 20, $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 28
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 29
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.', 29, $this->source); })())), 0))) {
// line 30
echo " <meta property=\"og:image\"
content=\"";
// line 31
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.', 31, $this->source); })()), "request", [], "any", false, false, false, 31), "getSchemeAndHttpHost", [], "method", false, false, false, 31), "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.', 31, $this->source); })())), 522, 322), "html", null, true);
echo "\"/>
<meta property=\"og:image:width\" content=\"522\"/>
<meta property=\"og:image:height\" content=\"322\"/>
";
} else {
// line 35
echo " ";
$this->displayParentBlock("ogimage", $context, $blocks);
echo "
";
}
// line 37
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 39
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 40
echo " ";
$this->loadTemplate("Slivki/offers/details.html.twig", "Slivki/offers/details.html.twig", 40, "931492230")->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 47
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 48
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 49
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, 49), "isPickupEnabled", [], "method", true, true, false, 49)) ? (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.', 49, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 49), "isPickupEnabled", [], "method", false, false, false, 49)) : (""));
// line 50
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, 50), "isDeliveryEnabled", [], "method", true, true, false, 50)) ? (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.', 50, $this->source); })()), "getOnlineOrderSettings", [], "method", false, false, false, 50), "isDeliveryEnabled", [], "method", false, false, false, 50)) : (""));
// line 51
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.', 51, $this->source); })()), "getID", [], "method", false, false, false, 51));
// line 52
echo " ";
if (((isset($context["isPickupEnabled"]) || array_key_exists("isPickupEnabled", $context) ? $context["isPickupEnabled"] : (function () { throw new RuntimeError('Variable "isPickupEnabled" does not exist.', 52, $this->source); })()) || (isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled", $context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.', 52, $this->source); })()))) {
// line 53
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.', 53, $this->source); })()), ""))) ? ("2") : ("1"));
echo "\">
";
}
// line 55
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.', 55, $this->source); })()), "getID", [], "method", false, false, false, 55), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"stock-id\" value=\"";
// line 56
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.', 56, $this->source); })()), "getID", [], "method", false, false, false, 56), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"stock-link\" value=\"";
// line 57
echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 57, $this->source); })()), "request", [], "any", false, false, false, 57), "getSchemeAndHttpHost", [], "method", false, false, false, 57) . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 57, $this->source); })()), "request", [], "any", false, false, false, 57), "getRequestUri", [], "method", false, false, false, 57)), "html", null, true);
echo "\">
";
// line 59
if ((isset($context["subscribed"]) || array_key_exists("subscribed", $context) ? $context["subscribed"] : (function () { throw new RuntimeError('Variable "subscribed" does not exist.', 59, $this->source); })())) {
// line 60
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.', 60, $this->source); })()), "html", null, true);
echo "\">
";
}
// line 62
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.', 62, $this->source); })()), "user", [], "any", false, false, false, 62)) {
// line 63
echo " <input type=\"hidden\" id=\"customerID\" 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.', 63, $this->source); })()), "user", [], "any", false, false, false, 63), "getID", [], "method", false, false, false, 63), "html", null, true);
echo "\"/>
";
}
// line 65
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.', 65, $this->source); })()), "html", null, true);
echo "\">
<input type=\"hidden\" class=\"buyOrderAmount form-element\" type=\"text\"
value=\"";
// line 67
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.', 67, $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 72
$this->loadTemplate("Slivki/breadcrumbs.html.twig", "Slivki/offers/details.html.twig", 72)->display(twig_to_array(["parentCategoryList" => (isset($context["parentCategoryList"]) || array_key_exists("parentCategoryList", $context) ? $context["parentCategoryList"] : (function () { throw new RuntimeError('Variable "parentCategoryList" does not exist.', 72, $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.', 72, $this->source); })()), "getSupplierCategoryData", [], "method", false, false, false, 72)]));
// line 73
echo " </div>
</div>
<h3 class=\"offers-tittle\" style=\"color: ";
// line 75
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.', 75, $this->source); })()), "getTitleFontColor", [], "method", false, false, false, 75), "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.', 75, $this->source); })()), "getTitle", [], "method", false, false, false, 75);
echo "</h3>
<div class=\"content-offers-top\">
<div class=\"left-top-block\">
<div class=\"content-wrapper-carousel position-relative\" style=\"margin-bottom: 28px\">
<div class=\"stock-image\">
<div id=\"carousel-example-generic\" class=\"carousel slide\" data-ride=\"carousel\" data-interval=\"3000\">
<div class=\"background-opacity\"></div>
";
// line 82
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.', 82, $this->source); })())), 1))) {
// line 83
echo " <ol class=\"carousel-indicators\">
";
// line 84
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["detailMediaList"]) || array_key_exists("detailMediaList", $context) ? $context["detailMediaList"] : (function () { throw new RuntimeError('Variable "detailMediaList" does not exist.', 84, $this->source); })()));
$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["media"]) {
// line 85
echo " ";
$context["active"] = "";
// line 86
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 86), 0))) {
// line 87
echo " ";
$context["active"] = "active";
// line 88
echo " ";
}
// line 89
echo " <li data-target=\"#carousel-example-generic\"
data-slide-to=\"";
// line 90
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 90), "html", null, true);
echo "\" class=\"";
echo twig_escape_filter($this->env, (isset($context["active"]) || array_key_exists("active", $context) ? $context["active"] : (function () { throw new RuntimeError('Variable "active" does not exist.', 90, $this->source); })()), "html", null, true);
echo "\"></li>
";
++$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['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 92
echo " </ol>
";
}
// line 94
echo " <div class=\"carousel-inner\" role=\"listbox\">
";
// line 95
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["detailMediaList"]) || array_key_exists("detailMediaList", $context) ? $context["detailMediaList"] : (function () { throw new RuntimeError('Variable "detailMediaList" does not exist.', 95, $this->source); })()));
$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["media"]) {
// line 96
echo " ";
$context["active"] = "";
// line 97
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 97), 0))) {
// line 98
echo " ";
$context["active"] = "active";
// line 99
echo " ";
}
// line 100
echo " <div class=\"item ";
echo twig_escape_filter($this->env, (isset($context["active"]) || array_key_exists("active", $context) ? $context["active"] : (function () { throw new RuntimeError('Variable "active" does not exist.', 100, $this->source); })()), "html", null, true);
echo "\">
<img itemprop=\"image\" class=\"w-100 br-14 lazyload\" loading=\"lazy\"
src=\"";
// line 102
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 1180, 728), "html", null, true);
echo "\"
alt=\"";
// line 103
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 103), "html", null, true);
echo "\"/>
<div class=\"carousel-caption \">
";
// line 105
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 105), "html", null, true);
echo "
</div>
</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['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 109
echo " </div>
";
// line 110
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.', 110, $this->source); })())), 1))) {
// line 111
echo " <a class=\"left carousel-control\" href=\"#carousel-example-generic\" role=\"button\"
data-slide=\"prev\">
<div class=\"sr-only\">Назад</div>
</a>
<a class=\"right carousel-control\" href=\"#carousel-example-generic\" role=\"button\"
data-slide=\"next\">
<div class=\"sr-only\">Далее</div>
</a>
";
}
// line 120
echo " </div>
</div>
<div class=\"discount-block\">
";
// line 123
((twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 123, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 123)) ? (print ("пока без скидки")) : (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.', 123, $this->source); })()), "getDiscount", [], "method", false, false, false, 123), "html", null, true))));
echo "
</div>
";
// line 125
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.', 125, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 125)) {
// line 126
echo " <div class=\"button-add-follow button-add-follow-teaser fovoutite-block\"
onclick=\"onFavouriteClickOffer(";
// line 127
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.', 127, $this->source); })()), "getID", [], "method", false, false, false, 127), "html", null, true);
echo ", ";
echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite", $context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.', 127, $this->source); })())) ? ("true") : ("false"));
echo ")\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Добавить в <br> избранное\"
>
<img src=\"";
// line 133
echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite", $context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.', 133, $this->source); })())) ? ("/images/heart_active.svg") : ("/images/offers/follow.svg"));
echo "\">
</div>
";
}
// line 136
echo " </div>
</div>
<div class=\"right-top-block\">
<div class=\"offers-description\">
";
// line 140
if (((isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 140, $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.', 140, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 140), 0)))) {
// line 141
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 156
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.', 156, $this->source); })()), "isInFreeCodesCategory", [], "method", false, false, false, 156) && !twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 156, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 156))) {
// line 157
echo " <div class=\"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\">
";
// line 158
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 159
echo " <div id=\"statisticsButton\" data-toggle=\"modal\"
data-target=\"#statisticOffersPopup\">
Расширенная статистика →
</div>
";
}
// line 164
echo " <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 168
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.', 168, $this->source); })()), "getID", [], "method", false, false, false, 168)), "html", null, true);
echo "%</p>
</div>
";
}
// line 171
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.', 171, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 171)) {
// line 172
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 177
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.', 177, $this->source); })())) : ((isset($context["usedCodesCount"]) || array_key_exists("usedCodesCount", $context) ? $context["usedCodesCount"] : (function () { throw new RuntimeError('Variable "usedCodesCount" does not exist.', 177, $this->source); })()))), "html", null, true);
echo "
";
// line 178
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.', 178, $this->source); })())), "html", null, true);
echo " из ";
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.', 178, $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 186
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.', 186, $this->source); })()), "html", null, true);
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.', 186, $this->source); })())), "html", null, true);
echo " (";
(((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.', 186, $this->source); })()), "getID", [], "method", false, false, false, 186), 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.', 186, $this->source); })()), "getID", [], "method", false, false, false, 186), 30), "html", null, true))) : (print (0)));
echo ")</p>
</div>
</div>
";
}
// line 190
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.', 190, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 190)) ? ("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 195
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.', 195, $this->source); })()), "html", null, true);
echo " (";
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.', 195, $this->source); })()), "html", null, true);
echo " за сутки)</p>
</div>
</div>
";
// line 198
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.', 198, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 198)) {
// line 199
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 204
if ((1 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 204, $this->source); })()), 0))) {
// line 205
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.', 205, $this->source); })()), "html", null, true);
echo " \"/>
<input type=\"hidden\" id=\"hoursLeft\" value=\"";
// line 206
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.', 206, $this->source); })()), "html", null, true);
echo " \"/>
<input type=\"hidden\" id=\"minutesLeft\" value=\"";
// line 207
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.', 207, $this->source); })()), "html", null, true);
echo " \"/>
<input type=\"hidden\" id=\"secondsLeft\"
value=\"";
// line 209
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.', 209, $this->source); })()), "getActiveTill", [], "method", false, false, false, 209), "diff", [0 => twig_date_converter($this->env)], "method", false, false, false, 209), "format", [0 => "%s"], "method", false, false, false, 209), "html", null, true);
echo "\"/>
<span id=\"days\">";
// line 210
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.', 210, $this->source); })()), "html", null, true);
echo "
 </span>";
// line 211
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.', 211, $this->source); })())), "html", null, true);
echo ",
<span id=\"hours\">";
// line 212
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.', 212, $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.', 212, $this->source); })())), "html", null, true);
echo "
";
}
// line 214
echo " </div>
</div>
";
}
// line 217
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 222
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.', 222, $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 226
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.', 226, $this->source); })()), "getRating", [], "method", false, false, false, 226), "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 235
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.', 235, $this->source); })()), "getRegularPrice", [], "method", false, false, false, 235), "html", null, true);
echo "</span>
<span class=\"discount-price\"> ";
// line 236
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.', 236, $this->source); })()), "getOfferPrice", [], "method", false, false, false, 236), ["(" => "<span id=\"details-offer-price\">(", ")" => ")</span>"]);
echo "</span>
</div>
</div>
";
// line 239
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.', 239, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 239)) {
// line 240
echo " <a href=\"/moya_akciya\" target=\"_blank\">
<img class=\"mt-3\" src=\"/images/without_codes.png\"/>
</a>
";
}
// line 244
echo " ";
}
// line 245
echo " </div>
";
// line 246
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.', 246, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 246), 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.', 246, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 246))) {
// line 247
echo " <div class=\"buttons-wrapper-offers\">
";
// line 248
if (array_key_exists("hasDelivery", $context)) {
// line 249
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.', 249, $this->source); })()), "isBuyCodeDisable", [], "method", false, false, false, 249)) {
// line 250
echo " ";
$this->loadTemplate("Slivki/offers/buy_button.html.twig", "Slivki/offers/details.html.twig", 250)->display($context);
// line 251
echo " ";
}
// line 252
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.', 252, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 252)) {
// line 253
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.', 253, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Заказать онлайн ";
// line 255
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.', 255, $this->source); })()), "getDiscount", [], "method", false, false, false, 255), "html", null, true);
echo "
</a>
";
}
// line 258
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.', 258, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 258)) {
// line 259
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.', 259, $this->source); })()), "getID", [], "method", false, false, false, 259), twig_constant("Slivki\\Entity\\Offer::MINSK_WORLD_CERTIFICATE_OFFER_ID")))) {
// line 260
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.', 260, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Получить скидку ";
// line 262
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.', 262, $this->source); })()), "getDiscount", [], "method", false, false, false, 262), "html", null, true);
echo "
</a>
";
} elseif (twig_in_filter(twig_get_attribute($this->env, $this->source, // line 264
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 264, $this->source); })()), "getID", [], "method", false, false, false, 264), twig_constant("Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS"))) {
// line 265
echo " <a id=\"deliveryBtn2\" href=\"";
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.', 265, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
ПОЛУЧИТЬ СКИДКУ ";
// 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); })()), "getDiscount", [], "method", false, false, false, 267), "html", null, true);
echo "
</a>
";
} elseif ( !twig_get_attribute($this->env, $this->source, // line 269
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 269, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 269)) {
// line 270
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.', 270, $this->source); })())), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Оплатить онлайн ";
// line 272
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.', 272, $this->source); })()), "getDiscount", [], "method", false, false, false, 272), "html", null, true);
echo "
</a>
";
}
// line 275
echo " ";
}
// line 276
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.', 276, $this->source); })()), "isTireOnlineOrderAllowedOnSite", [], "method", false, false, false, 276)) {
// line 277
echo " <a id=\"deliveryBtn\" href=\"/online-zapis/";
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.', 277, $this->source); })()), "getID", [], "method", false, false, false, 277), "html", null, true);
echo "\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Онлайн-запись
</a>
";
}
// line 282
echo " ";
} elseif ((isset($context["isAllowedByOnlyCode"]) || array_key_exists("isAllowedByOnlyCode", $context) ? $context["isAllowedByOnlyCode"] : (function () { throw new RuntimeError('Variable "isAllowedByOnlyCode" does not exist.', 282, $this->source); })())) {
// line 283
echo " <div class=\"col\">
";
// line 284
$this->loadTemplate("Slivki/offers/buy_button.html.twig", "Slivki/offers/details.html.twig", 284)->display($context);
// line 285
echo " </div>
";
}
// line 287
echo " ";
if (((( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 287, $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.', 287, $this->source); })()), "getFreeCodesCount", [], "method", false, false, false, 287), 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.', 287, $this->source); })()), "isOnlineOrderGiftEnabled", [], "method", false, false, false, 287)) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 287, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 287))) {
// line 288
echo " <div class=\"col\">
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
<div class=\"button-gift-text\">
<p>ЕДА В ПОДАРОК 😋</p>
<p>Подарю сам или подарят мне</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
</div>
";
}
// line 300
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 300, $this->source); })()), "user", [], "method", false, false, false, 300) && !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 300, $this->source); })()))) {
// line 301
echo " <div class=\"button-add-follow fovoutite-block\"
onclick=\"onFavouriteClickOffer(";
// line 302
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.', 302, $this->source); })()), "getID", [], "method", false, false, false, 302), "html", null, true);
echo ", ";
echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite", $context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.', 302, $this->source); })())) ? ("true") : ("false"));
echo ")\"
data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Добавить в <br> избранное\"
>
<img src=\"";
// line 308
echo (((isset($context["isOfferFavourite"]) || array_key_exists("isOfferFavourite", $context) ? $context["isOfferFavourite"] : (function () { throw new RuntimeError('Variable "isOfferFavourite" does not exist.', 308, $this->source); })())) ? ("/images/heart_active.svg") : ("/images/offers/follow.svg"));
echo "\">
</div>
";
}
// line 311
echo " </div>
";
}
// line 313
echo " </div>
</div>
<div id=\"conditions_offers\" class=\"d-flex\" style=\"";
// line 315
echo (((isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 315, $this->source); })())) ? ("display: none!important") : (""));
echo "\">
<div class=\"content-wrapper-col-left\">
<div id=\"offersConditions\" class=\"offers-conditions active\" style=\"max-height: fit-content;\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Условия</h2></div>
";
// line 319
$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.', 319, $this->source); })()), "user", [], "any", false, false, false, 319)) ? (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.', 319, $this->source); })()), "user", [], "any", false, false, false, 319), "isOfferFavourite", [0 => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 319, $this->source); })())], "method", false, false, false, 319)) : (false));
// line 320
echo " <div id=\"startOfOfferCondition\"></div>
";
// line 321
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.', 321, $this->source); })()), "getID", [], "method", false, false, false, 321), 239232))) {
// line 322
echo " ";
}
// line 323
echo "
";
// line 324
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.', 324, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 324) && (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.', 324, $this->source); })()), "getID", [], "method", false, false, false, 324), 140553)))) {
// line 325
echo " <p>
";
// line 326
$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.', 326, $this->source); })()), "getCodeActiveTill", [], "method", false, false, false, 326);
// line 327
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.', 327, $this->source); })()), "getActiveTill", [], "method", false, false, false, 327), "-1 day");
// line 328
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.', 328, $this->source); })()), (isset($context["codeTill"]) || array_key_exists("codeTill", $context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.', 328, $this->source); })())))) ? ((isset($context["codeTill"]) || array_key_exists("codeTill", $context) ? $context["codeTill"] : (function () { throw new RuntimeError('Variable "codeTill" does not exist.', 328, $this->source); })())) : ((isset($context["codeFrom"]) || array_key_exists("codeFrom", $context) ? $context["codeFrom"] : (function () { throw new RuntimeError('Variable "codeFrom" does not exist.', 328, $this->source); })())));
// line 329
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.', 329, $this->source); })()), "isHideFeatures", [], "method", false, false, false, 329)) {
// line 330
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.', 330, $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.', 330, $this->source); })()), "getID", [], "method", false, false, false, 330), 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.', 330, $this->source); })()), "d.m.y"), "html", null, true);
echo "
<br/>
";
}
// line 333
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.', 333, $this->source); })()), "isShowPriceInConditions", [], "method", false, false, false, 333) && !(isset($context["offerIsFreeForUser"]) || array_key_exists("offerIsFreeForUser", $context) ? $context["offerIsFreeForUser"] : (function () { throw new RuntimeError('Variable "offerIsFreeForUser" does not exist.', 333, $this->source); })()))) {
// line 334
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.', 334, $this->source); })()), "html", null, true);
echo " руб.
";
}
// line 336
echo " </p>
";
}
// line 338
echo "
<div class=\"offer-details-conditions offers-conditions p-0\">
";
// line 340
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.', 340, $this->source); })()), "getConditions", [], "method", false, false, false, 340);
echo "
";
// line 342
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.', 342, $this->source); })()), "getID", [], "method", false, false, false, 342), 143528))) {
// line 343
echo " ";
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer2.html.twig", "Slivki/offers/details.html.twig", 343)->display($context);
// line 344
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.', 344, $this->source); })()), "getID", [], "method", false, false, false, 344), 282234))) {
// line 345
echo " ";
$this->loadTemplate("Slivki/offers/table_for_pandorra_box_offer4.html.twig", "Slivki/offers/details.html.twig", 345)->display($context);
// line 346
echo " ";
}
// line 347
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.', 347, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 347)) {
// line 348
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.', 348, $this->source); })())) . "/phrase_subscription_in_offer_page.html.twig"), "Slivki/offers/details.html.twig", 348)->display($context);
// line 349
echo " ";
}
// line 350
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.', 350, $this->source); })()), "isHideFeatures", [], "method", false, false, false, 350)) {
// line 351
echo " </br>
<div class=\"offer-titles mb-2 mt-0\"><h2>Особенности</h2></div>
<div class=\"offer-details-conditions\">
";
// line 354
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.', 354, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 354)) {
// line 355
echo " - Скидка предоставляется только при наличии промокода.
";
}
// line 357
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.', 357, $this->source); })()), "getFeatures", [], "method", false, false, false, 357);
echo "
</div>
- Поставщик несет полную ответственность перед потребителем за достоверность информации.
";
}
// line 361
echo " </div>
<div id=\"endOfOfferCondition\"></div>
<div class=\"clear\"></div>
</div>
";
// line 365
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.', 365, $this->source); })()), "getShopMedias", [], "method", false, false, false, 365)), 0))) {
// line 366
echo " <div class=\"offer-titles mb-2 mt-0\"><h2>Галерея</h2></div>
";
}
// line 368
echo " <div id=\"offerConditionsSlider\" class=\"my-4 screenshots ";
echo ((((0 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 368, $this->source); })()), "getShopMedias", [], "method", false, false, false, 368)), 0)) || (0 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 368, $this->source); })()), 0)))) ? ("empty") : (""));
echo "\">
";
// line 369
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.', 369, $this->source); })()), "getShopMedias", [], "method", false, false, false, 369)), 0))) {
// line 370
echo " <div class=\"screenshot-container\">
";
// line 371
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 371) && (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.', 371, $this->source); })()), "getVideos", [], "method", false, false, false, 371)), 0)))) {
// line 372
echo " <div class=\"screenshot screenshot-story\" data-toggle=\"modal\" data-target=\"#detailsStoryPopup\">
<img src=\"";
// line 373
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.', 373, $this->source); })()), "getImageUrl", [], "method", false, false, false, 373), "html", null, true);
echo "\" width=\"300\"
alt=\"Видео\" border=\"0\"/>
<div class=\"screenshot-story-btn\"></div>
<div class=\"screenshot-story-tittle\">";
// line 376
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.', 376, $this->source); })()), "getTitle", [], "method", false, false, false, 376), "html", null, true);
echo "</div>
</div>
";
}
// line 379
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.', 379, $this->source); })()), "getShopMedias", [], "method", false, false, false, 379));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 380
echo " <div class=\"screenshot\">
<a href=\"";
// line 381
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, 381), "html", null, true);
echo "\"
data-lightbox=\"image\">
<img src=\"";
// line 383
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 300, 0), "html", null, true);
echo "\" width=\"300\"
alt=\"";
// line 384
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "getDescription", [], "method", false, false, false, 384), "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 388
echo " </div>
";
}
// line 390
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 393
echo "</h5></div>
<div class=\"examples-works-tooltip-filter\">
<div class=\"tooltip-content\">
<div class=\"tooltip-title border-bottom-f d-flex\">Показать сначала:</div>
<div class=\"radio\">
<input id=\"dateFilter\" type=\"radio\" name=\"filter\" checked data-direction=\"DESC\" value=\"workExample.createdAt\">
<label for=\"dateFilter\" class=\"cursor-pointer\">По дате добавления</label>
</div>
<div class=\"radio\">
<input id=\"locationFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"distance\">
<label for=\"locationFilter\" class=\"cursor-pointer\">Поблизости</label>
</div>
<div class=\"radio\">
<input id=\"priceUpFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"workExample.price\">
<label for=\"priceUpFilter\" class=\"cursor-pointer\">По возврастанию цены</label>
</div>
<div class=\"radio\">
<input id=\"priceDownFilter\" type=\"radio\" name=\"filter\" data-direction=\"DESC\" value=\"workExample.price\">
<label for=\"priceDownFilter\" class=\"cursor-pointer\">По убыванию цены</label>
</div>
<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=\"examples-works-filter\"></div>
</div>
</div>
";
// line 439
$this->loadTemplate("Slivki/works-examples/examples_of_works_gallery.html.twig", "Slivki/offers/details.html.twig", 439)->display($context);
// line 440
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>Мастера</h2></div>
";
// line 443
$this->loadTemplate("Slivki/beauty/beauty_masters.html.twig", "Slivki/offers/details.html.twig", 443)->display($context);
// line 444
echo " </div>
<div id=\"offersDescription\" class=\"offers-conditions mt-3\">
";
// line 446
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.', 446, $this->source); })()), "isShowProductsInOfferDescription", [], "method", false, false, false, 446)) {
// line 447
echo " <div id=\"foodItemsBlock\">
<div class=\"offer-titles mb-2 mt-0\"><h2>Описание</h2></div>
";
// line 449
if (((isset($context["isPickupEnabled"]) || array_key_exists("isPickupEnabled", $context) ? $context["isPickupEnabled"] : (function () { throw new RuntimeError('Variable "isPickupEnabled" does not exist.', 449, $this->source); })()) && (isset($context["isDeliveryEnabled"]) || array_key_exists("isDeliveryEnabled", $context) ? $context["isDeliveryEnabled"] : (function () { throw new RuntimeError('Variable "isDeliveryEnabled" does not exist.', 449, $this->source); })()))) {
// line 450
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 464
echo "
<div id=\"foodBlock\"></div>
<div id=\"foodOptionsBlock\"></div>
</div>
";
}
// line 469
echo " <div class=\"description\" id=\"descriptionText\">
";
// line 470
$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.', 470, $this->source); })()), "getDescriptionList", [], "method", false, false, false, 470));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescription"]) {
// line 471
echo "
";
// line 472
$context["offerDescriptionSliderImages"] = twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getEntityDescriptionSliderImages", [], "method", false, false, false, 472);
// line 473
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.', 473, $this->source); })())), 0))) {
// line 474
echo " <div class=\"sale-description-carousel\">
<div id=\"saleDescriptionSliderFor";
// line 475
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getID", [], "method", false, false, false, 475), "html", null, true);
echo "\"
class=\"sale-description-slider-for\">
";
// line 477
$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.', 477, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["offerDescriptionSliderImage"]) {
// line 478
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, 478), "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 481
echo " </div>
</div>
";
}
// line 484
echo " ";
echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->addLazyAndLightboxImagesInDescription(twig_get_attribute($this->env, $this->source, $context["offerDescription"], "getDescription", [], "method", false, false, false, 484));
echo "
";
// line 486
echo " ";
// line 487
echo " ";
// line 488
echo " ";
// line 489
echo " ";
// line 490
echo " ";
// line 491
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 492
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 499
echo (isset($context["comments"]) || array_key_exists("comments", $context) ? $context["comments"] : (function () { throw new RuntimeError('Variable "comments" does not exist.', 499, $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 505
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.', 505, $this->source); })()), "getAddress", [], "method", false, false, false, 505), "html", null, true);
echo "</div>
<div id=\"offerConditionLogo\">
";
// line 507
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.', 507, $this->source); })()), "getLogo", [], "method", false, false, false, 507);
echo "
</div>
<div id=\"dataFromLocation\">
<div class=\"move-data\">
";
// line 511
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.', 511, $this->source); })())), 0))) {
// line 512
echo " <div class=\"geo-location-block\" style=\"display: block\">
";
// line 513
$this->loadTemplate("Slivki/offers/geo_location_data.html.twig", "Slivki/offers/details.html.twig", 513)->display(twig_to_array(["offer" => (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 513, $this->source); })())]));
// line 514
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.', 514, $this->source); })()), "html", null, true);
echo "\"></div>
<div class=\"distance\">
<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 532
echo " <div class=\"before-map\" style=\"clear:both;\"></div>
</div>
</div>
";
// line 535
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.', 535, $this->source); })()), "getLocation", [], "method", false, false, false, 535), "/<[^>]*>/", ""), ["
" => "", "
" => "", " " => "", " " => ""]), ""))) {
// line 536
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.', 536, $this->source); })()), "getLocation", [], "method", false, false, false, 536);
echo "
";
// line 537
$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.', 537, $this->source); })()), "getPhoneNumbers", [], "method", false, false, false, 537);
// line 538
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.', 538, $this->source); })()), "count", [], "method", false, false, false, 538), 0))) {
// line 539
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.', 539, $this->source); })()), "count", [], "method", false, false, false, 539), 1))) ? ("ы") : (""));
echo ":</div>
";
}
// line 541
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.', 541, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 542
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 542), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 542), "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 544
echo " ";
} else {
// line 545
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.', 545, $this->source); })()), "count", [], "method", false, false, false, 545);
// line 546
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.', 546, $this->source); })()), "getCommonWorkingHours", [], "method", false, false, false, 546);
// line 547
echo " ";
if ((0 !== twig_compare((isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 547, $this->source); })()), ""))) {
// line 548
echo " <br>
<div class=\"text-bold\">Время работы:</div>
";
// line 550
echo (isset($context["commonWoringHours"]) || array_key_exists("commonWoringHours", $context) ? $context["commonWoringHours"] : (function () { throw new RuntimeError('Variable "commonWoringHours" does not exist.', 550, $this->source); })());
echo "
";
}
// line 552
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.', 552, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["geoLocation"]) {
// line 553
echo " ";
$context["margin"] = false;
// line 554
echo " <div class=\"offer-details-geolocation-item my-3\">
<div class=\"font-bold font-size-17\">г. ";
// line 555
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getCity", [], "method", false, false, false, 555), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getStreet", [], "method", false, false, false, 555), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getHouse", [], "method", false, false, false, 555), "html", null, true);
echo "<br>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getLabel", [], "method", false, false, false, 555), "html", null, true);
echo "</div>
<div class=\"location-more-info ";
// line 556
echo (((1 === twig_compare((isset($context["geoLocationsCount"]) || array_key_exists("geoLocationsCount", $context) ? $context["geoLocationsCount"] : (function () { throw new RuntimeError('Variable "geoLocationsCount" does not exist.', 556, $this->source); })()), 2))) ? ("hidden") : (""));
echo "\">
";
// line 557
if ((0 !== twig_compare(twig_trim_filter(twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 557)), ""))) {
// line 558
echo " ";
$context["margin"] = true;
// line 559
echo " <div class=\"offer-details-work-hours\">Время работы:
</div> ";
// line 560
echo twig_nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getWorkingHours", [], "method", false, false, false, 560), "html", null, true));
echo "
";
}
// line 562
echo " ";
$context["phoneNumbers"] = twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getPhoneNumbers", [], "method", false, false, false, 562);
// line 563
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.', 563, $this->source); })()), "count", [], "method", false, false, false, 563), 0))) {
// line 564
echo " ";
$context["margin"] = true;
// line 565
echo " <span>
<div class=\"offer-details-phone-item\">
<div class=\"short-phone-item\" style=\"display: inline-block\">
";
// line 568
if ((1 === twig_compare(twig_length_filter($this->env, (isset($context["phoneNumbers"]) || array_key_exists("phoneNumbers", $context) ? $context["phoneNumbers"] : (function () { throw new RuntimeError('Variable "phoneNumbers" does not exist.', 568, $this->source); })())), 0))) {
// line 569
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 569, $this->source); })()), 0, [], "array", false, false, false, 569), "getShortPhoneNumber", [], "method", false, false, false, 569), "html", null, true);
echo "...
";
}
// line 571
echo " </div>
<div class=\"full-phone-item\" style=\"display: none\">
";
// line 573
$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.', 573, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 574
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 574), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 574), "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 576
echo " </div>
<a data-offer-id=\"";
// line 577
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.', 577, $this->source); })()), "getID", [], "method", false, false, false, 577), "html", null, true);
echo "\"
class=\"text-slivki location-more-info-toggle\">Показать номер</a>
</div>
";
}
// line 581
echo " ";
if ((isset($context["margin"]) || array_key_exists("margin", $context) ? $context["margin"] : (function () { throw new RuntimeError('Variable "margin" does not exist.', 581, $this->source); })())) {
// line 582
echo " <br>
";
}
// line 584
echo " </span>
</div>
";
// line 586
if ((1 === twig_compare((isset($context["geoLocationsCount"]) || array_key_exists("geoLocationsCount", $context) ? $context["geoLocationsCount"] : (function () { throw new RuntimeError('Variable "geoLocationsCount" does not exist.', 586, $this->source); })()), 2))) {
// line 587
echo " <a data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["geoLocation"], "getID", [], "method", false, false, false, 587), "html", null, true);
echo "\"
class=\"text-slivki location-more-info-toggle\">Подробнее</a>
";
}
// line 590
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 592
echo " ";
// line 593
echo " ";
// line 594
echo " ";
// line 595
echo " ";
// line 596
echo " ";
// line 597
echo "
";
// line 598
$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.', 598, $this->source); })()), "getPhoneNumbersWithoutGeoLocations", [], "method", false, false, false, 598);
// line 599
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.', 599, $this->source); })())), 0))) {
// line 600
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.', 600, $this->source); })())), 1))) ? ("ы") : (""));
echo ":
</div>
<div class=\"offer-details-phone-item\">
<div class=\"short-phone-item\" style=\"display: inline-block\">
";
// line 604
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.', 604, $this->source); })())), 0))) {
// line 605
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["phoneNumbersWithoutGeoLocations"]) || array_key_exists("phoneNumbersWithoutGeoLocations", $context) ? $context["phoneNumbersWithoutGeoLocations"] : (function () { throw new RuntimeError('Variable "phoneNumbersWithoutGeoLocations" does not exist.', 605, $this->source); })()), 0, [], "array", false, false, false, 605), "getShortPhoneNumber", [], "method", false, false, false, 605), "html", null, true);
echo "...
";
}
// line 607
echo " </div>
<div class=\"full-phone-item\" style=\"display: none\">
";
// line 609
$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.', 609, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 610
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 610), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getLabel", [], "method", false, false, false, 610), "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 612
echo " </div>
<a data-offer-id=\"";
// line 613
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.', 613, $this->source); })()), "getID", [], "method", false, false, false, 613), "html", null, true);
echo "\"
class=\"text-slivki location-more-info-toggle\">Показать номер</a>
</div>
";
}
// line 617
echo "
";
}
// line 619
echo " <div 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.', 619, $this->source); })()), "getLegal", [], "method", false, false, false, 619);
echo "</div>
";
// line 620
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.', 620, $this->source); })()), "getTelegram", [], "method", false, false, false, 620), null)) || (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.', 620, $this->source); })()), "getViber", [], "method", false, false, false, 620), null)))) {
// line 621
echo " <div class=\"contact-container d-flex py-2 px-1\">
";
// line 622
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.', 622, $this->source); })()), "getTelegram", [], "method", false, false, false, 622), null))) {
// line 623
echo " <a href=\"https://t.me/";
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.', 623, $this->source); })()), "getTelegram", [], "method", false, false, false, 623), "html", null, true);
echo "\" target=\"_blank\">
<img alt=\"Telegram\" src=\"/images/telegram-icon-stretch.png\"/>
<p>Написать в Telegram</p>
</a>
";
}
// line 628
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.', 628, $this->source); })()), "getViber", [], "method", false, false, false, 628), null))) {
// line 629
echo " <a href=\"viber://chat?number=";
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.', 629, $this->source); })()), "getViber", [], "method", false, false, false, 629), "html", null, true);
echo "\" target=\"_blank\">
<img alt=\"Viber\" src=\"/images/viber-icon-stretch.png\"/>
<p>Написать в Viber</p>
</a>
";
}
// line 634
echo " </div>
";
}
// line 636
echo " </div>
";
// line 637
$this->loadTemplate("Slivki/offers/share.html.twig", "Slivki/offers/details.html.twig", 637)->display($context);
// line 638
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.', 638, $this->source); })())) . "/jivosite/button_offers_page.html.twig"), "Slivki/offers/details.html.twig", 638)->display($context);
// line 639
echo " <p class=\"tittle-messenger-offers d-none\">Мы всегда рады помочь: служба поддержки Slivki.by ответит на
любой
ваш вопрос</p>
</div>
</div>
</div>
";
// line 646
if ((((isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 646, $this->source); })()) || (0 === twig_compare((isset($context["freeCodesCount"]) || array_key_exists("freeCodesCount", $context) ? $context["freeCodesCount"] : (function () { throw new RuntimeError('Variable "freeCodesCount" does not exist.', 646, $this->source); })()), 0))) && array_key_exists("relatedOfferListHtml", $context))) {
// line 647
echo " <div class=\"col px-3\">
<div class=\"related-offers-title\">Другие похожие предложения:</div>
<div class=\"related-offers-list stock-group-list\">
";
// line 650
echo (isset($context["relatedOfferListHtml"]) || array_key_exists("relatedOfferListHtml", $context) ? $context["relatedOfferListHtml"] : (function () { throw new RuntimeError('Variable "relatedOfferListHtml" does not exist.', 650, $this->source); })());
echo "
</div>
</div>
";
}
// line 654
echo " </div>
";
// line 655
if (array_key_exists("lastPurchaseText", $context)) {
// line 656
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.', 656, $this->source); })()), "html", null, true);
echo "
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 661
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 662
echo " ";
$this->displayParentBlock("popups", $context, $blocks);
echo "
";
// line 663
if ( !(isset($context["pastOffer"]) || array_key_exists("pastOffer", $context) ? $context["pastOffer"] : (function () { throw new RuntimeError('Variable "pastOffer" does not exist.', 663, $this->source); })())) {
// line 664
echo " ";
$this->loadTemplate("Slivki/popups/header_offers.html.twig", "Slivki/offers/details.html.twig", 664)->display($context);
// line 665
echo " ";
}
// line 666
echo " ";
$this->loadTemplate("Slivki/share_block.html.twig", "Slivki/offers/details.html.twig", 666)->display($context);
// line 667
echo " ";
$this->loadTemplate("Slivki/orderAsGift/foodForGift.html.twig", "Slivki/offers/details.html.twig", 667)->display($context);
// line 668
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["galleryVideos"] ?? null), "getVideos", [], "method", true, true, false, 668) && (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.', 668, $this->source); })()), "getVideos", [], "method", false, false, false, 668)), 0)))) {
// line 669
echo " ";
$this->loadTemplate("Slivki/popups/details-story-popup.html.twig", "Slivki/offers/details.html.twig", 669)->display($context);
// line 670
echo " ";
}
// line 671
echo " ";
$this->loadTemplate("Slivki/popups/comment_media_block_popup.html.twig", "Slivki/offers/details.html.twig", 671)->display($context);
// line 672
echo " ";
$this->loadTemplate("Slivki/popups/statistics_popup.html.twig", "Slivki/offers/details.html.twig", 672)->display($context);
// line 673
echo " ";
$this->loadTemplate("Slivki/mobile/popup/buy_codes_avways_app.html.twig", "Slivki/offers/details.html.twig", 673)->display($context);
// line 674
echo " ";
$this->loadTemplate("Slivki/delivery/modal/details.html.twig", "Slivki/offers/details.html.twig", 674)->display(twig_array_merge($context, ["isOfferPage" => true]));
// line 675
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.', 675, $this->source); })()), "isGiftCertificateOffer", [], "method", false, false, false, 675)) {
// line 676
echo " ";
$this->loadTemplate("Slivki/popups/step_buy_certificate.twig", "Slivki/offers/details.html.twig", 676)->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.', 676, $this->source); })())]));
// line 677
echo " ";
}
// line 678
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.', 678, $this->source); })()), "user", [], "any", false, false, false, 678)) {
// line 679
echo " ";
$this->loadTemplate("Slivki/popups/mail_offers.html.twig", "Slivki/offers/details.html.twig", 679)->display($context);
// line 680
echo " ";
$this->loadTemplate("Slivki/popups/rating_edit_popup.html.twig", "Slivki/offers/details.html.twig", 680)->display($context);
// line 681
echo " ";
$this->loadTemplate("Slivki/popups/popup_subscription_limited.html.twig", "Slivki/offers/details.html.twig", 681)->display($context);
// line 682
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.', 682, $this->source); })()))) {
// line 683
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.', 683, $this->source); })())))) {
// line 684
echo " ";
$context["codeCostInCurrency"] = null;
// line 685
echo " ";
}
// line 686
echo " ";
$this->loadTemplate("Slivki/popups/confirm_box.html.twig", "Slivki/offers/details.html.twig", 686)->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.', 686, $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.', 686, $this->source); })()), "getID", [], "method", false, false, false, 686), "codeCostInCurrency" => (isset($context["codeCostInCurrency"]) || array_key_exists("codeCostInCurrency", $context) ? $context["codeCostInCurrency"] : (function () { throw new RuntimeError('Variable "codeCostInCurrency" does not exist.', 686, $this->source); })())]));
// line 687
echo " ";
$this->loadTemplate("Slivki/popups/confirm_subscription_card_popup.html.twig", "Slivki/offers/details.html.twig", 687)->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.', 687, $this->source); })()), "user", [], "any", false, false, false, 687), "getActiveCreditCards", [], "method", false, false, false, 687)]));
// line 688
echo " ";
}
// line 689
echo "
";
// line 690
if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
// line 691
echo " ";
$this->loadTemplate("Slivki/popups/add_comment_popup.html.twig", "Slivki/offers/details.html.twig", 691)->display(twig_array_merge($context, ["id" => "addVoteBox"]));
// line 692
echo " ";
$this->loadTemplate("Slivki/popups/edit_comment_popup.html.twig", "Slivki/offers/details.html.twig", 692)->display(twig_array_merge($context, ["id" => "editVoteBox"]));
// line 693
echo " ";
$this->loadTemplate("Slivki/popups/comment_censor_message.html.twig", "Slivki/offers/details.html.twig", 693)->display(twig_array_merge($context, ["id" => "commentCensorMessage"]));
// line 694
echo " ";
}
// line 695
echo " ";
} else {
// line 696
echo " ";
if ( !$this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
// line 697
echo " ";
$this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig", "Slivki/offers/details.html.twig", 697)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
// line 698
echo " ";
}
// line 699
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 702
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 703
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 713
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.', 713, $this->source); })()), "html", null, true);
echo "\"></script>
";
// line 714
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"/js/offer.js?v=";
// line 715
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.', 715, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/offer/offerDescriptionItems.js?v=";
// line 716
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.', 716, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/common-old.js?v=";
// line 717
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.', 717, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\">
";
// line 719
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.', 719, $this->source); })()))) {
// line 720
echo " var offerPreview = 1;
";
} else {
// line 722
echo " var offerPreview = 0;
";
}
// line 724
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.', 724, $this->source); })()), "request", [], "any", false, false, false, 724), "query", [], "any", false, false, false, 724), "has", [0 => "checkOrder"], "method", false, false, false, 724)) {
// line 725
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.', 725, $this->source); })()), "request", [], "any", false, false, false, 725), "get", [0 => "checkOrder"], "method", false, false, false, 725), "html", null, true);
echo ");
";
}
// line 727
echo " </script>
<script src=\"/js/offer-new.js?v=";
// line 728
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.', 728, $this->source); })()), "html", null, true);
echo "\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 730
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 731
echo " ";
$this->displayParentBlock("assetsBottom", $context, $blocks);
echo "
<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=";
// line 737
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.', 737, $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 741
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.', 741, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/beauty/masters.js?v=";
// line 742
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.', 742, $this->source); })()), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 745
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 746
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 ( 1858 => 746, 1848 => 745, 1836 => 742, 1832 => 741, 1825 => 737, 1815 => 731, 1805 => 730, 1793 => 728, 1790 => 727, 1784 => 725, 1781 => 724, 1777 => 722, 1773 => 720, 1771 => 719, 1766 => 717, 1762 => 716, 1758 => 715, 1754 => 714, 1750 => 713, 1738 => 703, 1728 => 702, 1717 => 699, 1714 => 698, 1711 => 697, 1708 => 696, 1705 => 695, 1702 => 694, 1699 => 693, 1696 => 692, 1693 => 691, 1691 => 690, 1688 => 689, 1685 => 688, 1682 => 687, 1679 => 686, 1676 => 685, 1673 => 684, 1670 => 683, 1667 => 682, 1664 => 681, 1661 => 680, 1658 => 679, 1655 => 678, 1652 => 677, 1649 => 676, 1646 => 675, 1643 => 674, 1640 => 673, 1637 => 672, 1634 => 671, 1631 => 670, 1628 => 669, 1625 => 668, 1622 => 667, 1619 => 666, 1616 => 665, 1613 => 664, 1611 => 663, 1606 => 662, 1596 => 661, 1581 => 656, 1579 => 655, 1576 => 654, 1569 => 650, 1564 => 647, 1562 => 646, 1553 => 639, 1550 => 638, 1548 => 637, 1545 => 636, 1541 => 634, 1532 => 629, 1529 => 628, 1520 => 623, 1518 => 622, 1515 => 621, 1513 => 620, 1508 => 619, 1504 => 617, 1497 => 613, 1494 => 612, 1483 => 610, 1479 => 609, 1475 => 607, 1469 => 605, 1467 => 604, 1459 => 600, 1456 => 599, 1454 => 598, 1451 => 597, 1449 => 596, 1447 => 595, 1445 => 594, 1443 => 593, 1441 => 592, 1434 => 590, 1427 => 587, 1425 => 586, 1421 => 584, 1417 => 582, 1414 => 581, 1407 => 577, 1404 => 576, 1393 => 574, 1389 => 573, 1385 => 571, 1379 => 569, 1377 => 568, 1372 => 565, 1369 => 564, 1366 => 563, 1363 => 562, 1358 => 560, 1355 => 559, 1352 => 558, 1350 => 557, 1346 => 556, 1336 => 555, 1333 => 554, 1330 => 553, 1325 => 552, 1320 => 550, 1316 => 548, 1313 => 547, 1310 => 546, 1307 => 545, 1304 => 544, 1293 => 542, 1288 => 541, 1282 => 539, 1279 => 538, 1277 => 537, 1272 => 536, 1269 => 535, 1264 => 532, 1242 => 514, 1240 => 513, 1237 => 512, 1235 => 511, 1228 => 507, 1223 => 505, 1214 => 499, 1205 => 492, 1199 => 491, 1197 => 490, 1195 => 489, 1193 => 488, 1191 => 487, 1189 => 486, 1184 => 484, 1179 => 481, 1169 => 478, 1165 => 477, 1160 => 475, 1157 => 474, 1154 => 473, 1152 => 472, 1149 => 471, 1145 => 470, 1142 => 469, 1135 => 464, 1119 => 450, 1117 => 449, 1113 => 447, 1111 => 446, 1107 => 444, 1105 => 443, 1100 => 440, 1098 => 439, 1050 => 393, 1045 => 390, 1041 => 388, 1031 => 384, 1027 => 383, 1020 => 381, 1017 => 380, 1012 => 379, 1006 => 376, 1000 => 373, 997 => 372, 995 => 371, 992 => 370, 990 => 369, 985 => 368, 981 => 366, 979 => 365, 973 => 361, 965 => 357, 961 => 355, 959 => 354, 954 => 351, 951 => 350, 948 => 349, 945 => 348, 942 => 347, 939 => 346, 936 => 345, 933 => 344, 930 => 343, 927 => 342, 923 => 340, 919 => 338, 915 => 336, 909 => 334, 906 => 333, 895 => 330, 892 => 329, 889 => 328, 886 => 327, 884 => 326, 881 => 325, 879 => 324, 876 => 323, 873 => 322, 871 => 321, 868 => 320, 866 => 319, 859 => 315, 855 => 313, 851 => 311, 845 => 308, 834 => 302, 831 => 301, 828 => 300, 814 => 288, 811 => 287, 807 => 285, 805 => 284, 802 => 283, 799 => 282, 790 => 277, 787 => 276, 784 => 275, 778 => 272, 772 => 270, 770 => 269, 765 => 267, 759 => 265, 757 => 264, 752 => 262, 746 => 260, 743 => 259, 740 => 258, 734 => 255, 728 => 253, 725 => 252, 722 => 251, 719 => 250, 716 => 249, 714 => 248, 711 => 247, 709 => 246, 706 => 245, 703 => 244, 697 => 240, 695 => 239, 689 => 236, 685 => 235, 673 => 226, 666 => 222, 659 => 217, 654 => 214, 647 => 212, 643 => 211, 639 => 210, 635 => 209, 630 => 207, 626 => 206, 621 => 205, 619 => 204, 612 => 199, 610 => 198, 602 => 195, 593 => 190, 582 => 186, 569 => 178, 565 => 177, 558 => 172, 555 => 171, 549 => 168, 543 => 164, 536 => 159, 534 => 158, 527 => 157, 524 => 156, 507 => 141, 505 => 140, 499 => 136, 493 => 133, 482 => 127, 479 => 126, 477 => 125, 472 => 123, 467 => 120, 456 => 111, 454 => 110, 451 => 109, 433 => 105, 428 => 103, 424 => 102, 418 => 100, 415 => 99, 412 => 98, 409 => 97, 406 => 96, 389 => 95, 386 => 94, 382 => 92, 364 => 90, 361 => 89, 358 => 88, 355 => 87, 352 => 86, 349 => 85, 332 => 84, 329 => 83, 327 => 82, 315 => 75, 311 => 73, 309 => 72, 301 => 67, 295 => 65, 289 => 63, 286 => 62, 280 => 60, 278 => 59, 273 => 57, 269 => 56, 264 => 55, 258 => 53, 255 => 52, 252 => 51, 249 => 50, 246 => 49, 236 => 48, 217 => 47, 206 => 40, 196 => 39, 186 => 37, 180 => 35, 172 => 31, 169 => 30, 166 => 29, 156 => 28, 141 => 20, 137 => 19, 133 => 18, 121 => 8, 111 => 7, 93 => 5, 73 => 3, 62 => 1, 60 => 27, 58 => 25, 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=\"//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.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.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 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 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>
<h3 class=\"offers-tittle\" style=\"color: {{ offer.getTitleFontColor() }};\">{{ offer.getTitle()|raw }}</h3>
<div class=\"content-offers-top\">
<div class=\"left-top-block\">
<div class=\"content-wrapper-carousel position-relative\" style=\"margin-bottom: 28px\">
<div class=\"stock-image\">
<div id=\"carousel-example-generic\" class=\"carousel slide\" data-ride=\"carousel\" data-interval=\"3000\">
<div class=\"background-opacity\"></div>
{% if detailMediaList|length > 1 %}
<ol class=\"carousel-indicators\">
{% for media in detailMediaList %}
{% set active = \"\" %}
{% if loop.index0 == 0 %}
{% set active = \"active\" %}
{% endif %}
<li data-target=\"#carousel-example-generic\"
data-slide-to=\"{{ loop.index0 }}\" class=\"{{ active }}\"></li>
{% endfor %}
</ol>
{% endif %}
<div class=\"carousel-inner\" role=\"listbox\">
{% for media in detailMediaList %}
{% set active = \"\" %}
{% if loop.index0 == 0 %}
{% set active = \"active\" %}
{% endif %}
<div class=\"item {{ active }}\">
<img itemprop=\"image\" class=\"w-100 br-14 lazyload\" loading=\"lazy\"
src=\"{{ getImageURL(media, 1180, 728) }}\"
alt=\"{{ media.getDescription() }}\"/>
<div class=\"carousel-caption \">
{{ media.getDescription() }}
</div>
</div>
{% endfor %}
</div>
{% if detailMediaList|length > 1 %}
<a class=\"left carousel-control\" href=\"#carousel-example-generic\" role=\"button\"
data-slide=\"prev\">
<div class=\"sr-only\">Назад</div>
</a>
<a class=\"right carousel-control\" href=\"#carousel-example-generic\" role=\"button\"
data-slide=\"next\">
<div class=\"sr-only\">Далее</div>
</a>
{% endif %}
</div>
</div>
<div class=\"discount-block\">
{{ offer.isWithoutCodes() ? 'пока без скидки' : offer.getDiscount() }}
</div>
{% 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\">
{% if is_granted('ROLE_ADMIN') %}
<div id=\"statisticsButton\" data-toggle=\"modal\"
data-target=\"#statisticOffersPopup\">
Расширенная статистика →
</div>
{% endif %}
<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 }} {{ ['промокод', 'промокода', 'промокодов']|plural(todayPurchaseCount) }} ({{ getOfferMonthlyPurchaseCount(offer.getID(), 30) > 0 ? getOfferMonthlyPurchaseCount(offer.getID(), 30) : 0 }})</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>{{ visitCount }} ({{ todayVisitCount }} за сутки)</p>
</div>
</div>
{% if not offer.isWithoutCodes() %}
<div class=\"d-flex px-2 my-0\">
<div class=\"col\">
<p class=\"color-dark-gray\">До завершения: </p>
</div>
<div class=\"col text-end\">
{% if freeCodesCount > 0 %}
<input type=\"hidden\" id=\"daysLeft\" value=\"{{ daysLeft }} \"/>
<input type=\"hidden\" id=\"hoursLeft\" value=\"{{ hoursLeft }} \"/>
<input type=\"hidden\" id=\"minutesLeft\" value=\"{{ minutesLeft }} \"/>
<input type=\"hidden\" id=\"secondsLeft\"
value=\"{{ offer.getActiveTill().diff(date()).format('%s') }}\"/>
<span id=\"days\">{{ daysLeft }}
 </span>{{ ['день', 'дня', 'дней']|plural(daysLeft) }},
<span id=\"hours\">{{ hoursLeft }} </span>час{{ ['', 'а', 'ов']|plural(hoursLeft) }}
{% endif %}
</div>
</div>
{% endif %}
<div class=\"d-flex offers-description--item js-to-review-block\">
<div class=\"col\">
<p class=\"color-dark-gray\">Отзывов:</p>
</div>
<div class=\"col font-bold text-end\">
<p>{{ commentsAmount }} (<r data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Рейтинг компании <br> за 90 дней\">
<span class=\"yellow-span\">★</span>{{ offer.getRating() }}</r>)</p>
</div>
</div>
<div class=\"d-flex offer-price-block\">
<div class=\"col px-2\">
<p class=\"color-dark-gray\">Стоимость:</p>
</div>
<div class=\"col text-end\">
<span id=\"offerRegularPrice\"
class=\"regular-price\">{{ offer.getRegularPrice() }}</span>
<span class=\"discount-price\"> {{ offer.getOfferPrice()|replace({'(': '<span id=\"details-offer-price\">(', ')': ')</span>'})|raw }}</span>
</div>
</div>
{% if offer.isWithoutCodes() %}
<a href=\"/moya_akciya\" target=\"_blank\">
<img class=\"mt-3\" src=\"/images/without_codes.png\"/>
</a>
{% endif %}
{% endif %}
</div>
{% if offer.getFreeCodesCount() > 0 and not offer.isWithoutCodes() %}
<div class=\"buttons-wrapper-offers\">
{% if hasDelivery is defined %}
{% if not offer.isBuyCodeDisable() %}
{% include 'Slivki/offers/buy_button.html.twig' %}
{% endif %}
{% if offer.isFoodOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"{{ getLinkFoodOnlineOrder(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Заказать онлайн {{ offer.getDiscount() }}
</a>
{% endif %}
{% if offer.isGiftCertificateOnlineOrderAllowedOnSite() %}
{% if offer.getID() == constant('Slivki\\\\Entity\\\\Offer::MINSK_WORLD_CERTIFICATE_OFFER_ID') %}
<a id=\"deliveryBtn\" href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Получить скидку {{ offer.getDiscount() }}
</a>
{% elseif offer.getID() in constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_OFFER_IDS') %}
<a id=\"deliveryBtn2\" href=\"{{ getLinkGiftCertificateOnlineOrderByOnlyCode(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
ПОЛУЧИТЬ СКИДКУ {{ offer.getDiscount() }}
</a>
{% elseif not offer.isFoodOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Оплатить онлайн {{ offer.getDiscount() }}
</a>
{% endif %}
{% endif %}
{% if offer.isTireOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"/online-zapis/{{ offer.getID() }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Онлайн-запись
</a>
{% endif %}
{% elseif isAllowedByOnlyCode %}
<div class=\"col\">
{% include 'Slivki/offers/buy_button.html.twig' %}
</div>
{% endif %}
{% if not pastOffer and offer.getFreeCodesCount() > 0 and offer.isOnlineOrderGiftEnabled() and offer.isFoodOnlineOrderAllowedOnSite() %}
<div class=\"col\">
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
<div class=\"button-gift-text\">
<p>ЕДА В ПОДАРОК 😋</p>
<p>Подарю сам или подарят мне</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
</div>
{% endif %}
{% if 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>
{% endif %}
</div>
</div>
<div id=\"conditions_offers\" class=\"d-flex\" style=\"{{ pastOffer ? 'display: none!important' : '' }}\">
<div class=\"content-wrapper-col-left\">
<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>
<div class=\"radio\">
<input id=\"dateFilter\" type=\"radio\" name=\"filter\" checked data-direction=\"DESC\" value=\"workExample.createdAt\">
<label for=\"dateFilter\" class=\"cursor-pointer\">По дате добавления</label>
</div>
<div class=\"radio\">
<input id=\"locationFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"distance\">
<label for=\"locationFilter\" class=\"cursor-pointer\">Поблизости</label>
</div>
<div class=\"radio\">
<input id=\"priceUpFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"workExample.price\">
<label for=\"priceUpFilter\" class=\"cursor-pointer\">По возврастанию цены</label>
</div>
<div class=\"radio\">
<input id=\"priceDownFilter\" type=\"radio\" name=\"filter\" data-direction=\"DESC\" value=\"workExample.price\">
<label for=\"priceDownFilter\" class=\"cursor-pointer\">По убыванию цены</label>
</div>
<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=\"examples-works-filter\"></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>Мастера</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\">
<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=\"short-phone-item\" style=\"display: inline-block\">
{% if phoneNumbers|length > 0 %}
{{ phoneNumbers[0].getShortPhoneNumber() }}...
{% endif %}
</div>
<div class=\"full-phone-item\" style=\"display: none\">
{% for phoneNumber in phoneNumbers %}
{{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
{% endfor %}
</div>
<a data-offer-id=\"{{ offer.getID() }}\"
class=\"text-slivki location-more-info-toggle\">Показать номер</a>
</div>
{% endif %}
{% if margin %}
<br>
{% endif %}
</span>
</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=\"short-phone-item\" style=\"display: inline-block\">
{% if phoneNumbersWithoutGeoLocations|length > 0 %}
{{ phoneNumbersWithoutGeoLocations[0].getShortPhoneNumber() }}...
{% endif %}
</div>
<div class=\"full-phone-item\" style=\"display: none\">
{% for phoneNumber in phoneNumbersWithoutGeoLocations %}
{{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
{% endfor %}
</div>
<a data-offer-id=\"{{ offer.getID() }}\"
class=\"text-slivki location-more-info-toggle\">Показать номер</a>
</div>
{% endif %}
{% endif %}
<div class=\"offer-details-legal-info\">{{ offer.getLegal()|raw }}</div>
{% if offer.getTelegram() != null or offer.getViber() != null %}
<div class=\"contact-container d-flex py-2 px-1\">
{% if offer.getTelegram() != null %}
<a href=\"https://t.me/{{ offer.getTelegram() }}\" target=\"_blank\">
<img alt=\"Telegram\" src=\"/images/telegram-icon-stretch.png\"/>
<p>Написать в Telegram</p>
</a>
{% endif %}
{% if offer.getViber() != null %}
<a href=\"viber://chat?number={{ offer.getViber() }}\" target=\"_blank\">
<img alt=\"Viber\" src=\"/images/viber-icon-stretch.png\"/>
<p>Написать в Viber</p>
</a>
{% endif %}
</div>
{% endif %}
</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/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/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/vlad-slivki/templates/Slivki/offers/details.html.twig");
}
}
/* Slivki/offers/details.html.twig */
class __TwigTemplate_671d188d41c559f3e4b20d04dd0901420d5734d6d8780fb2ae46a6d677382c91___931492230 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 40
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", 40);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 41
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 42
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 ( 2767 => 42, 2757 => 41, 2734 => 40, 1858 => 746, 1848 => 745, 1836 => 742, 1832 => 741, 1825 => 737, 1815 => 731, 1805 => 730, 1793 => 728, 1790 => 727, 1784 => 725, 1781 => 724, 1777 => 722, 1773 => 720, 1771 => 719, 1766 => 717, 1762 => 716, 1758 => 715, 1754 => 714, 1750 => 713, 1738 => 703, 1728 => 702, 1717 => 699, 1714 => 698, 1711 => 697, 1708 => 696, 1705 => 695, 1702 => 694, 1699 => 693, 1696 => 692, 1693 => 691, 1691 => 690, 1688 => 689, 1685 => 688, 1682 => 687, 1679 => 686, 1676 => 685, 1673 => 684, 1670 => 683, 1667 => 682, 1664 => 681, 1661 => 680, 1658 => 679, 1655 => 678, 1652 => 677, 1649 => 676, 1646 => 675, 1643 => 674, 1640 => 673, 1637 => 672, 1634 => 671, 1631 => 670, 1628 => 669, 1625 => 668, 1622 => 667, 1619 => 666, 1616 => 665, 1613 => 664, 1611 => 663, 1606 => 662, 1596 => 661, 1581 => 656, 1579 => 655, 1576 => 654, 1569 => 650, 1564 => 647, 1562 => 646, 1553 => 639, 1550 => 638, 1548 => 637, 1545 => 636, 1541 => 634, 1532 => 629, 1529 => 628, 1520 => 623, 1518 => 622, 1515 => 621, 1513 => 620, 1508 => 619, 1504 => 617, 1497 => 613, 1494 => 612, 1483 => 610, 1479 => 609, 1475 => 607, 1469 => 605, 1467 => 604, 1459 => 600, 1456 => 599, 1454 => 598, 1451 => 597, 1449 => 596, 1447 => 595, 1445 => 594, 1443 => 593, 1441 => 592, 1434 => 590, 1427 => 587, 1425 => 586, 1421 => 584, 1417 => 582, 1414 => 581, 1407 => 577, 1404 => 576, 1393 => 574, 1389 => 573, 1385 => 571, 1379 => 569, 1377 => 568, 1372 => 565, 1369 => 564, 1366 => 563, 1363 => 562, 1358 => 560, 1355 => 559, 1352 => 558, 1350 => 557, 1346 => 556, 1336 => 555, 1333 => 554, 1330 => 553, 1325 => 552, 1320 => 550, 1316 => 548, 1313 => 547, 1310 => 546, 1307 => 545, 1304 => 544, 1293 => 542, 1288 => 541, 1282 => 539, 1279 => 538, 1277 => 537, 1272 => 536, 1269 => 535, 1264 => 532, 1242 => 514, 1240 => 513, 1237 => 512, 1235 => 511, 1228 => 507, 1223 => 505, 1214 => 499, 1205 => 492, 1199 => 491, 1197 => 490, 1195 => 489, 1193 => 488, 1191 => 487, 1189 => 486, 1184 => 484, 1179 => 481, 1169 => 478, 1165 => 477, 1160 => 475, 1157 => 474, 1154 => 473, 1152 => 472, 1149 => 471, 1145 => 470, 1142 => 469, 1135 => 464, 1119 => 450, 1117 => 449, 1113 => 447, 1111 => 446, 1107 => 444, 1105 => 443, 1100 => 440, 1098 => 439, 1050 => 393, 1045 => 390, 1041 => 388, 1031 => 384, 1027 => 383, 1020 => 381, 1017 => 380, 1012 => 379, 1006 => 376, 1000 => 373, 997 => 372, 995 => 371, 992 => 370, 990 => 369, 985 => 368, 981 => 366, 979 => 365, 973 => 361, 965 => 357, 961 => 355, 959 => 354, 954 => 351, 951 => 350, 948 => 349, 945 => 348, 942 => 347, 939 => 346, 936 => 345, 933 => 344, 930 => 343, 927 => 342, 923 => 340, 919 => 338, 915 => 336, 909 => 334, 906 => 333, 895 => 330, 892 => 329, 889 => 328, 886 => 327, 884 => 326, 881 => 325, 879 => 324, 876 => 323, 873 => 322, 871 => 321, 868 => 320, 866 => 319, 859 => 315, 855 => 313, 851 => 311, 845 => 308, 834 => 302, 831 => 301, 828 => 300, 814 => 288, 811 => 287, 807 => 285, 805 => 284, 802 => 283, 799 => 282, 790 => 277, 787 => 276, 784 => 275, 778 => 272, 772 => 270, 770 => 269, 765 => 267, 759 => 265, 757 => 264, 752 => 262, 746 => 260, 743 => 259, 740 => 258, 734 => 255, 728 => 253, 725 => 252, 722 => 251, 719 => 250, 716 => 249, 714 => 248, 711 => 247, 709 => 246, 706 => 245, 703 => 244, 697 => 240, 695 => 239, 689 => 236, 685 => 235, 673 => 226, 666 => 222, 659 => 217, 654 => 214, 647 => 212, 643 => 211, 639 => 210, 635 => 209, 630 => 207, 626 => 206, 621 => 205, 619 => 204, 612 => 199, 610 => 198, 602 => 195, 593 => 190, 582 => 186, 569 => 178, 565 => 177, 558 => 172, 555 => 171, 549 => 168, 543 => 164, 536 => 159, 534 => 158, 527 => 157, 524 => 156, 507 => 141, 505 => 140, 499 => 136, 493 => 133, 482 => 127, 479 => 126, 477 => 125, 472 => 123, 467 => 120, 456 => 111, 454 => 110, 451 => 109, 433 => 105, 428 => 103, 424 => 102, 418 => 100, 415 => 99, 412 => 98, 409 => 97, 406 => 96, 389 => 95, 386 => 94, 382 => 92, 364 => 90, 361 => 89, 358 => 88, 355 => 87, 352 => 86, 349 => 85, 332 => 84, 329 => 83, 327 => 82, 315 => 75, 311 => 73, 309 => 72, 301 => 67, 295 => 65, 289 => 63, 286 => 62, 280 => 60, 278 => 59, 273 => 57, 269 => 56, 264 => 55, 258 => 53, 255 => 52, 252 => 51, 249 => 50, 246 => 49, 236 => 48, 217 => 47, 206 => 40, 196 => 39, 186 => 37, 180 => 35, 172 => 31, 169 => 30, 166 => 29, 156 => 28, 141 => 20, 137 => 19, 133 => 18, 121 => 8, 111 => 7, 93 => 5, 73 => 3, 62 => 1, 60 => 27, 58 => 25, 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=\"//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.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.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 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 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>
<h3 class=\"offers-tittle\" style=\"color: {{ offer.getTitleFontColor() }};\">{{ offer.getTitle()|raw }}</h3>
<div class=\"content-offers-top\">
<div class=\"left-top-block\">
<div class=\"content-wrapper-carousel position-relative\" style=\"margin-bottom: 28px\">
<div class=\"stock-image\">
<div id=\"carousel-example-generic\" class=\"carousel slide\" data-ride=\"carousel\" data-interval=\"3000\">
<div class=\"background-opacity\"></div>
{% if detailMediaList|length > 1 %}
<ol class=\"carousel-indicators\">
{% for media in detailMediaList %}
{% set active = \"\" %}
{% if loop.index0 == 0 %}
{% set active = \"active\" %}
{% endif %}
<li data-target=\"#carousel-example-generic\"
data-slide-to=\"{{ loop.index0 }}\" class=\"{{ active }}\"></li>
{% endfor %}
</ol>
{% endif %}
<div class=\"carousel-inner\" role=\"listbox\">
{% for media in detailMediaList %}
{% set active = \"\" %}
{% if loop.index0 == 0 %}
{% set active = \"active\" %}
{% endif %}
<div class=\"item {{ active }}\">
<img itemprop=\"image\" class=\"w-100 br-14 lazyload\" loading=\"lazy\"
src=\"{{ getImageURL(media, 1180, 728) }}\"
alt=\"{{ media.getDescription() }}\"/>
<div class=\"carousel-caption \">
{{ media.getDescription() }}
</div>
</div>
{% endfor %}
</div>
{% if detailMediaList|length > 1 %}
<a class=\"left carousel-control\" href=\"#carousel-example-generic\" role=\"button\"
data-slide=\"prev\">
<div class=\"sr-only\">Назад</div>
</a>
<a class=\"right carousel-control\" href=\"#carousel-example-generic\" role=\"button\"
data-slide=\"next\">
<div class=\"sr-only\">Далее</div>
</a>
{% endif %}
</div>
</div>
<div class=\"discount-block\">
{{ offer.isWithoutCodes() ? 'пока без скидки' : offer.getDiscount() }}
</div>
{% 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\">
{% if is_granted('ROLE_ADMIN') %}
<div id=\"statisticsButton\" data-toggle=\"modal\"
data-target=\"#statisticOffersPopup\">
Расширенная статистика →
</div>
{% endif %}
<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 }} {{ ['промокод', 'промокода', 'промокодов']|plural(todayPurchaseCount) }} ({{ getOfferMonthlyPurchaseCount(offer.getID(), 30) > 0 ? getOfferMonthlyPurchaseCount(offer.getID(), 30) : 0 }})</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>{{ visitCount }} ({{ todayVisitCount }} за сутки)</p>
</div>
</div>
{% if not offer.isWithoutCodes() %}
<div class=\"d-flex px-2 my-0\">
<div class=\"col\">
<p class=\"color-dark-gray\">До завершения: </p>
</div>
<div class=\"col text-end\">
{% if freeCodesCount > 0 %}
<input type=\"hidden\" id=\"daysLeft\" value=\"{{ daysLeft }} \"/>
<input type=\"hidden\" id=\"hoursLeft\" value=\"{{ hoursLeft }} \"/>
<input type=\"hidden\" id=\"minutesLeft\" value=\"{{ minutesLeft }} \"/>
<input type=\"hidden\" id=\"secondsLeft\"
value=\"{{ offer.getActiveTill().diff(date()).format('%s') }}\"/>
<span id=\"days\">{{ daysLeft }}
 </span>{{ ['день', 'дня', 'дней']|plural(daysLeft) }},
<span id=\"hours\">{{ hoursLeft }} </span>час{{ ['', 'а', 'ов']|plural(hoursLeft) }}
{% endif %}
</div>
</div>
{% endif %}
<div class=\"d-flex offers-description--item js-to-review-block\">
<div class=\"col\">
<p class=\"color-dark-gray\">Отзывов:</p>
</div>
<div class=\"col font-bold text-end\">
<p>{{ commentsAmount }} (<r data-html=\"true\"
data-toggle=\"tooltip\"
data-placement=\"top\"
data-original-title=\"Рейтинг компании <br> за 90 дней\">
<span class=\"yellow-span\">★</span>{{ offer.getRating() }}</r>)</p>
</div>
</div>
<div class=\"d-flex offer-price-block\">
<div class=\"col px-2\">
<p class=\"color-dark-gray\">Стоимость:</p>
</div>
<div class=\"col text-end\">
<span id=\"offerRegularPrice\"
class=\"regular-price\">{{ offer.getRegularPrice() }}</span>
<span class=\"discount-price\"> {{ offer.getOfferPrice()|replace({'(': '<span id=\"details-offer-price\">(', ')': ')</span>'})|raw }}</span>
</div>
</div>
{% if offer.isWithoutCodes() %}
<a href=\"/moya_akciya\" target=\"_blank\">
<img class=\"mt-3\" src=\"/images/without_codes.png\"/>
</a>
{% endif %}
{% endif %}
</div>
{% if offer.getFreeCodesCount() > 0 and not offer.isWithoutCodes() %}
<div class=\"buttons-wrapper-offers\">
{% if hasDelivery is defined %}
{% if not offer.isBuyCodeDisable() %}
{% include 'Slivki/offers/buy_button.html.twig' %}
{% endif %}
{% if offer.isFoodOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"{{ getLinkFoodOnlineOrder(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Заказать онлайн {{ offer.getDiscount() }}
</a>
{% endif %}
{% if offer.isGiftCertificateOnlineOrderAllowedOnSite() %}
{% if offer.getID() == constant('Slivki\\\\Entity\\\\Offer::MINSK_WORLD_CERTIFICATE_OFFER_ID') %}
<a id=\"deliveryBtn\" href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Получить скидку {{ offer.getDiscount() }}
</a>
{% elseif offer.getID() in constant('Slivki\\\\Entity\\\\Offer::FREESTYLE_OFFER_IDS') %}
<a id=\"deliveryBtn2\" href=\"{{ getLinkGiftCertificateOnlineOrderByOnlyCode(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
ПОЛУЧИТЬ СКИДКУ {{ offer.getDiscount() }}
</a>
{% elseif not offer.isFoodOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"{{ getLinkGiftCertificateOnlineOrder(offer) }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Оплатить онлайн {{ offer.getDiscount() }}
</a>
{% endif %}
{% endif %}
{% if offer.isTireOnlineOrderAllowedOnSite() %}
<a id=\"deliveryBtn\" href=\"/online-zapis/{{ offer.getID() }}\"
class=\"d-flex justify-content-center align-items-center text-uppercase button-by-code button\">
Онлайн-запись
</a>
{% endif %}
{% elseif isAllowedByOnlyCode %}
<div class=\"col\">
{% include 'Slivki/offers/buy_button.html.twig' %}
</div>
{% endif %}
{% if not pastOffer and offer.getFreeCodesCount() > 0 and offer.isOnlineOrderGiftEnabled() and offer.isFoodOnlineOrderAllowedOnSite() %}
<div class=\"col\">
<a class=\"button-gift\" data-toggle=\"modal\" data-target=\"#choiceGiftModal\">
<div class=\"button-gift-text\">
<p>ЕДА В ПОДАРОК 😋</p>
<p>Подарю сам или подарят мне</p>
</div>
<div class=\"button-gift-item-button\">
<div class=\"new\">NEW</div>
</div>
</a>
</div>
{% endif %}
{% if 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>
{% endif %}
</div>
</div>
<div id=\"conditions_offers\" class=\"d-flex\" style=\"{{ pastOffer ? 'display: none!important' : '' }}\">
<div class=\"content-wrapper-col-left\">
<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>
<div class=\"radio\">
<input id=\"dateFilter\" type=\"radio\" name=\"filter\" checked data-direction=\"DESC\" value=\"workExample.createdAt\">
<label for=\"dateFilter\" class=\"cursor-pointer\">По дате добавления</label>
</div>
<div class=\"radio\">
<input id=\"locationFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"distance\">
<label for=\"locationFilter\" class=\"cursor-pointer\">Поблизости</label>
</div>
<div class=\"radio\">
<input id=\"priceUpFilter\" type=\"radio\" name=\"filter\" data-direction=\"ASC\" value=\"workExample.price\">
<label for=\"priceUpFilter\" class=\"cursor-pointer\">По возврастанию цены</label>
</div>
<div class=\"radio\">
<input id=\"priceDownFilter\" type=\"radio\" name=\"filter\" data-direction=\"DESC\" value=\"workExample.price\">
<label for=\"priceDownFilter\" class=\"cursor-pointer\">По убыванию цены</label>
</div>
<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=\"examples-works-filter\"></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>Мастера</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\">
<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=\"short-phone-item\" style=\"display: inline-block\">
{% if phoneNumbers|length > 0 %}
{{ phoneNumbers[0].getShortPhoneNumber() }}...
{% endif %}
</div>
<div class=\"full-phone-item\" style=\"display: none\">
{% for phoneNumber in phoneNumbers %}
{{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
{% endfor %}
</div>
<a data-offer-id=\"{{ offer.getID() }}\"
class=\"text-slivki location-more-info-toggle\">Показать номер</a>
</div>
{% endif %}
{% if margin %}
<br>
{% endif %}
</span>
</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=\"short-phone-item\" style=\"display: inline-block\">
{% if phoneNumbersWithoutGeoLocations|length > 0 %}
{{ phoneNumbersWithoutGeoLocations[0].getShortPhoneNumber() }}...
{% endif %}
</div>
<div class=\"full-phone-item\" style=\"display: none\">
{% for phoneNumber in phoneNumbersWithoutGeoLocations %}
{{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
{% endfor %}
</div>
<a data-offer-id=\"{{ offer.getID() }}\"
class=\"text-slivki location-more-info-toggle\">Показать номер</a>
</div>
{% endif %}
{% endif %}
<div class=\"offer-details-legal-info\">{{ offer.getLegal()|raw }}</div>
{% if offer.getTelegram() != null or offer.getViber() != null %}
<div class=\"contact-container d-flex py-2 px-1\">
{% if offer.getTelegram() != null %}
<a href=\"https://t.me/{{ offer.getTelegram() }}\" target=\"_blank\">
<img alt=\"Telegram\" src=\"/images/telegram-icon-stretch.png\"/>
<p>Написать в Telegram</p>
</a>
{% endif %}
{% if offer.getViber() != null %}
<a href=\"viber://chat?number={{ offer.getViber() }}\" target=\"_blank\">
<img alt=\"Viber\" src=\"/images/viber-icon-stretch.png\"/>
<p>Написать в Viber</p>
</a>
{% endif %}
</div>
{% endif %}
</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/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/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/vlad-slivki/templates/Slivki/offers/details.html.twig");
}
}