<?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/tire/tires_by_offer.html.twig */
class __TwigTemplate_3e2b1a45dde78c40f63b7591cbe4b85a1b730e76b148a212c2ed33e9dda111e1 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'left_sidebar' => [$this, 'block_left_sidebar'],
'messenger' => [$this, 'block_messenger'],
'content' => [$this, 'block_content'],
'footer' => [$this, 'block_footer'],
'popups' => [$this, 'block_popups'],
'javascripts' => [$this, 'block_javascripts'],
];
}
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/tire/tires_by_offer.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/tire/tires_by_offer.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "Slivki/tire/tires_by_offer.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 2
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 3
echo " <link href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css\" rel=\"stylesheet\">
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.css\"
integrity=\"sha512-wJgJNTBBkLit7ymC6vvzM1EcSWeM9mmOu+1USHaRBbHkm6W9EgM0HY27+UtUaprntaYQJF75rc8gjxllKs5OIQ==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
";
// line 7
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link href=\"/css/jquery.datetimepicker.css\" rel=\"stylesheet\">
<link rel=\"stylesheet\" href=\"/css/grid.min.css\"/>
<link href=\"/css/delivery.min.css?v=";
// line 10
echo twig_escape_filter($this->env, (isset($context["delivery_css_version"]) || array_key_exists("delivery_css_version", $context) ? $context["delivery_css_version"] : (function () { throw new RuntimeError('Variable "delivery_css_version" does not exist.', 10, $this->source); })()), "html", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/online_booking.css?v=2\" rel=\"stylesheet\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 13
public function block_left_sidebar($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", "left_sidebar"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "left_sidebar"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 14
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 16
public function block_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", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 17
echo " ";
$context["subscription"] = ((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.', 17, $this->source); })()), "user", [], "any", false, false, false, 17)) ? ($this->env->getRuntime('Slivki\Twig\SubscriptionTwigRuntime')->getSubscription(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.', 17, $this->source); })()), "user", [], "any", false, false, false, 17))) : (null));
// line 18
echo " ";
if (((isset($context["subscription"]) || array_key_exists("subscription", $context) ? $context["subscription"] : (function () { throw new RuntimeError('Variable "subscription" does not exist.', 18, $this->source); })()) && (1 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["subscription"]) || array_key_exists("subscription", $context) ? $context["subscription"] : (function () { throw new RuntimeError('Variable "subscription" does not exist.', 18, $this->source); })()), "getNumberOfCodes", [], "method", false, false, false, 18), 0)))) {
// line 19
echo " <input type=\"hidden\" id=\"allowedCodesCountBySubscription\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["subscription"]) || array_key_exists("subscription", $context) ? $context["subscription"] : (function () { throw new RuntimeError('Variable "subscription" does not exist.', 19, $this->source); })()), "getNumberOfCodes", [], "method", false, false, false, 19), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"allowedCodesToBuy\" value=\"";
// line 20
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["subscription"]) || array_key_exists("subscription", $context) ? $context["subscription"] : (function () { throw new RuntimeError('Variable "subscription" does not exist.', 20, $this->source); })()), "getNumberOfCodes", [], "method", false, false, false, 20), "html", null, true);
echo "\">
";
}
// line 22
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.', 22, $this->source); })()), "user", [], "any", false, false, false, 22) && (1 === twig_compare(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.', 22, $this->source); })()), "user", [], "any", false, false, false, 22), "getBatchCodesCount", [], "method", false, false, false, 22), 0)))) {
// line 23
echo " <input type=\"hidden\" id=\"allowedCodesToBuyBatchCodes\" 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.', 23, $this->source); })()), "user", [], "any", false, false, false, 23), "getBatchCodesCount", [], "method", false, false, false, 23), "html", null, true);
echo "\">
";
}
// line 25
echo " <input type=\"hidden\" name=\"_csrf_token\" value=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"onlineBookingBuyCodeOrderID\" value=\"\">
<div class=\"delivery-page container sf-font\">
<div id=\"deliveryContent\">
<div class=\"breadcrumbs sf-text-font\">
<a href=\"";
// line 30
echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url", $context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.', 30, $this->source); })()), "html", null, true);
echo "\">Главная</a>
<i class=\"fa fa-angle-right\"></i> <a href=\"";
// line 31
echo twig_escape_filter($this->env, (isset($context["offerUrl"]) || array_key_exists("offerUrl", $context) ? $context["offerUrl"] : (function () { throw new RuntimeError('Variable "offerUrl" does not exist.', 31, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["companyName"]) || array_key_exists("companyName", $context) ? $context["companyName"] : (function () { throw new RuntimeError('Variable "companyName" does not exist.', 31, $this->source); })()), "html", null, true);
echo "</a>
<i class=\"fa fa-angle-right\"></i> <a href=\"#\">Онлайн-запись</a>
</div>
<div class=\"clear\"></div>
<div id=\"deliverySupplierCard\" class=\"rounded-14\">
<div class=\"gradient rounded-14\"></div>
<div class=\"card-img rounded-14\">
<img class=\"w-100 rounded-14\" src=\"";
// line 39
echo twig_escape_filter($this->env, (isset($context["topImageUrl"]) || array_key_exists("topImageUrl", $context) ? $context["topImageUrl"] : (function () { throw new RuntimeError('Variable "topImageUrl" does not exist.', 39, $this->source); })()), "html", null, true);
echo "\"/>
</div>
<div class=\"delivery-supplier--rating\"><i class=\"slivki-icon-star\"></i>";
// line 41
echo twig_escape_filter($this->env, (isset($context["rating"]) || array_key_exists("rating", $context) ? $context["rating"] : (function () { throw new RuntimeError('Variable "rating" does not exist.', 41, $this->source); })()), "html", null, true);
echo "</div>
<div class=\"delivery-supplier--info\">
<i class=\"slivki-icon-info-circled-o\"></i>
<div class=\"supplier-info-tooltip arrow-box\">
<div class=\"mb-2 sf-bold-font\">";
// line 45
echo twig_escape_filter($this->env, (isset($context["companyName"]) || array_key_exists("companyName", $context) ? $context["companyName"] : (function () { throw new RuntimeError('Variable "companyName" does not exist.', 45, $this->source); })()), "html", null, true);
echo "</div>
<div class=\"text-muted\">";
// line 46
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["director"]) || array_key_exists("director", $context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.', 46, $this->source); })()), "getName", [], "method", false, false, false, 46), "html", null, true);
echo ", УНП ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["director"]) || array_key_exists("director", $context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.', 46, $this->source); })()), "getTaxId", [], "method", false, false, false, 46), "html", null, true);
echo "</div>
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col my-2 pl-3 font-size-1250 sf-bold-font\">Услуги:</div>
</div>
<div class=\"row delivery-teaser-row delivery-teasers-block\">
";
// line 56
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["tires"]) || array_key_exists("tires", $context) ? $context["tires"] : (function () { throw new RuntimeError('Variable "tires" does not exist.', 56, $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["tire"]) {
// line 57
echo " ";
$this->loadTemplate("Slivki/tire/tire_teaser.html.twig", "Slivki/tire/tires_by_offer.html.twig", 57)->display($context);
// line 58
echo " ";
++$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['tire'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 59
echo " </div>
</div>
<div id=\"deliverySidebar\">
<div id=\"deliverySidebarContent\">
<div class=\"sf-bold-font font-size-1125 mb-2 text-uppercase\"><strong>Онлайн запись</strong></div>
<div id=\"basketItemBooking\" class=\"d-none delivery-basket-tire-item position-relative d-flex mb-3 mx-1 p-2\">
<button type=\"button\" class=\"js-tire-delete-from-basket close float-none position-absolute m-0\" data-id=\"\">
<span aria-hidden=\"true\"><i class=\"slivki-icon-close-thin\"></i></span>
</button>
<div class=\"d-flex flex-column\">
<span id=\"nameBasketBooking\" class=\"font-size-1125 sf-bold-font mx-1\">Наращивание ногтей</span>
<span id=\"addressBasketBooking\" class=\"font-size-1125 mx-1 my-1\"><strong>Адрес: </strong>Минск, ул.Чюрлениса, д. 6</span>
<span id=\"dateBasketBooking\" class=\"font-size-1125 mx-1 my-1\"><strong>Дата:</strong> 20.12.22</span>
<span id=\"timeBasketBooking\" class=\"font-size-1125 mx-1 my-1\"><strong>Время:</strong> 14:50</span>
<div class=\"d-flex flex-column mx-1 my-1\">
<div class=\"d-flex\">
<del class=\"text-danger delivery-price mr-3\">
<span id=\"oldPriceBookingBasket\" class=\"delivery-old-price font-weight-normal font-size-1125\">10 р</span>
</del>
<span id=\"newPriceBookingBasket\" class=\"delivery-price mr-0 sf-bold-font font-size-1125\">20 р.</span>
</div>
</div>
</div>
</div>
<div id=\"deliveryEmpty\">
<div class=\"text-center\">
<p class=\"font-size-1125\">Добавьте<br> услугу!</p>
</div>
<button style=\"position: absolute;bottom: 15px;width: 79% !important;\" class=\"button-send-online-booking delivery-btn rounded-14 bg-violet font-size-1125 color-white w-auto disabled\">ЗАПИСАТЬСЯ СО СКИДОЙ
</button>
</div>
<div id=\"basketContainer\"></div>
<div id=\"buyCodeBlock\" class=\"w-100 px-2 pt-2 pb-2 d-none bottom-0\">
";
// line 94
if (((isset($context["subscription"]) || array_key_exists("subscription", $context) ? $context["subscription"] : (function () { throw new RuntimeError('Variable "subscription" does not exist.', 94, $this->source); })()) && (1 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["subscription"]) || array_key_exists("subscription", $context) ? $context["subscription"] : (function () { throw new RuntimeError('Variable "subscription" does not exist.', 94, $this->source); })()), "getNumberOfCodes", [], "method", false, false, false, 94), 0)))) {
// line 95
echo " <div class=\"font-size-1125 text-center sf-bold-font mx-1 mb-2\">Почти готово 😉 </div>
<div class=\"font-size-1125 text-center mx-1 mb-2 mt-2\">Для записи на выбранное время оплатите промокод на скидку</div>
<div class=\"font-size-1125 text-center sf-bold-font mx-1 mb-1 mt-2\">К оплате 0 р. <del>12,10 р.</del></div>
<div class=\"font-size-1125 text-center mx-1 mt-1\">по подписке</div>
<button id=\"offerBuyCodeOrderPage\"
class=\"button-send-online-booking delivery-btn rounded-14 bg-violet font-size-1125 color-white w-auto\"
data-id=\"\">ЗАПИСАТЬСЯ СО СКИДОЙ
</button>
";
} elseif (((twig_get_attribute($this->env, $this->source, // line 103
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 103, $this->source); })()), "user", [], "any", false, false, false, 103) && (1 === twig_compare(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.', 103, $this->source); })()), "user", [], "any", false, false, false, 103), "getBatchCodesCount", [], "method", false, false, false, 103), 0))) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["subscription"]) || array_key_exists("subscription", $context) ? $context["subscription"] : (function () { throw new RuntimeError('Variable "subscription" does not exist.', 103, $this->source); })()), "getNumberOfCodes", [], "method", false, false, false, 103), 0)))) {
// line 104
echo " <div class=\"font-size-1125 text-center sf-bold-font mx-1 mb-2\">Почти готово 😉 </div>
<div class=\"font-size-1125 text-center mx-1 mb-2 mt-2\">Для записи на выбранное время оплатите промокод на скидку</div>
<div class=\"font-size-1125 text-center sf-bold-font mx-1 mb-1 mt-2\">К оплате 0 р. <del>2,10 р.</del></div>
<div class=\"font-size-1125 text-center mx-1 mt-1\">по пакету</div>
<button id=\"offerBuyCodeOrderPage\"
class=\"button-send-online-booking delivery-btn rounded-14 bg-violet font-size-1125 color-white w-auto\"
data-id=\"\">ЗАПИСАТЬСЯ СО СКИДОЙ
</button>
";
} else {
// line 113
echo " <div class=\"font-size-1125 text-center sf-bold-font mx-1 mb-2\">Почти готово 😉 </div>
<div class=\"font-size-1125 text-center mx-1 mb-2 mt-2\">Для записи на выбранное время оплатите промокод на скидку</div>
<div class=\"font-size-1125 text-center sf-bold-font mx-1 mb-1 mt-2\">К оплате 2,10 р.</div>
<div class=\"font-size-1125 text-center mx-1 mt-2\">Выберите способ оплаты:</div>
";
// line 117
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.', 117, $this->source); })()), "user", [], "any", false, false, false, 117) && (0 <= twig_compare(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.', 117, $this->source); })()), "user", [], "any", false, false, false, 117), "getFullBalance", [], "method", false, false, false, 117), 2.1)))) {
// line 118
echo " <button id=\"byCodeBalance\"
class=\"button-send-online-booking-buttons-pay delivery-btn rounded-14 bg-violet font-size-1125 color-white w-auto\"
data-id=\"\">С БАЛАНСА
</button>
";
}
// line 123
echo " <button id=\"byCodeCreditCards\"
class=\"button-send-online-booking-buttons-pay delivery-btn rounded-14 bg-violet font-size-1125 color-white w-auto\"
data-id=\"\">БАНКОВСКАЯ КАРТА
</button>
<button id=\"byCodeErip\"
class=\"button-send-online-booking-buttons-pay delivery-btn rounded-14 bg-violet font-size-1125 color-white w-auto\"
data-id=\"\">ЕРИП
</button>
<button id=\"byCodePhone\"
class=\"button-send-online-booking-buttons-pay delivery-btn rounded-14 bg-violet font-size-1125 color-white w-auto\"
data-id=\"\">ПО ЗВОНКУ С А1, МТС, LIFE:)
</button>
";
}
// line 136
echo "
</div>
</div>
</div>
</div>
";
// line 141
$this->displayBlock('footer', $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function block_footer($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", "footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 142
echo " ";
$this->loadTemplate("Slivki/footer_for_partner.html.twig", "Slivki/tire/tires_by_offer.html.twig", 142)->display($context);
// line 143
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 146
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 147
echo " ";
$this->displayParentBlock("popups", $context, $blocks);
echo "
";
// line 148
$this->loadTemplate("/Slivki/online_booking/modal_online_booking.html.twig", "Slivki/tire/tires_by_offer.html.twig", 148)->display($context);
// line 149
echo " ";
$this->loadTemplate("Slivki/popups/buy_code_phone_offer.html.twig", "Slivki/tire/tires_by_offer.html.twig", 149)->display($context);
// line 150
echo " ";
$this->loadTemplate("Slivki/popups/buy_code_item-offer.html.twig", "Slivki/tire/tires_by_offer.html.twig", 150)->display($context);
// line 151
echo " ";
$this->loadTemplate("Slivki/popups/buy_code_phonenumber_offers.html.twig", "Slivki/tire/tires_by_offer.html.twig", 151)->display($context);
// line 152
echo " ";
$this->loadTemplate("Slivki/popups/buy_code_erip_offers.html.twig", "Slivki/tire/tires_by_offer.html.twig", 152)->display($context);
// line 153
echo " ";
$this->loadTemplate("Slivki/online_booking/booking_alert_popup.html.twig", "Slivki/tire/tires_by_offer.html.twig", 153)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 156
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 157
echo " <script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js\"></script>
<script src=\"/js/delivery.js?v=";
// line 158
echo twig_escape_filter($this->env, (isset($context["delivery_js_version"]) || array_key_exists("delivery_js_version", $context) ? $context["delivery_js_version"] : (function () { throw new RuntimeError('Variable "delivery_js_version" does not exist.', 158, $this->source); })()), "html", null, true);
echo "\"></script>
";
// line 159
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.js\"
integrity=\"sha512-zlWWyZq71UMApAjih4WkaRpikgY9Bz1oXIW5G0fED4vk14JjGlQ1UmkGM392jEULP8jbNMiwLWdM8Z87Hu88Fw==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
<script src=\"/js/jquery.datetimepicker.full.min.js\"></script>
<script src=\"/js/tires-common.js?v=";
// line 164
echo twig_escape_filter($this->env, (isset($context["tires_common_js_version"]) || array_key_exists("tires_common_js_version", $context) ? $context["tires_common_js_version"] : (function () { throw new RuntimeError('Variable "tires_common_js_version" does not exist.', 164, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/collapse.js\"></script>
<script src=\"/js/tires.js?v=";
// line 166
echo twig_escape_filter($this->env, (isset($context["online_booking_js_version"]) || array_key_exists("online_booking_js_version", $context) ? $context["online_booking_js_version"] : (function () { throw new RuntimeError('Variable "online_booking_js_version" does not exist.', 166, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/paymentOrderPage/paymentOrderPage.js?v=";
// line 167
echo twig_escape_filter($this->env, (isset($context["payment_order_page_js_version"]) || array_key_exists("payment_order_page_js_version", $context) ? $context["payment_order_page_js_version"] : (function () { throw new RuntimeError('Variable "payment_order_page_js_version" does not exist.', 167, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/paymentOrderPage/api.js?v=";
// line 168
echo twig_escape_filter($this->env, (isset($context["payment_order_page_api_js_version"]) || array_key_exists("payment_order_page_api_js_version", $context) ? $context["payment_order_page_api_js_version"] : (function () { throw new RuntimeError('Variable "payment_order_page_api_js_version" does not exist.', 168, $this->source); })()), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/tire/tires_by_offer.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 470 => 168, 466 => 167, 462 => 166, 457 => 164, 449 => 159, 445 => 158, 442 => 157, 432 => 156, 421 => 153, 418 => 152, 415 => 151, 412 => 150, 409 => 149, 407 => 148, 402 => 147, 392 => 146, 382 => 143, 379 => 142, 360 => 141, 353 => 136, 338 => 123, 331 => 118, 329 => 117, 323 => 113, 312 => 104, 310 => 103, 300 => 95, 298 => 94, 261 => 59, 247 => 58, 244 => 57, 227 => 56, 212 => 46, 208 => 45, 201 => 41, 196 => 39, 183 => 31, 179 => 30, 170 => 25, 164 => 23, 161 => 22, 156 => 20, 151 => 19, 148 => 18, 145 => 17, 135 => 16, 117 => 14, 99 => 13, 86 => 10, 80 => 7, 74 => 3, 64 => 2, 41 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block stylesheets %}
<link href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css\" rel=\"stylesheet\">
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.css\"
integrity=\"sha512-wJgJNTBBkLit7ymC6vvzM1EcSWeM9mmOu+1USHaRBbHkm6W9EgM0HY27+UtUaprntaYQJF75rc8gjxllKs5OIQ==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"/>
{{ parent() }}
<link href=\"/css/jquery.datetimepicker.css\" rel=\"stylesheet\">
<link rel=\"stylesheet\" href=\"/css/grid.min.css\"/>
<link href=\"/css/delivery.min.css?v={{ delivery_css_version }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/online_booking.css?v=2\" rel=\"stylesheet\">
{% endblock %}
{% block left_sidebar %}{% endblock %}
{% block messenger %}{% endblock %}
{% block content %}
{% set subscription = app.user ? getSubscription(app.user) : null %}
{% if subscription and subscription.getNumberOfCodes() > 0 %}
<input type=\"hidden\" id=\"allowedCodesCountBySubscription\" value=\"{{ subscription.getNumberOfCodes() }}\">
<input type=\"hidden\" id=\"allowedCodesToBuy\" value=\"{{ subscription.getNumberOfCodes() }}\">
{% endif %}
{% if app.user and app.user.getBatchCodesCount() > 0 %}
<input type=\"hidden\" id=\"allowedCodesToBuyBatchCodes\" value=\"{{ app.user.getBatchCodesCount() }}\">
{% endif %}
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
<input type=\"hidden\" id=\"onlineBookingBuyCodeOrderID\" value=\"\">
<div class=\"delivery-page container sf-font\">
<div id=\"deliveryContent\">
<div class=\"breadcrumbs sf-text-font\">
<a href=\"{{ base_url }}\">Главная</a>
<i class=\"fa fa-angle-right\"></i> <a href=\"{{ offerUrl }}\">{{ companyName }}</a>
<i class=\"fa fa-angle-right\"></i> <a href=\"#\">Онлайн-запись</a>
</div>
<div class=\"clear\"></div>
<div id=\"deliverySupplierCard\" class=\"rounded-14\">
<div class=\"gradient rounded-14\"></div>
<div class=\"card-img rounded-14\">
<img class=\"w-100 rounded-14\" src=\"{{ topImageUrl }}\"/>
</div>
<div class=\"delivery-supplier--rating\"><i class=\"slivki-icon-star\"></i>{{ rating }}</div>
<div class=\"delivery-supplier--info\">
<i class=\"slivki-icon-info-circled-o\"></i>
<div class=\"supplier-info-tooltip arrow-box\">
<div class=\"mb-2 sf-bold-font\">{{ companyName }}</div>
<div class=\"text-muted\">{{ director.getName() }}, УНП {{ director.getTaxId() }}</div>
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col my-2 pl-3 font-size-1250 sf-bold-font\">Услуги:</div>
</div>
<div class=\"row delivery-teaser-row delivery-teasers-block\">
{% for tire in tires %}
{% include 'Slivki/tire/tire_teaser.html.twig' %}
{% endfor %}
</div>
</div>
<div id=\"deliverySidebar\">
<div id=\"deliverySidebarContent\">
<div class=\"sf-bold-font font-size-1125 mb-2 text-uppercase\"><strong>Онлайн запись</strong></div>
<div id=\"basketItemBooking\" class=\"d-none delivery-basket-tire-item position-relative d-flex mb-3 mx-1 p-2\">
<button type=\"button\" class=\"js-tire-delete-from-basket close float-none position-absolute m-0\" data-id=\"\">
<span aria-hidden=\"true\"><i class=\"slivki-icon-close-thin\"></i></span>
</button>
<div class=\"d-flex flex-column\">
<span id=\"nameBasketBooking\" class=\"font-size-1125 sf-bold-font mx-1\">Наращивание ногтей</span>
<span id=\"addressBasketBooking\" class=\"font-size-1125 mx-1 my-1\"><strong>Адрес: </strong>Минск, ул.Чюрлениса, д. 6</span>
<span id=\"dateBasketBooking\" class=\"font-size-1125 mx-1 my-1\"><strong>Дата:</strong> 20.12.22</span>
<span id=\"timeBasketBooking\" class=\"font-size-1125 mx-1 my-1\"><strong>Время:</strong> 14:50</span>
<div class=\"d-flex flex-column mx-1 my-1\">
<div class=\"d-flex\">
<del class=\"text-danger delivery-price mr-3\">
<span id=\"oldPriceBookingBasket\" class=\"delivery-old-price font-weight-normal font-size-1125\">10 р</span>
</del>
<span id=\"newPriceBookingBasket\" class=\"delivery-price mr-0 sf-bold-font font-size-1125\">20 р.</span>
</div>
</div>
</div>
</div>
<div id=\"deliveryEmpty\">
<div class=\"text-center\">
<p class=\"font-size-1125\">Добавьте<br> услугу!</p>
</div>
<button style=\"position: absolute;bottom: 15px;width: 79% !important;\" class=\"button-send-online-booking delivery-btn rounded-14 bg-violet font-size-1125 color-white w-auto disabled\">ЗАПИСАТЬСЯ СО СКИДОЙ
</button>
</div>
<div id=\"basketContainer\"></div>
<div id=\"buyCodeBlock\" class=\"w-100 px-2 pt-2 pb-2 d-none bottom-0\">
{% if subscription and subscription.getNumberOfCodes() > 0 %}
<div class=\"font-size-1125 text-center sf-bold-font mx-1 mb-2\">Почти готово 😉 </div>
<div class=\"font-size-1125 text-center mx-1 mb-2 mt-2\">Для записи на выбранное время оплатите промокод на скидку</div>
<div class=\"font-size-1125 text-center sf-bold-font mx-1 mb-1 mt-2\">К оплате 0 р. <del>12,10 р.</del></div>
<div class=\"font-size-1125 text-center mx-1 mt-1\">по подписке</div>
<button id=\"offerBuyCodeOrderPage\"
class=\"button-send-online-booking delivery-btn rounded-14 bg-violet font-size-1125 color-white w-auto\"
data-id=\"\">ЗАПИСАТЬСЯ СО СКИДОЙ
</button>
{% elseif app.user and app.user.getBatchCodesCount() > 0 and subscription.getNumberOfCodes() == 0 %}
<div class=\"font-size-1125 text-center sf-bold-font mx-1 mb-2\">Почти готово 😉 </div>
<div class=\"font-size-1125 text-center mx-1 mb-2 mt-2\">Для записи на выбранное время оплатите промокод на скидку</div>
<div class=\"font-size-1125 text-center sf-bold-font mx-1 mb-1 mt-2\">К оплате 0 р. <del>2,10 р.</del></div>
<div class=\"font-size-1125 text-center mx-1 mt-1\">по пакету</div>
<button id=\"offerBuyCodeOrderPage\"
class=\"button-send-online-booking delivery-btn rounded-14 bg-violet font-size-1125 color-white w-auto\"
data-id=\"\">ЗАПИСАТЬСЯ СО СКИДОЙ
</button>
{% else %}
<div class=\"font-size-1125 text-center sf-bold-font mx-1 mb-2\">Почти готово 😉 </div>
<div class=\"font-size-1125 text-center mx-1 mb-2 mt-2\">Для записи на выбранное время оплатите промокод на скидку</div>
<div class=\"font-size-1125 text-center sf-bold-font mx-1 mb-1 mt-2\">К оплате 2,10 р.</div>
<div class=\"font-size-1125 text-center mx-1 mt-2\">Выберите способ оплаты:</div>
{% if app.user and app.user.getFullBalance() >= 2.10 %}
<button id=\"byCodeBalance\"
class=\"button-send-online-booking-buttons-pay delivery-btn rounded-14 bg-violet font-size-1125 color-white w-auto\"
data-id=\"\">С БАЛАНСА
</button>
{% endif %}
<button id=\"byCodeCreditCards\"
class=\"button-send-online-booking-buttons-pay delivery-btn rounded-14 bg-violet font-size-1125 color-white w-auto\"
data-id=\"\">БАНКОВСКАЯ КАРТА
</button>
<button id=\"byCodeErip\"
class=\"button-send-online-booking-buttons-pay delivery-btn rounded-14 bg-violet font-size-1125 color-white w-auto\"
data-id=\"\">ЕРИП
</button>
<button id=\"byCodePhone\"
class=\"button-send-online-booking-buttons-pay delivery-btn rounded-14 bg-violet font-size-1125 color-white w-auto\"
data-id=\"\">ПО ЗВОНКУ С А1, МТС, LIFE:)
</button>
{% endif %}
</div>
</div>
</div>
</div>
{% block footer %}
{% include 'Slivki/footer_for_partner.html.twig' %}
{% endblock %}
{% endblock %}
{% block popups %}
{{ parent() }}
{% include '/Slivki/online_booking/modal_online_booking.html.twig' %}
{% include 'Slivki/popups/buy_code_phone_offer.html.twig' %}
{% include 'Slivki/popups/buy_code_item-offer.html.twig' %}
{% include 'Slivki/popups/buy_code_phonenumber_offers.html.twig' %}
{% include 'Slivki/popups/buy_code_erip_offers.html.twig' %}
{% include 'Slivki/online_booking/booking_alert_popup.html.twig' %}
{% endblock %}
{% block javascripts %}
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js\"></script>
<script src=\"/js/delivery.js?v={{ delivery_js_version }}\"></script>
{{ parent() }}
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.js\"
integrity=\"sha512-zlWWyZq71UMApAjih4WkaRpikgY9Bz1oXIW5G0fED4vk14JjGlQ1UmkGM392jEULP8jbNMiwLWdM8Z87Hu88Fw==\"
crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"></script>
<script src=\"/js/jquery.datetimepicker.full.min.js\"></script>
<script src=\"/js/tires-common.js?v={{ tires_common_js_version }}\"></script>
<script src=\"/js/collapse.js\"></script>
<script src=\"/js/tires.js?v={{ online_booking_js_version }}\"></script>
<script type=\"module\" src=\"/js/paymentOrderPage/paymentOrderPage.js?v={{ payment_order_page_js_version }}\"></script>
<script type=\"module\" src=\"/js/paymentOrderPage/api.js?v={{ payment_order_page_api_js_version }}\"></script>
{% endblock %}", "Slivki/tire/tires_by_offer.html.twig", "/mnt/data/virtwww/dima/templates/Slivki/tire/tires_by_offer.html.twig");
}
}