<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* OfficeBrainCustomBundleThemeBundle:IdmeTheme:BaseUIElements/Transaction/addToShoppingCartButton.html.twig */
class __TwigTemplate_d8f781e28f409fdf16d7a4f3b109b9eed35452d8c746f303fd5d205501bbd801 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        if (((($this->getAttribute($this->getAttribute($this->getAttribute(($context["ob_project_transaction_access_rule"] ?? null), "option", []), "shopping_cart", []), "status", []) == 1) && ((($context["ob_project_user_type"] ?? null) == "guest") && ($this->getAttribute($this->getAttribute($this->getAttribute(($context["ob_project_transaction_configuration_rule"] ?? null), "shopping_cart", []), "guest_user", []), "status", []) == 1))) || ((($context["ob_project_user_type"] ?? null) == "registered") && ($this->getAttribute($this->getAttribute($this->getAttribute(($context["ob_project_transaction_configuration_rule"] ?? null), "shopping_cart", []), "registered_user", []), "status", []) == 1)))) {
            // line 4
            echo "\t\t<a  href=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("officebrain_product_bundle_product_detail", ["_locale" => $this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "locale", []), "productSlug" => $this->getAttribute($this->getAttribute(($context["row"] ?? null), "basic_information", []), "slug", [])]), "html", null, true);
            echo "\" _class=\"js-btn-addtocart-list\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"\" data-original-title=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("compare_products.add_to_cart", [], "goldstar"), "html", null, true);
            echo "\" data-product-id='";
            echo twig_escape_filter($this->env, $this->getAttribute(($context["row"] ?? null), "product_id", []), "html", null, true);
            echo "' data-culture-product-id='";
            echo twig_escape_filter($this->env, $this->getAttribute(($context["row"] ?? null), "product_id", []), "html", null, true);
            echo "' data-product-slug=\"";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["row"] ?? null), "basic_information", []), "slug", []), "html", null, true);
            echo "\" product-id=\"";
            echo twig_escape_filter($this->env, $this->getAttribute(($context["row"] ?? null), "product_id", []), "html", null, true);
            echo "\" ><i class=\"fa fa-shopping-cart\"></i> 
\t";
            // line 5
            if (((isset($context["show_label"]) || array_key_exists("show_label", $context)) && (($context["show_label"] ?? null) == true))) {
                echo " ";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("transaction.add_to_cart", [], "app"), "html", null, true);
                echo " ";
            }
            echo "</a>
\t
";
        }
    }

    public function getTemplateName()
    {
        return "OfficeBrainCustomBundleThemeBundle:IdmeTheme:BaseUIElements/Transaction/addToShoppingCartButton.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  47 => 5,  32 => 4,  30 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("", "OfficeBrainCustomBundleThemeBundle:IdmeTheme:BaseUIElements/Transaction/addToShoppingCartButton.html.twig", "/var/www/html/project/OfficeBrain/CustomBundle/ThemeBundle/Resources/views/IdmeTheme/BaseUIElements/Transaction/addToShoppingCartButton.html.twig");
    }
}
