<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* menubuilder/menu-builder-detail.html.twig */
class __TwigTemplate_b21868c8a58b3acbfb704480a88bc857 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layout/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "menubuilder/menu-builder-detail.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "menubuilder/menu-builder-detail.html.twig"));
$this->parent = $this->loadTemplate("layout/layout.html.twig", "menubuilder/menu-builder-detail.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield "GFS::Menu Builder Detail
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 6
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 7
yield "
\t<!--Menu Page Builder Banner Start-->
\t<section class=\"menu-page-builder-banner\">
\t\t<div class=\"container container-sm\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-12 col-lg-6 menuBuilder-content-column\">
\t\t\t\t\t<div class=\"upper-nav\">
\t\t\t\t\t\t<div class=\"training-detail-container-box\">
\t\t\t\t\t\t\t<div class=\"info-section\">
\t\t\t\t\t\t\t\t<section class=\"bread-crumbs-section\">
\t\t\t\t\t\t\t\t\t<div class=\"container container-lg\">
\t\t\t\t\t\t\t\t\t\t<div class=\"bread-crumbs-section-box\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"breadcrumb-holder\">
\t\t\t\t\t\t\t\t\t\t\t\t<ol class=\"breadcrumb menuBuilder-breadcrumb\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\"><a href=\"/";
// line 21
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 21, $this->source); })()), "request", [], "any", false, false, false, 21), "locale", [], "any", false, false, false, 21), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Home"), "html", null, true);
yield "</a></li>
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\"><a href=\"/";
// line 22
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 22, $this->source); })()), "request", [], "any", false, false, false, 22), "locale", [], "any", false, false, false, 22), "html", null, true);
yield "/resources\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Resources"), "html", null, true);
yield "</a></li>
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\">";
// line 23
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tools"), "html", null, true);
yield "</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\"><a href=\"/";
// line 24
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 24, $this->source); })()), "request", [], "any", false, false, false, 24), "locale", [], "any", false, false, false, 24), "html", null, true);
yield "/menu-builder\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Menu Builder"), "html", null, true);
yield "</a></li>
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\">";
// line 25
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 25, $this->source); })()), "name", [], "any", false, false, false, 25), "html", null, true);
yield "</li>
\t\t\t\t\t\t\t\t\t\t\t\t</ol>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</section>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<h1 class=\"title-lg\">";
// line 37
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 37, $this->source); })()), "name", [], "any", false, false, false, 37), "html", null, true);
yield "</span>
\t\t\t\t</h1>
\t\t\t\t<div class=\"step-tags\">
\t\t\t\t\t";
// line 40
$context["length"] = Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 40, $this->source); })()), "tags", [], "any", false, false, false, 40));
// line 41
yield "\t\t\t\t\t";
if (((isset($context["length"]) || array_key_exists("length", $context) ? $context["length"] : (function () { throw new RuntimeError('Variable "length" does not exist.', 41, $this->source); })()) >= 4)) {
// line 42
yield "
\t\t\t\t\t\t";
// line 43
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(range(0, 3));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 44
yield "\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"tag\">
\t\t\t\t\t\t\t\t<span>";
// line 45
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 45, $this->source); })()), "tags", [], "any", false, false, false, 45), $context["i"], [], "array", false, false, false, 45), "tag_name", [], "any", false, false, false, 45), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t <img src=\"/static/assets/images/Ellipse.png\" class=\"img-fluid\" alt=\"Ellipse\"/></span>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['i'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
yield "
\t\t\t\t\t";
} else {
// line 51
yield "
\t\t\t\t\t\t";
// line 52
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 52, $this->source); })()), "tags", [], "any", false, false, false, 52));
foreach ($context['_seq'] as $context["_key"] => $context["tags"]) {
// line 53
yield "\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"tag\">
\t\t\t\t\t\t\t\t<span>";
// line 54
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["tags"], "tag_name", [], "any", false, false, false, 54), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t <img src=\"/static/assets/images/Ellipse.png\" class=\"img-fluid\" alt=\"Ellipse\"/></span>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['tags'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 58
yield "
\t\t\t\t\t";
}
// line 60
yield "
\t\t\t\t</div>
\t\t\t\t<p>
\t\t\t\t\t";
// line 63
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 63, $this->source); })()), "description", [], "any", false, false, false, 63), "html", null, true);
yield "
\t\t\t\t</p>
\t\t\t\t
\t\t\t\t";
// line 67
$context["unitcost"] = 0;
// line 68
yield "\t\t\t\t";
$context["unitvalue"] = 0;
// line 69
yield "\t\t\t\t";
$context["multiply"] = 0;
// line 70
yield "\t\t\t\t";
$context["total_unit_cost"] = 0;
// line 71
yield "\t\t\t\t";
$context["serve"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 71, $this->source); })()), "serves", [], "any", false, false, false, 71);
// line 72
yield "
\t\t\t\t\t\t";
// line 73
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 73, $this->source); })()), "serving_options", [], "any", false, false, false, 73));
foreach ($context['_seq'] as $context["_key"] => $context["ingrident"]) {
// line 74
yield "\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["ingrident"], "ingredeints", [], "any", false, false, false, 74));
foreach ($context['_seq'] as $context["_key"] => $context["ing"]) {
// line 75
yield "
\t\t\t\t\t\t\t\t";
// line 76
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ing"], "recipe_ing", [], "any", false, true, false, 76), "data", [], "any", true, true, false, 76)) {
// line 77
yield "
\t\t\t\t\t\t\t\t\t";
// line 78
if ((((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ing"], "unit", [], "any", false, false, false, 78), "data", [], "any", false, false, false, 78) == "kg") || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ing"], "unit", [], "any", false, false, false, 78), "data", [], "any", false, false, false, 78) == "Kg")) || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ing"], "unit", [], "any", false, false, false, 78), "data", [], "any", false, false, false, 78) == "KG")) || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ing"], "unit", [], "any", false, false, false, 78), "data", [], "any", false, false, false, 78) == "l")) || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ing"], "unit", [], "any", false, false, false, 78), "data", [], "any", false, false, false, 78) == "L"))) {
// line 79
yield "\t\t\t\t\t\t\t\t\t\t";
$context["multiply"] = (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ing"], "multiply", [], "any", false, false, false, 79), "data", [], "any", false, false, false, 79) * 1000);
// line 80
yield "\t\t\t\t\t\t\t\t\t\t";
$context["unitvalue"] = ((isset($context["multiply"]) || array_key_exists("multiply", $context) ? $context["multiply"] : (function () { throw new RuntimeError('Variable "multiply" does not exist.', 80, $this->source); })()) / CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 80, $this->source); })()), "serves", [], "any", false, false, false, 80));
// line 81
yield "
\t\t\t\t\t\t\t\t\t";
} else {
// line 83
yield "\t\t\t\t\t\t\t\t\t\t";
$context["multiply"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ing"], "multiply", [], "any", false, false, false, 83), "data", [], "any", false, false, false, 83);
// line 84
yield "\t\t\t\t\t\t\t\t\t\t";
$context["unitvalue"] = ((isset($context["multiply"]) || array_key_exists("multiply", $context) ? $context["multiply"] : (function () { throw new RuntimeError('Variable "multiply" does not exist.', 84, $this->source); })()) / CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 84, $this->source); })()), "serves", [], "any", false, false, false, 84));
// line 85
yield "\t\t\t\t\t\t\t\t\t";
}
// line 86
yield "
\t\t\t\t\t\t\t\t\t";
// line 87
$context["unitcost"] = ((isset($context["unitvalue"]) || array_key_exists("unitvalue", $context) ? $context["unitvalue"] : (function () { throw new RuntimeError('Variable "unitvalue" does not exist.', 87, $this->source); })()) * CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ing"], "recipe_ing", [], "any", false, false, false, 87), "data", [], "any", false, false, false, 87), "price", [], "any", false, false, false, 87));
// line 88
yield "\t\t\t\t\t\t\t\t\t";
$context["total_unit_cost"] = ((isset($context["total_unit_cost"]) || array_key_exists("total_unit_cost", $context) ? $context["total_unit_cost"] : (function () { throw new RuntimeError('Variable "total_unit_cost" does not exist.', 88, $this->source); })()) + (isset($context["unitcost"]) || array_key_exists("unitcost", $context) ? $context["unitcost"] : (function () { throw new RuntimeError('Variable "unitcost" does not exist.', 88, $this->source); })()));
// line 89
yield "
\t\t\t\t\t\t\t\t";
}
// line 91
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['ing'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 93
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['ingrident'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 95
yield "
\t\t\t\t\t\t";
// line 96
$context["total_cost"] = ((isset($context["total_unit_cost"]) || array_key_exists("total_unit_cost", $context) ? $context["total_unit_cost"] : (function () { throw new RuntimeError('Variable "total_unit_cost" does not exist.', 96, $this->source); })()) * (isset($context["serve"]) || array_key_exists("serve", $context) ? $context["serve"] : (function () { throw new RuntimeError('Variable "serve" does not exist.', 96, $this->source); })()));
// line 97
yield "
\t\t\t\t\t\t";
// line 98
$context["vat_percentage"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 98, $this->source); })()), "recipe_manu_vat_oercebtage", [], "any", false, false, false, 98);
// line 99
yield "\t\t\t\t\t\t";
$context["total_cost_vat"] = (((isset($context["total_cost"]) || array_key_exists("total_cost", $context) ? $context["total_cost"] : (function () { throw new RuntimeError('Variable "total_cost" does not exist.', 99, $this->source); })()) * (isset($context["vat_percentage"]) || array_key_exists("vat_percentage", $context) ? $context["vat_percentage"] : (function () { throw new RuntimeError('Variable "vat_percentage" does not exist.', 99, $this->source); })())) / 100);
// line 100
yield "
\t\t\t\t\t\t";
// line 101
$context["total_cost"] = ((isset($context["total_cost"]) || array_key_exists("total_cost", $context) ? $context["total_cost"] : (function () { throw new RuntimeError('Variable "total_cost" does not exist.', 101, $this->source); })()) - (isset($context["total_cost_vat"]) || array_key_exists("total_cost_vat", $context) ? $context["total_cost_vat"] : (function () { throw new RuntimeError('Variable "total_cost_vat" does not exist.', 101, $this->source); })()));
// line 102
yield "
\t\t\t\t\t\t";
// line 103
$context["profit_percentage"] = (((!(null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 103, $this->source); })()), "profit_percentage", [], "any", false, false, false, 103)))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 103, $this->source); })()), "profit_percentage", [], "any", false, false, false, 103)) : (0));
// line 104
yield "\t\t\t\t\t
\t\t\t\t\t\t";
// line 105
$context["profit"] = (((isset($context["total_cost"]) || array_key_exists("total_cost", $context) ? $context["total_cost"] : (function () { throw new RuntimeError('Variable "total_cost" does not exist.', 105, $this->source); })()) * (isset($context["profit_percentage"]) || array_key_exists("profit_percentage", $context) ? $context["profit_percentage"] : (function () { throw new RuntimeError('Variable "profit_percentage" does not exist.', 105, $this->source); })())) / 100);
// line 106
yield "\t\t\t\t\t\t";
$context["menu_price"] = ((isset($context["total_cost"]) || array_key_exists("total_cost", $context) ? $context["total_cost"] : (function () { throw new RuntimeError('Variable "total_cost" does not exist.', 106, $this->source); })()) + (isset($context["profit"]) || array_key_exists("profit", $context) ? $context["profit"] : (function () { throw new RuntimeError('Variable "profit" does not exist.', 106, $this->source); })()));
// line 107
yield "\t\t\t\t\t\t
\t\t\t\t\t<div class = \"d-md-flex d-lg-flex align-items-center d-xl-flex menu-builder-counter\">
\t\t\t\t \t\t<div class=\"order-count-title menubuilder-serving-count-title mb-3 \">";
// line 109
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Servings"), "html", null, true);
yield "</div>
\t\t\t\t\t\t\t<div class=\"order-count-number justify-content-center\">
\t\t\t\t\t\t\t\t<span class=\"minus\" id=\"minusx\"><img src=\"/static/assets/images/icon-minus-blue.svg\" alt=\"icon minus\"></span>
\t\t\t\t\t\t\t\t<input class=\"count numeric-remove-spiner valuechange\" id=\"valuechangeprice\" type=\"number\" value=\"";
// line 112
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 112, $this->source); })()), "serves", [], "any", false, false, false, 112), "html", null, true);
yield "\"/>
\t\t\t\t\t\t\t\t<span class=\"plus\" id=\"plusx\"><img src=\"/static/assets/images/icon-plus-blue.svg\" alt=\"icon plus\"></span>
\t\t\t\t\t\t\t</div>
\t\t\t\t \t</div>
\t\t\t\t<div class=\"cost-card-area d-md-flex\">
\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t<span>";
// line 119
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Food Cost"), "html", null, true);
yield "*</span>
\t\t\t\t\t\t<h4 id = \"food_cost\">";
// line 120
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::round((isset($context["total_cost"]) || array_key_exists("total_cost", $context) ? $context["total_cost"] : (function () { throw new RuntimeError('Variable "total_cost" does not exist.', 120, $this->source); })()), 1), "html", null, true);
yield "</h4>
\t\t\t\t\t\t<h6>";
// line 121
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SAR"), "html", null, true);
yield "</h6>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t<span>Menu Price*</span>
\t\t\t\t\t\t<h4 id = \"food_price\">";
// line 125
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::round((isset($context["menu_price"]) || array_key_exists("menu_price", $context) ? $context["menu_price"] : (function () { throw new RuntimeError('Variable "menu_price" does not exist.', 125, $this->source); })()), 1), "html", null, true);
yield "</h4>
\t\t\t\t\t\t<h6>";
// line 126
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SAR"), "html", null, true);
yield "</h6>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t<span>";
// line 129
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Profit"), "html", null, true);
yield "*</span>
\t\t\t\t\t\t<h4 id = \"food_profit\">";
// line 130
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::round((isset($context["profit"]) || array_key_exists("profit", $context) ? $context["profit"] : (function () { throw new RuntimeError('Variable "profit" does not exist.', 130, $this->source); })()), 1), "html", null, true);
yield "</h4>
\t\t\t\t\t\t<h6>";
// line 131
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SAR"), "html", null, true);
yield "</h6>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t
\t\t\t\t<div class=\"final-card-area\">
\t\t\t\t\t<div class=\"frequently-bought\">
\t\t\t\t\t\t<div class=\"frequently-bought-box\">
\t\t\t\t\t\t\t<h5 class=\"title\">Frequently Product</h5>
\t\t\t\t\t\t\t";
// line 139
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 139, $this->source); })()), "serving_options", [], "any", false, false, false, 139), "Items", [], "any", false, false, false, 139));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 140
yield "\t\t\t\t\t\t\t\t";
// line 141
yield "\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "recipe_feature_product", [], "any", false, false, false, 141));
foreach ($context['_seq'] as $context["_key"] => $context["featured_product"]) {
// line 142
yield "
\t\t\t\t\t\t\t\t\t<div class=\"product-box product-box-horizon product-box-small\">
\t\t\t\t\t\t\t\t\t<a href = '";
// line 144
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((("/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 144, $this->source); })()), "request", [], "any", false, false, false, 144), "locale", [], "any", false, false, false, 144)) . "/") . "product/") . CoreExtension::getAttribute($this->env, $this->source, $context["featured_product"], "url", [], "any", false, false, false, 144)), "html", null, true);
yield "'>
\t\t\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
// line 146
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["featured_product"], "attrimage", [], "any", false, false, false, 146), "Items", [], "any", false, false, false, 146), 0, [], "array", false, false, false, 146), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["featured_product"], "name", [], "any", false, false, false, 146), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 150
yield "\t\t\t\t\t\t\t\t\t\t</figure></a>
\t\t\t\t\t\t\t\t\t\t<div class=\"slide-info\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t<h5 class=\"title\"><a href = '";
// line 153
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((("/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 153, $this->source); })()), "request", [], "any", false, false, false, 153), "locale", [], "any", false, false, false, 153)) . "/") . "product/") . CoreExtension::getAttribute($this->env, $this->source, $context["featured_product"], "url", [], "any", false, false, false, 153)), "html", null, true);
yield "'>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["featured_product"], "name", [], "any", false, false, false, 153), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 154
$context["user"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 154, $this->source); })()), "session", [], "any", false, false, false, 154), "get", ["loginUID"], "method", false, false, false, 154);
// line 155
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
if ( !(null === (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 155, $this->source); })()))) {
// line 156
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"\"> <img src=\"/static/assets/images/featured-like.svg\" alt=\"featured like\"></span>
\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 159
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"logged-out\"> <img src=\"/static/assets/images/featured-like.svg\" alt=\"featured like\"></span>
\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 162
yield "\t\t\t\t\t\t\t\t\t\t\t\t</h5>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"kg\">";
// line 164
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["featured_product"], "size", [], "any", false, false, false, 164), "html", null, true);
yield "</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"inline-info btn-holder\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"price\">";
// line 166
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["featured_product"], "region", [], "any", false, false, false, 166), 0, [], "array", false, false, false, 166), "price", [], "array", false, false, false, 166), "data", [], "any", false, false, false, 166), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 167
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["featured_product"], "region", [], "any", false, false, false, 167), 0, [], "array", false, false, false, 167), "currency_symbol", [], "array", false, false, false, 167), "data", [], "any", false, false, false, 167)), "html", null, true);
yield "</div>
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 168
$context["points"] = Twig\Extension\CoreExtension::round(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["featured_product"], "region", [], "any", false, false, false, 168), 0, [], "array", false, false, false, 168), "price", [], "array", false, false, false, 168), "data", [], "any", false, false, false, 168) / 100) * 10));
// line 169
yield "\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"award d-none\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"far fa-star\"></i>";
// line 170
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Earn"), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 171
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["points"]) || array_key_exists("points", $context) ? $context["points"] : (function () { throw new RuntimeError('Variable "points" does not exist.', 171, $this->source); })()), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 172
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Rewards Points"), "html", null, true);
yield "</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"frequently-product-buttons\">
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"btn btn-custom btn-green\" onclick=\"addCart(this, ";
// line 175
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["featured_product"], "id", [], "any", false, false, false, 175), "html", null, true);
yield ", 1)\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Buy Now"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 176
$context["user"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 176, $this->source); })()), "session", [], "any", false, false, false, 176), "get", ["loginUID"], "method", false, false, false, 176);
// line 177
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
if ( !(null === (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 177, $this->source); })()))) {
// line 178
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["points"] = Twig\Extension\CoreExtension::round(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["featured_product"], "region", [], "any", false, false, false, 178), 0, [], "array", false, false, false, 178), "price", [], "array", false, false, false, 178), "data", [], "any", false, false, false, 178) / 100) * 10));
// line 179
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"btn btn-custom btn-green d-none\" onclick=\"inventoryProgram(this,";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["points"]) || array_key_exists("points", $context) ? $context["points"] : (function () { throw new RuntimeError('Variable "points" does not exist.', 179, $this->source); })()), "html", null, true);
yield ",";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["featured_product"], "id", [], "any", false, false, false, 179), "html", null, true);
yield ")\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to Inventory"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-success ml-0\" id=\"success-alertt-inventory";
// line 180
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["featured_product"], "id", [], "any", false, false, false, 180), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>Thank you for adding this product to Inventory.</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-warning ml-0\" id=\"failed-alertt-inventory";
// line 182
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["featured_product"], "id", [], "any", false, false, false, 182), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>
\t\t\t\t\t\t\t\t\t\t\t\t\t\tThis product is already added to Inventory.</div>
\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 186
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"btn btn-custom btn-green product-logged-out d-none\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to Inventory"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 188
yield "\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"product-inventry-alert\"></div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['featured_product'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 193
yield "\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['product'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 194
yield "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<p>* Based on approximate total plate food costs, including average distributor markup.</p>
\t\t\t</div>
\t\t\t<div class=\"col-12 col-lg-6 menuBuilder-image-column\">
\t\t\t\t<div class=\"dish-image\">
\t\t\t\t\t<img src=\"";
// line 203
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 203, $this->source); })()), "featured_image", [], "any", false, false, false, 203), "html", null, true);
yield "\" class=\"img-fluid\" alt=\"Manu Builder feature image\">
\t\t\t\t</div>
\t\t\t\t<div class=\"extra-area\">
\t\t\t\t\t<ul class=\"d-flex social-info recipe-info\">
\t\t\t\t\t\t";
// line 207
$context["user"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 207, $this->source); })()), "session", [], "any", false, false, false, 207), "get", ["loginUID"], "method", false, false, false, 207);
// line 208
yield "\t\t\t\t\t\t";
if ( !(null === (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 208, $this->source); })()))) {
// line 209
yield "
\t\t\t\t\t\t\t";
// line 210
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["Liked"]) || array_key_exists("Liked", $context) ? $context["Liked"] : (function () { throw new RuntimeError('Variable "Liked" does not exist.', 210, $this->source); })())) == 0)) {
// line 211
yield "\t\t\t\t\t\t\t\t<li class='like' onclick=\"loyaltyProgram(this, ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 211, $this->source); })()), "id", [], "any", false, false, false, 211), "html", null, true);
yield ",'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 211, $this->source); })()), "name", [], "any", false, false, false, 211), "html", null, true);
yield "',30,'Recipe','Like' , '";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 211, $this->source); })()), "request", [], "any", false, false, false, 211), "locale", [], "any", false, false, false, 211), "html", null, true);
yield "')\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html", null, true);
yield "</li>
\t\t\t\t\t\t\t";
} else {
// line 213
yield "\t\t\t\t\t\t\t\t<li class=\"liked\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html", null, true);
yield "</li>
\t\t\t\t\t\t\t";
}
// line 215
yield "
\t\t\t\t\t\t\t<li id = \"add_to_menu\"onclick=\"addtomenu(this , ";
// line 216
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 216, $this->source); })()), "html", null, true);
yield ",";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 216, $this->source); })()), "id", [], "any", false, false, false, 216), "html", null, true);
yield " , ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 216, $this->source); })()), "serves", [], "any", false, false, false, 216), "html", null, true);
yield ")\">
\t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/addToMenu.svg\" class=\"img-fluid \" alt=\"addToMenu\"></span> ";
// line 217
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add To Menu"), "html", null, true);
yield "</li>
\t\t\t\t\t\t\t<div class=\"alert alert-success ml-0\" id=\"success-alertt-addtomenu\">
\t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>Thank you for adding this recipe to menu.</div>
\t\t\t\t\t\t\t<div class=\"alert alert-success ml-0\" id=\"success-alertt-addtomenu_update\">
\t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>Thank you for updating this recipe to menu.</div>
\t\t\t\t\t\t\t<div class=\"alert alert-warning ml-0\" id=\"failed-alertt-addtomenu\">
\t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>
\t\t\t\t\t\t\t\tSomething went worng.</div>
\t\t\t\t\t\t\t<div class=\"alert alert-warning ml-0\" id=\"failed-alertt-addtomenu_error_missing_params\">
\t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>
\t\t\t\t\t\t\t\tSome required values are null.</div>
\t\t\t\t\t\t\t<li onclick=\"loyaltyProgram(this, ";
// line 229
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 229, $this->source); })()), "id", [], "any", false, false, false, 229), "html", null, true);
yield ",'";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 229, $this->source); })()), "name", [], "any", false, false, false, 229), "html", null, true);
yield "',30,'Recipe','Like' , '";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 229, $this->source); })()), "request", [], "any", false, false, false, 229), "locale", [], "any", false, false, false, 229), "html", null, true);
yield "')\">
\t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/share.svg\" class=\"img-fluid logged-out\" alt=\"share\" onclick=\"sharemodal('Recipe','";
// line 230
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 230, $this->source); })()), "request", [], "any", false, false, false, 230), "getSchemeAndHttpHost", [], "method", false, false, false, 230) . "/") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 230, $this->source); })()), "request", [], "any", false, false, false, 230), "locale", [], "any", false, false, false, 230)) . "/menu-builder/") . CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 230, $this->source); })()), "url", [], "any", false, false, false, 230)), "html", null, true);
yield "' , '";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(" share goody recipe with your friends"), "html", null, true);
yield "')\"></span> ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html", null, true);
yield "</li>
\t\t\t\t\t\t";
} else {
// line 232
yield "
\t\t\t\t\t\t\t<li class='logged-out'>
\t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/like-menu.svg\" class=\"img-fluid \" alt=\"like-menu\"></span> ";
// line 234
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html", null, true);
yield "</li>
\t\t\t\t\t\t\t<li class='add-menu-logged-out'>
\t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/addToMenu.svg\" class=\"img-fluid \" alt=\"addToMenu\"></span> ";
// line 236
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add To Menu"), "html", null, true);
yield "</li>
\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/share.svg\" class=\"img-fluid logged-out\" alt=\"share\" onclick=\"sharemodal('Recipe','";
// line 238
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 238, $this->source); })()), "request", [], "any", false, false, false, 238), "getSchemeAndHttpHost", [], "method", false, false, false, 238) . "/") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 238, $this->source); })()), "request", [], "any", false, false, false, 238), "locale", [], "any", false, false, false, 238)) . "/menu-builder/") . CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 238, $this->source); })()), "url", [], "any", false, false, false, 238)), "html", null, true);
yield "' , '";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(" share goody recipe with your friends"), "html", null, true);
yield "')\"></span> ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html", null, true);
yield "</li>
\t\t\t\t\t\t";
}
// line 240
yield "\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a class=\"directions-link\" target=\"_blank\" href =\"/";
// line 241
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 241, $this->source); })()), "request", [], "any", false, false, false, 241), "locale", [], "any", false, false, false, 241), "html", null, true);
yield "/print/recipe/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 241, $this->source); })()), "url", [], "any", false, false, false, 241), "html", null, true);
yield "\"><span><img src=\"/static/assets/images/down-arrow.svg\" class=\"img-fluid\" alt=\"download\"></span> ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html", null, true);
yield "</li></a>
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a class=\"directions-link\" target=\"_blank\" href =\"/";
// line 243
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 243, $this->source); })()), "request", [], "any", false, false, false, 243), "locale", [], "any", false, false, false, 243), "html", null, true);
yield "/print/recipe/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 243, $this->source); })()), "url", [], "any", false, false, false, 243), "html", null, true);
yield "\"><span><img src=\"/static/assets/images/print.svg\" class=\"img-fluid\" alt=\"print\"></span> ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Print"), "html", null, true);
yield "</li></a>
\t\t\t\t\t</ul>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</section>
<!--Menu Page Builder Banner End-->
<section class=\"featured-recipes-section inner-featured-recipe product-using-products menu-builder-featured-recipe\">
\t<div class=\"container container-sm\">
\t\t";
// line 254
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["similar_menu_ideas"]) || array_key_exists("similar_menu_ideas", $context) ? $context["similar_menu_ideas"] : (function () { throw new RuntimeError('Variable "similar_menu_ideas" does not exist.', 254, $this->source); })())) > 0)) {
// line 255
yield "\t\t\t<h2 class=\"heading\">Similar Menu Ideas</h2>
\t\t";
}
// line 257
yield "\t\t<div class=\"featured-recipes\">
\t\t\t<div class=\"custom-slider featured-recipes-slider\">
\t\t\t\t";
// line 259
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["similar_menu_ideas"]) || array_key_exists("similar_menu_ideas", $context) ? $context["similar_menu_ideas"] : (function () { throw new RuntimeError('Variable "similar_menu_ideas" does not exist.', 259, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["similar_menu_ideas_recipes"]) {
// line 260
yield "\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t<div class=\"slide-holder\">
\t\t\t\t\t\t\t<a href=\"/";
// line 262
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 262, $this->source); })()), "request", [], "any", false, false, false, 262), "locale", [], "any", false, false, false, 262), "html", null, true);
yield "/menu-builder/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["similar_menu_ideas_recipes"], "url", [], "any", false, false, false, 262), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
\t\t\t\t\t\t\t\t\t<img src=\"";
// line 264
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["similar_menu_ideas_recipes"], "featured_image", [], "any", false, false, false, 264), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["similar_menu_ideas_recipes"], "name", [], "any", false, false, false, 264), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t</figure>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t<div class=\"slide-content\">
\t\t\t\t\t\t\t\t<a href=\"/";
// line 268
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 268, $this->source); })()), "request", [], "any", false, false, false, 268), "locale", [], "any", false, false, false, 268), "html", null, true);
yield "/menu-builder/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["similar_menu_ideas_recipes"], "url", [], "any", false, false, false, 268), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t<h3>";
// line 269
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["similar_menu_ideas_recipes"], "name", [], "any", false, false, false, 269), "html", null, true);
yield "</h3>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t<p>";
// line 271
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["similar_menu_ideas_recipes"], "short_description", [], "any", false, false, false, 271), "html", null, true);
yield "</p>
\t\t\t\t\t\t\t\t<div class=\"\">
\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\">";
// line 273
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("With"), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t";
// line 274
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["similar_menu_ideas_recipes"], "featured_product", [], "any", false, false, false, 274), 0, [], "array", false, false, false, 274), "brands", [], "any", false, false, false, 274), "name", [], "any", false, false, false, 274), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['similar_menu_ideas_recipes'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 280
yield "
\t\t\t</div>
\t\t</div>
\t</div>
</section>
<section class=\"loyal-section d-none\">
\t<div class=\"container-fluid p-0\">
\t\t<div class=\"row\">
\t\t\t<div class=\"col-12 col-lg-4\">
\t\t\t\t<img src=\"/static/assets/images/loyal-image.svg\" class=\"img-fluid loyal-section-image\" alt=\"loyal-image\">
\t\t\t</div>
\t\t\t<div class=\"col-12 col-lg-8\">
\t\t\t\t<div class=\"custom-flex\">
\t\t\t\t\t<div>
\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t<h3 class=\"title-sm\">";
// line 299
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Loyalty Program"), "html", null, true);
yield "</h3>
\t\t\t\t\t\t\t<h2 class=\"title-lg\">Lorem Epsum Lorem Lorem</h2>
\t\t\t\t\t\t\t<h2 class=\"title-lg\">Lorem Epsum Lorem Lorem Lorem Lorem
\t\t\t\t\t\t\t\t<span>Lorem Lorem</span>
\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"btn-holder m-lg-auto\">
\t\t\t\t\t\t<div class=\"btn-border\">
\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-lg-o-black\">Start Earning Now!</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</section>
";
// line 320
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 320, $this->source); })()), "request", [], "any", false, false, false, 320), "locale", [], "any", false, false, false, 320) == "ar")) {
// line 321
yield "\t";
$context["topMenu"] = ("/en/menu-builder/" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 321, $this->source); })()), "url", ["en"], "method", false, false, false, 321));
} else {
// line 323
yield "\t";
$context["topMenu"] = ("/ar/menu-builder/" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 323, $this->source); })()), "url", ["ar"], "method", false, false, false, 323));
}
// line 325
yield "<script>
\tvar _TopMenuLink = \"";
// line 326
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["topMenu"]) || array_key_exists("topMenu", $context) ? $context["topMenu"] : (function () { throw new RuntimeError('Variable "topMenu" does not exist.', 326, $this->source); })()), "html", null, true);
yield "\";
\t\tfunction addtomenu(element, userid, objectId, serving) {
\t\tvar userid = userid;
\t\tvar objectId = objectId;
\t\tvar serving = serving;
\t\tvar form_data = new FormData(); // Creates new FormData object
\t\tform_data.append(\"userid\", userid);
\t\tform_data.append(\"objectId\", objectId);
\t\tform_data.append(\"serving\", serving);
\t\t\$.ajax({
\t\turl: \"/addtomenu\",
\t\ttype: \"POST\",
\t\tdata: form_data,
\t\tcontentType: false,
\t\tcache: false,
\t\tprocessData: false,
\t\tsuccess: function (response) {
\t\tconsole.log(response)
\t\tif (response.success == 1) { // document.getElementById('newsletter').reset();
\t\t\t\$(\"#success-alertt-addtomenu_update\").fadeTo(5000, 500).slideUp(500, function () {
\t\t\t\$(\"#success-alertt-addtomenu_update\").slideUp(500);
\t\t\t});
\t\t} else if(response.success == 2) {
\t\t\t\$(\"#success-alertt-addtomenu\").fadeTo(5000, 500).slideUp(500, function () {
\t\t\t\$(\"#success-alertt-addtomenu\").slideUp(500);
\t\t\t});
\t\t} else if(response.success == 3) {
\t\t\t\$(\"#failed-alertt-addtomenu_error_missing_params\").fadeTo(5000, 500).slideUp(500, function () {
\t\t\t\$(\"#failed-alertt-addtomenu_error_missing_params\").slideUp(500);
\t\t\t});
\t\t} else {
\t\t\t\$(\"#failed-alertt-addtomenu\").fadeTo(5000, 500).slideUp(500, function () {
\t\t\t\$(\"#failed-alertt-addtomenu\").slideUp(500);
\t\t\t});
\t\t}
\t\t}
\t\t})
\t\t}
\t\t\t// Menubuilder calculator start
\t\t\t\$(document).ready(function () {
\t\t\t\tvar userId = '";
// line 380
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 380, $this->source); })()), "html", null, true);
yield "';
\t\t\t\tvar obId = ";
// line 381
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 381, $this->source); })()), "id", [], "any", false, false, false, 381), "html", null, true);
yield ";
\t\t\t\t\$(\"#valuechangeprice\").on('keyup change', function () {
\t\t\t\t\t\tvar countTxt = parseInt(\$('.count').val(), 10);
\t\t\t\t\t\tvar unit_cost = ";
// line 385
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["total_unit_cost"]) || array_key_exists("total_unit_cost", $context) ? $context["total_unit_cost"] : (function () { throw new RuntimeError('Variable "total_unit_cost" does not exist.', 385, $this->source); })()), "html", null, true);
yield " ;
\t\t\t\t\t\tvar vat_percentage = ";
// line 386
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["vat_percentage"]) || array_key_exists("vat_percentage", $context) ? $context["vat_percentage"] : (function () { throw new RuntimeError('Variable "vat_percentage" does not exist.', 386, $this->source); })()), "html", null, true);
yield ";
\t\t\t\t\t\tvar unit_cost_vat = ((unit_cost * vat_percentage) / 100);
\t\t\t\t\t\t\tunit_cost = (unit_cost - unit_cost_vat );
\t\t\t\t\t\tvar profit_percentage = ";
// line 389
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["profit_percentage"]) || array_key_exists("profit_percentage", $context) ? $context["profit_percentage"] : (function () { throw new RuntimeError('Variable "profit_percentage" does not exist.', 389, $this->source); })()), "html", null, true);
yield ";
\t\t\t\t\t\tvar unit_profit = ((unit_cost * profit_percentage)/ 100);
\t\t\t\t\t\tvar unit_menu_price = (unit_cost + unit_profit);
\t\t\t\t\t\t\$('#food_cost').text((unit_cost *countTxt).toFixed(1));
\t\t\t\t\t\t\$('#food_price').text((unit_menu_price *countTxt).toFixed(1));
\t\t\t\t\t\t\$('#food_profit').text((unit_profit *countTxt).toFixed(1));
\t\t\t\t\t\t\$('#add_to_menu').attr('onclick', 'addtomenu( this ,'+ userId +', '+ obId +', '+ countTxt +')');
\t\t\t\t\t});
\t\t\t});
\t\t\t// Menubuilder calculator end
\t\t\t\t// Download and Print Recipe According to serving ingerident quantity srart\t
\t\t\t\t\t\$(document).ready(function () {
\t\t\t\t\t\tvar serving = ";
// line 404
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu_builder_details"]) || array_key_exists("menu_builder_details", $context) ? $context["menu_builder_details"] : (function () { throw new RuntimeError('Variable "menu_builder_details" does not exist.', 404, $this->source); })()), "serves", [], "any", false, false, false, 404), "html", null, true);
yield ";
\t\t\t\t\t\t\$(\"a.directions-link\").each(function() {
\t\t\t\t\t\t\tvar \$this = \$(this);
\t\t\t\t\t\t\tconst _href = \$this.attr(\"href\");
\t\t\t\t\t\t\t\$(\".valuechange\").on('keyup change', function () {
\t\t\t\t\t\t\tvar countTxt = parseInt(\$('.count').val(), 10);
\t\t\t\t\t\t\t\$(\".directions-link\").attr(\"href\", _href+\"~portion=\"+countTxt);
\t\t\t\t\t\t\t});
\t\t\t\t\t\t\t\$(\".directions-link\").attr(\"href\", _href+\"~portion=\"+serving);
\t\t\t\t\t\t\tconsole.log(countTxt);
\t\t\t\t\t\t});
\t\t\t\t\t});
\t\t\t\t// Download and Print Recipe According to serving ingerident quantity end\t
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "menubuilder/menu-builder-detail.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 908 => 404, 890 => 389, 884 => 386, 880 => 385, 873 => 381, 869 => 380, 812 => 326, 809 => 325, 805 => 323, 801 => 321, 799 => 320, 775 => 299, 754 => 280, 742 => 274, 738 => 273, 733 => 271, 728 => 269, 722 => 268, 713 => 264, 706 => 262, 702 => 260, 698 => 259, 694 => 257, 690 => 255, 688 => 254, 670 => 243, 661 => 241, 658 => 240, 649 => 238, 644 => 236, 639 => 234, 635 => 232, 626 => 230, 618 => 229, 603 => 217, 595 => 216, 592 => 215, 586 => 213, 574 => 211, 572 => 210, 569 => 209, 566 => 208, 564 => 207, 557 => 203, 546 => 194, 540 => 193, 530 => 188, 524 => 186, 517 => 182, 512 => 180, 503 => 179, 500 => 178, 497 => 177, 495 => 176, 489 => 175, 483 => 172, 479 => 171, 475 => 170, 472 => 169, 470 => 168, 466 => 167, 462 => 166, 457 => 164, 453 => 162, 448 => 159, 443 => 156, 440 => 155, 438 => 154, 432 => 153, 427 => 150, 421 => 146, 416 => 144, 412 => 142, 407 => 141, 405 => 140, 401 => 139, 390 => 131, 386 => 130, 382 => 129, 376 => 126, 372 => 125, 365 => 121, 361 => 120, 357 => 119, 347 => 112, 341 => 109, 337 => 107, 334 => 106, 332 => 105, 329 => 104, 327 => 103, 324 => 102, 322 => 101, 319 => 100, 316 => 99, 314 => 98, 311 => 97, 309 => 96, 306 => 95, 299 => 93, 292 => 91, 288 => 89, 285 => 88, 283 => 87, 280 => 86, 277 => 85, 274 => 84, 271 => 83, 267 => 81, 264 => 80, 261 => 79, 259 => 78, 256 => 77, 254 => 76, 251 => 75, 246 => 74, 242 => 73, 239 => 72, 236 => 71, 233 => 70, 230 => 69, 227 => 68, 225 => 67, 218 => 63, 213 => 60, 209 => 58, 199 => 54, 196 => 53, 192 => 52, 189 => 51, 185 => 49, 175 => 45, 172 => 44, 168 => 43, 165 => 42, 162 => 41, 160 => 40, 154 => 37, 139 => 25, 133 => 24, 129 => 23, 123 => 22, 117 => 21, 101 => 7, 88 => 6, 64 => 3, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"layout/layout.html.twig\" %}
{% block title %}GFS::Menu Builder Detail
{% endblock %}
{% block content %}
\t<!--Menu Page Builder Banner Start-->
\t<section class=\"menu-page-builder-banner\">
\t\t<div class=\"container container-sm\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-12 col-lg-6 menuBuilder-content-column\">
\t\t\t\t\t<div class=\"upper-nav\">
\t\t\t\t\t\t<div class=\"training-detail-container-box\">
\t\t\t\t\t\t\t<div class=\"info-section\">
\t\t\t\t\t\t\t\t<section class=\"bread-crumbs-section\">
\t\t\t\t\t\t\t\t\t<div class=\"container container-lg\">
\t\t\t\t\t\t\t\t\t\t<div class=\"bread-crumbs-section-box\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"breadcrumb-holder\">
\t\t\t\t\t\t\t\t\t\t\t\t<ol class=\"breadcrumb menuBuilder-breadcrumb\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\"><a href=\"/{{app.request.locale}}\">{{'Home'|trans}}</a></li>
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\"><a href=\"/{{app.request.locale}}/resources\">{{'Resources'|trans}}</a></li>
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\">{{\"Tools\"|trans}}</li>
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\"><a href=\"/{{app.request.locale}}/menu-builder\">{{\"Menu Builder\"|trans}}</a></li>
\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\">{{menu_builder_details.name}}</li>
\t\t\t\t\t\t\t\t\t\t\t\t</ol>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</section>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<h1 class=\"title-lg\">{{menu_builder_details.name}}</span>
\t\t\t\t</h1>
\t\t\t\t<div class=\"step-tags\">
\t\t\t\t\t{% set length = menu_builder_details.tags|length %}
\t\t\t\t\t{% if length >= 4 %}
\t\t\t\t\t\t{% for i in 0..3 %}
\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"tag\">
\t\t\t\t\t\t\t\t<span>{{menu_builder_details.tags[i].tag_name}}
\t\t\t\t\t\t\t\t\t <img src=\"/static/assets/images/Ellipse.png\" class=\"img-fluid\" alt=\"Ellipse\"/></span>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t{% else %}
\t\t\t\t\t\t{% for tags in menu_builder_details.tags %}
\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"tag\">
\t\t\t\t\t\t\t\t<span>{{tags.tag_name}}
\t\t\t\t\t\t\t\t\t <img src=\"/static/assets/images/Ellipse.png\" class=\"img-fluid\" alt=\"Ellipse\"/></span>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t{% endif %}
\t\t\t\t</div>
\t\t\t\t<p>
\t\t\t\t\t{{menu_builder_details.description}}
\t\t\t\t</p>
\t\t\t\t
\t\t\t\t{% set unitcost = 0 %}
\t\t\t\t{% set unitvalue = 0 %}
\t\t\t\t{% set multiply = 0 %}
\t\t\t\t{% set total_unit_cost = 0 %}
\t\t\t\t{% set serve = menu_builder_details.serves %}
\t\t\t\t\t\t{% for ingrident in menu_builder_details.serving_options %}
\t\t\t\t\t\t\t{% for ing in ingrident.ingredeints %}
\t\t\t\t\t\t\t\t{% if ing.recipe_ing.data is defined %}
\t\t\t\t\t\t\t\t\t{% if ing.unit.data == 'kg' or ing.unit.data == 'Kg' or ing.unit.data == 'KG' or ing.unit.data == 'l' or ing.unit.data == 'L' %}
\t\t\t\t\t\t\t\t\t\t{% set multiply = ((ing.multiply.data) * 1000) %}
\t\t\t\t\t\t\t\t\t\t{% set unitvalue = (multiply)/(menu_builder_details.serves) %}
\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t{% set multiply = ing.multiply.data %}
\t\t\t\t\t\t\t\t\t\t{% set unitvalue = (multiply)/(menu_builder_details.serves) %}
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{% set unitcost = (unitvalue) * (ing.recipe_ing.data.price) %}
\t\t\t\t\t\t\t\t\t{% set total_unit_cost = total_unit_cost + unitcost %}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t{% set total_cost = total_unit_cost * serve %}
\t\t\t\t\t\t{% set vat_percentage = menu_builder_details.recipe_manu_vat_oercebtage %}
\t\t\t\t\t\t{% set total_cost_vat = ((total_cost * vat_percentage) / 100) %}
\t\t\t\t\t\t{% set total_cost = (total_cost - total_cost_vat) %}
\t\t\t\t\t\t{% set profit_percentage = (menu_builder_details.profit_percentage is not null) ? menu_builder_details.profit_percentage : 0 %}
\t\t\t\t\t
\t\t\t\t\t\t{% set profit = ((total_cost * profit_percentage ) / (100)) %}
\t\t\t\t\t\t{% set menu_price = (total_cost + profit) %}
\t\t\t\t\t\t
\t\t\t\t\t<div class = \"d-md-flex d-lg-flex align-items-center d-xl-flex menu-builder-counter\">
\t\t\t\t \t\t<div class=\"order-count-title menubuilder-serving-count-title mb-3 \">{{\"Servings\"|trans}}</div>
\t\t\t\t\t\t\t<div class=\"order-count-number justify-content-center\">
\t\t\t\t\t\t\t\t<span class=\"minus\" id=\"minusx\"><img src=\"/static/assets/images/icon-minus-blue.svg\" alt=\"icon minus\"></span>
\t\t\t\t\t\t\t\t<input class=\"count numeric-remove-spiner valuechange\" id=\"valuechangeprice\" type=\"number\" value=\"{{ menu_builder_details.serves}}\"/>
\t\t\t\t\t\t\t\t<span class=\"plus\" id=\"plusx\"><img src=\"/static/assets/images/icon-plus-blue.svg\" alt=\"icon plus\"></span>
\t\t\t\t\t\t\t</div>
\t\t\t\t \t</div>
\t\t\t\t<div class=\"cost-card-area d-md-flex\">
\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t<span>{{\"Food Cost\"|trans}}*</span>
\t\t\t\t\t\t<h4 id = \"food_cost\">{{total_cost|round(1)}}</h4>
\t\t\t\t\t\t<h6>{{\"SAR\"|trans}}</h6>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t<span>Menu Price*</span>
\t\t\t\t\t\t<h4 id = \"food_price\">{{menu_price|round(1)}}</h4>
\t\t\t\t\t\t<h6>{{\"SAR\"|trans}}</h6>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"card\">
\t\t\t\t\t\t<span>{{\"Profit\"|trans}}*</span>
\t\t\t\t\t\t<h4 id = \"food_profit\">{{profit|round(1)}}</h4>
\t\t\t\t\t\t<h6>{{\"SAR\"|trans}}</h6>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t
\t\t\t\t<div class=\"final-card-area\">
\t\t\t\t\t<div class=\"frequently-bought\">
\t\t\t\t\t\t<div class=\"frequently-bought-box\">
\t\t\t\t\t\t\t<h5 class=\"title\">Frequently Product</h5>
\t\t\t\t\t\t\t{% for product in menu_builder_details.serving_options.Items %}
\t\t\t\t\t\t\t\t{# {% for i in 0..product|length %} #}
\t\t\t\t\t\t\t\t{% for featured_product in product.recipe_feature_product %}
\t\t\t\t\t\t\t\t\t<div class=\"product-box product-box-horizon product-box-small\">
\t\t\t\t\t\t\t\t\t<a href = '{{'/' ~ app.request.locale ~ '/' ~ 'product/' ~ featured_product.url}}'>
\t\t\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{featured_product.attrimage.Items[0]}}\" alt=\"{{featured_product.name}}\">
\t\t\t\t\t\t\t\t\t\t\t{# {% if featured_product.attrimage.Items[0] %}
\t\t\t\t\t\t\t\t\t\t\t{{ featured_product.attrimage.Items[0].thumbnail('354x244').getHTML({imgAttributes: {class:'',alt:\"featured_product.name\" }})|raw }}
\t\t\t\t\t\t\t\t\t\t\t{% endif %} #}
\t\t\t\t\t\t\t\t\t\t</figure></a>
\t\t\t\t\t\t\t\t\t\t<div class=\"slide-info\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t<h5 class=\"title\"><a href = '{{'/' ~ app.request.locale ~ '/' ~ 'product/' ~ featured_product.url}}'>{{featured_product.name}}</a>
\t\t\t\t\t\t\t\t\t\t\t\t{% set user = app.session.get('loginUID') %}
\t\t\t\t\t\t\t\t\t\t\t\t{% if user is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"\"> <img src=\"/static/assets/images/featured-like.svg\" alt=\"featured like\"></span>
\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"logged-out\"> <img src=\"/static/assets/images/featured-like.svg\" alt=\"featured like\"></span>
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t</h5>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"kg\">{{featured_product.size}}</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"inline-info btn-holder\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"price\">{{featured_product.region[0]['price'].data}}
\t\t\t\t\t\t\t\t\t\t\t\t\t{{featured_product.region[0]['currency_symbol'].data|trans}}</div>
\t\t\t\t\t\t\t\t\t\t\t\t{% set points = (((featured_product.region[0]['price'].data)/100)*10)|round %}
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"award d-none\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"far fa-star\"></i>{{\"Earn\"|trans}}
\t\t\t\t\t\t\t\t\t\t\t\t\t{{points}}
\t\t\t\t\t\t\t\t\t\t\t\t\t{{\"Rewards Points\"|trans}}</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"frequently-product-buttons\">
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"btn btn-custom btn-green\" onclick=\"addCart(this, {{featured_product.id}}, 1)\">{{\"Buy Now\"|trans}}</a>
\t\t\t\t\t\t\t\t\t\t\t\t{% set user = app.session.get('loginUID') %}
\t\t\t\t\t\t\t\t\t\t\t\t{% if user is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set points = (((featured_product.region[0]['price'].data)/100)*10)|round %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"btn btn-custom btn-green d-none\" onclick=\"inventoryProgram(this,{{points}},{{featured_product.id}})\">{{\"Add to Inventory\"|trans}}</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-success ml-0\" id=\"success-alertt-inventory{{featured_product.id}}\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>Thank you for adding this product to Inventory.</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-warning ml-0\" id=\"failed-alertt-inventory{{featured_product.id}}\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>
\t\t\t\t\t\t\t\t\t\t\t\t\t\tThis product is already added to Inventory.</div>
\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"btn btn-custom btn-green product-logged-out d-none\">{{\"Add to Inventory\"|trans}}</a>
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"product-inventry-alert\"></div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<p>* Based on approximate total plate food costs, including average distributor markup.</p>
\t\t\t</div>
\t\t\t<div class=\"col-12 col-lg-6 menuBuilder-image-column\">
\t\t\t\t<div class=\"dish-image\">
\t\t\t\t\t<img src=\"{{menu_builder_details.featured_image}}\" class=\"img-fluid\" alt=\"Manu Builder feature image\">
\t\t\t\t</div>
\t\t\t\t<div class=\"extra-area\">
\t\t\t\t\t<ul class=\"d-flex social-info recipe-info\">
\t\t\t\t\t\t{% set user = app.session.get('loginUID') %}
\t\t\t\t\t\t{% if user is not null %}
\t\t\t\t\t\t\t{% if Liked|length == 0 %}
\t\t\t\t\t\t\t\t<li class='like' onclick=\"loyaltyProgram(this, {{ menu_builder_details.id }},'{{ menu_builder_details.name }}',30,'Recipe','Like' , '{{app.request.locale}}')\">{{\"Like\"|trans}}</li>
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t<li class=\"liked\">{{\"Like\"|trans}}</li>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t<li id = \"add_to_menu\"onclick=\"addtomenu(this , {{user}},{{ menu_builder_details.id }} , {{ menu_builder_details.serves }})\">
\t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/addToMenu.svg\" class=\"img-fluid \" alt=\"addToMenu\"></span> {{\"Add To Menu\"|trans}}</li>
\t\t\t\t\t\t\t<div class=\"alert alert-success ml-0\" id=\"success-alertt-addtomenu\">
\t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>Thank you for adding this recipe to menu.</div>
\t\t\t\t\t\t\t<div class=\"alert alert-success ml-0\" id=\"success-alertt-addtomenu_update\">
\t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>Thank you for updating this recipe to menu.</div>
\t\t\t\t\t\t\t<div class=\"alert alert-warning ml-0\" id=\"failed-alertt-addtomenu\">
\t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>
\t\t\t\t\t\t\t\tSomething went worng.</div>
\t\t\t\t\t\t\t<div class=\"alert alert-warning ml-0\" id=\"failed-alertt-addtomenu_error_missing_params\">
\t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>
\t\t\t\t\t\t\t\tSome required values are null.</div>
\t\t\t\t\t\t\t<li onclick=\"loyaltyProgram(this, {{ menu_builder_details.id }},'{{ menu_builder_details.name }}',30,'Recipe','Like' , '{{app.request.locale}}')\">
\t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/share.svg\" class=\"img-fluid logged-out\" alt=\"share\" onclick=\"sharemodal('Recipe','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/menu-builder/' ~ menu_builder_details.url}}' , '{{ \" share goody recipe with your friends\"|trans }}')\"></span> {{\"Share\"|trans}}</li>
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t<li class='logged-out'>
\t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/like-menu.svg\" class=\"img-fluid \" alt=\"like-menu\"></span> {{\"Like\"|trans}}</li>
\t\t\t\t\t\t\t<li class='add-menu-logged-out'>
\t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/addToMenu.svg\" class=\"img-fluid \" alt=\"addToMenu\"></span> {{\"Add To Menu\"|trans}}</li>
\t\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/share.svg\" class=\"img-fluid logged-out\" alt=\"share\" onclick=\"sharemodal('Recipe','{{ app.request.getSchemeAndHttpHost() ~ '/' ~ app.request.locale ~ '/menu-builder/' ~ menu_builder_details.url}}' , '{{ \" share goody recipe with your friends\"|trans }}')\"></span> {{\"Share\"|trans}}</li>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a class=\"directions-link\" target=\"_blank\" href =\"/{{app.request.locale}}/print/recipe/{{menu_builder_details.url}}\"><span><img src=\"/static/assets/images/down-arrow.svg\" class=\"img-fluid\" alt=\"download\"></span> {{\"Download\"|trans}}</li></a>
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a class=\"directions-link\" target=\"_blank\" href =\"/{{app.request.locale}}/print/recipe/{{menu_builder_details.url}}\"><span><img src=\"/static/assets/images/print.svg\" class=\"img-fluid\" alt=\"print\"></span> {{\"Print\"|trans}}</li></a>
\t\t\t\t\t</ul>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</section>
<!--Menu Page Builder Banner End-->
<section class=\"featured-recipes-section inner-featured-recipe product-using-products menu-builder-featured-recipe\">
\t<div class=\"container container-sm\">
\t\t{% if similar_menu_ideas|length > 0 %}
\t\t\t<h2 class=\"heading\">Similar Menu Ideas</h2>
\t\t{% endif %}
\t\t<div class=\"featured-recipes\">
\t\t\t<div class=\"custom-slider featured-recipes-slider\">
\t\t\t\t{% for similar_menu_ideas_recipes in similar_menu_ideas %}
\t\t\t\t\t<div class=\"slide\">
\t\t\t\t\t\t<div class=\"slide-holder\">
\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/menu-builder/{{similar_menu_ideas_recipes.url}}\">
\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
\t\t\t\t\t\t\t\t\t<img src=\"{{similar_menu_ideas_recipes.featured_image}}\" alt=\"{{similar_menu_ideas_recipes.name}}\">
\t\t\t\t\t\t\t\t</figure>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t<div class=\"slide-content\">
\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/menu-builder/{{similar_menu_ideas_recipes.url}}\">
\t\t\t\t\t\t\t\t\t<h3>{{similar_menu_ideas_recipes.name}}</h3>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t<p>{{similar_menu_ideas_recipes.short_description}}</p>
\t\t\t\t\t\t\t\t<div class=\"\">
\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\">{{\"With\"|trans}}
\t\t\t\t\t\t\t\t\t\t{{similar_menu_ideas_recipes.featured_product[0].brands.name}}</a>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t</div>
\t</div>
</section>
<section class=\"loyal-section d-none\">
\t<div class=\"container-fluid p-0\">
\t\t<div class=\"row\">
\t\t\t<div class=\"col-12 col-lg-4\">
\t\t\t\t<img src=\"/static/assets/images/loyal-image.svg\" class=\"img-fluid loyal-section-image\" alt=\"loyal-image\">
\t\t\t</div>
\t\t\t<div class=\"col-12 col-lg-8\">
\t\t\t\t<div class=\"custom-flex\">
\t\t\t\t\t<div>
\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t<h3 class=\"title-sm\">{{'Loyalty Program'|trans}}</h3>
\t\t\t\t\t\t\t<h2 class=\"title-lg\">Lorem Epsum Lorem Lorem</h2>
\t\t\t\t\t\t\t<h2 class=\"title-lg\">Lorem Epsum Lorem Lorem Lorem Lorem
\t\t\t\t\t\t\t\t<span>Lorem Lorem</span>
\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"btn-holder m-lg-auto\">
\t\t\t\t\t\t<div class=\"btn-border\">
\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-lg-o-black\">Start Earning Now!</a>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</section>
{% if (app.request.locale =='ar') %}
\t{% set topMenu =\"/en/menu-builder/\" ~ menu_builder_details.url('en') %}
{% else %}
\t{% set topMenu =\"/ar/menu-builder/\" ~ menu_builder_details.url('ar') %}
{% endif %}
<script>
\tvar _TopMenuLink = \"{{ topMenu }}\";
\t\tfunction addtomenu(element, userid, objectId, serving) {
\t\tvar userid = userid;
\t\tvar objectId = objectId;
\t\tvar serving = serving;
\t\tvar form_data = new FormData(); // Creates new FormData object
\t\tform_data.append(\"userid\", userid);
\t\tform_data.append(\"objectId\", objectId);
\t\tform_data.append(\"serving\", serving);
\t\t\$.ajax({
\t\turl: \"/addtomenu\",
\t\ttype: \"POST\",
\t\tdata: form_data,
\t\tcontentType: false,
\t\tcache: false,
\t\tprocessData: false,
\t\tsuccess: function (response) {
\t\tconsole.log(response)
\t\tif (response.success == 1) { // document.getElementById('newsletter').reset();
\t\t\t\$(\"#success-alertt-addtomenu_update\").fadeTo(5000, 500).slideUp(500, function () {
\t\t\t\$(\"#success-alertt-addtomenu_update\").slideUp(500);
\t\t\t});
\t\t} else if(response.success == 2) {
\t\t\t\$(\"#success-alertt-addtomenu\").fadeTo(5000, 500).slideUp(500, function () {
\t\t\t\$(\"#success-alertt-addtomenu\").slideUp(500);
\t\t\t});
\t\t} else if(response.success == 3) {
\t\t\t\$(\"#failed-alertt-addtomenu_error_missing_params\").fadeTo(5000, 500).slideUp(500, function () {
\t\t\t\$(\"#failed-alertt-addtomenu_error_missing_params\").slideUp(500);
\t\t\t});
\t\t} else {
\t\t\t\$(\"#failed-alertt-addtomenu\").fadeTo(5000, 500).slideUp(500, function () {
\t\t\t\$(\"#failed-alertt-addtomenu\").slideUp(500);
\t\t\t});
\t\t}
\t\t}
\t\t})
\t\t}
\t\t\t// Menubuilder calculator start
\t\t\t\$(document).ready(function () {
\t\t\t\tvar userId = '{{ user }}';
\t\t\t\tvar obId = {{ menu_builder_details.id }};
\t\t\t\t\$(\"#valuechangeprice\").on('keyup change', function () {
\t\t\t\t\t\tvar countTxt = parseInt(\$('.count').val(), 10);
\t\t\t\t\t\tvar unit_cost = {{total_unit_cost}} ;
\t\t\t\t\t\tvar vat_percentage = {{vat_percentage}};
\t\t\t\t\t\tvar unit_cost_vat = ((unit_cost * vat_percentage) / 100);
\t\t\t\t\t\t\tunit_cost = (unit_cost - unit_cost_vat );
\t\t\t\t\t\tvar profit_percentage = {{profit_percentage}};
\t\t\t\t\t\tvar unit_profit = ((unit_cost * profit_percentage)/ 100);
\t\t\t\t\t\tvar unit_menu_price = (unit_cost + unit_profit);
\t\t\t\t\t\t\$('#food_cost').text((unit_cost *countTxt).toFixed(1));
\t\t\t\t\t\t\$('#food_price').text((unit_menu_price *countTxt).toFixed(1));
\t\t\t\t\t\t\$('#food_profit').text((unit_profit *countTxt).toFixed(1));
\t\t\t\t\t\t\$('#add_to_menu').attr('onclick', 'addtomenu( this ,'+ userId +', '+ obId +', '+ countTxt +')');
\t\t\t\t\t});
\t\t\t});
\t\t\t// Menubuilder calculator end
\t\t\t\t// Download and Print Recipe According to serving ingerident quantity srart\t
\t\t\t\t\t\$(document).ready(function () {
\t\t\t\t\t\tvar serving = {{ menu_builder_details.serves}};
\t\t\t\t\t\t\$(\"a.directions-link\").each(function() {
\t\t\t\t\t\t\tvar \$this = \$(this);
\t\t\t\t\t\t\tconst _href = \$this.attr(\"href\");
\t\t\t\t\t\t\t\$(\".valuechange\").on('keyup change', function () {
\t\t\t\t\t\t\tvar countTxt = parseInt(\$('.count').val(), 10);
\t\t\t\t\t\t\t\$(\".directions-link\").attr(\"href\", _href+\"~portion=\"+countTxt);
\t\t\t\t\t\t\t});
\t\t\t\t\t\t\t\$(\".directions-link\").attr(\"href\", _href+\"~portion=\"+serving);
\t\t\t\t\t\t\tconsole.log(countTxt);
\t\t\t\t\t\t});
\t\t\t\t\t});
\t\t\t\t// Download and Print Recipe According to serving ingerident quantity end\t
</script>
{% endblock %}
", "menubuilder/menu-builder-detail.html.twig", "/var/www/vhosts/centric.ae/gcs.centric.ae/templates/menubuilder/menu-builder-detail.html.twig");
}
}