<?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;

/* OfficeBrainCompareProductBundle:CompareProduct:recentCompareProductList.html.twig */
class __TwigTemplate_a1458085811070954caffb69443207d65e0a58b919cbf7c8019ccd449cb1b358 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->blocks = [
            'recent_compare_product_list' => [$this, 'block_recent_compare_product_list'],
            'recent_compare_product_js' => [$this, 'block_recent_compare_product_js'],
            'recent_compare_product_not_found' => [$this, 'block_recent_compare_product_not_found'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 7
        return $this->loadTemplate(($context["recent_compare_product_layout"] ?? null), "OfficeBrainCompareProductBundle:CompareProduct:recentCompareProductList.html.twig", 7);
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        if ((($context["total_record"] ?? null) > 0)) {
            // line 2
            $context["recent_compare_product_layout"] = ((($this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "get", [0 => "project_setting"], "method"), "instance_theme_path", []) . ":") . $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "get", [0 => "project_setting"], "method"), "instance_theme", [])) . ":CompareProduct/recentCompareProductLayout.html.twig");
        } else {
            // line 4
            $context["recent_compare_product_layout"] = ((($this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "get", [0 => "project_setting"], "method"), "instance_theme_path", []) . ":") . $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "get", [0 => "project_setting"], "method"), "instance_theme", [])) . ":CompareProduct/recentCompareProductNotFoundLayout.html.twig");
        }
        // line 7
        $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
    }

    // line 9
    public function block_recent_compare_product_list($context, array $blocks = [])
    {
        // line 10
        $context["currentCountry"] = $this->env->getExtension('OfficeBrain\Bundle\CoreBundle\TwigExtension\Extension')->currentCounty($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "getLocale", [], "method"));
        // line 11
        echo "\t";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["record_set"] ?? null));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
            // line 12
            echo "\t
\t\t";
            // line 13
            $context["product_id"] = $this->getAttribute($context["row"], "product_id", []);
            // line 14
            echo "\t\t";
            $context["culture_product_id"] = $this->getAttribute($context["row"], "culture_product_id", []);
            // line 15
            echo "\t\t";
            $context["product_slug"] = $this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "slug", []);
            // line 16
            echo "\t\t";
            $context["product_default_image_url"] = $this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "default_image_url", []);
            // line 17
            echo "\t\t";
            $context["default_image_thumb_url"] = $this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "default_image_thumb_url", []);
            // line 18
            echo "\t\t";
            $context["product_title"] = $this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "title", []);
            // line 19
            echo "\t\t";
            $context["product_sku"] = $this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "sku_number", []);
            // line 20
            echo "\t\t";
            $context["product_currency_symbol"] = $this->getAttribute($this->getAttribute($context["row"], "currency", []), "symbol", []);
            // line 21
            echo "\t\t";
            $context["product_regular_price"] = $this->getAttribute($context["row"], "regular_price", []);
            // line 22
            echo "\t\t";
            $context["product_min_price"] = $this->getAttribute($context["row"], "min_price", []);
            // line 23
            echo "\t\t";
            $context["product_unit_price"] = $this->getAttribute($context["row"], "unit_price", []);
            // line 24
            echo "\t\t ";
            if ((($this->getAttribute($context["row"], "ca_unit_price", [], "any", true, true) && ($this->getAttribute($context["row"], "ca_unit_price", []) != null)) && (($context["currentCountry"] ?? null) == "ca"))) {
                echo "   
            ";
                // line 25
                $context["product_unit_price"] = $this->getAttribute($context["row"], "ca_unit_price", []);
                // line 26
                echo "        ";
            }
            // line 27
            echo "        ";
            if ((($this->getAttribute($context["row"], "us_unit_price", [], "any", true, true) && ($this->getAttribute($context["row"], "us_unit_price", []) != null)) && (($context["currentCountry"] ?? null) == "us"))) {
                // line 28
                echo "            ";
                $context["product_unit_price"] = $this->getAttribute($context["row"], "us_unit_price", []);
                // line 29
                echo "        ";
            }
            // line 30
            echo "\t\t";
            $context["product_minimum_quantity_range"] = $this->getAttribute($context["row"], "minimum_quantity_range", []);
            // line 31
            echo "\t\t";
            // line 32
            echo "\t\t";
            ob_start(function () { return ''; });
            // line 33
            echo "\t\t\t";
            $this->loadTemplate((((($context["ob_project_instance_theme_path"] ?? null) . ":") . ($context["ob_project_instance_theme"] ?? null)) . ":BaseUIElements/Transaction/addToShoppingCartButton.html.twig"), "OfficeBrainCompareProductBundle:CompareProduct:recentCompareProductList.html.twig", 33)->display($context);
            // line 34
            echo "\t\t\t";
            $this->loadTemplate((((($context["ob_project_instance_theme_path"] ?? null) . ":") . ($context["ob_project_instance_theme"] ?? null)) . ":BaseUIElements/Transaction/addToQuoteButton.html.twig"), "OfficeBrainCompareProductBundle:CompareProduct:recentCompareProductList.html.twig", 34)->display($context);
            // line 35
            echo "\t\t\t";
            $this->loadTemplate((((($context["ob_project_instance_theme_path"] ?? null) . ":") . ($context["ob_project_instance_theme"] ?? null)) . ":BaseUIElements/Transaction/addToWishListButton.html.twig"), "OfficeBrainCompareProductBundle:CompareProduct:recentCompareProductList.html.twig", 35)->display($context);
            // line 36
            echo "\t\t";
            $context["product_transaction_button"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
            echo "\t\t\t\t\t\t
\t\t\t\t\t\t\t";
            // line 37
            if (($this->getAttribute($context["row"], "is_deleted", [], "any", true, true) && ($this->getAttribute($context["row"], "is_deleted", []) == 1))) {
                // line 38
                echo "\t\t\t\t\t\t\t\t";
                $context["is_deleted"] = 1;
                // line 39
                echo "\t\t\t\t\t\t\t";
            } else {
                // line 40
                echo "\t\t\t\t\t\t\t\t";
                $context["is_deleted"] = 0;
                // line 41
                echo "\t\t\t\t\t\t\t";
            }
            // line 42
            echo "\t\t\t\t\t\t\t";
            if (($this->getAttribute($this->getAttribute($context["row"], "basic_information", [], "any", false, true), "active", [], "any", true, true) && ($this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "active", []) == 1))) {
                // line 43
                echo "\t\t\t\t\t\t\t\t";
                $context["active"] = 1;
                // line 44
                echo "\t\t\t\t\t\t\t";
            } else {
                // line 45
                echo "\t\t\t\t\t\t\t\t";
                $context["active"] = 0;
                // line 46
                echo "\t\t\t\t\t\t\t";
            }
            // line 47
            echo "\t\t\t\t\t\t\t";
            if (((($context["is_deleted"] ?? null) == 1) || (($context["active"] ?? null) == 0))) {
                // line 48
                echo "\t\t\t\t\t\t\t\t";
                $context["is_deleted_or_inactive"] = 1;
                // line 49
                echo "\t\t\t\t\t\t\t";
            } else {
                // line 50
                echo "\t\t\t\t\t\t\t\t";
                $context["is_deleted_or_inactive"] = 0;
                // line 51
                echo "\t\t\t\t\t\t\t";
            }
            // line 52
            echo "\t\t\t\t\t\t\t
