var/cache/dev/twig/8b/8bb5efb577bfa59a6e79b262d6eff411.php line 44

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* menubuilder/menu-builder-detail.html.twig */
  16. class __TwigTemplate_b21868c8a58b3acbfb704480a88bc857 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'content' => [$this'block_content'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "layout/layout.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""menubuilder/menu-builder-detail.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""menubuilder/menu-builder-detail.html.twig"));
  44.         $this->parent $this->loadTemplate("layout/layout.html.twig""menubuilder/menu-builder-detail.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_title(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         yield "GFS::Menu Builder Detail
  63. ";
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.         yield from [];
  69.     }
  70.     // line 6
  71.     /**
  72.      * @return iterable<null|scalar|\Stringable>
  73.      */
  74.     public function block_content(array $context, array $blocks = []): iterable
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  81.         // line 7
  82.         yield "
  83. \t<!--Menu Page Builder Banner Start-->
  84. \t<section class=\"menu-page-builder-banner\">
  85. \t\t<div class=\"container container-sm\">
  86. \t\t\t<div class=\"row\">
  87. \t\t\t\t<div class=\"col-12 col-lg-6 menuBuilder-content-column\">
  88. \t\t\t\t\t<div class=\"upper-nav\">
  89. \t\t\t\t\t\t<div class=\"training-detail-container-box\">
  90. \t\t\t\t\t\t\t<div class=\"info-section\">
  91. \t\t\t\t\t\t\t\t<section class=\"bread-crumbs-section\">
  92. \t\t\t\t\t\t\t\t\t<div class=\"container container-lg\">
  93. \t\t\t\t\t\t\t\t\t\t<div class=\"bread-crumbs-section-box\">
  94. \t\t\t\t\t\t\t\t\t\t\t<div class=\"breadcrumb-holder\">
  95. \t\t\t\t\t\t\t\t\t\t\t\t<ol class=\"breadcrumb menuBuilder-breadcrumb\">
  96. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\"><a href=\"/";
  97.         // line 21
  98.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse21), "locale", [], "any"falsefalsefalse21), "html"nulltrue);
  99.         yield "\">";
  100.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Home"), "html"nulltrue);
  101.         yield "</a></li>
  102. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\"><a href=\"/";
  103.         // line 22
  104.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse22), "locale", [], "any"falsefalsefalse22), "html"nulltrue);
  105.         yield "/resources\">";
  106.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Resources"), "html"nulltrue);
  107.         yield "</a></li>
  108. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\">";
  109.         // line 23
  110.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tools"), "html"nulltrue);
  111.         yield "</li>
  112. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\"><a href=\"/";
  113.         // line 24
  114.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse24), "locale", [], "any"falsefalsefalse24), "html"nulltrue);
  115.         yield "/menu-builder\">";
  116.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Menu Builder"), "html"nulltrue);
  117.         yield "</a></li>
  118. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\">";
  119.         // line 25
  120.         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"falsefalsefalse25), "html"nulltrue);
  121.         yield "</li>
  122. \t\t\t\t\t\t\t\t\t\t\t\t</ol>
  123. \t\t\t\t\t\t\t\t\t\t\t</div>
  124. \t\t\t\t\t\t\t\t\t\t</div>
  125. \t\t\t\t\t\t\t\t\t</div>
  126. \t\t\t\t\t\t\t\t</section>
  127. \t\t\t\t\t\t\t</div>
  128. \t\t\t\t\t\t</div>
  129. \t\t\t\t\t</div>
  130. \t\t\t\t\t<h1 class=\"title-lg\">";
  131.         // line 37
  132.         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"falsefalsefalse37), "html"nulltrue);
  133.         yield "</span>
  134. \t\t\t\t</h1>
  135. \t\t\t\t<div class=\"step-tags\">
  136. \t\t\t\t\t";
  137.         // line 40
  138.         $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"falsefalsefalse40));
  139.         // line 41
  140.         yield "\t\t\t\t\t";
  141.         if (((isset($context["length"]) || array_key_exists("length"$context) ? $context["length"] : (function () { throw new RuntimeError('Variable "length" does not exist.'41$this->source); })()) >= 4)) {
  142.             // line 42
  143.             yield "
  144. \t\t\t\t\t\t";
  145.             // line 43
  146.             $context['_parent'] = $context;
  147.             $context['_seq'] = CoreExtension::ensureTraversable(range(03));
  148.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  149.                 // line 44
  150.                 yield "\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"tag\">
  151. \t\t\t\t\t\t\t\t<span>";
  152.                 // line 45
  153.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse45), $context["i"], [], "array"falsefalsefalse45), "tag_name", [], "any"falsefalsefalse45), "html"nulltrue);
  154.                 yield "
  155. \t\t\t\t\t\t\t\t\t&nbsp;<img src=\"/static/assets/images/Ellipse.png\" class=\"img-fluid\" alt=\"Ellipse\"/></span>
  156. \t\t\t\t\t\t\t</a>
  157. \t\t\t\t\t\t";
  158.             }
  159.             $_parent $context['_parent'];
  160.             unset($context['_seq'], $context['_key'], $context['i'], $context['_parent']);
  161.             $context array_intersect_key($context$_parent) + $_parent;
  162.             // line 49
  163.             yield "
  164. \t\t\t\t\t";
  165.         } else {
  166.             // line 51
  167.             yield "
  168. \t\t\t\t\t\t";
  169.             // line 52
  170.             $context['_parent'] = $context;
  171.             $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"falsefalsefalse52));
  172.             foreach ($context['_seq'] as $context["_key"] => $context["tags"]) {
  173.                 // line 53
  174.                 yield "\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"tag\">
  175. \t\t\t\t\t\t\t\t<span>";
  176.                 // line 54
  177.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["tags"], "tag_name", [], "any"falsefalsefalse54), "html"nulltrue);
  178.                 yield "
  179. \t\t\t\t\t\t\t\t\t&nbsp;<img src=\"/static/assets/images/Ellipse.png\" class=\"img-fluid\" alt=\"Ellipse\"/></span>
  180. \t\t\t\t\t\t\t</a>
  181. \t\t\t\t\t\t";
  182.             }
  183.             $_parent $context['_parent'];
  184.             unset($context['_seq'], $context['_key'], $context['tags'], $context['_parent']);
  185.             $context array_intersect_key($context$_parent) + $_parent;
  186.             // line 58
  187.             yield "
  188. \t\t\t\t\t";
  189.         }
  190.         // line 60
  191.         yield "
  192. \t\t\t\t</div>
  193. \t\t\t\t<p>
  194. \t\t\t\t\t";
  195.         // line 63
  196.         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"falsefalsefalse63), "html"nulltrue);
  197.         yield "
  198. \t\t\t\t</p>
  199. \t\t\t\t
  200. \t\t\t\t";
  201.         // line 67
  202.         $context["unitcost"] = 0;
  203.         // line 68
  204.         yield "\t\t\t\t";
  205.         $context["unitvalue"] = 0;
  206.         // line 69
  207.         yield "\t\t\t\t";
  208.         $context["multiply"] = 0;
  209.         // line 70
  210.         yield "\t\t\t\t";
  211.         $context["total_unit_cost"] = 0;
  212.         // line 71
  213.         yield "\t\t\t\t";
  214.         $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"falsefalsefalse71);
  215.         // line 72
  216.         yield "
  217. \t\t\t\t\t\t";
  218.         // line 73
  219.         $context['_parent'] = $context;
  220.         $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"falsefalsefalse73));
  221.         foreach ($context['_seq'] as $context["_key"] => $context["ingrident"]) {
  222.             // line 74
  223.             yield "\t\t\t\t\t\t\t";
  224.             $context['_parent'] = $context;
  225.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source$context["ingrident"], "ingredeints", [], "any"falsefalsefalse74));
  226.             foreach ($context['_seq'] as $context["_key"] => $context["ing"]) {
  227.                 // line 75
  228.                 yield "
  229. \t\t\t\t\t\t\t\t";
  230.                 // line 76
  231.                 if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ing"], "recipe_ing", [], "any"falsetruefalse76), "data", [], "any"truetruefalse76)) {
  232.                     // line 77
  233.                     yield "
  234. \t\t\t\t\t\t\t\t\t";
  235.                     // line 78
  236.                     if ((((((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ing"], "unit", [], "any"falsefalsefalse78), "data", [], "any"falsefalsefalse78) == "kg") || (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ing"], "unit", [], "any"falsefalsefalse78), "data", [], "any"falsefalsefalse78) == "Kg")) || (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ing"], "unit", [], "any"falsefalsefalse78), "data", [], "any"falsefalsefalse78) == "KG")) || (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ing"], "unit", [], "any"falsefalsefalse78), "data", [], "any"falsefalsefalse78) == "l")) || (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ing"], "unit", [], "any"falsefalsefalse78), "data", [], "any"falsefalsefalse78) == "L"))) {
  237.                         // line 79
  238.                         yield "\t\t\t\t\t\t\t\t\t\t";
  239.                         $context["multiply"] = (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ing"], "multiply", [], "any"falsefalsefalse79), "data", [], "any"falsefalsefalse79) * 1000);
  240.                         // line 80
  241.                         yield "\t\t\t\t\t\t\t\t\t\t";
  242.                         $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"falsefalsefalse80));
  243.                         // line 81
  244.                         yield "
  245. \t\t\t\t\t\t\t\t\t";
  246.                     } else {
  247.                         // line 83
  248.                         yield "\t\t\t\t\t\t\t\t\t\t";
  249.                         $context["multiply"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ing"], "multiply", [], "any"falsefalsefalse83), "data", [], "any"falsefalsefalse83);
  250.                         // line 84
  251.                         yield "\t\t\t\t\t\t\t\t\t\t";
  252.                         $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"falsefalsefalse84));
  253.                         // line 85
  254.                         yield "\t\t\t\t\t\t\t\t\t";
  255.                     }
  256.                     // line 86
  257.                     yield "
  258. \t\t\t\t\t\t\t\t\t";
  259.                     // line 87
  260.                     $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->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ing"], "recipe_ing", [], "any"falsefalsefalse87), "data", [], "any"falsefalsefalse87), "price", [], "any"falsefalsefalse87));
  261.                     // line 88
  262.                     yield "\t\t\t\t\t\t\t\t\t";
  263.                     $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); })()));
  264.                     // line 89
  265.                     yield "
  266. \t\t\t\t\t\t\t\t";
  267.                 }
  268.                 // line 91
  269.                 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
  270. \t\t\t\t\t\t\t";
  271.             }
  272.             $_parent $context['_parent'];
  273.             unset($context['_seq'], $context['_key'], $context['ing'], $context['_parent']);
  274.             $context array_intersect_key($context$_parent) + $_parent;
  275.             // line 93
  276.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
  277. \t\t\t\t\t\t";
  278.         }
  279.         $_parent $context['_parent'];
  280.         unset($context['_seq'], $context['_key'], $context['ingrident'], $context['_parent']);
  281.         $context array_intersect_key($context$_parent) + $_parent;
  282.         // line 95
  283.         yield "
  284. \t\t\t\t\t\t";
  285.         // line 96
  286.         $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); })()));
  287.         // line 97
  288.         yield "
  289. \t\t\t\t\t\t";
  290.         // line 98
  291.         $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"falsefalsefalse98);
  292.         // line 99
  293.         yield "\t\t\t\t\t\t";
  294.         $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);
  295.         // line 100
  296.         yield "
  297. \t\t\t\t\t\t";
  298.         // line 101
  299.         $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); })()));
  300.         // line 102
  301.         yield "
  302. \t\t\t\t\t\t";
  303.         // line 103
  304.         $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"falsefalsefalse103)))) ? (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"falsefalsefalse103)) : (0));
  305.         // line 104
  306.         yield "\t\t\t\t\t
  307. \t\t\t\t\t\t";
  308.         // line 105
  309.         $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);
  310.         // line 106
  311.         yield "\t\t\t\t\t\t";
  312.         $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); })()));
  313.         // line 107
  314.         yield "\t\t\t\t\t\t
  315. \t\t\t\t\t<div class = \"d-md-flex d-lg-flex align-items-center d-xl-flex menu-builder-counter\">
  316. \t\t\t\t \t\t<div class=\"order-count-title menubuilder-serving-count-title mb-3 \">";
  317.         // line 109
  318.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Servings"), "html"nulltrue);
  319.         yield "</div>
  320. \t\t\t\t\t\t\t<div class=\"order-count-number justify-content-center\">
  321. \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>
  322. \t\t\t\t\t\t\t\t<input class=\"count numeric-remove-spiner valuechange\" id=\"valuechangeprice\" type=\"number\" value=\"";
  323.         // line 112
  324.         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"falsefalsefalse112), "html"nulltrue);
  325.         yield "\"/>
  326. \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>
  327. \t\t\t\t\t\t\t</div>
  328. \t\t\t\t \t</div>
  329. \t\t\t\t<div class=\"cost-card-area d-md-flex\">
  330. \t\t\t\t\t<div class=\"card\">
  331. \t\t\t\t\t\t<span>";
  332.         // line 119
  333.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Food Cost"), "html"nulltrue);
  334.         yield "*</span>
  335. \t\t\t\t\t\t<h4 id = \"food_cost\">";
  336.         // line 120
  337.         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"nulltrue);
  338.         yield "</h4>
  339. \t\t\t\t\t\t<h6>";
  340.         // line 121
  341.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SAR"), "html"nulltrue);
  342.         yield "</h6>
  343. \t\t\t\t\t</div>
  344. \t\t\t\t\t<div class=\"card\">
  345. \t\t\t\t\t\t<span>Menu Price*</span>
  346. \t\t\t\t\t\t<h4 id = \"food_price\">";
  347.         // line 125
  348.         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"nulltrue);
  349.         yield "</h4>
  350. \t\t\t\t\t\t<h6>";
  351.         // line 126
  352.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SAR"), "html"nulltrue);
  353.         yield "</h6>
  354. \t\t\t\t\t</div>
  355. \t\t\t\t\t<div class=\"card\">
  356. \t\t\t\t\t\t<span>";
  357.         // line 129
  358.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Profit"), "html"nulltrue);
  359.         yield "*</span>
  360. \t\t\t\t\t\t<h4 id = \"food_profit\">";
  361.         // line 130
  362.         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"nulltrue);
  363.         yield "</h4>
  364. \t\t\t\t\t\t<h6>";
  365.         // line 131
  366.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SAR"), "html"nulltrue);
  367.         yield "</h6>
  368. \t\t\t\t\t</div>
  369. \t\t\t\t</div>
  370. \t\t\t
  371. \t\t\t\t<div class=\"final-card-area\">
  372. \t\t\t\t\t<div class=\"frequently-bought\">
  373. \t\t\t\t\t\t<div class=\"frequently-bought-box\">
  374. \t\t\t\t\t\t\t<h5 class=\"title\">Frequently Product</h5>
  375. \t\t\t\t\t\t\t";
  376.         // line 139
  377.         $context['_parent'] = $context;
  378.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse139), "Items", [], "any"falsefalsefalse139));
  379.         foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  380.             // line 140
  381.             yield "\t\t\t\t\t\t\t\t";
  382.             // line 141
  383.             yield "\t\t\t\t\t\t\t\t";
  384.             $context['_parent'] = $context;
  385.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source$context["product"], "recipe_feature_product", [], "any"falsefalsefalse141));
  386.             foreach ($context['_seq'] as $context["_key"] => $context["featured_product"]) {
  387.                 // line 142
  388.                 yield "
  389. \t\t\t\t\t\t\t\t\t<div class=\"product-box product-box-horizon product-box-small\">
  390. \t\t\t\t\t\t\t\t\t<a href = '";
  391.                 // line 144
  392.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((("/" CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse144), "locale", [], "any"falsefalsefalse144)) . "/") . "product/") . CoreExtension::getAttribute($this->env$this->source$context["featured_product"], "url", [], "any"falsefalsefalse144)), "html"nulltrue);
  393.                 yield "'>
  394. \t\t\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
  395. \t\t\t\t\t\t\t\t\t\t\t<img src=\"";
  396.                 // line 146
  397.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["featured_product"], "attrimage", [], "any"falsefalsefalse146), "Items", [], "any"falsefalsefalse146), 0, [], "array"falsefalsefalse146), "html"nulltrue);
  398.                 yield "\" alt=\"";
  399.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["featured_product"], "name", [], "any"falsefalsefalse146), "html"nulltrue);
  400.                 yield "\">
  401. \t\t\t\t\t\t\t\t\t\t\t";
  402.                 // line 150
  403.                 yield "\t\t\t\t\t\t\t\t\t\t</figure></a>
  404. \t\t\t\t\t\t\t\t\t\t<div class=\"slide-info\">
  405. \t\t\t\t\t\t\t\t\t\t\t<div class=\"\">
  406. \t\t\t\t\t\t\t\t\t\t\t\t<h5 class=\"title\"><a href = '";
  407.                 // line 153
  408.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((("/" CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse153), "locale", [], "any"falsefalsefalse153)) . "/") . "product/") . CoreExtension::getAttribute($this->env$this->source$context["featured_product"], "url", [], "any"falsefalsefalse153)), "html"nulltrue);
  409.                 yield "'>";
  410.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["featured_product"], "name", [], "any"falsefalsefalse153), "html"nulltrue);
  411.                 yield "</a>
  412. \t\t\t\t\t\t\t\t\t\t\t\t";
  413.                 // line 154
  414.                 $context["user"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse154), "get", ["loginUID"], "method"falsefalsefalse154);
  415.                 // line 155
  416.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  417.                 if ( !(null === (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'155$this->source); })()))) {
  418.                     // line 156
  419.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"\">&nbsp;<img src=\"/static/assets/images/featured-like.svg\" alt=\"featured like\"></span>
  420. \t\t\t\t\t\t\t\t\t\t\t\t
  421. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  422.                 } else {
  423.                     // line 159
  424.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"logged-out\">&nbsp;<img src=\"/static/assets/images/featured-like.svg\" alt=\"featured like\"></span>
  425. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  426.                 }
  427.                 // line 162
  428.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t</h5>
  429. \t\t\t\t\t\t\t\t\t\t\t</div>
  430. \t\t\t\t\t\t\t\t\t\t\t<div class=\"kg\">";
  431.                 // line 164
  432.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["featured_product"], "size", [], "any"falsefalsefalse164), "html"nulltrue);
  433.                 yield "</div>
  434. \t\t\t\t\t\t\t\t\t\t\t<div class=\"inline-info btn-holder\">
  435. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"price\">";
  436.                 // line 166
  437.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["featured_product"], "region", [], "any"falsefalsefalse166), 0, [], "array"falsefalsefalse166), "price", [], "array"falsefalsefalse166), "data", [], "any"falsefalsefalse166), "html"nulltrue);
  438.                 yield "
  439. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  440.                 // line 167
  441.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["featured_product"], "region", [], "any"falsefalsefalse167), 0, [], "array"falsefalsefalse167), "currency_symbol", [], "array"falsefalsefalse167), "data", [], "any"falsefalsefalse167)), "html"nulltrue);
  442.                 yield "</div>
  443. \t\t\t\t\t\t\t\t\t\t\t\t";
  444.                 // line 168
  445.                 $context["points"] = Twig\Extension\CoreExtension::round(((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["featured_product"], "region", [], "any"falsefalsefalse168), 0, [], "array"falsefalsefalse168), "price", [], "array"falsefalsefalse168), "data", [], "any"falsefalsefalse168) / 100) * 10));
  446.                 // line 169
  447.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"award d-none\">
  448. \t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"far fa-star\"></i>";
  449.                 // line 170
  450.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Earn"), "html"nulltrue);
  451.                 yield "
  452. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  453.                 // line 171
  454.                 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"nulltrue);
  455.                 yield "
  456. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  457.                 // line 172
  458.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Rewards Points"), "html"nulltrue);
  459.                 yield "</div>
  460. \t\t\t\t\t\t\t\t\t\t\t</div>
  461. \t\t\t\t\t\t\t\t\t\t\t<div class=\"frequently-product-buttons\">
  462. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"btn btn-custom btn-green\" onclick=\"addCart(this, ";
  463.                 // line 175
  464.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["featured_product"], "id", [], "any"falsefalsefalse175), "html"nulltrue);
  465.                 yield ", 1)\">";
  466.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Buy Now"), "html"nulltrue);
  467.                 yield "</a>
  468. \t\t\t\t\t\t\t\t\t\t\t\t";
  469.                 // line 176
  470.                 $context["user"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse176), "get", ["loginUID"], "method"falsefalsefalse176);
  471.                 // line 177
  472.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  473.                 if ( !(null === (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'177$this->source); })()))) {
  474.                     // line 178
  475.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  476.                     $context["points"] = Twig\Extension\CoreExtension::round(((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["featured_product"], "region", [], "any"falsefalsefalse178), 0, [], "array"falsefalsefalse178), "price", [], "array"falsefalsefalse178), "data", [], "any"falsefalsefalse178) / 100) * 10));
  477.                     // line 179
  478.                     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,";
  479.                     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"nulltrue);
  480.                     yield ",";
  481.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["featured_product"], "id", [], "any"falsefalsefalse179), "html"nulltrue);
  482.                     yield ")\">";
  483.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to Inventory"), "html"nulltrue);
  484.                     yield "</a>
  485. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-success ml-0\" id=\"success-alertt-inventory";
  486.                     // line 180
  487.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["featured_product"], "id", [], "any"falsefalsefalse180), "html"nulltrue);
  488.                     yield "\">
  489. \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>
  490. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-warning ml-0\" id=\"failed-alertt-inventory";
  491.                     // line 182
  492.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["featured_product"], "id", [], "any"falsefalsefalse182), "html"nulltrue);
  493.                     yield "\">
  494. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>
  495. \t\t\t\t\t\t\t\t\t\t\t\t\t\tThis product is already added to Inventory.</div>
  496. \t\t\t\t\t\t\t\t\t\t\t\t";
  497.                 } else {
  498.                     // line 186
  499.                     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\">";
  500.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to Inventory"), "html"nulltrue);
  501.                     yield "</a>
  502. \t\t\t\t\t\t\t\t\t\t\t\t";
  503.                 }
  504.                 // line 188
  505.                 yield "\t\t\t\t\t\t\t\t\t\t\t</div>
  506. \t\t\t\t\t\t\t\t\t\t\t<div class=\"product-inventry-alert\"></div>
  507. \t\t\t\t\t\t\t\t\t\t</div>
  508. \t\t\t\t\t\t\t\t\t</div>
  509. \t\t\t\t\t\t\t\t";
  510.             }
  511.             $_parent $context['_parent'];
  512.             unset($context['_seq'], $context['_key'], $context['featured_product'], $context['_parent']);
  513.             $context array_intersect_key($context$_parent) + $_parent;
  514.             // line 193
  515.             yield "\t\t\t\t\t\t\t";
  516.         }
  517.         $_parent $context['_parent'];
  518.         unset($context['_seq'], $context['_key'], $context['product'], $context['_parent']);
  519.         $context array_intersect_key($context$_parent) + $_parent;
  520.         // line 194
  521.         yield "\t\t\t\t\t\t</div>
  522. \t\t\t\t\t</div>
  523. \t\t\t\t</div>
  524. \t\t\t\t<p>* Based on approximate total plate food costs, including average distributor markup.</p>
  525. \t\t\t</div>
  526. \t\t\t<div class=\"col-12 col-lg-6 menuBuilder-image-column\">
  527. \t\t\t\t<div class=\"dish-image\">
  528. \t\t\t\t\t<img src=\"";
  529.         // line 203
  530.         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"falsefalsefalse203), "html"nulltrue);
  531.         yield "\" class=\"img-fluid\" alt=\"Manu Builder feature image\">
  532. \t\t\t\t</div>
  533. \t\t\t\t<div class=\"extra-area\">
  534. \t\t\t\t\t<ul class=\"d-flex social-info recipe-info\">
  535. \t\t\t\t\t\t";
  536.         // line 207
  537.         $context["user"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse207), "get", ["loginUID"], "method"falsefalsefalse207);
  538.         // line 208
  539.         yield "\t\t\t\t\t\t";
  540.         if ( !(null === (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'208$this->source); })()))) {
  541.             // line 209
  542.             yield "
  543. \t\t\t\t\t\t\t";
  544.             // line 210
  545.             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)) {
  546.                 // line 211
  547.                 yield "\t\t\t\t\t\t\t\t<li class='like' onclick=\"loyaltyProgram(this, ";
  548.                 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"falsefalsefalse211), "html"nulltrue);
  549.                 yield ",'";
  550.                 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"falsefalsefalse211), "html"nulltrue);
  551.                 yield "',30,'Recipe','Like' , '";
  552.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse211), "locale", [], "any"falsefalsefalse211), "html"nulltrue);
  553.                 yield "')\">";
  554.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  555.                 yield "</li>
  556. \t\t\t\t\t\t\t";
  557.             } else {
  558.                 // line 213
  559.                 yield "\t\t\t\t\t\t\t\t<li class=\"liked\">";
  560.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  561.                 yield "</li>
  562. \t\t\t\t\t\t\t";
  563.             }
  564.             // line 215
  565.             yield "
  566. \t\t\t\t\t\t\t<li id = \"add_to_menu\"onclick=\"addtomenu(this , ";
  567.             // line 216
  568.             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"nulltrue);
  569.             yield ",";
  570.             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"falsefalsefalse216), "html"nulltrue);
  571.             yield " , ";
  572.             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"falsefalsefalse216), "html"nulltrue);
  573.             yield ")\">
  574. \t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/addToMenu.svg\" class=\"img-fluid \" alt=\"addToMenu\"></span>&nbsp; ";
  575.             // line 217
  576.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add To Menu"), "html"nulltrue);
  577.             yield "</li>
  578. \t\t\t\t\t\t\t<div class=\"alert alert-success ml-0\" id=\"success-alertt-addtomenu\">
  579. \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>
  580. \t\t\t\t\t\t\t<div class=\"alert alert-success ml-0\" id=\"success-alertt-addtomenu_update\">
  581. \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>
  582. \t\t\t\t\t\t\t<div class=\"alert alert-warning ml-0\" id=\"failed-alertt-addtomenu\">
  583. \t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>
  584. \t\t\t\t\t\t\t\tSomething went worng.</div>
  585. \t\t\t\t\t\t\t<div class=\"alert alert-warning ml-0\" id=\"failed-alertt-addtomenu_error_missing_params\">
  586. \t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>
  587. \t\t\t\t\t\t\t\tSome required values are null.</div>
  588. \t\t\t\t\t\t\t<li onclick=\"loyaltyProgram(this, ";
  589.             // line 229
  590.             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"falsefalsefalse229), "html"nulltrue);
  591.             yield ",'";
  592.             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"falsefalsefalse229), "html"nulltrue);
  593.             yield "',30,'Recipe','Like' , '";
  594.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse229), "locale", [], "any"falsefalsefalse229), "html"nulltrue);
  595.             yield "')\">
  596. \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','";
  597.             // line 230
  598.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse230), "getSchemeAndHttpHost", [], "method"falsefalsefalse230) . "/") . CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse230), "locale", [], "any"falsefalsefalse230)) . "/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"falsefalsefalse230)), "html"nulltrue);
  599.             yield "' , '";
  600.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(" share goody recipe with your friends"), "html"nulltrue);
  601.             yield "')\"></span>&nbsp; ";
  602.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html"nulltrue);
  603.             yield "</li>
  604. \t\t\t\t\t\t";
  605.         } else {
  606.             // line 232
  607.             yield "
  608. \t\t\t\t\t\t\t<li class='logged-out'>
  609. \t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/like-menu.svg\" class=\"img-fluid \" alt=\"like-menu\"></span>&nbsp; ";
  610.             // line 234
  611.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Like"), "html"nulltrue);
  612.             yield "</li>
  613. \t\t\t\t\t\t\t<li class='add-menu-logged-out'>
  614. \t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/addToMenu.svg\" class=\"img-fluid \" alt=\"addToMenu\"></span>&nbsp; ";
  615.             // line 236
  616.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add To Menu"), "html"nulltrue);
  617.             yield "</li>
  618. \t\t\t\t\t\t\t<li>
  619. \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','";
  620.             // line 238
  621.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse238), "getSchemeAndHttpHost", [], "method"falsefalsefalse238) . "/") . CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse238), "locale", [], "any"falsefalsefalse238)) . "/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"falsefalsefalse238)), "html"nulltrue);
  622.             yield "' , '";
  623.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(" share goody recipe with your friends"), "html"nulltrue);
  624.             yield "')\"></span>&nbsp; ";
  625.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Share"), "html"nulltrue);
  626.             yield "</li>
  627. \t\t\t\t\t\t";
  628.         }
  629.         // line 240
  630.         yield "\t\t\t\t\t\t<li>
  631. \t\t\t\t\t\t\t<a class=\"directions-link\" target=\"_blank\" href =\"/";
  632.         // line 241
  633.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse241), "locale", [], "any"falsefalsefalse241), "html"nulltrue);
  634.         yield "/print/recipe/";
  635.         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"falsefalsefalse241), "html"nulltrue);
  636.         yield "\"><span><img src=\"/static/assets/images/down-arrow.svg\" class=\"img-fluid\" alt=\"download\"></span>&nbsp; ";
  637.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Download"), "html"nulltrue);
  638.         yield "</li></a>
  639. \t\t\t\t\t\t<li>
  640. \t\t\t\t\t\t\t<a class=\"directions-link\" target=\"_blank\" href =\"/";
  641.         // line 243
  642.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse243), "locale", [], "any"falsefalsefalse243), "html"nulltrue);
  643.         yield "/print/recipe/";
  644.         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"falsefalsefalse243), "html"nulltrue);
  645.         yield "\"><span><img src=\"/static/assets/images/print.svg\" class=\"img-fluid\" alt=\"print\"></span>&nbsp; ";
  646.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Print"), "html"nulltrue);
  647.         yield "</li></a>
  648. \t\t\t\t\t</ul>
  649. \t\t\t\t</div>
  650. \t\t\t</div>
  651. \t\t</div>
  652. \t</div>
  653. </section>
  654. <!--Menu Page Builder Banner End-->
  655. <section class=\"featured-recipes-section inner-featured-recipe product-using-products menu-builder-featured-recipe\">
  656. \t<div class=\"container container-sm\">
  657. \t\t";
  658.         // line 254
  659.         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)) {
  660.             // line 255
  661.             yield "\t\t\t<h2 class=\"heading\">Similar Menu Ideas</h2>
  662. \t\t";
  663.         }
  664.         // line 257
  665.         yield "\t\t<div class=\"featured-recipes\">
  666. \t\t\t<div class=\"custom-slider featured-recipes-slider\">
  667. \t\t\t\t";
  668.         // line 259
  669.         $context['_parent'] = $context;
  670.         $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); })()));
  671.         foreach ($context['_seq'] as $context["_key"] => $context["similar_menu_ideas_recipes"]) {
  672.             // line 260
  673.             yield "\t\t\t\t\t<div class=\"slide\">
  674. \t\t\t\t\t\t<div class=\"slide-holder\">
  675. \t\t\t\t\t\t\t<a href=\"/";
  676.             // line 262
  677.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse262), "locale", [], "any"falsefalsefalse262), "html"nulltrue);
  678.             yield "/menu-builder/";
  679.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["similar_menu_ideas_recipes"], "url", [], "any"falsefalsefalse262), "html"nulltrue);
  680.             yield "\">
  681. \t\t\t\t\t\t\t\t<figure class=\"slide-img\">
  682. \t\t\t\t\t\t\t\t\t<img src=\"";
  683.             // line 264
  684.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["similar_menu_ideas_recipes"], "featured_image", [], "any"falsefalsefalse264), "html"nulltrue);
  685.             yield "\" alt=\"";
  686.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["similar_menu_ideas_recipes"], "name", [], "any"falsefalsefalse264), "html"nulltrue);
  687.             yield "\">
  688. \t\t\t\t\t\t\t\t</figure>
  689. \t\t\t\t\t\t\t</a>
  690. \t\t\t\t\t\t\t<div class=\"slide-content\">
  691. \t\t\t\t\t\t\t\t<a href=\"/";
  692.             // line 268
  693.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse268), "locale", [], "any"falsefalsefalse268), "html"nulltrue);
  694.             yield "/menu-builder/";
  695.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["similar_menu_ideas_recipes"], "url", [], "any"falsefalsefalse268), "html"nulltrue);
  696.             yield "\">
  697. \t\t\t\t\t\t\t\t\t<h3>";
  698.             // line 269
  699.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["similar_menu_ideas_recipes"], "name", [], "any"falsefalsefalse269), "html"nulltrue);
  700.             yield "</h3>
  701. \t\t\t\t\t\t\t\t</a>
  702. \t\t\t\t\t\t\t\t<p>";
  703.             // line 271
  704.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["similar_menu_ideas_recipes"], "short_description", [], "any"falsefalsefalse271), "html"nulltrue);
  705.             yield "</p>
  706. \t\t\t\t\t\t\t\t<div class=\"\">
  707. \t\t\t\t\t\t\t\t\t<a href=\"javascript:;\">";
  708.             // line 273
  709.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("With"), "html"nulltrue);
  710.             yield "
  711. \t\t\t\t\t\t\t\t\t\t";
  712.             // line 274
  713.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["similar_menu_ideas_recipes"], "featured_product", [], "any"falsefalsefalse274), 0, [], "array"falsefalsefalse274), "brands", [], "any"falsefalsefalse274), "name", [], "any"falsefalsefalse274), "html"nulltrue);
  714.             yield "</a>
  715. \t\t\t\t\t\t\t\t</div>
  716. \t\t\t\t\t\t\t</div>
  717. \t\t\t\t\t\t</div>
  718. \t\t\t\t\t</div>
  719. \t\t\t\t";
  720.         }
  721.         $_parent $context['_parent'];
  722.         unset($context['_seq'], $context['_key'], $context['similar_menu_ideas_recipes'], $context['_parent']);
  723.         $context array_intersect_key($context$_parent) + $_parent;
  724.         // line 280
  725.         yield "
  726. \t\t\t</div>
  727. \t\t</div>
  728. \t</div>
  729. </section>
  730. <section class=\"loyal-section d-none\">
  731. \t<div class=\"container-fluid p-0\">
  732. \t\t<div class=\"row\">
  733. \t\t\t<div class=\"col-12 col-lg-4\">
  734. \t\t\t\t<img src=\"/static/assets/images/loyal-image.svg\" class=\"img-fluid loyal-section-image\" alt=\"loyal-image\">
  735. \t\t\t</div>
  736. \t\t\t<div class=\"col-12 col-lg-8\">
  737. \t\t\t\t<div class=\"custom-flex\">
  738. \t\t\t\t\t<div>
  739. \t\t\t\t\t\t<div class=\"content\">
  740. \t\t\t\t\t\t\t<h3 class=\"title-sm\">";
  741.         // line 299
  742.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Loyalty Program"), "html"nulltrue);
  743.         yield "</h3>
  744. \t\t\t\t\t\t\t<h2 class=\"title-lg\">Lorem Epsum Lorem Lorem</h2>
  745. \t\t\t\t\t\t\t<h2 class=\"title-lg\">Lorem Epsum Lorem Lorem Lorem Lorem
  746. \t\t\t\t\t\t\t\t<span>Lorem Lorem</span>
  747. \t\t\t\t\t\t\t</h2>
  748. \t\t\t\t\t\t</div>
  749. \t\t\t\t\t</div>
  750. \t\t\t\t\t<div class=\"btn-holder m-lg-auto\">
  751. \t\t\t\t\t\t<div class=\"btn-border\">
  752. \t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-lg-o-black\">Start Earning Now!</a>
  753. \t\t\t\t\t\t</div>
  754. \t\t\t\t\t</div>
  755. \t\t\t\t</div>
  756. \t\t\t</div>
  757. \t\t</div>
  758. \t</div>
  759. </section>
  760. ";
  761.         // line 320
  762.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse320), "locale", [], "any"falsefalsefalse320) == "ar")) {
  763.             // line 321
  764.             yield "\t";
  765.             $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"falsefalsefalse321));
  766.         } else {
  767.             // line 323
  768.             yield "\t";
  769.             $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"falsefalsefalse323));
  770.         }
  771.         // line 325
  772.         yield "<script>
  773. \tvar _TopMenuLink = \"";
  774.         // line 326
  775.         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"nulltrue);
  776.         yield "\";
  777. \t\tfunction addtomenu(element, userid, objectId, serving) {
  778. \t\tvar userid = userid;
  779. \t\tvar objectId = objectId;
  780. \t\tvar serving = serving;
  781. \t\tvar form_data = new FormData(); // Creates new FormData object
  782. \t\tform_data.append(\"userid\", userid);
  783. \t\tform_data.append(\"objectId\", objectId);
  784. \t\tform_data.append(\"serving\", serving);
  785. \t\t\$.ajax({
  786. \t\turl: \"/addtomenu\",
  787. \t\ttype: \"POST\",
  788. \t\tdata: form_data,
  789. \t\tcontentType: false,
  790. \t\tcache: false,
  791. \t\tprocessData: false,
  792. \t\tsuccess: function (response) {
  793. \t\tconsole.log(response)
  794. \t\tif (response.success == 1) { // document.getElementById('newsletter').reset();
  795. \t\t\t\$(\"#success-alertt-addtomenu_update\").fadeTo(5000, 500).slideUp(500, function () {
  796. \t\t\t\$(\"#success-alertt-addtomenu_update\").slideUp(500);
  797. \t\t\t});
  798. \t\t} else if(response.success == 2) {
  799. \t\t\t\$(\"#success-alertt-addtomenu\").fadeTo(5000, 500).slideUp(500, function () {
  800. \t\t\t\$(\"#success-alertt-addtomenu\").slideUp(500);
  801. \t\t\t});
  802. \t\t} else if(response.success == 3) {
  803. \t\t\t\$(\"#failed-alertt-addtomenu_error_missing_params\").fadeTo(5000, 500).slideUp(500, function () {
  804. \t\t\t\$(\"#failed-alertt-addtomenu_error_missing_params\").slideUp(500);
  805. \t\t\t});
  806. \t\t} else {
  807. \t\t\t\$(\"#failed-alertt-addtomenu\").fadeTo(5000, 500).slideUp(500, function () {
  808. \t\t\t\$(\"#failed-alertt-addtomenu\").slideUp(500);
  809. \t\t\t});
  810. \t\t}
  811. \t\t}
  812. \t\t})
  813. \t\t}
  814. \t\t\t// Menubuilder calculator start
  815. \t\t\t\$(document).ready(function () {
  816. \t\t\t\tvar userId = '";
  817.         // line 380
  818.         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"nulltrue);
  819.         yield "';
  820. \t\t\t\tvar obId = ";
  821.         // line 381
  822.         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"falsefalsefalse381), "html"nulltrue);
  823.         yield ";
  824. \t\t\t\t\$(\"#valuechangeprice\").on('keyup change', function () {
  825. \t\t\t\t\t\tvar countTxt = parseInt(\$('.count').val(), 10);
  826. \t\t\t\t\t\tvar unit_cost = ";
  827.         // line 385
  828.         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"nulltrue);
  829.         yield " ;
  830. \t\t\t\t\t\tvar vat_percentage = ";
  831.         // line 386
  832.         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"nulltrue);
  833.         yield ";
  834. \t\t\t\t\t\tvar unit_cost_vat =  ((unit_cost * vat_percentage) / 100);
  835. \t\t\t\t\t\t\tunit_cost = (unit_cost - unit_cost_vat );
  836. \t\t\t\t\t\tvar profit_percentage = ";
  837.         // line 389
  838.         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"nulltrue);
  839.         yield ";
  840. \t\t\t\t\t\tvar unit_profit = ((unit_cost * profit_percentage)/ 100);
  841. \t\t\t\t\t\tvar unit_menu_price =  (unit_cost + unit_profit);
  842. \t\t\t\t\t\t\$('#food_cost').text((unit_cost *countTxt).toFixed(1));
  843. \t\t\t\t\t\t\$('#food_price').text((unit_menu_price *countTxt).toFixed(1));
  844. \t\t\t\t\t\t\$('#food_profit').text((unit_profit *countTxt).toFixed(1));
  845. \t\t\t\t\t\t\$('#add_to_menu').attr('onclick', 'addtomenu( this ,'+ userId +', '+ obId +', '+ countTxt +')');
  846. \t\t\t\t\t});
  847. \t\t\t});
  848. \t\t\t// Menubuilder calculator end
  849. \t\t\t\t// Download and Print Recipe According to serving ingerident quantity srart\t
  850. \t\t\t\t\t\$(document).ready(function () {
  851. \t\t\t\t\t\tvar serving = ";
  852.         // line 404
  853.         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"falsefalsefalse404), "html"nulltrue);
  854.         yield ";
  855. \t\t\t\t\t\t\$(\"a.directions-link\").each(function() {
  856. \t\t\t\t\t\t\tvar \$this = \$(this);       
  857. \t\t\t\t\t\t\tconst _href = \$this.attr(\"href\"); 
  858. \t\t\t\t\t\t\t\$(\".valuechange\").on('keyup change', function () {
  859. \t\t\t\t\t\t\tvar countTxt = parseInt(\$('.count').val(), 10);
  860. \t\t\t\t\t\t\t\$(\".directions-link\").attr(\"href\", _href+\"~portion=\"+countTxt);
  861. \t\t\t\t\t\t\t});
  862. \t\t\t\t\t\t\t\$(\".directions-link\").attr(\"href\", _href+\"~portion=\"+serving);
  863. \t\t\t\t\t\t\tconsole.log(countTxt);
  864. \t\t\t\t\t\t});
  865. \t\t\t\t\t});
  866. \t\t\t\t// Download and Print Recipe According to serving ingerident quantity end\t
  867. </script>
  868. ";
  869.         
  870.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  871.         
  872.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  873.         yield from [];
  874.     }
  875.     /**
  876.      * @codeCoverageIgnore
  877.      */
  878.     public function getTemplateName(): string
  879.     {
  880.         return "menubuilder/menu-builder-detail.html.twig";
  881.     }
  882.     /**
  883.      * @codeCoverageIgnore
  884.      */
  885.     public function isTraitable(): bool
  886.     {
  887.         return false;
  888.     }
  889.     /**
  890.      * @codeCoverageIgnore
  891.      */
  892.     public function getDebugInfo(): array
  893.     {
  894.         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,);
  895.     }
  896.     public function getSourceContext(): Source
  897.     {
  898.         return new Source("{% extends \"layout/layout.html.twig\" %}
  899. {% block title %}GFS::Menu Builder Detail
  900. {% endblock %}
  901. {% block content %}
  902. \t<!--Menu Page Builder Banner Start-->
  903. \t<section class=\"menu-page-builder-banner\">
  904. \t\t<div class=\"container container-sm\">
  905. \t\t\t<div class=\"row\">
  906. \t\t\t\t<div class=\"col-12 col-lg-6 menuBuilder-content-column\">
  907. \t\t\t\t\t<div class=\"upper-nav\">
  908. \t\t\t\t\t\t<div class=\"training-detail-container-box\">
  909. \t\t\t\t\t\t\t<div class=\"info-section\">
  910. \t\t\t\t\t\t\t\t<section class=\"bread-crumbs-section\">
  911. \t\t\t\t\t\t\t\t\t<div class=\"container container-lg\">
  912. \t\t\t\t\t\t\t\t\t\t<div class=\"bread-crumbs-section-box\">
  913. \t\t\t\t\t\t\t\t\t\t\t<div class=\"breadcrumb-holder\">
  914. \t\t\t\t\t\t\t\t\t\t\t\t<ol class=\"breadcrumb menuBuilder-breadcrumb\">
  915. \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>
  916. \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>
  917. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\">{{\"Tools\"|trans}}</li>
  918. \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>
  919. \t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\">{{menu_builder_details.name}}</li>
  920. \t\t\t\t\t\t\t\t\t\t\t\t</ol>
  921. \t\t\t\t\t\t\t\t\t\t\t</div>
  922. \t\t\t\t\t\t\t\t\t\t</div>
  923. \t\t\t\t\t\t\t\t\t</div>
  924. \t\t\t\t\t\t\t\t</section>
  925. \t\t\t\t\t\t\t</div>
  926. \t\t\t\t\t\t</div>
  927. \t\t\t\t\t</div>
  928. \t\t\t\t\t<h1 class=\"title-lg\">{{menu_builder_details.name}}</span>
  929. \t\t\t\t</h1>
  930. \t\t\t\t<div class=\"step-tags\">
  931. \t\t\t\t\t{% set length = menu_builder_details.tags|length %}
  932. \t\t\t\t\t{% if length  >= 4  %}
  933. \t\t\t\t\t\t{% for i in 0..3 %}
  934. \t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"tag\">
  935. \t\t\t\t\t\t\t\t<span>{{menu_builder_details.tags[i].tag_name}}
  936. \t\t\t\t\t\t\t\t\t&nbsp;<img src=\"/static/assets/images/Ellipse.png\" class=\"img-fluid\" alt=\"Ellipse\"/></span>
  937. \t\t\t\t\t\t\t</a>
  938. \t\t\t\t\t\t{% endfor %}
  939. \t\t\t\t\t{% else %}
  940. \t\t\t\t\t\t{% for tags in menu_builder_details.tags %}
  941. \t\t\t\t\t\t\t<a href=\"javascript:;\" class=\"tag\">
  942. \t\t\t\t\t\t\t\t<span>{{tags.tag_name}}
  943. \t\t\t\t\t\t\t\t\t&nbsp;<img src=\"/static/assets/images/Ellipse.png\" class=\"img-fluid\" alt=\"Ellipse\"/></span>
  944. \t\t\t\t\t\t\t</a>
  945. \t\t\t\t\t\t{% endfor %}
  946. \t\t\t\t\t{% endif %}
  947. \t\t\t\t</div>
  948. \t\t\t\t<p>
  949. \t\t\t\t\t{{menu_builder_details.description}}
  950. \t\t\t\t</p>
  951. \t\t\t\t
  952. \t\t\t\t{% set unitcost = 0 %}
  953. \t\t\t\t{% set unitvalue = 0 %}
  954. \t\t\t\t{% set multiply = 0 %}
  955. \t\t\t\t{% set total_unit_cost = 0 %}
  956. \t\t\t\t{% set serve = menu_builder_details.serves %}
  957. \t\t\t\t\t\t{% for ingrident in menu_builder_details.serving_options %}
  958. \t\t\t\t\t\t\t{% for ing in ingrident.ingredeints %}
  959. \t\t\t\t\t\t\t\t{% if ing.recipe_ing.data is defined %}
  960. \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' %}
  961. \t\t\t\t\t\t\t\t\t\t{% set multiply = ((ing.multiply.data) * 1000)  %}
  962. \t\t\t\t\t\t\t\t\t\t{% set unitvalue = (multiply)/(menu_builder_details.serves) %}
  963. \t\t\t\t\t\t\t\t\t{% else %}
  964. \t\t\t\t\t\t\t\t\t\t{% set multiply = ing.multiply.data %}
  965. \t\t\t\t\t\t\t\t\t\t{% set unitvalue = (multiply)/(menu_builder_details.serves) %}
  966. \t\t\t\t\t\t\t\t\t{% endif %}
  967. \t\t\t\t\t\t\t\t\t{% set unitcost = (unitvalue) * (ing.recipe_ing.data.price) %}
  968. \t\t\t\t\t\t\t\t\t{% set total_unit_cost = total_unit_cost + unitcost %}
  969. \t\t\t\t\t\t\t\t{% endif %}
  970. \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
  971. \t\t\t\t\t\t\t{% endfor %}
  972. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
  973. \t\t\t\t\t\t{% endfor %}
  974. \t\t\t\t\t\t{% set total_cost =  total_unit_cost * serve %}
  975. \t\t\t\t\t\t{% set vat_percentage =  menu_builder_details.recipe_manu_vat_oercebtage %}
  976. \t\t\t\t\t\t{% set total_cost_vat =  ((total_cost * vat_percentage) / 100) %}
  977. \t\t\t\t\t\t{% set total_cost =  (total_cost - total_cost_vat)  %}
  978. \t\t\t\t\t\t{% set profit_percentage =  (menu_builder_details.profit_percentage is not null) ? menu_builder_details.profit_percentage : 0 %}
  979. \t\t\t\t\t
  980. \t\t\t\t\t\t{% set profit =  ((total_cost * profit_percentage ) / (100)) %}
  981. \t\t\t\t\t\t{% set menu_price = (total_cost + profit) %}
  982. \t\t\t\t\t\t
  983. \t\t\t\t\t<div class = \"d-md-flex d-lg-flex align-items-center d-xl-flex menu-builder-counter\">
  984. \t\t\t\t \t\t<div class=\"order-count-title menubuilder-serving-count-title mb-3 \">{{\"Servings\"|trans}}</div>
  985. \t\t\t\t\t\t\t<div class=\"order-count-number justify-content-center\">
  986. \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>
  987. \t\t\t\t\t\t\t\t<input class=\"count numeric-remove-spiner valuechange\" id=\"valuechangeprice\" type=\"number\" value=\"{{ menu_builder_details.serves}}\"/>
  988. \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>
  989. \t\t\t\t\t\t\t</div>
  990. \t\t\t\t \t</div>
  991. \t\t\t\t<div class=\"cost-card-area d-md-flex\">
  992. \t\t\t\t\t<div class=\"card\">
  993. \t\t\t\t\t\t<span>{{\"Food Cost\"|trans}}*</span>
  994. \t\t\t\t\t\t<h4 id = \"food_cost\">{{total_cost|round(1)}}</h4>
  995. \t\t\t\t\t\t<h6>{{\"SAR\"|trans}}</h6>
  996. \t\t\t\t\t</div>
  997. \t\t\t\t\t<div class=\"card\">
  998. \t\t\t\t\t\t<span>Menu Price*</span>
  999. \t\t\t\t\t\t<h4 id = \"food_price\">{{menu_price|round(1)}}</h4>
  1000. \t\t\t\t\t\t<h6>{{\"SAR\"|trans}}</h6>
  1001. \t\t\t\t\t</div>
  1002. \t\t\t\t\t<div class=\"card\">
  1003. \t\t\t\t\t\t<span>{{\"Profit\"|trans}}*</span>
  1004. \t\t\t\t\t\t<h4 id = \"food_profit\">{{profit|round(1)}}</h4>
  1005. \t\t\t\t\t\t<h6>{{\"SAR\"|trans}}</h6>
  1006. \t\t\t\t\t</div>
  1007. \t\t\t\t</div>
  1008. \t\t\t
  1009. \t\t\t\t<div class=\"final-card-area\">
  1010. \t\t\t\t\t<div class=\"frequently-bought\">
  1011. \t\t\t\t\t\t<div class=\"frequently-bought-box\">
  1012. \t\t\t\t\t\t\t<h5 class=\"title\">Frequently Product</h5>
  1013. \t\t\t\t\t\t\t{% for product in  menu_builder_details.serving_options.Items %}
  1014. \t\t\t\t\t\t\t\t{# {% for i in 0..product|length %} #}
  1015. \t\t\t\t\t\t\t\t{% for featured_product in product.recipe_feature_product %}
  1016. \t\t\t\t\t\t\t\t\t<div class=\"product-box product-box-horizon product-box-small\">
  1017. \t\t\t\t\t\t\t\t\t<a href = '{{'/' ~ app.request.locale ~ '/' ~ 'product/' ~ featured_product.url}}'>
  1018. \t\t\t\t\t\t\t\t\t\t<figure class=\"slide-img\">
  1019. \t\t\t\t\t\t\t\t\t\t\t<img src=\"{{featured_product.attrimage.Items[0]}}\" alt=\"{{featured_product.name}}\">
  1020. \t\t\t\t\t\t\t\t\t\t\t{# {% if featured_product.attrimage.Items[0] %}
  1021. \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 }}
  1022. \t\t\t\t\t\t\t\t\t\t\t{% endif %} #}
  1023. \t\t\t\t\t\t\t\t\t\t</figure></a>
  1024. \t\t\t\t\t\t\t\t\t\t<div class=\"slide-info\">
  1025. \t\t\t\t\t\t\t\t\t\t\t<div class=\"\">
  1026. \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>
  1027. \t\t\t\t\t\t\t\t\t\t\t\t{% set user = app.session.get('loginUID') %}
  1028. \t\t\t\t\t\t\t\t\t\t\t\t{% if user is not null %}
  1029. \t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"\">&nbsp;<img src=\"/static/assets/images/featured-like.svg\" alt=\"featured like\"></span>
  1030. \t\t\t\t\t\t\t\t\t\t\t\t
  1031. \t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  1032. \t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"logged-out\">&nbsp;<img src=\"/static/assets/images/featured-like.svg\" alt=\"featured like\"></span>
  1033. \t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1034. \t\t\t\t\t\t\t\t\t\t\t\t</h5>
  1035. \t\t\t\t\t\t\t\t\t\t\t</div>
  1036. \t\t\t\t\t\t\t\t\t\t\t<div class=\"kg\">{{featured_product.size}}</div>
  1037. \t\t\t\t\t\t\t\t\t\t\t<div class=\"inline-info btn-holder\">
  1038. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"price\">{{featured_product.region[0]['price'].data}}
  1039. \t\t\t\t\t\t\t\t\t\t\t\t\t{{featured_product.region[0]['currency_symbol'].data|trans}}</div>
  1040. \t\t\t\t\t\t\t\t\t\t\t\t{% set points =   (((featured_product.region[0]['price'].data)/100)*10)|round %}
  1041. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"award d-none\">
  1042. \t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"far fa-star\"></i>{{\"Earn\"|trans}}
  1043. \t\t\t\t\t\t\t\t\t\t\t\t\t{{points}}
  1044. \t\t\t\t\t\t\t\t\t\t\t\t\t{{\"Rewards Points\"|trans}}</div>
  1045. \t\t\t\t\t\t\t\t\t\t\t</div>
  1046. \t\t\t\t\t\t\t\t\t\t\t<div class=\"frequently-product-buttons\">
  1047. \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>
  1048. \t\t\t\t\t\t\t\t\t\t\t\t{% set user = app.session.get('loginUID') %}
  1049. \t\t\t\t\t\t\t\t\t\t\t\t{% if user is not null %}
  1050. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set points =   (((featured_product.region[0]['price'].data)/100)*10)|round %}
  1051. \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>
  1052. \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}}\">
  1053. \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>
  1054. \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}}\">
  1055. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>
  1056. \t\t\t\t\t\t\t\t\t\t\t\t\t\tThis product is already added to Inventory.</div>
  1057. \t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  1058. \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>
  1059. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1060. \t\t\t\t\t\t\t\t\t\t\t</div>
  1061. \t\t\t\t\t\t\t\t\t\t\t<div class=\"product-inventry-alert\"></div>
  1062. \t\t\t\t\t\t\t\t\t\t</div>
  1063. \t\t\t\t\t\t\t\t\t</div>
  1064. \t\t\t\t\t\t\t\t{% endfor %}
  1065. \t\t\t\t\t\t\t{% endfor %}
  1066. \t\t\t\t\t\t</div>
  1067. \t\t\t\t\t</div>
  1068. \t\t\t\t</div>
  1069. \t\t\t\t<p>* Based on approximate total plate food costs, including average distributor markup.</p>
  1070. \t\t\t</div>
  1071. \t\t\t<div class=\"col-12 col-lg-6 menuBuilder-image-column\">
  1072. \t\t\t\t<div class=\"dish-image\">
  1073. \t\t\t\t\t<img src=\"{{menu_builder_details.featured_image}}\" class=\"img-fluid\" alt=\"Manu Builder feature image\">
  1074. \t\t\t\t</div>
  1075. \t\t\t\t<div class=\"extra-area\">
  1076. \t\t\t\t\t<ul class=\"d-flex social-info recipe-info\">
  1077. \t\t\t\t\t\t{% set user = app.session.get('loginUID') %}
  1078. \t\t\t\t\t\t{% if user is not null %}
  1079. \t\t\t\t\t\t\t{% if Liked|length == 0 %}
  1080. \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>
  1081. \t\t\t\t\t\t\t{% else %}
  1082. \t\t\t\t\t\t\t\t<li class=\"liked\">{{\"Like\"|trans}}</li>
  1083. \t\t\t\t\t\t\t{% endif %}
  1084. \t\t\t\t\t\t\t<li id = \"add_to_menu\"onclick=\"addtomenu(this , {{user}},{{ menu_builder_details.id }} , {{ menu_builder_details.serves }})\">
  1085. \t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/addToMenu.svg\" class=\"img-fluid \" alt=\"addToMenu\"></span>&nbsp; {{\"Add To Menu\"|trans}}</li>
  1086. \t\t\t\t\t\t\t<div class=\"alert alert-success ml-0\" id=\"success-alertt-addtomenu\">
  1087. \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>
  1088. \t\t\t\t\t\t\t<div class=\"alert alert-success ml-0\" id=\"success-alertt-addtomenu_update\">
  1089. \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>
  1090. \t\t\t\t\t\t\t<div class=\"alert alert-warning ml-0\" id=\"failed-alertt-addtomenu\">
  1091. \t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>
  1092. \t\t\t\t\t\t\t\tSomething went worng.</div>
  1093. \t\t\t\t\t\t\t<div class=\"alert alert-warning ml-0\" id=\"failed-alertt-addtomenu_error_missing_params\">
  1094. \t\t\t\t\t\t\t\t<button class=\"close\" data-dismiss=\"alert\" type=\"button\"></button>
  1095. \t\t\t\t\t\t\t\tSome required values are null.</div>
  1096. \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}}')\">
  1097. \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>&nbsp; {{\"Share\"|trans}}</li>
  1098. \t\t\t\t\t\t{% else %}
  1099. \t\t\t\t\t\t\t<li class='logged-out'>
  1100. \t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/like-menu.svg\" class=\"img-fluid \" alt=\"like-menu\"></span>&nbsp; {{\"Like\"|trans}}</li>
  1101. \t\t\t\t\t\t\t<li class='add-menu-logged-out'>
  1102. \t\t\t\t\t\t\t\t<span><img src=\"/static/assets/images/addToMenu.svg\" class=\"img-fluid \" alt=\"addToMenu\"></span>&nbsp; {{\"Add To Menu\"|trans}}</li>
  1103. \t\t\t\t\t\t\t<li>
  1104. \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>&nbsp; {{\"Share\"|trans}}</li>
  1105. \t\t\t\t\t\t{% endif %}
  1106. \t\t\t\t\t\t<li>
  1107. \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>&nbsp; {{\"Download\"|trans}}</li></a>
  1108. \t\t\t\t\t\t<li>
  1109. \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>&nbsp; {{\"Print\"|trans}}</li></a>
  1110. \t\t\t\t\t</ul>
  1111. \t\t\t\t</div>
  1112. \t\t\t</div>
  1113. \t\t</div>
  1114. \t</div>
  1115. </section>
  1116. <!--Menu Page Builder Banner End-->
  1117. <section class=\"featured-recipes-section inner-featured-recipe product-using-products menu-builder-featured-recipe\">
  1118. \t<div class=\"container container-sm\">
  1119. \t\t{% if similar_menu_ideas|length > 0 %}
  1120. \t\t\t<h2 class=\"heading\">Similar Menu Ideas</h2>
  1121. \t\t{% endif %}
  1122. \t\t<div class=\"featured-recipes\">
  1123. \t\t\t<div class=\"custom-slider featured-recipes-slider\">
  1124. \t\t\t\t{% for similar_menu_ideas_recipes in similar_menu_ideas %}
  1125. \t\t\t\t\t<div class=\"slide\">
  1126. \t\t\t\t\t\t<div class=\"slide-holder\">
  1127. \t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/menu-builder/{{similar_menu_ideas_recipes.url}}\">
  1128. \t\t\t\t\t\t\t\t<figure class=\"slide-img\">
  1129. \t\t\t\t\t\t\t\t\t<img src=\"{{similar_menu_ideas_recipes.featured_image}}\" alt=\"{{similar_menu_ideas_recipes.name}}\">
  1130. \t\t\t\t\t\t\t\t</figure>
  1131. \t\t\t\t\t\t\t</a>
  1132. \t\t\t\t\t\t\t<div class=\"slide-content\">
  1133. \t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/menu-builder/{{similar_menu_ideas_recipes.url}}\">
  1134. \t\t\t\t\t\t\t\t\t<h3>{{similar_menu_ideas_recipes.name}}</h3>
  1135. \t\t\t\t\t\t\t\t</a>
  1136. \t\t\t\t\t\t\t\t<p>{{similar_menu_ideas_recipes.short_description}}</p>
  1137. \t\t\t\t\t\t\t\t<div class=\"\">
  1138. \t\t\t\t\t\t\t\t\t<a href=\"javascript:;\">{{\"With\"|trans}}
  1139. \t\t\t\t\t\t\t\t\t\t{{similar_menu_ideas_recipes.featured_product[0].brands.name}}</a>
  1140. \t\t\t\t\t\t\t\t</div>
  1141. \t\t\t\t\t\t\t</div>
  1142. \t\t\t\t\t\t</div>
  1143. \t\t\t\t\t</div>
  1144. \t\t\t\t{% endfor %}
  1145. \t\t\t</div>
  1146. \t\t</div>
  1147. \t</div>
  1148. </section>
  1149. <section class=\"loyal-section d-none\">
  1150. \t<div class=\"container-fluid p-0\">
  1151. \t\t<div class=\"row\">
  1152. \t\t\t<div class=\"col-12 col-lg-4\">
  1153. \t\t\t\t<img src=\"/static/assets/images/loyal-image.svg\" class=\"img-fluid loyal-section-image\" alt=\"loyal-image\">
  1154. \t\t\t</div>
  1155. \t\t\t<div class=\"col-12 col-lg-8\">
  1156. \t\t\t\t<div class=\"custom-flex\">
  1157. \t\t\t\t\t<div>
  1158. \t\t\t\t\t\t<div class=\"content\">
  1159. \t\t\t\t\t\t\t<h3 class=\"title-sm\">{{'Loyalty Program'|trans}}</h3>
  1160. \t\t\t\t\t\t\t<h2 class=\"title-lg\">Lorem Epsum Lorem Lorem</h2>
  1161. \t\t\t\t\t\t\t<h2 class=\"title-lg\">Lorem Epsum Lorem Lorem Lorem Lorem
  1162. \t\t\t\t\t\t\t\t<span>Lorem Lorem</span>
  1163. \t\t\t\t\t\t\t</h2>
  1164. \t\t\t\t\t\t</div>
  1165. \t\t\t\t\t</div>
  1166. \t\t\t\t\t<div class=\"btn-holder m-lg-auto\">
  1167. \t\t\t\t\t\t<div class=\"btn-border\">
  1168. \t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-lg-o-black\">Start Earning Now!</a>
  1169. \t\t\t\t\t\t</div>
  1170. \t\t\t\t\t</div>
  1171. \t\t\t\t</div>
  1172. \t\t\t</div>
  1173. \t\t</div>
  1174. \t</div>
  1175. </section>
  1176. {% if (app.request.locale =='ar') %}
  1177. \t{% set topMenu =\"/en/menu-builder/\" ~ menu_builder_details.url('en') %}
  1178. {% else %}
  1179. \t{% set topMenu =\"/ar/menu-builder/\" ~ menu_builder_details.url('ar') %}
  1180. {% endif %}
  1181. <script>
  1182. \tvar _TopMenuLink = \"{{ topMenu }}\";
  1183. \t\tfunction addtomenu(element, userid, objectId, serving) {
  1184. \t\tvar userid = userid;
  1185. \t\tvar objectId = objectId;
  1186. \t\tvar serving = serving;
  1187. \t\tvar form_data = new FormData(); // Creates new FormData object
  1188. \t\tform_data.append(\"userid\", userid);
  1189. \t\tform_data.append(\"objectId\", objectId);
  1190. \t\tform_data.append(\"serving\", serving);
  1191. \t\t\$.ajax({
  1192. \t\turl: \"/addtomenu\",
  1193. \t\ttype: \"POST\",
  1194. \t\tdata: form_data,
  1195. \t\tcontentType: false,
  1196. \t\tcache: false,
  1197. \t\tprocessData: false,
  1198. \t\tsuccess: function (response) {
  1199. \t\tconsole.log(response)
  1200. \t\tif (response.success == 1) { // document.getElementById('newsletter').reset();
  1201. \t\t\t\$(\"#success-alertt-addtomenu_update\").fadeTo(5000, 500).slideUp(500, function () {
  1202. \t\t\t\$(\"#success-alertt-addtomenu_update\").slideUp(500);
  1203. \t\t\t});
  1204. \t\t} else if(response.success == 2) {
  1205. \t\t\t\$(\"#success-alertt-addtomenu\").fadeTo(5000, 500).slideUp(500, function () {
  1206. \t\t\t\$(\"#success-alertt-addtomenu\").slideUp(500);
  1207. \t\t\t});
  1208. \t\t} else if(response.success == 3) {
  1209. \t\t\t\$(\"#failed-alertt-addtomenu_error_missing_params\").fadeTo(5000, 500).slideUp(500, function () {
  1210. \t\t\t\$(\"#failed-alertt-addtomenu_error_missing_params\").slideUp(500);
  1211. \t\t\t});
  1212. \t\t} else {
  1213. \t\t\t\$(\"#failed-alertt-addtomenu\").fadeTo(5000, 500).slideUp(500, function () {
  1214. \t\t\t\$(\"#failed-alertt-addtomenu\").slideUp(500);
  1215. \t\t\t});
  1216. \t\t}
  1217. \t\t}
  1218. \t\t})
  1219. \t\t}
  1220. \t\t\t// Menubuilder calculator start
  1221. \t\t\t\$(document).ready(function () {
  1222. \t\t\t\tvar userId = '{{ user }}';
  1223. \t\t\t\tvar obId = {{ menu_builder_details.id }};
  1224. \t\t\t\t\$(\"#valuechangeprice\").on('keyup change', function () {
  1225. \t\t\t\t\t\tvar countTxt = parseInt(\$('.count').val(), 10);
  1226. \t\t\t\t\t\tvar unit_cost = {{total_unit_cost}} ;
  1227. \t\t\t\t\t\tvar vat_percentage = {{vat_percentage}};
  1228. \t\t\t\t\t\tvar unit_cost_vat =  ((unit_cost * vat_percentage) / 100);
  1229. \t\t\t\t\t\t\tunit_cost = (unit_cost - unit_cost_vat );
  1230. \t\t\t\t\t\tvar profit_percentage = {{profit_percentage}};
  1231. \t\t\t\t\t\tvar unit_profit = ((unit_cost * profit_percentage)/ 100);
  1232. \t\t\t\t\t\tvar unit_menu_price =  (unit_cost + unit_profit);
  1233. \t\t\t\t\t\t\$('#food_cost').text((unit_cost *countTxt).toFixed(1));
  1234. \t\t\t\t\t\t\$('#food_price').text((unit_menu_price *countTxt).toFixed(1));
  1235. \t\t\t\t\t\t\$('#food_profit').text((unit_profit *countTxt).toFixed(1));
  1236. \t\t\t\t\t\t\$('#add_to_menu').attr('onclick', 'addtomenu( this ,'+ userId +', '+ obId +', '+ countTxt +')');
  1237. \t\t\t\t\t});
  1238. \t\t\t});
  1239. \t\t\t// Menubuilder calculator end
  1240. \t\t\t\t// Download and Print Recipe According to serving ingerident quantity srart\t
  1241. \t\t\t\t\t\$(document).ready(function () {
  1242. \t\t\t\t\t\tvar serving = {{ menu_builder_details.serves}};
  1243. \t\t\t\t\t\t\$(\"a.directions-link\").each(function() {
  1244. \t\t\t\t\t\t\tvar \$this = \$(this);       
  1245. \t\t\t\t\t\t\tconst _href = \$this.attr(\"href\"); 
  1246. \t\t\t\t\t\t\t\$(\".valuechange\").on('keyup change', function () {
  1247. \t\t\t\t\t\t\tvar countTxt = parseInt(\$('.count').val(), 10);
  1248. \t\t\t\t\t\t\t\$(\".directions-link\").attr(\"href\", _href+\"~portion=\"+countTxt);
  1249. \t\t\t\t\t\t\t});
  1250. \t\t\t\t\t\t\t\$(\".directions-link\").attr(\"href\", _href+\"~portion=\"+serving);
  1251. \t\t\t\t\t\t\tconsole.log(countTxt);
  1252. \t\t\t\t\t\t});
  1253. \t\t\t\t\t});
  1254. \t\t\t\t// Download and Print Recipe According to serving ingerident quantity end\t
  1255. </script>
  1256. {% endblock %}
  1257. ""menubuilder/menu-builder-detail.html.twig""/var/www/vhosts/centric.ae/gcs.centric.ae/templates/menubuilder/menu-builder-detail.html.twig");
  1258.     }
  1259. }