<?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/delivery/order.html.twig */
class __TwigTemplate_5ed89f942b0239b3432d121f5f6cb052d3e22d18cc39c725e84438c29cf213ff 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/delivery/order.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/delivery/order.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "Slivki/delivery/order.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_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 4
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<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\"/>
<link href=\"/css/delivery.css?v=";
// line 8
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.', 8, $this->source); })()), "html", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/order_page.css?v=";
// line 9
echo twig_escape_filter($this->env, (isset($context["order_page_css_version"]) || array_key_exists("order_page_css_version", $context) ? $context["order_page_css_version"] : (function () { throw new RuntimeError('Variable "order_page_css_version" does not exist.', 9, $this->source); })()), "html", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/orderAsGift.css?v=";
// line 10
echo twig_escape_filter($this->env, (isset($context["order_as_gift_css"]) || array_key_exists("order_as_gift_css", $context) ? $context["order_as_gift_css"] : (function () { throw new RuntimeError('Variable "order_as_gift_css" does not exist.', 10, $this->source); })()), "html", null, true);
echo "\" rel=\"stylesheet\" type=\"text/css\"/>
";
$__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 15
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 17
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 18
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.', 18, $this->source); })()), "isWithoutCodes", [], "method", false, false, false, 18)) {
// line 19
echo " <input type=\"hidden\" id=\"isWithoutCodes\">
";
}
// line 21
echo " ";
if ((array_key_exists("isFirstSosediPurchase", $context) && (isset($context["isFirstSosediPurchase"]) || array_key_exists("isFirstSosediPurchase", $context) ? $context["isFirstSosediPurchase"] : (function () { throw new RuntimeError('Variable "isFirstSosediPurchase" does not exist.', 21, $this->source); })()))) {
// line 22
echo " <input type=\"hidden\" id=\"isFirstSosediPurchase\">
";
}
// line 24
echo " ";
if ((array_key_exists("isCertificate", $context) && (isset($context["isCertificate"]) || array_key_exists("isCertificate", $context) ? $context["isCertificate"] : (function () { throw new RuntimeError('Variable "isCertificate" does not exist.', 24, $this->source); })()))) {
// line 25
echo " <input id=\"isCertificate\" type=\"hidden\" value=\"\">
";
}
// line 27
echo " ";
if (array_key_exists("director", $context)) {
// line 28
echo " <input type=\"hidden\" id=\"companyNameOffer\" value=\"";
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.', 28, $this->source); })()), "getName", [], "method", false, false, false, 28));
echo "\">
";
}
// line 30
echo " ";
if ((array_key_exists("isAvailableOnFood", $context) && (isset($context["isAvailableOnFood"]) || array_key_exists("isAvailableOnFood", $context) ? $context["isAvailableOnFood"] : (function () { throw new RuntimeError('Variable "isAvailableOnFood" does not exist.', 30, $this->source); })()))) {
// line 31
echo " <input type=\"hidden\" id=\"isAvailableOnFood\" value=\"true\">
";
}
// line 33
echo " <div class=\"delivery-page container sf-font\">
<div id=\"deliveryContent\" class=\"js-delivery-teasers\">
<div class=\"breadcrumbs sf-text-font\">
<a href=\"";
// line 36
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.', 36, $this->source); })()), "html", null, true);
echo "\">Главная</a>
";
// line 37
if ((0 !== twig_compare((isset($context["categoryName"]) || array_key_exists("categoryName", $context) ? $context["categoryName"] : (function () { throw new RuntimeError('Variable "categoryName" does not exist.', 37, $this->source); })()), null))) {
// line 38
echo " <i class=\"fa fa-angle-right\"></i> <a href=\"";
echo twig_escape_filter($this->env, (isset($context["categoryURL"]) || array_key_exists("categoryURL", $context) ? $context["categoryURL"] : (function () { throw new RuntimeError('Variable "categoryURL" does not exist.', 38, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["categoryName"]) || array_key_exists("categoryName", $context) ? $context["categoryName"] : (function () { throw new RuntimeError('Variable "categoryName" does not exist.', 38, $this->source); })()), "html", null, true);
echo "</a>
";
}
// line 40
echo " <i class=\"fa fa-angle-right\"></i> <a
href=\"";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL(twig_constant("Slivki\\Repository\\SeoRepository::RESOURCE_URL_OFFER_DETAILS"), twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 41, $this->source); })()), "getID", [], "method", false, false, false, 41)), "html", null, true);
echo "\">";
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.', 41, $this->source); })()), "getCompanyName", [], "method", false, false, false, 41), "html", null, true);
echo "</a>
<i class=\"fa fa-angle-right\"></i> <a href=\"javascript:;\">Онлайн заказ</a>
</div>
<div class=\"clear\"></div>
";
// line 45
if ((array_key_exists("isCertificate", $context) && (isset($context["isCertificate"]) || array_key_exists("isCertificate", $context) ? $context["isCertificate"] : (function () { throw new RuntimeError('Variable "isCertificate" does not exist.', 45, $this->source); })()))) {
// line 46
echo " <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 49
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL(twig_get_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); })()), "getTopBlockMedia", [], "method", false, false, false, 49), 0, 0), "html", null, true);
echo "\"/>
</div>
<div class=\"delivery-supplier--logo\"
style=\"background-image: url('";
// line 52
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL((isset($context["logoMedia"]) || array_key_exists("logoMedia", $context) ? $context["logoMedia"] : (function () { throw new RuntimeError('Variable "logoMedia" does not exist.', 52, $this->source); })()), 0, 0), "html", null, true);
echo "')\"
>
</div>
<div class=\"delivery-supplier--rating\">
<i class=\"slivki-icon-star\">";
// 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); })()), "getRating", [], "method", false, false, false, 56), "html", null, true);
echo "</i>
<span class=\"pl-2\"><i
class=\"slivki-icon slivki-icon-users\"></i>";
// line 58
echo twig_escape_filter($this->env, ((array_key_exists("purchaseCountMonth", $context)) ? ((isset($context["purchaseCountMonth"]) || array_key_exists("purchaseCountMonth", $context) ? $context["purchaseCountMonth"] : (function () { throw new RuntimeError('Variable "purchaseCountMonth" does not exist.', 58, $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.', 58, $this->source); })()), "getUsedCodesCount", [], "method", false, false, false, 58))), "html", null, true);
echo "</span>
<span class=\"pl-2\"><i class=\"slivki-icon-eye\"></i>";
// line 59
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.', 59, $this->source); })()), "html", null, true);
echo "</span>
</div>
<div class=\"delivery-supplier--text sf-bold-font\"></div>
<div class=\"delivery-supplier--info\">
<i class=\"slivki-icon-info-circled-o\"></i><span>Информация о компании</span>
<div class=\"supplier-info-tooltip arrow-box\">
<div class=\"mb-2 sf-bold-font\">";
// line 65
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.', 65, $this->source); })()), "getName", [], "method", false, false, false, 65), "html", null, true);
echo "</div>
<div class=\"text-muted\">";
// line 66
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.', 66, $this->source); })()), "getLegalEntity", [], "method", false, false, false, 66), "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.', 66, $this->source); })()), "getTaxID", [], "method", false, false, false, 66), "html", null, true);
echo "</div>
</div>
</div>
</div>
";
} else {
// line 71
echo " <div class=\"py-2 px-0 sf-font\">
<div class=\"brand-block\">
<div id=\"mapOrderPage\" class=\"d-none\" style=\"height: 210px;\" data-toggle=\"modal\"
data-target=\"#mapsModal\"></div>
</div>
</div>
";
}
// line 78
echo "
";
// line 79
if (( !array_key_exists("isCertificate", $context) || !(isset($context["isCertificate"]) || array_key_exists("isCertificate", $context) ? $context["isCertificate"] : (function () { throw new RuntimeError('Variable "isCertificate" does not exist.', 79, $this->source); })()))) {
// line 80
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;\">
<div class=\"col d-flex align-items-center text-white justify-content-end px-0\">
<p class=\"col mb-0 px-0 text-filter-tittle\">⚡️ Используй супер-фильтр</p>
<div class=\"position-relative ordder-page-filter-block\">
<div class=\"ordder-page-filter py-1 mx-2\">
<f class=\"text-filter\">Сравни 🔥</f>
</div>
<div class=\"filter-items-block filter-items px-2 py-2\" style=\"display: none\">
<div class=\"filter-items-wrapper\">
";
// line 90
$this->loadTemplate("Slivki/online_order/_online_order_sort.html.twig", "Slivki/delivery/order.html.twig", 90)->display($context);
// line 91
echo " </div>
</div>
</div>
</div>
<div class=\"switch-delivery-pickup-block px-0 ";
// line 95
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.', 95, $this->source); })()), "getBrandboxEnabled", [], "method", false, false, false, 95)) {
echo "d-none";
}
echo "\">
<a class=\"switch-delivery-pickup-item button-tab-delivery delivery-type active\">
<p>Доставка</p>
<small>удобно👌</small>
</a>
<a class=\"switch-delivery-pickup-item pickup-type button-tab-pickup\">
<p> Самовывоз</p>
<small>еще дешевле🔥</small>
</a>
</div>
";
// line 105
if ( !array_key_exists("isCertificate", $context)) {
// line 106
echo " ";
if ((isset($context["pickupEnabled"]) || array_key_exists("pickupEnabled", $context) ? $context["pickupEnabled"] : (function () { throw new RuntimeError('Variable "pickupEnabled" does not exist.', 106, $this->source); })())) {
// line 107
echo " <input id=\"deliveryTypeOffers\" type=\"hidden\" value=\"2\">
";
} elseif ( // line 108
(isset($context["deliveryEnabled"]) || array_key_exists("deliveryEnabled", $context) ? $context["deliveryEnabled"] : (function () { throw new RuntimeError('Variable "deliveryEnabled" does not exist.', 108, $this->source); })())) {
// line 109
echo " <input id=\"deliveryTypeOffers\" type=\"hidden\" value=\"1\">
";
}
// line 111
echo " ";
}
// line 112
echo " </div>
";
} else {
// line 114
echo " <div class=\"d-flex mt-3\" style=\"justify-content: flex-end\">
";
// line 115
$this->loadTemplate("Slivki/delivery/_delivery_sort_filter.html.twig", "Slivki/delivery/order.html.twig", 115)->display($context);
// line 116
echo " </div>
";
}
// line 118
echo "
<div id=\"dominosCustomReload\" style=\"display: none\">
<img src=\"/images/bannerDominos.png\" alt=\"\">
</div>
<div id=\"listProducts\" class=\"delivery-teaser-row delivery-teasers-block\">
";
// line 123
if ((array_key_exists("isCertificate", $context) && (isset($context["isCertificate"]) || array_key_exists("isCertificate", $context) ? $context["isCertificate"] : (function () { throw new RuntimeError('Variable "isCertificate" does not exist.', 123, $this->source); })()))) {
// line 124
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["dishes"]) || array_key_exists("dishes", $context) ? $context["dishes"] : (function () { throw new RuntimeError('Variable "dishes" does not exist.', 124, $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["dish"]) {
// line 125
echo " ";
$context["teaserView"] = "Slivki/delivery/delivery_teaser.html.twig";
// line 126
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["dish"], "isPizza", [], "any", true, true, false, 126) && twig_get_attribute($this->env, $this->source, $context["dish"], "isPizza", [], "any", false, false, false, 126))) {
// line 127
echo " ";
$context["teaserView"] = "Slivki/delivery/delivery_teaser_pizza.html.twig";
// line 128
echo " ";
}
// line 129
echo " <div class=\"col-4\">
";
// line 130
$this->loadTemplate((isset($context["teaserView"]) || array_key_exists("teaserView", $context) ? $context["teaserView"] : (function () { throw new RuntimeError('Variable "teaserView" does not exist.', 130, $this->source); })()), "Slivki/delivery/order.html.twig", 130)->display(twig_array_merge($context, ["isTop" => twig_in_filter(twig_get_attribute($this->env, $this->source, $context["dish"], "id", [], "any", false, false, false, 130), (isset($context["topDishIDList"]) || array_key_exists("topDishIDList", $context) ? $context["topDishIDList"] : (function () { throw new RuntimeError('Variable "topDishIDList" does not exist.', 130, $this->source); })())), "isAvailableOnFood" => (array_key_exists("isAvailableOnFood", $context) && (isset($context["isAvailableOnFood"]) || array_key_exists("isAvailableOnFood", $context) ? $context["isAvailableOnFood"] : (function () { throw new RuntimeError('Variable "isAvailableOnFood" does not exist.', 130, $this->source); })()))]));
// line 131
echo " </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['dish'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 133
echo " ";
}
// line 134
echo " </div>
";
// line 135
if (((1 === twig_compare(twig_length_filter($this->env, (isset($context["options"]) || array_key_exists("options", $context) ? $context["options"] : (function () { throw new RuntimeError('Variable "options" does not exist.', 135, $this->source); })())), 0)) && (isset($context["showDelivery"]) || array_key_exists("showDelivery", $context) ? $context["showDelivery"] : (function () { throw new RuntimeError('Variable "showDelivery" does not exist.', 135, $this->source); })()))) {
// line 136
echo " <div id=\"dataMenu_options\" class=\"mb-2 pl-2 font-size-1250 sf-bold-font\">Дополнительные товары:</div>
<div class=\"delivery-teaser-row delivery-teasers-block\">
";
// line 138
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["options"]) || array_key_exists("options", $context) ? $context["options"] : (function () { throw new RuntimeError('Variable "options" does not exist.', 138, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
// line 139
echo " <div class=\"col-4\">
";
// line 140
$this->loadTemplate("Slivki/delivery/delivery_teaser.html.twig", "Slivki/delivery/order.html.twig", 140)->display(twig_to_array(["dish" => $context["option"], "isOption" => true]));
// line 141
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 143
echo " </div>
";
}
// line 145
echo " </div>
<div id=\"deliverySidebar\">
";
// line 147
if (( !array_key_exists("isAvailableOnFood", $context) || !(isset($context["isAvailableOnFood"]) || array_key_exists("isAvailableOnFood", $context) ? $context["isAvailableOnFood"] : (function () { throw new RuntimeError('Variable "isAvailableOnFood" does not exist.', 147, $this->source); })()))) {
// line 148
echo " <form method=\"post\" action=\"";
echo twig_escape_filter($this->env, (isset($context["formAction"]) || array_key_exists("formAction", $context) ? $context["formAction"] : (function () { throw new RuntimeError('Variable "formAction" does not exist.', 148, $this->source); })()), "html", null, true);
echo "\" id=\"dishSelectForm\">
";
} else {
// line 150
echo " <div id=\"dishSelectForm\">
";
}
// line 152
echo " <input type=\"hidden\" id=\"pickupDeliveryType\" name=\"pickupDeliveryType\" value=\"\"/>
<input type=\"hidden\" id=\"deliveryBasketInput\" name=\"basket\" value=\"\"/>
<input id=\"offerID\" type=\"hidden\" name=\"offerID\" value=\"";
// line 154
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.', 154, $this->source); })()), "getID", [], "method", false, false, false, 154), "html", null, true);
echo "\"/>
<input type=\"hidden\" id=\"dishSortBy\" name=\"dishSortBy\" value=\"\"/>
<input type=\"hidden\" id=\"isDominos\" name=\"isDominos\"
value=\"";
// line 157
echo (((array_key_exists("isDominos", $context) && (isset($context["isDominos"]) || array_key_exists("isDominos", $context) ? $context["isDominos"] : (function () { throw new RuntimeError('Variable "isDominos" does not exist.', 157, $this->source); })()))) ? ("1") : ("0"));
echo "\">
";
// line 158
if (array_key_exists("deliveryPrice", $context)) {
// line 159
echo " <input type=\"hidden\" id=\"deliveryPrice\" name=\"deliveryPrice\" value=\"";
echo twig_escape_filter($this->env, (isset($context["deliveryPrice"]) || array_key_exists("deliveryPrice", $context) ? $context["deliveryPrice"] : (function () { throw new RuntimeError('Variable "deliveryPrice" does not exist.', 159, $this->source); })()), "html", null, true);
echo "\"/>
";
}
// line 161
echo " <div id=\"deliverySidebarContent\">
";
// line 162
if (( !array_key_exists("isAvailableOnFood", $context) || !(isset($context["isAvailableOnFood"]) || array_key_exists("isAvailableOnFood", $context) ? $context["isAvailableOnFood"] : (function () { throw new RuntimeError('Variable "isAvailableOnFood" does not exist.', 162, $this->source); })()))) {
// line 163
echo " <div>
<p class=\"basket-tittle\">Ваш заказ</p>
</div>
<div id=\"deliveryEmpty\">
<div class=\"d-flex flex-column justify-content-center align-items-center text-center\">
";
// line 168
if ((( !array_key_exists("isCertificate", $context) || !(isset($context["isCertificate"]) || array_key_exists("isCertificate", $context) ? $context["isCertificate"] : (function () { throw new RuntimeError('Variable "isCertificate" does not exist.', 168, $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.', 168, $this->source); })()), "getID", [], "method", false, false, false, 168), 283384)))) {
// line 169
echo " <div class=\"delivery-empty-logo\">
";
// line 170
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.', 170, $this->source); })()), "hasCategory", [0 => twig_constant("Slivki\\Repository\\SeoRepository::FLOWERS_CATEGORY_ID")], "method", false, false, false, 170)) {
// line 171
echo " <img height=\"119\" class=\"mx-auto\" src=\"/images/basketFlowers.png\" alt=\"\">
";
} else {
// line 173
echo " <img height=\"119\" class=\"mx-auto\" src=\"/images/sideBarEda.gif\" alt=\"\">
";
}
// line 175
echo " </div>
";
} else {
// line 177
echo " <div class=\"delivery-empty-logo\">
<img height=\"119\" class=\"mx-auto\" src=\"/images/sertificate.gif\" alt=\"\">
</div>
";
}
// line 181
echo " ";
if (( !array_key_exists("isCertificate", $context) || !(isset($context["isCertificate"]) || array_key_exists("isCertificate", $context) ? $context["isCertificate"] : (function () { throw new RuntimeError('Variable "isCertificate" does not exist.', 181, $this->source); })()))) {
// line 182
echo " <p class=\"font-size-1125 delivery-empty-text\">Выберите
";
// line 183
if (twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 183, $this->source); })()), "hasCategory", [0 => twig_constant("Slivki\\Repository\\SeoRepository::FLOWERS_CATEGORY_ID")], "method", false, false, false, 183)) {
// line 184
echo " товары
";
} else {
// line 186
echo " блюда
";
}
// line 188
echo " <br> и добавьте их к
заказу
</p>
";
} else {
// line 192
echo " <p class=\"font-size-1125 delivery-empty-text\">Выберите услуги<br> и добавьте их
к заказу
</p>
";
}
// line 196
echo " </div>
</div>
<div id=\"deliveryBasketWrapper\" style=\"display: none;\">
<a href=\"#\" id=\"clearBasketBtn\" data-toggle=\"modal\"
data-target=\"#confirmBasketClearModal\">
<img width=\"16\" height=\"16\" class=\"mx-1\" src=\"/images/order_page/basket-icon.svg\"/>
Очистить</a>
<div id=\"deliverySidebarScroll\" ";
// line 203
if (( !array_key_exists("isCertificate", $context) || !(isset($context["isCertificate"]) || array_key_exists("isCertificate", $context) ? $context["isCertificate"] : (function () { throw new RuntimeError('Variable "isCertificate" does not exist.', 203, $this->source); })()))) {
echo " class=\"height-74\" ";
}
echo ">
<div id=\"deliveryBasketTop\" class=\"js-basket-modal\"></div>
<div class=\"d-none options-tittle sf-bold-font font-size-1000 mb-3 ";
// line 205
echo (( !(isset($context["showDelivery"]) || array_key_exists("showDelivery", $context) ? $context["showDelivery"] : (function () { throw new RuntimeError('Variable "showDelivery" does not exist.', 205, $this->source); })())) ? ("d-none") : (""));
echo "\">
<strong>Дополнительные товары:</strong>
</div>
<div id=\"deliveryBasketOptions\"></div>
<div class=\"delivery-basket-total font-size-1000 d-none\">
<div id=\"deliveryTotalDishes\"></div>
<div id=\"deliveryTotalOptions\"></div>
<span id=\"codeCost\" data-price=\"0\"></span>
</div>
</div>
<div id=\"deliverySidebarTotal\" ";
// line 215
if (( !array_key_exists("isCertificate", $context) || !(isset($context["isCertificate"]) || array_key_exists("isCertificate", $context) ? $context["isCertificate"] : (function () { throw new RuntimeError('Variable "isCertificate" does not exist.', 215, $this->source); })()))) {
echo " class=\"";
echo (((isset($context["isBuyCodeDisable"]) || array_key_exists("isBuyCodeDisable", $context) ? $context["isBuyCodeDisable"] : (function () { throw new RuntimeError('Variable "isBuyCodeDisable" does not exist.', 215, $this->source); })())) ? ("") : ("bottom-basket-offers"));
echo "\" ";
}
// line 216
echo " style=\"display: none;\">
<div class=\"delivery-teaser-row font-size-1250\">
";
// line 218
if ((array_key_exists("isBuyOnlyCodeResponse", $context) && (isset($context["isBuyOnlyCodeResponse"]) || array_key_exists("isBuyOnlyCodeResponse", $context) ? $context["isBuyOnlyCodeResponse"] : (function () { throw new RuntimeError('Variable "isBuyOnlyCodeResponse" does not exist.', 218, $this->source); })()))) {
// line 219
echo " <div class=\"col-auto basket-tittle font-size-0900 mb-0\">К оплате на кассе:
</div>
";
} else {
// line 222
echo " <div class=\"col-auto basket-tittle mb-0\">Итого:</div>
";
}
// line 224
echo "
<div class=\"col text-right\">
<del class=\"mr-1\" style=\"text-decoration: none;\"><span
id=\"deliveryTotalPrice\"></span></del>
<span class=\"sf-bold-font\" id=\"deliveryTotalOfferPrice\"></span>
</div>
</div>
</div>
</div>
";
} else {
// line 234
echo " <div id=\"customFoodBasket\">
<div id=\"customFoodBasketConditions\">
<p class=\"tittle-basket-custom-food\">Условия заказа</p>
<div class=\"offer-conditions\"></div>
</div>
<div id=\"customFoodBasketPayMethods\" class=\"col\" style=\"display: none\">
<span id=\"unitPrice\" style=\"display: none;\">2.10</span>
<div class=\"custom-promo-info\">
<div class=\"custom-promo-block\">
<p class=\"sf-bold-font text-uppercase text-center my-3\">Для заказа по
телефону<br>
оплатите промокод <br>на скидку</p>
</div>
<div class=\"d-flex col justify-content-center my-2\">
<div class=\"payment-sum-block mb-3\">
<div class=\"unit-wrapp\">
<div class=\"minusUnit\" onclick=\"minus()\">
<img class=\"delivery-dec-quantity-img\" width=\"14\" height=\"14\"
src=\"/images/order_page/dec.svg\">
</div>
<span id=\"units\" class=\"js-units-header-popup-custom\"> 1 </span>
<div class=\"plusUnit\" onclick=\"plus()\">
<img width=\"14\" height=\"14\" src=\"/images/order_page/inc.svg\">
</div>
</div>
</div>
</div>
<div class=\"align-self-center\">
<p class=\"font-size-0750 mb-4 sf-font text-center\"><strong
class=\"font-size-10625 font-800\">
к оплате <span class=\"confirm-box-total mr-1\">2,10</span>р</strong>
</p>
</div>
</div>
<p class=\"my-2 sf-font font-size-1000 text-center\">Выберите способ оплаты:</p>
<div id=\"paymentMethodsCustom\"></div>
</div>
</div>
";
}
// line 275
echo "
<div id=\"deliveryBtnWrapperWithoutGift\" class=\"delivery-btn-wrapper\">
";
// line 277
if (( !array_key_exists("isAvailableOnFood", $context) || !(isset($context["isAvailableOnFood"]) || array_key_exists("isAvailableOnFood", $context) ? $context["isAvailableOnFood"] : (function () { throw new RuntimeError('Variable "isAvailableOnFood" does not exist.', 277, $this->source); })()))) {
// line 278
echo " ";
if ((array_key_exists("isBuyOnlyCodeResponse", $context) && (isset($context["isBuyOnlyCodeResponse"]) || array_key_exists("isBuyOnlyCodeResponse", $context) ? $context["isBuyOnlyCodeResponse"] : (function () { throw new RuntimeError('Variable "isBuyOnlyCodeResponse" does not exist.', 278, $this->source); })()))) {
// line 279
echo " <button type=\"submit\" class=\"delivery-btn bg-violet text-white d-block disabled my-1\"
id=\"dishSelectFormSubmit\">ПОЛУЧИТЬ ПРОМОКОД ";
// line 280
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.', 280, $this->source); })()), "getDiscount", [], "method", false, false, false, 280), "html", null, true);
echo "
";
} else {
// line 282
echo " ";
if (array_key_exists("isCertificate", $context)) {
// line 283
echo " <button type=\"submit\" class=\"delivery-btn bg-violet text-white d-block disabled my-1\"
id=\"dishSelectFormSubmit\">ОФОРМИТЬ СЕРТИФИКАТ
";
} else {
// line 286
echo " <button type=\"submit\"
class=\"delivery-btn bg-violet text-white d-block disabled my-1\"
id=\"dishSelectFormSubmit\">ЗАКАЗАТЬ ОНЛАЙН
";
}
// line 290
echo " ";
}
// line 291
echo " </button>
";
// line 293
if (( !array_key_exists("isCertificate", $context) || !(isset($context["isCertificate"]) || array_key_exists("isCertificate", $context) ? $context["isCertificate"] : (function () { throw new RuntimeError('Variable "isCertificate" does not exist.', 293, $this->source); })()))) {
// line 294
echo " <div class=\"delivery-btn bg-violet text-white d-block btn-phone-pay ";
echo (((isset($context["isBuyCodeDisable"]) || array_key_exists("isBuyCodeDisable", $context) ? $context["isBuyCodeDisable"] : (function () { throw new RuntimeError('Variable "isBuyCodeDisable" does not exist.', 294, $this->source); })())) ? ("d-none") : (""));
echo "\">
ЗАКАЗАТЬ ПО ТЕЛЕФОНУ
</div>
";
}
// line 298
echo " ";
} else {
// line 299
echo " <div class=\"delivery-btn bg-violet text-white my-1 text-uppercase cursor-pointer w-auto\"
id=\"customPageBuyOrder\"> Получить скидку ";
// line 300
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.', 300, $this->source); })()), "getDiscount", [], "method", false, false, false, 300), "html", null, true);
echo "
</div>
";
}
// line 303
echo " ";
if ((array_key_exists("isCertificate", $context) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 303, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 303))) {
// line 304
echo " <a href=\"/gift-certificate/select/";
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.', 304, $this->source); })()), "getID", [], "method", false, false, false, 304), "html", null, true);
echo "\" class=\"d-none delivery-btn my-1 text-uppercase cursor-pointer w-auto certificate-delivery-btn\"> ВЫБРАТЬ СЕРТИФИКАТ
</a>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 306
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 306, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 306) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 306, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 306))) {
// line 307
echo " <a href=\"/gift-certificate/select/";
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.', 307, $this->source); })()), "getID", [], "method", false, false, false, 307), "html", null, true);
echo "\" class=\"delivery-btn my-1 text-uppercase cursor-pointer w-auto certificate-delivery-btn\"> ВЫБРАТЬ СЕРТИФИКАТ
</a>
";
}
// line 310
echo " </div>
<div id=\"deliveryBtnWrapperForGift\"
class=\"gift-food-delivery-btn-wrapper delivery-btn-wrapper d-none\">
";
// line 313
if (( !array_key_exists("isAvailableOnFood", $context) || !(isset($context["isAvailableOnFood"]) || array_key_exists("isAvailableOnFood", $context) ? $context["isAvailableOnFood"] : (function () { throw new RuntimeError('Variable "isAvailableOnFood" does not exist.', 313, $this->source); })()))) {
// line 314
echo " <button type=\"submit\" class=\"delivery-btn bg-violet text-white d-block disabled my-1\"
id=\"dishSelectFormSubmit\">ЗАКАЗАТЬ СЕБЕ
</button>
<div id=\"btnGiftOrder\" data-toggle=\"modal\" data-target=\"shareFoodForGift\"
class=\"delivery-btn bg-violet text-white d-block w-auto btn-gift-order py-2\">
ЗАКАЗАТЬ В ПОДАРОК<br><span>жене, подруге, родителям, детям </span></div>
";
}
// line 321
echo " </div>
</div>
";
// line 323
if (( !array_key_exists("isAvailableOnFood", $context) || !(isset($context["isAvailableOnFood"]) || array_key_exists("isAvailableOnFood", $context) ? $context["isAvailableOnFood"] : (function () { throw new RuntimeError('Variable "isAvailableOnFood" does not exist.', 323, $this->source); })()))) {
// line 324
echo " </form>
";
} else {
// line 326
echo " </div>
";
}
// line 328
echo " </div>
</div>
<input type=\"hidden\" id=\"minSumForFreeDelivery\" value=\"";
// line 331
echo twig_escape_filter($this->env, (isset($context["minSumForFreeDelivery"]) || array_key_exists("minSumForFreeDelivery", $context) ? $context["minSumForFreeDelivery"] : (function () { throw new RuntimeError('Variable "minSumForFreeDelivery" does not exist.', 331, $this->source); })()), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"minOrderSum\" value=\"";
// line 332
echo twig_escape_filter($this->env, (isset($context["minOrderSum"]) || array_key_exists("minOrderSum", $context) ? $context["minOrderSum"] : (function () { throw new RuntimeError('Variable "minOrderSum" does not exist.', 332, $this->source); })()), "html", null, true);
echo "\">
";
// line 333
if ((array_key_exists("allowedCodesToBuy", $context) && !(null === (isset($context["allowedCodesToBuy"]) || array_key_exists("allowedCodesToBuy", $context) ? $context["allowedCodesToBuy"] : (function () { throw new RuntimeError('Variable "allowedCodesToBuy" does not exist.', 333, $this->source); })())))) {
// line 334
echo " <input type=\"hidden\" id=\"allowedCodesCountBySubscription\" value=\"";
echo twig_escape_filter($this->env, (isset($context["allowedCodesToBuy"]) || array_key_exists("allowedCodesToBuy", $context) ? $context["allowedCodesToBuy"] : (function () { throw new RuntimeError('Variable "allowedCodesToBuy" does not exist.', 334, $this->source); })()), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"allowedCodesToBuy\" value=\"";
// line 335
echo twig_escape_filter($this->env, (isset($context["allowedCodesToBuy"]) || array_key_exists("allowedCodesToBuy", $context) ? $context["allowedCodesToBuy"] : (function () { throw new RuntimeError('Variable "allowedCodesToBuy" does not exist.', 335, $this->source); })()), "html", null, true);
echo "\">
";
}
// line 337
echo " ";
if ((array_key_exists("allowedCodesToBuyBatchCodes", $context) && !(null === (isset($context["allowedCodesToBuyBatchCodes"]) || array_key_exists("allowedCodesToBuyBatchCodes", $context) ? $context["allowedCodesToBuyBatchCodes"] : (function () { throw new RuntimeError('Variable "allowedCodesToBuyBatchCodes" does not exist.', 337, $this->source); })())))) {
// line 338
echo " <input type=\"hidden\" id=\"allowedCodesToBuyBatchCodes\" value=\"";
echo twig_escape_filter($this->env, (isset($context["allowedCodesToBuyBatchCodes"]) || array_key_exists("allowedCodesToBuyBatchCodes", $context) ? $context["allowedCodesToBuyBatchCodes"] : (function () { throw new RuntimeError('Variable "allowedCodesToBuyBatchCodes" does not exist.', 338, $this->source); })()), "html", null, true);
echo "\">
";
}
// line 340
echo " <div class=\"hidden\">
<div id=\"deliveryBasketItemTemplate\">
";
// line 342
$this->loadTemplate("Slivki/delivery/basket_item.html.twig", "Slivki/delivery/order.html.twig", 342)->display($context);
// line 343
echo " </div>
<div id=\"deliveryBasketOptionTemplate\">
";
// line 345
$this->loadTemplate("Slivki/delivery/basket_option_item.html.twig", "Slivki/delivery/order.html.twig", 345)->display($context);
// line 346
echo " </div>
<div id=\"deliveryBasketTotalTemplate\">
<div class=\"delivery-teaser-row mb-3\">
<div class=\"col\">
<span><span class=\"dish-name\"></span> <small class=\"text-muted dish-discount\"></small></span>
</div>
<div class=\"col text-right\">
<del class=\"text-danger mr-1\"><small class=\"text-muted dish-item-price\"></small></del>
<span class=\"sf-bold-font dish-item-offer-price\"></span>
</div>
</div>
</div>
</div>
";
// line 359
$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 360
echo " ";
$this->loadTemplate("Slivki/footer_for_partner.html.twig", "Slivki/delivery/order.html.twig", 360)->display($context);
// line 361
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 364
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 365
echo " ";
$this->displayParentBlock("popups", $context, $blocks);
echo "
";
// line 366
$this->loadTemplate("Slivki/delivery/modal/clear_basket_modal.html.twig", "Slivki/delivery/order.html.twig", 366)->display($context);
// line 367
echo " ";
$this->loadTemplate("Slivki/delivery/modal/details.html.twig", "Slivki/delivery/order.html.twig", 367)->display(twig_array_merge($context, ["isOfferPage" => false]));
// line 368
echo " ";
$this->loadTemplate("Slivki/popups/reviews_delivery_page.html.twig", "Slivki/delivery/order.html.twig", 368)->display($context);
// line 369
echo " ";
$this->loadTemplate("Slivki/popups/delivery_page_modal.html.twig", "Slivki/delivery/order.html.twig", 369)->display($context);
// line 370
echo " ";
$this->loadTemplate("Slivki/popups/buy_code_phone_offer.html.twig", "Slivki/delivery/order.html.twig", 370)->display($context);
// line 371
echo " ";
$this->loadTemplate("Slivki/popups/buy_code_item-offer.html.twig", "Slivki/delivery/order.html.twig", 371)->display($context);
// line 372
echo " ";
$this->loadTemplate("Slivki/popups/buy_code_phonenumber_offers.html.twig", "Slivki/delivery/order.html.twig", 372)->display($context);
// line 373
echo " ";
$this->loadTemplate("Slivki/popups/buy_code_erip_offers.html.twig", "Slivki/delivery/order.html.twig", 373)->display($context);
// line 374
echo " ";
$this->loadTemplate("Slivki/food_court/modal/maps.html.twig", "Slivki/delivery/order.html.twig", 374)->display($context);
// line 375
echo " ";
$this->loadTemplate("Slivki/popups/buy_promo_custom.html.twig", "Slivki/delivery/order.html.twig", 375)->display($context);
// line 376
echo " ";
$this->loadTemplate("Slivki/popups/share_food_gift_modal_male.html.twig", "Slivki/delivery/order.html.twig", 376)->display($context);
// line 377
echo " ";
$this->loadTemplate("Slivki/popups/create_massage_popup.html.twig", "Slivki/delivery/order.html.twig", 377)->display($context);
// line 378
echo " ";
$this->loadTemplate("Slivki/popups/share_gift_modal.html.twig", "Slivki/delivery/order.html.twig", 378)->display($context);
// line 379
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.', 379, $this->source); })()), "user", [], "any", false, false, false, 379) && 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.', 379, $this->source); })()), "user", [], "any", false, false, false, 379), "getActiveCreditCards", [], "method", false, false, false, 379))) {
// line 380
echo " ";
$this->loadTemplate("Slivki/popups/buy_code_credit_cards.html.twig", "Slivki/delivery/order.html.twig", 380)->display($context);
// line 381
echo " ";
}
// line 382
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.', 382, $this->source); })()), "getBrandboxEnabled", [], "method", false, false, false, 382) && !array_key_exists("isCertificate", $context))) {
// line 383
echo " ";
$this->loadTemplate("Slivki/delivery/modal/brandbox/brandbox_popup.html.twig", "Slivki/delivery/order.html.twig", 383)->display($context);
// line 384
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 387
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 388
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.min.js\"></script>
<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 type=\"module\" src=\"/js/order_page/order_page.js?v=";
// line 393
echo twig_escape_filter($this->env, (isset($context["order_page_js_version"]) || array_key_exists("order_page_js_version", $context) ? $context["order_page_js_version"] : (function () { throw new RuntimeError('Variable "order_page_js_version" does not exist.', 393, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/order_page/api.js?v=1\"></script>
<script type=\"module\" src=\"/js/paymentOrderPage/paymentOrderPage.js?v=";
// line 395
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.', 395, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/paymentOrderPage/api.js?v=";
// line 396
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.', 396, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/delivery-common.js?v=";
// line 397
echo twig_escape_filter($this->env, (isset($context["delivery_common_js_version"]) || array_key_exists("delivery_common_js_version", $context) ? $context["delivery_common_js_version"] : (function () { throw new RuntimeError('Variable "delivery_common_js_version" does not exist.', 397, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/delivery.js?v=";
// line 398
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.', 398, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"https://unpkg.com/jquery-datetimepicker@2/build/jquery.datetimepicker.full.min.js\"></script>
<script src=\"//cdn.jsdelivr.net/momentjs/latest/moment.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.min.js\"></script>
<script src=\"/js/offer.js?v=";
// line 402
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.', 402, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/order_as_gift/main.js?v=";
// line 403
echo twig_escape_filter($this->env, (isset($context["order_as_gift_js_version"]) || array_key_exists("order_as_gift_js_version", $context) ? $context["order_as_gift_js_version"] : (function () { throw new RuntimeError('Variable "order_as_gift_js_version" does not exist.', 403, $this->source); })()), "html", null, true);
echo "\"></script>
";
// line 404
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.', 404, $this->source); })()), "request", [], "any", false, false, false, 404), "query", [], "any", false, false, false, 404), "has", [0 => "checkOrder"], "method", false, false, false, 404)) {
// line 405
echo " <script>
\$(function () {
initCheckOfferOrderStatus(";
// line 407
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.', 407, $this->source); })()), "request", [], "any", false, false, false, 407), "get", [0 => "checkOrder"], "method", false, false, false, 407), "html", null, true);
echo ");
});
</script>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/delivery/order.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 983 => 407, 979 => 405, 977 => 404, 973 => 403, 969 => 402, 962 => 398, 958 => 397, 954 => 396, 950 => 395, 945 => 393, 936 => 388, 926 => 387, 915 => 384, 912 => 383, 909 => 382, 906 => 381, 903 => 380, 900 => 379, 897 => 378, 894 => 377, 891 => 376, 888 => 375, 885 => 374, 882 => 373, 879 => 372, 876 => 371, 873 => 370, 870 => 369, 867 => 368, 864 => 367, 862 => 366, 857 => 365, 847 => 364, 837 => 361, 834 => 360, 815 => 359, 800 => 346, 798 => 345, 794 => 343, 792 => 342, 788 => 340, 782 => 338, 779 => 337, 774 => 335, 769 => 334, 767 => 333, 763 => 332, 759 => 331, 754 => 328, 750 => 326, 746 => 324, 744 => 323, 740 => 321, 731 => 314, 729 => 313, 724 => 310, 717 => 307, 715 => 306, 709 => 304, 706 => 303, 700 => 300, 697 => 299, 694 => 298, 686 => 294, 684 => 293, 680 => 291, 677 => 290, 671 => 286, 666 => 283, 663 => 282, 658 => 280, 655 => 279, 652 => 278, 650 => 277, 646 => 275, 603 => 234, 591 => 224, 587 => 222, 582 => 219, 580 => 218, 576 => 216, 570 => 215, 557 => 205, 550 => 203, 541 => 196, 535 => 192, 529 => 188, 525 => 186, 521 => 184, 519 => 183, 516 => 182, 513 => 181, 507 => 177, 503 => 175, 499 => 173, 495 => 171, 493 => 170, 490 => 169, 488 => 168, 481 => 163, 479 => 162, 476 => 161, 470 => 159, 468 => 158, 464 => 157, 458 => 154, 454 => 152, 450 => 150, 444 => 148, 442 => 147, 438 => 145, 434 => 143, 427 => 141, 425 => 140, 422 => 139, 418 => 138, 414 => 136, 412 => 135, 409 => 134, 406 => 133, 391 => 131, 389 => 130, 386 => 129, 383 => 128, 380 => 127, 377 => 126, 374 => 125, 356 => 124, 354 => 123, 347 => 118, 343 => 116, 341 => 115, 338 => 114, 334 => 112, 331 => 111, 327 => 109, 325 => 108, 322 => 107, 319 => 106, 317 => 105, 302 => 95, 296 => 91, 294 => 90, 282 => 80, 280 => 79, 277 => 78, 268 => 71, 258 => 66, 254 => 65, 245 => 59, 241 => 58, 236 => 56, 229 => 52, 223 => 49, 218 => 46, 216 => 45, 207 => 41, 204 => 40, 196 => 38, 194 => 37, 190 => 36, 185 => 33, 181 => 31, 178 => 30, 172 => 28, 169 => 27, 165 => 25, 162 => 24, 158 => 22, 155 => 21, 151 => 19, 148 => 18, 138 => 17, 120 => 15, 102 => 13, 90 => 10, 86 => 9, 82 => 8, 74 => 4, 64 => 3, 41 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
<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\"/>
<link href=\"/css/delivery.css?v={{ delivery_css_version }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/order_page.css?v={{ order_page_css_version }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/orderAsGift.css?v={{ order_as_gift_css }}\" rel=\"stylesheet\" type=\"text/css\"/>
{% endblock %}
{% block left_sidebar %}{% endblock %}
{% block messenger %}{% endblock %}
{% block content %}
{% if offer.isWithoutCodes() %}
<input type=\"hidden\" id=\"isWithoutCodes\">
{% endif %}
{% if isFirstSosediPurchase is defined and isFirstSosediPurchase %}
<input type=\"hidden\" id=\"isFirstSosediPurchase\">
{% endif %}
{% if isCertificate is defined and isCertificate %}
<input id=\"isCertificate\" type=\"hidden\" value=\"\">
{% endif %}
{% if director is defined %}
<input type=\"hidden\" id=\"companyNameOffer\" value=\"{{ director.getName()|e }}\">
{% endif %}
{% if isAvailableOnFood is defined and isAvailableOnFood %}
<input type=\"hidden\" id=\"isAvailableOnFood\" value=\"true\">
{% endif %}
<div class=\"delivery-page container sf-font\">
<div id=\"deliveryContent\" class=\"js-delivery-teasers\">
<div class=\"breadcrumbs sf-text-font\">
<a href=\"{{ base_url }}\">Главная</a>
{% if categoryName != null %}
<i class=\"fa fa-angle-right\"></i> <a href=\"{{ categoryURL }}\">{{ categoryName }}</a>
{% endif %}
<i class=\"fa fa-angle-right\"></i> <a
href=\"{{ getURL(constant('Slivki\\\\Repository\\\\SeoRepository::RESOURCE_URL_OFFER_DETAILS'), offer.getID()) }}\">{{ offer.getCompanyName() }}</a>
<i class=\"fa fa-angle-right\"></i> <a href=\"javascript:;\">Онлайн заказ</a>
</div>
<div class=\"clear\"></div>
{% if isCertificate is defined and isCertificate %}
<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=\"{{ getImageURL(offer.getTopBlockMedia(), 0, 0) }}\"/>
</div>
<div class=\"delivery-supplier--logo\"
style=\"background-image: url('{{ getImageURL(logoMedia, 0, 0) }}')\"
>
</div>
<div class=\"delivery-supplier--rating\">
<i class=\"slivki-icon-star\">{{ offer.getRating() }}</i>
<span class=\"pl-2\"><i
class=\"slivki-icon slivki-icon-users\"></i>{{ purchaseCountMonth is defined ? purchaseCountMonth : offer.getUsedCodesCount() }}</span>
<span class=\"pl-2\"><i class=\"slivki-icon-eye\"></i>{{ visitCount }}</span>
</div>
<div class=\"delivery-supplier--text sf-bold-font\"></div>
<div class=\"delivery-supplier--info\">
<i class=\"slivki-icon-info-circled-o\"></i><span>Информация о компании</span>
<div class=\"supplier-info-tooltip arrow-box\">
<div class=\"mb-2 sf-bold-font\">{{ director.getName() }}</div>
<div class=\"text-muted\">{{ director.getLegalEntity() }} УНП {{ director.getTaxID() }}</div>
</div>
</div>
</div>
{% else %}
<div class=\"py-2 px-0 sf-font\">
<div class=\"brand-block\">
<div id=\"mapOrderPage\" class=\"d-none\" style=\"height: 210px;\" data-toggle=\"modal\"
data-target=\"#mapsModal\"></div>
</div>
</div>
{% endif %}
{% if isCertificate is not defined or not isCertificate %}
<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;\">
<div class=\"col d-flex align-items-center text-white justify-content-end px-0\">
<p class=\"col mb-0 px-0 text-filter-tittle\">⚡️ Используй супер-фильтр</p>
<div class=\"position-relative ordder-page-filter-block\">
<div class=\"ordder-page-filter py-1 mx-2\">
<f class=\"text-filter\">Сравни 🔥</f>
</div>
<div class=\"filter-items-block filter-items px-2 py-2\" style=\"display: none\">
<div class=\"filter-items-wrapper\">
{% include 'Slivki/online_order/_online_order_sort.html.twig' %}
</div>
</div>
</div>
</div>
<div class=\"switch-delivery-pickup-block px-0 {% if not offer.getBrandboxEnabled() %}d-none{% endif %}\">
<a class=\"switch-delivery-pickup-item button-tab-delivery delivery-type active\">
<p>Доставка</p>
<small>удобно👌</small>
</a>
<a class=\"switch-delivery-pickup-item pickup-type button-tab-pickup\">
<p> Самовывоз</p>
<small>еще дешевле🔥</small>
</a>
</div>
{% if isCertificate is not defined %}
{% if pickupEnabled %}
<input id=\"deliveryTypeOffers\" type=\"hidden\" value=\"2\">
{% elseif deliveryEnabled %}
<input id=\"deliveryTypeOffers\" type=\"hidden\" value=\"1\">
{% endif %}
{% endif %}
</div>
{% else %}
<div class=\"d-flex mt-3\" style=\"justify-content: flex-end\">
{% include 'Slivki/delivery/_delivery_sort_filter.html.twig' %}
</div>
{% endif %}
<div id=\"dominosCustomReload\" style=\"display: none\">
<img src=\"/images/bannerDominos.png\" alt=\"\">
</div>
<div id=\"listProducts\" class=\"delivery-teaser-row delivery-teasers-block\">
{% if isCertificate is defined and isCertificate %}
{% for dish in dishes %}
{% set teaserView = 'Slivki/delivery/delivery_teaser.html.twig' %}
{% if dish.isPizza is defined and dish.isPizza %}
{% set teaserView = 'Slivki/delivery/delivery_teaser_pizza.html.twig' %}
{% endif %}
<div class=\"col-4\">
{% include teaserView with {'isTop': dish.id in topDishIDList, 'isAvailableOnFood': isAvailableOnFood is defined and isAvailableOnFood} %}
</div>
{% endfor %}
{% endif %}
</div>
{% if options|length > 0 and showDelivery %}
<div id=\"dataMenu_options\" class=\"mb-2 pl-2 font-size-1250 sf-bold-font\">Дополнительные товары:</div>
<div class=\"delivery-teaser-row delivery-teasers-block\">
{% for option in options %}
<div class=\"col-4\">
{% include 'Slivki/delivery/delivery_teaser.html.twig' with {'dish': option, 'isOption': true} only %}
</div>
{% endfor %}
</div>
{% endif %}
</div>
<div id=\"deliverySidebar\">
{% if isAvailableOnFood is not defined or not isAvailableOnFood %}
<form method=\"post\" action=\"{{ formAction }}\" id=\"dishSelectForm\">
{% else %}
<div id=\"dishSelectForm\">
{% endif %}
<input type=\"hidden\" id=\"pickupDeliveryType\" name=\"pickupDeliveryType\" value=\"\"/>
<input type=\"hidden\" id=\"deliveryBasketInput\" name=\"basket\" value=\"\"/>
<input id=\"offerID\" type=\"hidden\" name=\"offerID\" value=\"{{ offer.getID() }}\"/>
<input type=\"hidden\" id=\"dishSortBy\" name=\"dishSortBy\" value=\"\"/>
<input type=\"hidden\" id=\"isDominos\" name=\"isDominos\"
value=\"{{ (isDominos is defined and isDominos) ? '1' : '0' }}\">
{% if deliveryPrice is defined %}
<input type=\"hidden\" id=\"deliveryPrice\" name=\"deliveryPrice\" value=\"{{ deliveryPrice }}\"/>
{% endif %}
<div id=\"deliverySidebarContent\">
{% if isAvailableOnFood is not defined or not isAvailableOnFood %}
<div>
<p class=\"basket-tittle\">Ваш заказ</p>
</div>
<div id=\"deliveryEmpty\">
<div class=\"d-flex flex-column justify-content-center align-items-center text-center\">
{% if isCertificate is not defined or not isCertificate or offer.getID() == 283384 %}
<div class=\"delivery-empty-logo\">
{% if offer.hasCategory(constant('Slivki\\\\Repository\\\\SeoRepository::FLOWERS_CATEGORY_ID')) %}
<img height=\"119\" class=\"mx-auto\" src=\"/images/basketFlowers.png\" alt=\"\">
{% else %}
<img height=\"119\" class=\"mx-auto\" src=\"/images/sideBarEda.gif\" alt=\"\">
{% endif %}
</div>
{% else %}
<div class=\"delivery-empty-logo\">
<img height=\"119\" class=\"mx-auto\" src=\"/images/sertificate.gif\" alt=\"\">
</div>
{% endif %}
{% if isCertificate is not defined or not isCertificate %}
<p class=\"font-size-1125 delivery-empty-text\">Выберите
{% if offer.hasCategory(constant('Slivki\\\\Repository\\\\SeoRepository::FLOWERS_CATEGORY_ID')) %}
товары
{% else %}
блюда
{% endif %}
<br> и добавьте их к
заказу
</p>
{% else %}
<p class=\"font-size-1125 delivery-empty-text\">Выберите услуги<br> и добавьте их
к заказу
</p>
{% endif %}
</div>
</div>
<div id=\"deliveryBasketWrapper\" style=\"display: none;\">
<a href=\"#\" id=\"clearBasketBtn\" data-toggle=\"modal\"
data-target=\"#confirmBasketClearModal\">
<img width=\"16\" height=\"16\" class=\"mx-1\" src=\"/images/order_page/basket-icon.svg\"/>
Очистить</a>
<div id=\"deliverySidebarScroll\" {% if isCertificate is not defined or not isCertificate %} class=\"height-74\" {% endif %}>
<div id=\"deliveryBasketTop\" class=\"js-basket-modal\"></div>
<div class=\"d-none options-tittle sf-bold-font font-size-1000 mb-3 {{ not showDelivery ? 'd-none' }}\">
<strong>Дополнительные товары:</strong>
</div>
<div id=\"deliveryBasketOptions\"></div>
<div class=\"delivery-basket-total font-size-1000 d-none\">
<div id=\"deliveryTotalDishes\"></div>
<div id=\"deliveryTotalOptions\"></div>
<span id=\"codeCost\" data-price=\"0\"></span>
</div>
</div>
<div id=\"deliverySidebarTotal\" {% if isCertificate is not defined or not isCertificate %} class=\"{{ isBuyCodeDisable ? '' : 'bottom-basket-offers' }}\" {% endif %}
style=\"display: none;\">
<div class=\"delivery-teaser-row font-size-1250\">
{% if isBuyOnlyCodeResponse is defined and isBuyOnlyCodeResponse %}
<div class=\"col-auto basket-tittle font-size-0900 mb-0\">К оплате на кассе:
</div>
{% else %}
<div class=\"col-auto basket-tittle mb-0\">Итого:</div>
{% endif %}
<div class=\"col text-right\">
<del class=\"mr-1\" style=\"text-decoration: none;\"><span
id=\"deliveryTotalPrice\"></span></del>
<span class=\"sf-bold-font\" id=\"deliveryTotalOfferPrice\"></span>
</div>
</div>
</div>
</div>
{% else %}
<div id=\"customFoodBasket\">
<div id=\"customFoodBasketConditions\">
<p class=\"tittle-basket-custom-food\">Условия заказа</p>
<div class=\"offer-conditions\"></div>
</div>
<div id=\"customFoodBasketPayMethods\" class=\"col\" style=\"display: none\">
<span id=\"unitPrice\" style=\"display: none;\">2.10</span>
<div class=\"custom-promo-info\">
<div class=\"custom-promo-block\">
<p class=\"sf-bold-font text-uppercase text-center my-3\">Для заказа по
телефону<br>
оплатите промокод <br>на скидку</p>
</div>
<div class=\"d-flex col justify-content-center my-2\">
<div class=\"payment-sum-block mb-3\">
<div class=\"unit-wrapp\">
<div class=\"minusUnit\" onclick=\"minus()\">
<img class=\"delivery-dec-quantity-img\" width=\"14\" height=\"14\"
src=\"/images/order_page/dec.svg\">
</div>
<span id=\"units\" class=\"js-units-header-popup-custom\"> 1 </span>
<div class=\"plusUnit\" onclick=\"plus()\">
<img width=\"14\" height=\"14\" src=\"/images/order_page/inc.svg\">
</div>
</div>
</div>
</div>
<div class=\"align-self-center\">
<p class=\"font-size-0750 mb-4 sf-font text-center\"><strong
class=\"font-size-10625 font-800\">
к оплате <span class=\"confirm-box-total mr-1\">2,10</span>р</strong>
</p>
</div>
</div>
<p class=\"my-2 sf-font font-size-1000 text-center\">Выберите способ оплаты:</p>
<div id=\"paymentMethodsCustom\"></div>
</div>
</div>
{% endif %}
<div id=\"deliveryBtnWrapperWithoutGift\" class=\"delivery-btn-wrapper\">
{% if isAvailableOnFood is not defined or not isAvailableOnFood %}
{% if isBuyOnlyCodeResponse is defined and isBuyOnlyCodeResponse %}
<button type=\"submit\" class=\"delivery-btn bg-violet text-white d-block disabled my-1\"
id=\"dishSelectFormSubmit\">ПОЛУЧИТЬ ПРОМОКОД {{ offer.getDiscount() }}
{% else %}
{% if isCertificate is defined %}
<button type=\"submit\" class=\"delivery-btn bg-violet text-white d-block disabled my-1\"
id=\"dishSelectFormSubmit\">ОФОРМИТЬ СЕРТИФИКАТ
{% else %}
<button type=\"submit\"
class=\"delivery-btn bg-violet text-white d-block disabled my-1\"
id=\"dishSelectFormSubmit\">ЗАКАЗАТЬ ОНЛАЙН
{% endif %}
{% endif %}
</button>
{% if isCertificate is not defined or not isCertificate %}
<div class=\"delivery-btn bg-violet text-white d-block btn-phone-pay {{ isBuyCodeDisable ? 'd-none' : '' }}\">
ЗАКАЗАТЬ ПО ТЕЛЕФОНУ
</div>
{% endif %}
{% else %}
<div class=\"delivery-btn bg-violet text-white my-1 text-uppercase cursor-pointer w-auto\"
id=\"customPageBuyOrder\"> Получить скидку {{ offer.getDiscount() }}
</div>
{% endif %}
{% if isCertificate is defined and offer.isFoodOnlineOrderAllowedOnSite() %}
<a href=\"/gift-certificate/select/{{ offer.getID() }}\" class=\"d-none delivery-btn my-1 text-uppercase cursor-pointer w-auto certificate-delivery-btn\"> ВЫБРАТЬ СЕРТИФИКАТ
</a>
{% elseif offer.isGiftCertificateOnlineOrderAllowedOnSite() and offer.isFoodOnlineOrderAllowedOnSite() %}
<a href=\"/gift-certificate/select/{{ offer.getID() }}\" class=\"delivery-btn my-1 text-uppercase cursor-pointer w-auto certificate-delivery-btn\"> ВЫБРАТЬ СЕРТИФИКАТ
</a>
{% endif %}
</div>
<div id=\"deliveryBtnWrapperForGift\"
class=\"gift-food-delivery-btn-wrapper delivery-btn-wrapper d-none\">
{% if isAvailableOnFood is not defined or not isAvailableOnFood %}
<button type=\"submit\" class=\"delivery-btn bg-violet text-white d-block disabled my-1\"
id=\"dishSelectFormSubmit\">ЗАКАЗАТЬ СЕБЕ
</button>
<div id=\"btnGiftOrder\" data-toggle=\"modal\" data-target=\"shareFoodForGift\"
class=\"delivery-btn bg-violet text-white d-block w-auto btn-gift-order py-2\">
ЗАКАЗАТЬ В ПОДАРОК<br><span>жене, подруге, родителям, детям </span></div>
{% endif %}
</div>
</div>
{% if isAvailableOnFood is not defined or not isAvailableOnFood %}
</form>
{% else %}
</div>
{% endif %}
</div>
</div>
<input type=\"hidden\" id=\"minSumForFreeDelivery\" value=\"{{ minSumForFreeDelivery }}\">
<input type=\"hidden\" id=\"minOrderSum\" value=\"{{ minOrderSum }}\">
{% if allowedCodesToBuy is defined and allowedCodesToBuy is not null %}
<input type=\"hidden\" id=\"allowedCodesCountBySubscription\" value=\"{{ allowedCodesToBuy }}\">
<input type=\"hidden\" id=\"allowedCodesToBuy\" value=\"{{ allowedCodesToBuy }}\">
{% endif %}
{% if allowedCodesToBuyBatchCodes is defined and allowedCodesToBuyBatchCodes is not null %}
<input type=\"hidden\" id=\"allowedCodesToBuyBatchCodes\" value=\"{{ allowedCodesToBuyBatchCodes }}\">
{% endif %}
<div class=\"hidden\">
<div id=\"deliveryBasketItemTemplate\">
{% include 'Slivki/delivery/basket_item.html.twig' %}
</div>
<div id=\"deliveryBasketOptionTemplate\">
{% include 'Slivki/delivery/basket_option_item.html.twig' %}
</div>
<div id=\"deliveryBasketTotalTemplate\">
<div class=\"delivery-teaser-row mb-3\">
<div class=\"col\">
<span><span class=\"dish-name\"></span> <small class=\"text-muted dish-discount\"></small></span>
</div>
<div class=\"col text-right\">
<del class=\"text-danger mr-1\"><small class=\"text-muted dish-item-price\"></small></del>
<span class=\"sf-bold-font dish-item-offer-price\"></span>
</div>
</div>
</div>
</div>
{% block footer %}
{% include 'Slivki/footer_for_partner.html.twig' %}
{% endblock %}
{% endblock %}
{% block popups %}
{{ parent() }}
{% include 'Slivki/delivery/modal/clear_basket_modal.html.twig' %}
{% include 'Slivki/delivery/modal/details.html.twig' with {'isOfferPage': false} %}
{% include 'Slivki/popups/reviews_delivery_page.html.twig' %}
{% include 'Slivki/popups/delivery_page_modal.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/food_court/modal/maps.html.twig' %}
{% include 'Slivki/popups/buy_promo_custom.html.twig' %}
{% include 'Slivki/popups/share_food_gift_modal_male.html.twig' %}
{% include 'Slivki/popups/create_massage_popup.html.twig' %}
{% include 'Slivki/popups/share_gift_modal.html.twig' %}
{% if app.user and app.user.getActiveCreditCards() %}
{% include 'Slivki/popups/buy_code_credit_cards.html.twig' %}
{% endif %}
{% if offer.getBrandboxEnabled() and isCertificate is not defined %}
{% include 'Slivki/delivery/modal/brandbox/brandbox_popup.html.twig' %}
{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.min.js\"></script>
<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 type=\"module\" src=\"/js/order_page/order_page.js?v={{ order_page_js_version }}\"></script>
<script type=\"module\" src=\"/js/order_page/api.js?v=1\"></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>
<script src=\"/js/delivery-common.js?v={{ delivery_common_js_version }}\"></script>
<script src=\"/js/delivery.js?v={{ delivery_js_version }}\"></script>
<script src=\"https://unpkg.com/jquery-datetimepicker@2/build/jquery.datetimepicker.full.min.js\"></script>
<script src=\"//cdn.jsdelivr.net/momentjs/latest/moment.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.min.js\"></script>
<script src=\"/js/offer.js?v={{ offer_js_version }}\"></script>
<script type=\"module\" src=\"/js/order_as_gift/main.js?v={{ order_as_gift_js_version }}\"></script>
{% if app.request.query.has('checkOrder') %}
<script>
\$(function () {
initCheckOfferOrderStatus({{ app.request.get('checkOrder') }});
});
</script>
{% endif %}
{% endblock %}", "Slivki/delivery/order.html.twig", "/mnt/data/virtwww/vlad-slivki/templates/Slivki/delivery/order.html.twig");
}
}