var/cache/dev/twig/51/514b1cbb5a0a6af7aa8fd496ce20ae7e.php line 60

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. /* /includes/product-card.html.twig */
  16. class __TwigTemplate_41733af3307aff2e8012dcd742e62b38 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->parent false;
  28.         $this->blocks = [
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = []): iterable
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""/includes/product-card.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""/includes/product-card.html.twig"));
  38.         // line 1
  39.         yield "<div class=\"slide-holder product-box \" data-product-id=\"";
  40.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'1$this->source); })()), "id", [], "any"falsefalsefalse1), "html"nulltrue);
  41.         yield "\">
  42. \t\t\t\t\t\t";
  43.         // line 2
  44.         $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.'2$this->source); })()), "session", [], "any"falsefalsefalse2), "get", ["loginUserName"], "method"falsefalsefalse2);
  45.         // line 3
  46.         yield "\t\t\t\t\t\t\t<figure class=\"slide-img\">
  47. \t\t\t\t\t\t\t\t<a href=\"/";
  48.         // line 4
  49.         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.'4$this->source); })()), "request", [], "any"falsefalsefalse4), "locale", [], "any"falsefalsefalse4), "html"nulltrue);
  50.         yield "/product/";
  51.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'4$this->source); })()), "url", [], "any"falsefalsefalse4), "html"nulltrue);
  52.         yield "\">
  53. \t\t\t\t\t\t\t\t\t";
  54.         // line 5
  55.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["featured_product"] ?? null), "attrimage", [], "any"falsetruefalse5), "Items", [], "any"truetruefalse5) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'5$this->source); })()), "attrimage", [], "any"falsefalsefalse5), "Items", [], "any"falsefalsefalse5)))) {
  56.             // line 6
  57.             yield "\t\t\t\t\t\t\t\t\t\t<img src=\"";
  58.             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["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'6$this->source); })()), "attrimage", [], "any"falsefalsefalse6), "Items", [], "any"falsefalsefalse6), 0, [], "array"falsefalsefalse6), "html"nulltrue);
  59.             yield "\" height=\"250px\" alt=\"";
  60.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'6$this->source); })()), "name", [], "any"falsefalsefalse6), "html"nulltrue);
  61.             yield "\">
  62. \t\t\t\t\t\t\t\t\t";
  63.         }
  64.         // line 8
  65.         yield "\t\t\t\t\t\t\t\t</a>
  66. \t\t\t\t\t\t\t</figure>
  67. \t\t\t\t\t\t<div class=\"slide-info\">
  68. \t\t\t\t\t\t\t<a href=\"/";
  69.         // line 11
  70.         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.'11$this->source); })()), "request", [], "any"falsefalsefalse11), "locale", [], "any"falsefalsefalse11), "html"nulltrue);
  71.         yield "/product/";
  72.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'11$this->source); })()), "url", [], "any"falsefalsefalse11), "html"nulltrue);
  73.         yield "\">
  74. \t\t\t\t\t\t\t\t<h5 class=\"title\">";
  75.         // line 12
  76.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'12$this->source); })()), "name", [], "any"falsefalsefalse12), "html"nulltrue);
  77.         yield "</h5>
  78. \t\t\t\t\t\t\t</a>
  79. \t\t\t\t\t\t\t<div class=\"kg\">";
  80.         // line 14
  81.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'14$this->source); })()), "size", [], "any"falsefalsefalse14), "html"nulltrue);
  82.         yield "</div>
  83. \t\t\t\t\t\t\t<div class=\"price d-none\">
  84. \t\t\t\t\t\t\t\t";
  85.         // line 16
  86.         if (((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["featured_product"] ?? null), "region", [], "any"falsetruefalse16), 0, [], "array"falsetruefalse16), "currency_symbol", [], "array"falsetruefalse16), "data", [], "any"truetruefalse16) && CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["featured_product"] ?? null), "region", [], "any"falsetruefalse16), 0, [], "array"falsetruefalse16), "price", [], "array"falsetruefalse16), "data", [], "any"truetruefalse16)) && (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'16$this->source); })()), "region", [], "any"falsefalsefalse16), 0, [], "array"falsefalsefalse16), "price", [], "array"falsefalsefalse16), "data", [], "any"falsefalsefalse16) != 1))) {
  87.             // line 17
  88.             yield "\t\t\t\t\t\t\t\t\t";
  89.             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, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'17$this->source); })()), "region", [], "any"falsefalsefalse17), 0, [], "array"falsefalsefalse17), "price", [], "array"falsefalsefalse17), "data", [], "any"falsefalsefalse17), "html"nulltrue);
  90.             yield "
  91. \t\t\t\t\t\t\t\t\t";
  92.             // line 18
  93.             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, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'18$this->source); })()), "region", [], "any"falsefalsefalse18), 0, [], "array"falsefalsefalse18), "currency_symbol", [], "array"falsefalsefalse18), "data", [], "any"falsefalsefalse18)), "html"nulltrue);
  94.             yield "
  95. \t\t\t\t\t\t\t\t";
  96.         }
  97.         // line 20
  98.         yield "\t\t\t\t\t\t\t</div>
  99. \t\t\t\t\t\t\t";
  100.         // line 22
  101.         yield "\t\t\t\t\t\t\t";
  102.         // line 23
  103.         yield "\t\t\t\t\t\t\t";
  104.         $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, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'23$this->source); })()), "region", [], "any"falsefalsefalse23), 0, [], "array"falsefalsefalse23), "price", [], "array"falsefalsefalse23), "data", [], "any"falsefalsefalse23) / 100) * 10));
  105.         // line 24
  106.         yield "\t\t\t\t\t\t\t";
  107.         // line 25
  108.         yield "\t\t\t\t\t\t\t";
  109.         // line 26
  110.         yield "\t\t\t\t\t\t\t";
  111.         // line 27
  112.         yield "\t\t\t\t\t\t\t";
  113.         // line 28
  114.         yield "\t\t\t\t\t\t\t";
  115.         // line 29
  116.         yield "
  117. \t\t\t\t\t\t\t<div class=\"btn-holder\"> 
  118.                                 \t<a onclick=\"addCart(this, ";
  119.         // line 31
  120.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'31$this->source); })()), "id", [], "any"falsefalsefalse31), "html"nulltrue);
  121.         yield ", 1)\" class=\"btn btn-custom btn-green\">";
  122.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to Cart"), "html"nulltrue);
  123.         yield "</a>
  124. \t\t\t\t\t\t\t\t\t";
  125.         // line 32
  126.         if ( !(null === 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.'32$this->source); })()), "session", [], "any"falsefalsefalse32), "get", ["loginUserName"], "method"falsefalsefalse32))) {
  127.             // line 33
  128.             yield "\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-p-outline d-none\" onclick=\"inventoryProgram(this,";
  129.             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.'33$this->source); })()), "html"nulltrue);
  130.             yield ",";
  131.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'33$this->source); })()), "id", [], "any"falsefalsefalse33), "html"nulltrue);
  132.             yield ")\">";
  133.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("addinventory"), "html"nulltrue);
  134.             yield "</a>
  135. \t\t\t\t\t\t\t\t\t";
  136.         } else {
  137.             // line 35
  138.             yield "\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-p-outline-blue home-logged-out d-none\">";
  139.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to Inventory"), "html"nulltrue);
  140.             yield "</a>
  141. \t\t\t\t\t\t\t\t\t";
  142.         }
  143.         // line 37
  144.         yield "\t\t\t\t\t\t\t\t\t";
  145.         if ( !(null === (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'37$this->source); })()))) {
  146.             // line 38
  147.             yield "                                \t\t";
  148.             if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'38$this->source); })()), "id", [], "any"falsefalsefalse38), (isset($context["LikedId"]) || array_key_exists("LikedId"$context) ? $context["LikedId"] : (function () { throw new RuntimeError('Variable "LikedId" does not exist.'38$this->source); })()))) {
  149.                 // line 39
  150.                 yield "\t\t\t\t\t\t\t\t\t\t\t<div class=\"like\">
  151. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\"><img src=\"/static/assets/images/Liked-01.svg\" alt=\"Liked\"></a>
  152. \t\t\t\t\t\t\t\t\t\t\t</div>
  153. \t\t\t\t\t\t\t\t\t\t";
  154.             } else {
  155.                 // line 43
  156.                 yield "\t\t\t\t\t\t\t\t\t\t\t<div class=\"like\">
  157. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" onclick=\"loyaltyProgram(this, ";
  158.                 // line 44
  159.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'44$this->source); })()), "id", [], "any"falsefalsefalse44), "html"nulltrue);
  160.                 yield ",'";
  161.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'44$this->source); })()), "name", [], "any"falsefalsefalse44), "html"nulltrue);
  162.                 yield "',10,'Product','Like')\"><img src=\"/static/assets/images/Group_1271.svg\" alt=\"Like\"></a>
  163. \t\t\t\t\t\t\t\t\t\t\t</div>
  164. \t\t\t\t\t\t\t\t\t\t";
  165.             }
  166.             // line 47
  167.             yield "\t\t\t\t\t\t\t\t\t";
  168.         } else {
  169.             // line 48
  170.             yield "\t\t\t\t\t\t\t\t\t<div class=\"like\" id=\"basicToastBtn\">
  171. \t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" onclick=\"showLoginToast(this, ";
  172.             // line 49
  173.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'49$this->source); })()), "id", [], "any"falsefalsefalse49), "html"nulltrue);
  174.             yield ")\">
  175. \t\t\t\t\t\t\t\t\t\t<img src=\"/static/assets/images/Group_1271.svg\" alt=\"Like\">
  176. \t\t\t\t\t\t\t\t\t\t</a>
  177. \t\t\t\t\t\t\t\t\t</div>
  178. \t\t\t\t\t\t\t\t\t";
  179.         }
  180.         // line 54
  181.         yield "\t\t\t\t\t\t\t</div>
  182.                             <div class=\"toast-container position-relative top-0 end-0 p-0\" style=\"height: 0;\">
  183.                                 <div id=\"basicToast-";
  184.         // line 56
  185.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["featured_product"]) || array_key_exists("featured_product"$context) ? $context["featured_product"] : (function () { throw new RuntimeError('Variable "featured_product" does not exist.'56$this->source); })()), "id", [], "any"falsefalsefalse56), "html"nulltrue);
  186.         yield "\" class=\"toast\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" data-bs-autohide=\"false\">
  187.                                   <div class=\"d-flex justify-content-between align-items-center\">
  188.                                     <div>
  189.                                       <span>
  190.                                         <img src=\"/static/assets/images/login-error.svg\" class=\"\" alt=\"\" />
  191.                                       </span>
  192.                                     </div>
  193.                                     <div>
  194.                                       <p>
  195.                                         ";
  196.         // line 65
  197.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("You should login to add to favourites"), "html"nulltrue);
  198.         yield "
  199.                                         <span>
  200.                                           <a href=\"/";
  201.         // line 67
  202.         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.'67$this->source); })()), "request", [], "any"falsefalsefalse67), "locale", [], "any"falsefalsefalse67), "html"nulltrue);
  203.         yield "/signin\" >";
  204.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Login here"), "html"nulltrue);
  205.         yield "</a>
  206.                                         </span>
  207.                                       </p>
  208.                                     </div>
  209.                                     <div>
  210.                                       <a href=\"#\">
  211.                                         <svg version=\"1.1\" xmlns=\"https://www.w3.org/2000/svg\" viewBox=\"0 0 15.642 15.642\" xmlns:xlink=\"https://www.w3.org/1999/xlink\">
  212.                                           <path fill-rule=\"evenodd\" d=\"M8.882,7.821l6.541-6.541c0.293-0.293,0.293-0.768,0-1.061  
  213.                                             c-0.293-0.293-0.768-0.293-1.061,0L7.821,6.76L1.28,0.22c-0.293-0.293-0.768-0.293-1.061,0
  214.                                             c-0.293,0.293-0.293,0.768,0,1.061l6.541,6.541L0.22,14.362c-0.293,0.293-0.293,0.768,0,1.061
  215.                                             c0.147,0.146,0.338,0.22,0.53,0.22s0.384-0.073,0.53-0.22l6.541-6.541l6.541,6.541
  216.                                             c0.147,0.146,0.338,0.22,0.53,0.22c0.192,0,0.384-0.073,0.53-0.22
  217.                                             c0.293-0.293,0.293-0.768,0-1.061L8.882,7.821z\">
  218.                                           </path>
  219.                                         </svg>
  220.                                       </a>
  221.                                     </div>
  222.                                   </div>
  223.                                 </div>
  224.                               </div>
  225.                            
  226. \t\t\t\t\t\t\t<div class=\"inventry-alert\"></div>
  227. \t\t\t\t\t\t</div>
  228.                      
  229. \t\t\t\t\t</div>";
  230.         
  231.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  232.         
  233.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  234.         yield from [];
  235.     }
  236.     /**
  237.      * @codeCoverageIgnore
  238.      */
  239.     public function getTemplateName(): string
  240.     {
  241.         return "/includes/product-card.html.twig";
  242.     }
  243.     /**
  244.      * @codeCoverageIgnore
  245.      */
  246.     public function isTraitable(): bool
  247.     {
  248.         return false;
  249.     }
  250.     /**
  251.      * @codeCoverageIgnore
  252.      */
  253.     public function getDebugInfo(): array
  254.     {
  255.         return array (  211 => 67,  206 => 65,  194 => 56,  190 => 54,  182 => 49,  179 => 48,  176 => 47,  168 => 44,  165 => 43,  159 => 39,  156 => 38,  153 => 37,  147 => 35,  137 => 33,  135 => 32,  129 => 31,  125 => 29,  123 => 28,  121 => 27,  119 => 26,  117 => 25,  115 => 24,  112 => 23,  110 => 22,  107 => 20,  102 => 18,  97 => 17,  95 => 16,  90 => 14,  85 => 12,  79 => 11,  74 => 8,  66 => 6,  64 => 5,  58 => 4,  55 => 3,  53 => 2,  48 => 1,);
  256.     }
  257.     public function getSourceContext(): Source
  258.     {
  259.         return new Source("<div class=\"slide-holder product-box \" data-product-id=\"{{ featured_product.id }}\">
  260. \t\t\t\t\t\t{% set user = app.session.get('loginUserName') %}
  261. \t\t\t\t\t\t\t<figure class=\"slide-img\">
  262. \t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/product/{{ featured_product.url }}\">
  263. \t\t\t\t\t\t\t\t\t{% if featured_product.attrimage.Items is defined and featured_product.attrimage.Items is not empty %}
  264. \t\t\t\t\t\t\t\t\t\t<img src=\"{{ featured_product.attrimage.Items[0] }}\" height=\"250px\" alt=\"{{ featured_product.name }}\">
  265. \t\t\t\t\t\t\t\t\t{% endif %}
  266. \t\t\t\t\t\t\t\t</a>
  267. \t\t\t\t\t\t\t</figure>
  268. \t\t\t\t\t\t<div class=\"slide-info\">
  269. \t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/product/{{ featured_product.url }}\">
  270. \t\t\t\t\t\t\t\t<h5 class=\"title\">{{ featured_product.name }}</h5>
  271. \t\t\t\t\t\t\t</a>
  272. \t\t\t\t\t\t\t<div class=\"kg\">{{ featured_product.size }}</div>
  273. \t\t\t\t\t\t\t<div class=\"price d-none\">
  274. \t\t\t\t\t\t\t\t{% if featured_product.region[0]['currency_symbol'].data is defined and featured_product.region[0]['price'].data is defined and featured_product.region[0]['price'].data != 1 %}
  275. \t\t\t\t\t\t\t\t\t{{ featured_product.region[0]['price'].data }}
  276. \t\t\t\t\t\t\t\t\t{{featured_product.region[0]['currency_symbol'].data|trans}}
  277. \t\t\t\t\t\t\t\t{% endif %}
  278. \t\t\t\t\t\t\t</div>
  279. \t\t\t\t\t\t\t{# <div class=\"award\"> #}
  280. \t\t\t\t\t\t\t{# {% if featured_product.region[0]['price'].data is defined and featured_product.region[0]['price'].data != 1 %} #}
  281. \t\t\t\t\t\t\t{% set points =   (((featured_product.region[0]['price'].data)/100)*10)|round %}
  282. \t\t\t\t\t\t\t{# <i class=\"far fa-star\"></i> #}
  283. \t\t\t\t\t\t\t{# {{points}} #}
  284. \t\t\t\t\t\t\t{# {{'Rewards Points'|trans}} #}
  285. \t\t\t\t\t\t\t{# {% endif %} #}
  286. \t\t\t\t\t\t\t{# </div> #}
  287. \t\t\t\t\t\t\t<div class=\"btn-holder\"> 
  288.                                 \t<a onclick=\"addCart(this, {{featured_product.id}}, 1)\" class=\"btn btn-custom btn-green\">{{'Add to Cart'|trans}}</a>
  289. \t\t\t\t\t\t\t\t\t{% if app.session.get('loginUserName') is not null %}
  290. \t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-p-outline d-none\" onclick=\"inventoryProgram(this,{{points}},{{featured_product.id}})\">{{'addinventory'|trans}}</a>
  291. \t\t\t\t\t\t\t\t\t{% else %}
  292. \t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"btn btn-custom btn-p-outline-blue home-logged-out d-none\">{{'Add to Inventory'|trans}}</a>
  293. \t\t\t\t\t\t\t\t\t{% endif %}
  294. \t\t\t\t\t\t\t\t\t{% if user is not null %}
  295.                                 \t\t{% if featured_product.id in  LikedId %}
  296. \t\t\t\t\t\t\t\t\t\t\t<div class=\"like\">
  297. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\"><img src=\"/static/assets/images/Liked-01.svg\" alt=\"Liked\"></a>
  298. \t\t\t\t\t\t\t\t\t\t\t</div>
  299. \t\t\t\t\t\t\t\t\t\t{% else %}
  300. \t\t\t\t\t\t\t\t\t\t\t<div class=\"like\">
  301. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" onclick=\"loyaltyProgram(this, {{ featured_product.id }},'{{ featured_product.name }}',10,'Product','Like')\"><img src=\"/static/assets/images/Group_1271.svg\" alt=\"Like\"></a>
  302. \t\t\t\t\t\t\t\t\t\t\t</div>
  303. \t\t\t\t\t\t\t\t\t\t{% endif %}
  304. \t\t\t\t\t\t\t\t\t{% else %}
  305. \t\t\t\t\t\t\t\t\t<div class=\"like\" id=\"basicToastBtn\">
  306. \t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" onclick=\"showLoginToast(this, {{ featured_product.id }})\">
  307. \t\t\t\t\t\t\t\t\t\t<img src=\"/static/assets/images/Group_1271.svg\" alt=\"Like\">
  308. \t\t\t\t\t\t\t\t\t\t</a>
  309. \t\t\t\t\t\t\t\t\t</div>
  310. \t\t\t\t\t\t\t\t\t{% endif %}
  311. \t\t\t\t\t\t\t</div>
  312.                             <div class=\"toast-container position-relative top-0 end-0 p-0\" style=\"height: 0;\">
  313.                                 <div id=\"basicToast-{{ featured_product.id }}\" class=\"toast\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" data-bs-autohide=\"false\">
  314.                                   <div class=\"d-flex justify-content-between align-items-center\">
  315.                                     <div>
  316.                                       <span>
  317.                                         <img src=\"/static/assets/images/login-error.svg\" class=\"\" alt=\"\" />
  318.                                       </span>
  319.                                     </div>
  320.                                     <div>
  321.                                       <p>
  322.                                         {{\"You should login to add to favourites\" | trans}}
  323.                                         <span>
  324.                                           <a href=\"/{{app.request.locale}}/signin\" >{{\"Login here\" | trans}}</a>
  325.                                         </span>
  326.                                       </p>
  327.                                     </div>
  328.                                     <div>
  329.                                       <a href=\"#\">
  330.                                         <svg version=\"1.1\" xmlns=\"https://www.w3.org/2000/svg\" viewBox=\"0 0 15.642 15.642\" xmlns:xlink=\"https://www.w3.org/1999/xlink\">
  331.                                           <path fill-rule=\"evenodd\" d=\"M8.882,7.821l6.541-6.541c0.293-0.293,0.293-0.768,0-1.061  
  332.                                             c-0.293-0.293-0.768-0.293-1.061,0L7.821,6.76L1.28,0.22c-0.293-0.293-0.768-0.293-1.061,0
  333.                                             c-0.293,0.293-0.293,0.768,0,1.061l6.541,6.541L0.22,14.362c-0.293,0.293-0.293,0.768,0,1.061
  334.                                             c0.147,0.146,0.338,0.22,0.53,0.22s0.384-0.073,0.53-0.22l6.541-6.541l6.541,6.541
  335.                                             c0.147,0.146,0.338,0.22,0.53,0.22c0.192,0,0.384-0.073,0.53-0.22
  336.                                             c0.293-0.293,0.293-0.768,0-1.061L8.882,7.821z\">
  337.                                           </path>
  338.                                         </svg>
  339.                                       </a>
  340.                                     </div>
  341.                                   </div>
  342.                                 </div>
  343.                               </div>
  344.                            
  345. \t\t\t\t\t\t\t<div class=\"inventry-alert\"></div>
  346. \t\t\t\t\t\t</div>
  347.                      
  348. \t\t\t\t\t</div>""/includes/product-card.html.twig""/var/www/vhosts/centric.ae/gcs.centric.ae/templates/includes/product-card.html.twig");
  349.     }
  350. }