<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* /includes/product-card.html.twig */
class __TwigTemplate_41733af3307aff2e8012dcd742e62b38 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "/includes/product-card.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "/includes/product-card.html.twig"));
// line 1
yield "<div class=\"slide-holder product-box \" data-product-id=\"";
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", false, false, false, 1), "html", null, true);
yield "\">
\t\t\t\t\t\t";
// line 2
$context["user"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 2, $this->source); })()), "session", [], "any", false, false, false, 2), "get", ["loginUserName"], "method", false, false, false, 2);
// line 3
yield "\t\t\t\t\t\t\t<figure class=\"slide-img\">
\t\t\t\t\t\t\t\t<a href=\"/";
// line 4
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "locale", [], "any", false, false, false, 4), "html", null, true);
yield "/product/";
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", false, false, false, 4), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t";
// line 5
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["featured_product"] ?? null), "attrimage", [], "any", false, true, false, 5), "Items", [], "any", true, true, false, 5) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, 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.', 5, $this->source); })()), "attrimage", [], "any", false, false, false, 5), "Items", [], "any", false, false, false, 5)))) {
// line 6
yield "\t\t\t\t\t\t\t\t\t\t<img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["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", false, false, false, 6), "Items", [], "any", false, false, false, 6), 0, [], "array", false, false, false, 6), "html", null, true);
yield "\" height=\"250px\" alt=\"";
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", false, false, false, 6), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t";
}
// line 8
yield "\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</figure>
\t\t\t\t\t\t<div class=\"slide-info\">
\t\t\t\t\t\t\t<a href=\"/";
// line 11
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 11, $this->source); })()), "request", [], "any", false, false, false, 11), "locale", [], "any", false, false, false, 11), "html", null, true);
yield "/product/";
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", false, false, false, 11), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t<h5 class=\"title\">";
// line 12
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", false, false, false, 12), "html", null, true);
yield "</h5>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t<div class=\"kg\">";
// line 14
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", false, false, false, 14), "html", null, true);
yield "</div>
\t\t\t\t\t\t\t<div class=\"price d-none\">
\t\t\t\t\t\t\t\t";
// line 16
if (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["featured_product"] ?? null), "region", [], "any", false, true, false, 16), 0, [], "array", false, true, false, 16), "currency_symbol", [], "array", false, true, false, 16), "data", [], "any", true, true, false, 16) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["featured_product"] ?? null), "region", [], "any", false, true, false, 16), 0, [], "array", false, true, false, 16), "price", [], "array", false, true, false, 16), "data", [], "any", true, true, false, 16)) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 16, $this->source); })()), "region", [], "any", false, false, false, 16), 0, [], "array", false, false, false, 16), "price", [], "array", false, false, false, 16), "data", [], "any", false, false, false, 16) != 1))) {
// line 17
yield "\t\t\t\t\t\t\t\t\t";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (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", false, false, false, 17), 0, [], "array", false, false, false, 17), "price", [], "array", false, false, false, 17), "data", [], "any", false, false, false, 17), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t";
// line 18
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (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", false, false, false, 18), 0, [], "array", false, false, false, 18), "currency_symbol", [], "array", false, false, false, 18), "data", [], "any", false, false, false, 18)), "html", null, true);
yield "
\t\t\t\t\t\t\t\t";
}
// line 20
yield "\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
// line 22
yield "\t\t\t\t\t\t\t";
// line 23
yield "\t\t\t\t\t\t\t";
$context["points"] = Twig\Extension\CoreExtension::round(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (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", false, false, false, 23), 0, [], "array", false, false, false, 23), "price", [], "array", false, false, false, 23), "data", [], "any", false, false, false, 23) / 100) * 10));
// line 24
yield "\t\t\t\t\t\t\t";
// line 25
yield "\t\t\t\t\t\t\t";
// line 26
yield "\t\t\t\t\t\t\t";
// line 27
yield "\t\t\t\t\t\t\t";
// line 28
yield "\t\t\t\t\t\t\t";
// line 29
yield "
\t\t\t\t\t\t\t<div class=\"btn-holder\">
\t<a onclick=\"addCart(this, ";
// line 31
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", false, false, false, 31), "html", null, true);
yield ", 1)\" class=\"btn btn-custom btn-green\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to Cart"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t";
// line 32
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 32, $this->source); })()), "session", [], "any", false, false, false, 32), "get", ["loginUserName"], "method", false, false, false, 32))) {
// line 33
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,";
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", null, true);
yield ",";
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", false, false, false, 33), "html", null, true);
yield ")\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("addinventory"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t";
} else {
// line 35
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\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to Inventory"), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t";
}
// line 37
yield "\t\t\t\t\t\t\t\t\t";
if ( !(null === (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 37, $this->source); })()))) {
// line 38
yield " \t\t";
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", false, false, false, 38), (isset($context["LikedId"]) || array_key_exists("LikedId", $context) ? $context["LikedId"] : (function () { throw new RuntimeError('Variable "LikedId" does not exist.', 38, $this->source); })()))) {
// line 39
yield "\t\t\t\t\t\t\t\t\t\t\t<div class=\"like\">
\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>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t";
} else {
// line 43
yield "\t\t\t\t\t\t\t\t\t\t\t<div class=\"like\">
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" onclick=\"loyaltyProgram(this, ";
// line 44
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", false, false, false, 44), "html", null, true);
yield ",'";
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", false, false, false, 44), "html", null, true);
yield "',10,'Product','Like')\"><img src=\"/static/assets/images/Group_1271.svg\" alt=\"Like\"></a>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t";
}
// line 47
yield "\t\t\t\t\t\t\t\t\t";
} else {
// line 48
yield "\t\t\t\t\t\t\t\t\t<div class=\"like\" id=\"basicToastBtn\">
\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" onclick=\"showLoginToast(this, ";
// line 49
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", false, false, false, 49), "html", null, true);
yield ")\">
\t\t\t\t\t\t\t\t\t\t<img src=\"/static/assets/images/Group_1271.svg\" alt=\"Like\">
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t";
}
// line 54
yield "\t\t\t\t\t\t\t</div>
<div class=\"toast-container position-relative top-0 end-0 p-0\" style=\"height: 0;\">
<div id=\"basicToast-";
// line 56
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", false, false, false, 56), "html", null, true);
yield "\" class=\"toast\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" data-bs-autohide=\"false\">
<div class=\"d-flex justify-content-between align-items-center\">
<div>
<span>
<img src=\"/static/assets/images/login-error.svg\" class=\"\" alt=\"\" />
</span>
</div>
<div>
<p>
";
// line 65
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("You should login to add to favourites"), "html", null, true);
yield "
<span>
<a href=\"/";
// line 67
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 67, $this->source); })()), "request", [], "any", false, false, false, 67), "locale", [], "any", false, false, false, 67), "html", null, true);
yield "/signin\" >";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Login here"), "html", null, true);
yield "</a>
</span>
</p>
</div>
<div>
<a href=\"#\">
<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\">
<path fill-rule=\"evenodd\" d=\"M8.882,7.821l6.541-6.541c0.293-0.293,0.293-0.768,0-1.061
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
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
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
c0.147,0.146,0.338,0.22,0.53,0.22c0.192,0,0.384-0.073,0.53-0.22
c0.293-0.293,0.293-0.768,0-1.061L8.882,7.821z\">
</path>
</svg>
</a>
</div>
</div>
</div>
</div>
\t\t\t\t\t\t\t<div class=\"inventry-alert\"></div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "/includes/product-card.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("<div class=\"slide-holder product-box \" data-product-id=\"{{ featured_product.id }}\">
\t\t\t\t\t\t{% set user = app.session.get('loginUserName') %}
\t\t\t\t\t\t\t<figure class=\"slide-img\">
\t\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/product/{{ featured_product.url }}\">
\t\t\t\t\t\t\t\t\t{% if featured_product.attrimage.Items is defined and featured_product.attrimage.Items is not empty %}
\t\t\t\t\t\t\t\t\t\t<img src=\"{{ featured_product.attrimage.Items[0] }}\" height=\"250px\" alt=\"{{ featured_product.name }}\">
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</figure>
\t\t\t\t\t\t<div class=\"slide-info\">
\t\t\t\t\t\t\t<a href=\"/{{app.request.locale}}/product/{{ featured_product.url }}\">
\t\t\t\t\t\t\t\t<h5 class=\"title\">{{ featured_product.name }}</h5>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t<div class=\"kg\">{{ featured_product.size }}</div>
\t\t\t\t\t\t\t<div class=\"price d-none\">
\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 %}
\t\t\t\t\t\t\t\t\t{{ featured_product.region[0]['price'].data }}
\t\t\t\t\t\t\t\t\t{{featured_product.region[0]['currency_symbol'].data|trans}}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{# <div class=\"award\"> #}
\t\t\t\t\t\t\t{# {% if featured_product.region[0]['price'].data is defined and featured_product.region[0]['price'].data != 1 %} #}
\t\t\t\t\t\t\t{% set points = (((featured_product.region[0]['price'].data)/100)*10)|round %}
\t\t\t\t\t\t\t{# <i class=\"far fa-star\"></i> #}
\t\t\t\t\t\t\t{# {{points}} #}
\t\t\t\t\t\t\t{# {{'Rewards Points'|trans}} #}
\t\t\t\t\t\t\t{# {% endif %} #}
\t\t\t\t\t\t\t{# </div> #}
\t\t\t\t\t\t\t<div class=\"btn-holder\">
\t<a onclick=\"addCart(this, {{featured_product.id}}, 1)\" class=\"btn btn-custom btn-green\">{{'Add to Cart'|trans}}</a>
\t\t\t\t\t\t\t\t\t{% if app.session.get('loginUserName') is not null %}
\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>
\t\t\t\t\t\t\t\t\t{% else %}
\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>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{% if user is not null %}
\t\t{% if featured_product.id in LikedId %}
\t\t\t\t\t\t\t\t\t\t\t<div class=\"like\">
\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>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t<div class=\"like\">
\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>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t<div class=\"like\" id=\"basicToastBtn\">
\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" onclick=\"showLoginToast(this, {{ featured_product.id }})\">
\t\t\t\t\t\t\t\t\t\t<img src=\"/static/assets/images/Group_1271.svg\" alt=\"Like\">
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</div>
<div class=\"toast-container position-relative top-0 end-0 p-0\" style=\"height: 0;\">
<div id=\"basicToast-{{ featured_product.id }}\" class=\"toast\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" data-bs-autohide=\"false\">
<div class=\"d-flex justify-content-between align-items-center\">
<div>
<span>
<img src=\"/static/assets/images/login-error.svg\" class=\"\" alt=\"\" />
</span>
</div>
<div>
<p>
{{\"You should login to add to favourites\" | trans}}
<span>
<a href=\"/{{app.request.locale}}/signin\" >{{\"Login here\" | trans}}</a>
</span>
</p>
</div>
<div>
<a href=\"#\">
<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\">
<path fill-rule=\"evenodd\" d=\"M8.882,7.821l6.541-6.541c0.293-0.293,0.293-0.768,0-1.061
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
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
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
c0.147,0.146,0.338,0.22,0.53,0.22c0.192,0,0.384-0.073,0.53-0.22
c0.293-0.293,0.293-0.768,0-1.061L8.882,7.821z\">
</path>
</svg>
</a>
</div>
</div>
</div>
</div>
\t\t\t\t\t\t\t<div class=\"inventry-alert\"></div>
\t\t\t\t\t\t</div>
\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");
}
}