<?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.min.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.min.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.min.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=\"listProducts\" class=\"delivery-teaser-row delivery-teasers-block\">
";
// line 119
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.', 119, $this->source); })()))) {
// line 120
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.', 120, $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 121
echo " ";
$context["teaserView"] = "Slivki/delivery/delivery_teaser.html.twig";
// line 122
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["dish"], "isPizza", [], "any", true, true, false, 122) && twig_get_attribute($this->env, $this->source, $context["dish"], "isPizza", [], "any", false, false, false, 122))) {
// line 123
echo " ";
$context["teaserView"] = "Slivki/delivery/delivery_teaser_pizza.html.twig";
// line 124
echo " ";
}
// line 125
echo " <div class=\"col-4\">
";
// line 126
$this->loadTemplate((isset($context["teaserView"]) || array_key_exists("teaserView", $context) ? $context["teaserView"] : (function () { throw new RuntimeError('Variable "teaserView" does not exist.', 126, $this->source); })()), "Slivki/delivery/order.html.twig", 126)->display(twig_array_merge($context, ["isTop" => twig_in_filter(twig_get_attribute($this->env, $this->source, $context["dish"], "id", [], "any", false, false, false, 126), (isset($context["topDishIDList"]) || array_key_exists("topDishIDList", $context) ? $context["topDishIDList"] : (function () { throw new RuntimeError('Variable "topDishIDList" does not exist.', 126, $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.', 126, $this->source); })()))]));
// line 127
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 129
echo " ";
}
// line 130
echo " </div>
";
// line 131
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.', 131, $this->source); })())), 0)) && (isset($context["showDelivery"]) || array_key_exists("showDelivery", $context) ? $context["showDelivery"] : (function () { throw new RuntimeError('Variable "showDelivery" does not exist.', 131, $this->source); })()))) {
// line 132
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 134
$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.', 134, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
// line 135
echo " <div class=\"col-4\">
";
// line 136
$this->loadTemplate("Slivki/delivery/delivery_teaser.html.twig", "Slivki/delivery/order.html.twig", 136)->display(twig_to_array(["dish" => $context["option"], "isOption" => true]));
// line 137
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 139
echo " </div>
";
}
// line 141
echo " </div>
<div id=\"deliverySidebar\">
";
// line 143
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.', 143, $this->source); })()))) {
// line 144
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.', 144, $this->source); })()), "html", null, true);
echo "\" id=\"dishSelectForm\">
";
} else {
// line 146
echo " <div id=\"dishSelectForm\">
";
}
// line 148
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 150
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.', 150, $this->source); })()), "getID", [], "method", false, false, false, 150), "html", null, true);
echo "\"/>
<input type=\"hidden\" id=\"dishSortBy\" name=\"dishSortBy\" value=\"\"/>
<input type=\"hidden\" id=\"isDominos\" name=\"isDominos\"
value=\"";
// line 153
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.', 153, $this->source); })()))) ? ("1") : ("0"));
echo "\">
";
// line 154
if (array_key_exists("deliveryPrice", $context)) {
// line 155
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.', 155, $this->source); })()), "html", null, true);
echo "\"/>
";
}
// line 157
echo " <div id=\"deliverySidebarContent\">
";
// line 158
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.', 158, $this->source); })()))) {
// line 159
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 164
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.', 164, $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.', 164, $this->source); })()), "getID", [], "method", false, false, false, 164), 283384)))) {
// line 165
echo " <div class=\"delivery-empty-logo\">
";
// line 166
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.', 166, $this->source); })()), "hasCategory", [0 => twig_constant("Slivki\\Repository\\SeoRepository::FLOWERS_CATEGORY_ID")], "method", false, false, false, 166)) {
// line 167
echo " <img height=\"119\" class=\"mx-auto\" src=\"/images/basketFlowers.png\" alt=\"\">
";
} else {
// line 169
echo " <img height=\"119\" class=\"mx-auto\" src=\"/images/sideBarEda.gif\" alt=\"\">
";
}
// line 171
echo " </div>
";
} else {
// line 173
echo " <div class=\"delivery-empty-logo\">
<img height=\"119\" class=\"mx-auto\" src=\"/images/sertificate.gif\" alt=\"\">
</div>
";
}
// line 177
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.', 177, $this->source); })()))) {
// line 178
echo " <p class=\"font-size-1125 delivery-empty-text\">Выберите
";
// line 179
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.', 179, $this->source); })()), "hasCategory", [0 => twig_constant("Slivki\\Repository\\SeoRepository::FLOWERS_CATEGORY_ID")], "method", false, false, false, 179)) {
// line 180
echo " товары
";
} else {
// line 182
echo " блюда
";
}
// line 184
echo " <br> и добавьте их к
заказу
</p>
";
} else {
// line 188
echo " <p class=\"font-size-1125 delivery-empty-text\">Выберите услуги<br> и добавьте их
к заказу
</p>
";
}
// line 192
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 199
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.', 199, $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 201
echo (( !(isset($context["showDelivery"]) || array_key_exists("showDelivery", $context) ? $context["showDelivery"] : (function () { throw new RuntimeError('Variable "showDelivery" does not exist.', 201, $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 211
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.', 211, $this->source); })()))) {
echo " class=\"";
echo (((isset($context["isBuyCodeDisable"]) || array_key_exists("isBuyCodeDisable", $context) ? $context["isBuyCodeDisable"] : (function () { throw new RuntimeError('Variable "isBuyCodeDisable" does not exist.', 211, $this->source); })())) ? ("") : ("bottom-basket-offers"));
echo "\" ";
}
// line 212
echo " style=\"display: none;\">
<div class=\"delivery-teaser-row font-size-1250\">
";
// line 214
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.', 214, $this->source); })()))) {
// line 215
echo " <div class=\"col-auto basket-tittle font-size-0900 mb-0\">К оплате на кассе:
</div>
";
} else {
// line 218
echo " <div class=\"col-auto basket-tittle mb-0\">Итого:</div>
";
}
// line 220
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 230
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\">";
// line 261
echo twig_escape_filter($this->env, (isset($context["codeCost"]) || array_key_exists("codeCost", $context) ? $context["codeCost"] : (function () { throw new RuntimeError('Variable "codeCost" does not exist.', 261, $this->source); })()), "html", null, true);
echo "</span>р</strong>
</p>
</div>
</div>
<p class=\"my-2 sf-font font-size-1000 text-center\">Выберите способ оплаты:</p>
<div id=\"paymentMethodsCustom\"></div>
</div>
</div>
";
}
// line 271
echo "
<div id=\"deliveryBtnWrapperWithoutGift\" class=\"delivery-btn-wrapper\">
";
// line 273
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.', 273, $this->source); })()))) {
// line 274
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.', 274, $this->source); })()))) {
// line 275
echo " <button type=\"submit\" class=\"delivery-btn bg-violet text-white d-block disabled my-1\"
id=\"dishSelectFormSubmit\">ПОЛУЧИТЬ ПРОМОКОД ";
// line 276
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.', 276, $this->source); })()), "getDiscount", [], "method", false, false, false, 276), "html", null, true);
echo "
";
} else {
// line 278
echo " ";
if (array_key_exists("isCertificate", $context)) {
// line 279
echo " <button type=\"submit\" class=\"delivery-btn bg-violet text-white d-block disabled my-1\"
id=\"dishSelectFormSubmit\">ОФОРМИТЬ СЕРТИФИКАТ
";
} else {
// line 282
echo " <button type=\"submit\"
class=\"delivery-btn bg-violet text-white d-block disabled my-1\"
id=\"dishSelectFormSubmit\">ЗАКАЗАТЬ ОНЛАЙН
";
}
// line 286
echo " ";
}
// line 287
echo " </button>
";
// line 289
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.', 289, $this->source); })()))) {
// line 290
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.', 290, $this->source); })())) ? ("d-none") : (""));
echo "\">
ЗАКАЗАТЬ ПО ТЕЛЕФОНУ
</div>
";
}
// line 294
echo " ";
} else {
// line 295
echo " <div class=\"delivery-btn bg-violet text-white my-1 text-uppercase cursor-pointer w-auto\"
id=\"customPageBuyOrder\"> Получить скидку ";
// line 296
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.', 296, $this->source); })()), "getDiscount", [], "method", false, false, false, 296), "html", null, true);
echo "
</div>
";
}
// line 299
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.', 299, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 299))) {
// line 300
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.', 300, $this->source); })()), "getID", [], "method", false, false, false, 300), "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 302
(isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 302, $this->source); })()), "isGiftCertificateOnlineOrderAllowedOnSite", [], "method", false, false, false, 302) && twig_get_attribute($this->env, $this->source, (isset($context["offer"]) || array_key_exists("offer", $context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.', 302, $this->source); })()), "isFoodOnlineOrderAllowedOnSite", [], "method", false, false, false, 302))) {
// line 303
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.', 303, $this->source); })()), "getID", [], "method", false, false, false, 303), "html", null, true);
echo "\" class=\"delivery-btn my-1 text-uppercase cursor-pointer w-auto certificate-delivery-btn\"> ВЫБРАТЬ СЕРТИФИКАТ
</a>
";
}
// line 306
echo " </div>
<div id=\"deliveryBtnWrapperForGift\"
class=\"gift-food-delivery-btn-wrapper delivery-btn-wrapper d-none\">
";
// line 309
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.', 309, $this->source); })()))) {
// line 310
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 317
echo " </div>
</div>
";
// line 319
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.', 319, $this->source); })()))) {
// line 320
echo " </form>
";
} else {
// line 322
echo " </div>
";
}
// line 324
echo " </div>
</div>
<input type=\"hidden\" id=\"minSumForFreeDelivery\" value=\"";
// line 327
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.', 327, $this->source); })()), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"minOrderSum\" value=\"";
// line 328
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.', 328, $this->source); })()), "html", null, true);
echo "\">
";
// line 329
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.', 329, $this->source); })())))) {
// line 330
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.', 330, $this->source); })()), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"allowedCodesToBuy\" value=\"";
// line 331
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.', 331, $this->source); })()), "html", null, true);
echo "\">
";
}
// line 333
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.', 333, $this->source); })())))) {
// line 334
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.', 334, $this->source); })()), "html", null, true);
echo "\">
";
}
// line 336
echo " <div class=\"hidden\">
<div id=\"deliveryBasketItemTemplate\">
";
// line 338
$this->loadTemplate("Slivki/delivery/basket_item.html.twig", "Slivki/delivery/order.html.twig", 338)->display($context);
// line 339
echo " </div>
<div id=\"deliveryBasketOptionTemplate\">
";
// line 341
$this->loadTemplate("Slivki/delivery/basket_option_item.html.twig", "Slivki/delivery/order.html.twig", 341)->display($context);
// line 342
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 355
$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 356
echo " ";
$this->loadTemplate("Slivki/footer_for_partner.html.twig", "Slivki/delivery/order.html.twig", 356)->display($context);
// line 357
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 360
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 361
echo " ";
$this->displayParentBlock("popups", $context, $blocks);
echo "
";
// line 362
$this->loadTemplate("Slivki/delivery/modal/clear_basket_modal.html.twig", "Slivki/delivery/order.html.twig", 362)->display($context);
// line 363
echo " ";
$this->loadTemplate("Slivki/delivery/modal/details.html.twig", "Slivki/delivery/order.html.twig", 363)->display(twig_array_merge($context, ["isOfferPage" => false]));
// line 364
echo " ";
$this->loadTemplate("Slivki/popups/reviews_delivery_page.html.twig", "Slivki/delivery/order.html.twig", 364)->display($context);
// line 365
echo " ";
$this->loadTemplate("Slivki/popups/delivery_page_modal.html.twig", "Slivki/delivery/order.html.twig", 365)->display($context);
// line 366
echo " ";
$this->loadTemplate("Slivki/popups/buy_code_phone_offer.html.twig", "Slivki/delivery/order.html.twig", 366)->display($context);
// line 367
echo " ";
$this->loadTemplate("Slivki/popups/buy_code_item-offer.html.twig", "Slivki/delivery/order.html.twig", 367)->display($context);
// line 368
echo " ";
$this->loadTemplate("Slivki/popups/buy_code_phonenumber_offers.html.twig", "Slivki/delivery/order.html.twig", 368)->display($context);
// line 369
echo " ";
$this->loadTemplate("Slivki/popups/buy_code_erip_offers.html.twig", "Slivki/delivery/order.html.twig", 369)->display($context);
// line 370
echo " ";
$this->loadTemplate("Slivki/food_court/modal/maps.html.twig", "Slivki/delivery/order.html.twig", 370)->display($context);
// line 371
echo " ";
$this->loadTemplate("Slivki/popups/buy_promo_custom.html.twig", "Slivki/delivery/order.html.twig", 371)->display($context);
// line 372
echo " ";
$this->loadTemplate("Slivki/popups/share_food_gift_modal_male.html.twig", "Slivki/delivery/order.html.twig", 372)->display($context);
// line 373
echo " ";
$this->loadTemplate("Slivki/popups/create_massage_popup.html.twig", "Slivki/delivery/order.html.twig", 373)->display($context);
// line 374
echo " ";
$this->loadTemplate("Slivki/popups/share_gift_modal.html.twig", "Slivki/delivery/order.html.twig", 374)->display($context);
// line 375
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.', 375, $this->source); })()), "user", [], "any", false, false, false, 375) && 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.', 375, $this->source); })()), "user", [], "any", false, false, false, 375), "getActiveCreditCards", [], "method", false, false, false, 375))) {
// line 376
echo " ";
$this->loadTemplate("Slivki/popups/buy_code_credit_cards.html.twig", "Slivki/delivery/order.html.twig", 376)->display($context);
// line 377
echo " ";
}
// line 378
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.', 378, $this->source); })()), "getBrandboxEnabled", [], "method", false, false, false, 378) && !array_key_exists("isCertificate", $context))) {
// line 379
echo " ";
$this->loadTemplate("Slivki/delivery/modal/brandbox/brandbox_popup.html.twig", "Slivki/delivery/order.html.twig", 379)->display($context);
// line 380
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 383
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 384
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=\"/js/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 388
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.', 388, $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 390
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.', 390, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/paymentOrderPage/api.js?v=";
// line 391
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.', 391, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/delivery-common.min.js?v=";
// line 392
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.', 392, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/delivery.js?v=";
// line 393
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.', 393, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/jquery.datetimepicker.full.min.js\"></script>
<script src=\"/js/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 397
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.', 397, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" src=\"/js/order_as_gift/main.js?v=";
// line 398
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.', 398, $this->source); })()), "html", null, true);
echo "\"></script>
<script src=\"/js/food_has_variant/main.js?v=";
// line 399
echo twig_escape_filter($this->env, (isset($context["food_has_variant_js_version"]) || array_key_exists("food_has_variant_js_version", $context) ? $context["food_has_variant_js_version"] : (function () { throw new RuntimeError('Variable "food_has_variant_js_version" does not exist.', 399, $this->source); })()), "html", null, true);
echo "\"></script>
";
// line 400
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.', 400, $this->source); })()), "request", [], "any", false, false, false, 400), "query", [], "any", false, false, false, 400), "has", [0 => "checkOrder"], "method", false, false, false, 400)) {
// line 401
echo " <script>
\$(function () {
initCheckOfferOrderStatus(";
// line 403
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.', 403, $this->source); })()), "request", [], "any", false, false, false, 403), "get", [0 => "checkOrder"], "method", false, false, false, 403), "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 ( 985 => 403, 981 => 401, 979 => 400, 975 => 399, 971 => 398, 967 => 397, 960 => 393, 956 => 392, 952 => 391, 948 => 390, 943 => 388, 935 => 384, 925 => 383, 914 => 380, 911 => 379, 908 => 378, 905 => 377, 902 => 376, 899 => 375, 896 => 374, 893 => 373, 890 => 372, 887 => 371, 884 => 370, 881 => 369, 878 => 368, 875 => 367, 872 => 366, 869 => 365, 866 => 364, 863 => 363, 861 => 362, 856 => 361, 846 => 360, 836 => 357, 833 => 356, 814 => 355, 799 => 342, 797 => 341, 793 => 339, 791 => 338, 787 => 336, 781 => 334, 778 => 333, 773 => 331, 768 => 330, 766 => 329, 762 => 328, 758 => 327, 753 => 324, 749 => 322, 745 => 320, 743 => 319, 739 => 317, 730 => 310, 728 => 309, 723 => 306, 716 => 303, 714 => 302, 708 => 300, 705 => 299, 699 => 296, 696 => 295, 693 => 294, 685 => 290, 683 => 289, 679 => 287, 676 => 286, 670 => 282, 665 => 279, 662 => 278, 657 => 276, 654 => 275, 651 => 274, 649 => 273, 645 => 271, 632 => 261, 599 => 230, 587 => 220, 583 => 218, 578 => 215, 576 => 214, 572 => 212, 566 => 211, 553 => 201, 546 => 199, 537 => 192, 531 => 188, 525 => 184, 521 => 182, 517 => 180, 515 => 179, 512 => 178, 509 => 177, 503 => 173, 499 => 171, 495 => 169, 491 => 167, 489 => 166, 486 => 165, 484 => 164, 477 => 159, 475 => 158, 472 => 157, 466 => 155, 464 => 154, 460 => 153, 454 => 150, 450 => 148, 446 => 146, 440 => 144, 438 => 143, 434 => 141, 430 => 139, 423 => 137, 421 => 136, 418 => 135, 414 => 134, 410 => 132, 408 => 131, 405 => 130, 402 => 129, 387 => 127, 385 => 126, 382 => 125, 379 => 124, 376 => 123, 373 => 122, 370 => 121, 352 => 120, 350 => 119, 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.min.css?v={{ delivery_css_version }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/order_page.min.css?v={{ order_page_css_version }}\" rel=\"stylesheet\" type=\"text/css\"/>
<link href=\"/css/orderAsGift.min.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=\"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\">{{ codeCost }}</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=\"/js/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.min.js?v={{ delivery_common_js_version }}\"></script>
<script src=\"/js/delivery.js?v={{ delivery_js_version }}\"></script>
<script src=\"/js/jquery.datetimepicker.full.min.js\"></script>
<script src=\"/js/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>
<script src=\"/js/food_has_variant/main.js?v={{ food_has_variant_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/test1/templates/Slivki/delivery/order.html.twig");
}
}