\t\t";
            // line 53
            $this->loadTemplate((((($context["ob_project_instance_theme_path"] ?? null) . ":") . ($context["ob_project_instance_theme"] ?? null)) . ":CompareProduct/recentCompareProductRowLayout.html.twig"), "OfficeBrainCompareProductBundle:CompareProduct:recentCompareProductList.html.twig", 53)->display($context);
            // line 54
            echo "\t";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
    }

    // line 56
    public function block_recent_compare_product_js($context, array $blocks = [])
    {
        // line 57
        echo "\t";
    }

    // line 64
    public function block_recent_compare_product_not_found($context, array $blocks = [])
    {
        // line 65
        echo "\t";
        $this->loadTemplate((((($context["ob_project_instance_theme_path"] ?? null) . ":") . ($context["ob_project_instance_theme"] ?? null)) . ":CompareProduct/recentCompareProductNotFoundLayout.html.twig"), "OfficeBrainCompareProductBundle:CompareProduct:recentCompareProductList.html.twig", 65)->display($context);
    }

    public function getTemplateName()
    {
        return "OfficeBrainCompareProductBundle:CompareProduct:recentCompareProductList.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  223 => 65,  220 => 64,  216 => 57,  213 => 56,  197 => 54,  195 => 53,  192 => 52,  189 => 51,  186 => 50,  183 => 49,  180 => 48,  177 => 47,  174 => 46,  171 => 45,  168 => 44,  165 => 43,  162 => 42,  159 => 41,  156 => 40,  153 => 39,  150 => 38,  148 => 37,  143 => 36,  140 => 35,  137 => 34,  134 => 33,  131 => 32,  129 => 31,  126 => 30,  123 => 29,  120 => 28,  117 => 27,  114 => 26,  112 => 25,  107 => 24,  104 => 23,  101 => 22,  98 => 21,  95 => 20,  92 => 19,  89 => 18,  86 => 17,  83 => 16,  80 => 15,  77 => 14,  75 => 13,  72 => 12,  54 => 11,  52 => 10,  49 => 9,  45 => 7,  42 => 4,  39 => 2,  37 => 1,  31 => 7,);
    }

    /** @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("", "OfficeBrainCompareProductBundle:CompareProduct:recentCompareProductList.html.twig", "/var/www/html/src/OfficeBrain/Bundle/CompareProductBundle/Resources/views/CompareProduct/recentCompareProductList.html.twig");
    }
}
