<?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/popups/buy_code_item-offer.html.twig */
class __TwigTemplate_2420ec747cfaccfc623e9131123f2c8ac1e59328a2631394f3510f3e868968ab extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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/popups/buy_code_item-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/popups/buy_code_item-offer.html.twig"));
// line 1
echo "<div id=\"modalCodeOffer\" class=\"new-popup modal fade\">
<div class=\"modal-dialog no-boostrap\">
<div class=\"modal-content pt-3\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\"></button>
<div class=\"modal-info\">
<div class=\"modal-title\"></div>
<div class=\"modal-message\">
";
// line 8
if (array_key_exists("tires", $context)) {
// line 9
echo " <p class=\"sf-bold-font font-size-20 mb-1\">Успех!</p>
<p class=\"my-2 sf-font font-size-1000\">В ближайшее время с вами свяжется администратор для подтверждения брони</p>
<div class=\"d-flex justify-content-center align-items-center js-buy-codes\">
Ваш промокод: <p id=\"codesItem\" class=\"sf-bold-font my-3 text-uppercase js-code-number ml-2\"></p>
<img id=\"copyPromoNumber\" class=\"mx-1 cursor-pointer\" width=\"14\" height=\"18\" src=\"/images/order_page/copy.svg\"/>
</div>
<p class=\"my-2 sf-font font-size-1000\">Промокод и информацяи о записи также <br> сохранены в <a href=\"";
// line 15
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.', 15, $this->source); })()), "html", null, true);
echo "/profile\" class=\"color-violet\">личном кабинете</a></p>
<button class=\"button py-2 w-50 px-5\" data-toggle=\"modal\" data-dismiss=\"modal\" onclick=\"document.location = '/profile'\">ОК</button>
";
} else {
// line 18
echo " <p class=\"sf-bold-font font-size-20 mb-1\">Готово</p>
<p class=\"my-2 sf-font font-size-1000\">Назовите оператору промокод <br>в <span class=\"js-company-name-popup sf-bold-font\"></span></p>
<div class=\"d-flex justify-content-center align-items-center js-buy-codes\">
<p id=\"codesItem\" class=\"sf-bold-font my-3 text-uppercase js-code-number\"></p>
<img id=\"copyPromoNumber\" class=\"mx-1 cursor-pointer\" width=\"14\" height=\"18\" src=\"/images/order_page/copy.svg\"/>
</div>
<p class=\"my-2 sf-font font-size-1000\">Промокод также сохранен <br>в <a href=\"";
// line 24
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.', 24, $this->source); })()), "html", null, true);
echo "/profile\" class=\"color-violet\">личном кабинете</a></p>
";
}
// line 26
echo " </div>
</div>
";
// line 28
if ((array_key_exists("offer", $context) && (1 === twig_compare(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.', 28, $this->source); })()), "getPhonenumbers", [], "any", false, false, false, 28), "count", [], "method", false, false, false, 28), 1)))) {
// line 29
echo " <p class=\"my-2 sf-font font-size-1000\">Телефоны:</p>
<div id=\"phoneOffers\" class=\"w-100\">
";
// line 31
$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.', 31, $this->source); })()), "getPhonenumbers", [], "method", false, false, false, 31));
foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
// line 32
echo " <a href=\"tel:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 32), "html", null, true);
echo "\" class=\"button\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["phoneNumber"], "getNumber", [], "method", false, false, false, 32), "html", null, true);
echo "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phoneNumber'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
echo " </div>
";
}
// line 36
echo " ";
if ($this->env->getRuntime('Slivki\Twig\PartnerGiftOfferTwigRuntime')->isPartnerGiftOfferAvailable()) {
// line 37
echo " <img class=\"w-100 my-1\" src=\"/images/lines.svg\"/>
<a href=\"/companies/vitrina-podarkov\" class=\"button\">ВАМ ПОДАРОК ЗА ПОКУПКУ 🎁</a>
";
}
// line 40
echo " </div>
</div>
</div>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "Slivki/popups/buy_code_item-offer.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 118 => 40, 113 => 37, 110 => 36, 106 => 34, 95 => 32, 91 => 31, 87 => 29, 85 => 28, 81 => 26, 76 => 24, 68 => 18, 62 => 15, 54 => 9, 52 => 8, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<div id=\"modalCodeOffer\" class=\"new-popup modal fade\">
<div class=\"modal-dialog no-boostrap\">
<div class=\"modal-content pt-3\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\"></button>
<div class=\"modal-info\">
<div class=\"modal-title\"></div>
<div class=\"modal-message\">
{% if tires is defined %}
<p class=\"sf-bold-font font-size-20 mb-1\">Успех!</p>
<p class=\"my-2 sf-font font-size-1000\">В ближайшее время с вами свяжется администратор для подтверждения брони</p>
<div class=\"d-flex justify-content-center align-items-center js-buy-codes\">
Ваш промокод: <p id=\"codesItem\" class=\"sf-bold-font my-3 text-uppercase js-code-number ml-2\"></p>
<img id=\"copyPromoNumber\" class=\"mx-1 cursor-pointer\" width=\"14\" height=\"18\" src=\"/images/order_page/copy.svg\"/>
</div>
<p class=\"my-2 sf-font font-size-1000\">Промокод и информацяи о записи также <br> сохранены в <a href=\"{{ base_url }}/profile\" class=\"color-violet\">личном кабинете</a></p>
<button class=\"button py-2 w-50 px-5\" data-toggle=\"modal\" data-dismiss=\"modal\" onclick=\"document.location = '/profile'\">ОК</button>
{% else %}
<p class=\"sf-bold-font font-size-20 mb-1\">Готово</p>
<p class=\"my-2 sf-font font-size-1000\">Назовите оператору промокод <br>в <span class=\"js-company-name-popup sf-bold-font\"></span></p>
<div class=\"d-flex justify-content-center align-items-center js-buy-codes\">
<p id=\"codesItem\" class=\"sf-bold-font my-3 text-uppercase js-code-number\"></p>
<img id=\"copyPromoNumber\" class=\"mx-1 cursor-pointer\" width=\"14\" height=\"18\" src=\"/images/order_page/copy.svg\"/>
</div>
<p class=\"my-2 sf-font font-size-1000\">Промокод также сохранен <br>в <a href=\"{{ base_url }}/profile\" class=\"color-violet\">личном кабинете</a></p>
{% endif %}
</div>
</div>
{% if offer is defined and offer.getPhonenumbers.count() > 1 %}
<p class=\"my-2 sf-font font-size-1000\">Телефоны:</p>
<div id=\"phoneOffers\" class=\"w-100\">
{% for phoneNumber in offer.getPhonenumbers() %}
<a href=\"tel:{{ phoneNumber.getNumber() }}\" class=\"button\"> {{ phoneNumber.getNumber() }}</a>
{% endfor %}
</div>
{% endif %}
{% if isPartnerGiftOfferAvailable() %}
<img class=\"w-100 my-1\" src=\"/images/lines.svg\"/>
<a href=\"/companies/vitrina-podarkov\" class=\"button\">ВАМ ПОДАРОК ЗА ПОКУПКУ 🎁</a>
{% endif %}
</div>
</div>
</div>", "Slivki/popups/buy_code_item-offer.html.twig", "/mnt/data/virtwww/dima/templates/Slivki/popups/buy_code_item-offer.html.twig");
}
}