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

/* OfficeBrainSearchBundle:Search:searchProductRow.html.twig */
class __TwigTemplate_1ce8691c8cbb8452831c211b2ffadb7fdc01a6c4d8d85eae4532a320acab25aa 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 (((($context["ob_project_user_type"] ?? null) == "guest") && ($this->getAttribute($this->getAttribute($this->getAttribute(($context["ob_project_transaction_configuration_rule"] ?? null), "wish_list", []), "guest_user", []), "status", []) == 1))) {
            // line 2
            echo "\t";
            $context["prefix"] = "";
        } elseif (((        // line 3
($context["ob_project_user_type"] ?? null) == "registered") && ($this->getAttribute($this->getAttribute($this->getAttribute(($context["ob_project_transaction_configuration_rule"] ?? null), "wish_list", []), "registered_user", []), "status", []) == 1))) {
            // line 4
            echo "\t";
            $context["prefix"] = "coded_";
        }
        // line 6
        $context["currentCountry"] = $this->env->getExtension('OfficeBrain\Bundle\CoreBundle\TwigExtension\Extension')->currentCounty($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "getLocale", [], "method"));
        // line 7
        echo "   
";
        // line 8
        $context["pricePrefix"] = ("us_" . ($context["prefix"] ?? null));
        // line 9
        $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 10
            echo "    ";
            if ((($this->getAttribute($context["row"], "ca_min_price", [], "any", true, true) && ($this->getAttribute($context["row"], "ca_min_price", []) != null)) && (($context["currentCountry"] ?? null) == "ca"))) {
                echo "   
    \t";
                // line 11
                $context["pricePrefix"] = ("ca_" . ($context["prefix"] ?? null));
                // line 12
                echo "    ";
            }
            // line 13
            echo "    ";
            if ((($this->getAttribute($context["row"], "us_min_price", [], "any", true, true) && ($this->getAttribute($context["row"], "us_min_price", []) != null)) && (($context["currentCountry"] ?? null) == "us"))) {
                // line 14
                echo "    \t";
                $context["pricePrefix"] = ("us_" . ($context["prefix"] ?? null));
                // line 15
                echo "    ";
            }
            // line 16
            echo "      
\t";
            // line 17
            $context["product_supplier_id"] = (($this->getAttribute($context["row"], "supplier_id", [], "any", true, true)) ? ($this->getAttribute($context["row"], "supplier_id", [])) : ((($this->getAttribute($context["row"], "supplier", [], "any", true, true)) ? ($this->getAttribute($this->getAttribute($context["row"], "supplier", []), "supplier_id", [])) : (null))));
            // line 18
            echo "\t";
            $context["product_supplier_name"] = (($this->getAttribute($context["row"], "supplier", [], "any", true, true)) ? ($this->getAttribute($context["row"], "supplier", [])) : (null));
            // line 19
            echo "\t";
            $context["product_id"] = $this->getAttribute($context["row"], "product_id", []);
            echo "\t
\t";
            // line 20
            $context["product_rating"] = (($this->getAttribute($context["row"], "rating", [], "any", true, true)) ? ($this->getAttribute($context["row"], "rating", [])) : (""));
            echo "\t
\t";
            // line 21
            $context["product_line_name"] = (($this->getAttribute($context["row"], "line_name", [], "any", true, true)) ? ($this->getAttribute($context["row"], "line_name", [])) : (""));
            // line 22
            echo "\t";
            $context["price_unit"] = (($this->getAttribute($context["row"], "price_unit", [], "any", true, true)) ? ($this->getAttribute($context["row"], "price_unit", [])) : (""));
            echo "\t\t
\t";
            // line 23
            ob_start(function () { return ''; });
            // line 24
            echo "\t\t";
            if ($this->getAttribute($context["row"], "custom_tag_style_ss", [], "any", true, true)) {
                // line 25
                echo "\t\t\t";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["row"], "custom_tag_style_ss", []));
                $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["flag_public"]) {
                    // line 26
                    echo "\t\t\t\t";
                    $this->loadTemplate(((($this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "get", [0 => "project_setting"], "method"), "instance_theme_path", []) . ":") . ($context["ob_project_instance_theme"] ?? null)) . ":BaseUIElements/tagBox.html.twig"), "OfficeBrainSearchBundle:Search:searchProductRow.html.twig", 26)->display(twig_array_merge($context, ["tag" => $context["flag_public"]]));
                    // line 27
                    echo "\t\t\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['flag_public'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 28
                echo "\t\t";
            }
            // line 29
            echo "\t";
            $context["product_flag"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
            // line 30
            echo "\t";
            $context["product_slug"] = (($this->getAttribute($context["row"], "slug", [], "any", true, true)) ? ($this->getAttribute($context["row"], "slug", [])) : ((($this->getAttribute($this->getAttribute($context["row"], "basic_information", [], "any", false, true), "slug", [], "any", true, true)) ? ($this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "slug", [])) : (null))));
            // line 31
            echo "\t
\t";
            // line 32
            if ($this->getAttribute($context["row"], "variation_image_final", [], "any", true, true)) {
                // line 33
                echo "        ";
                $context["product_image_url"] = $this->getAttribute($context["row"], "variation_image_final", []);
                // line 34
                echo "        ";
                $context["product_thumb_image_url"] = $this->getAttribute($context["row"], "variation_image_final", []);
                // line 35
                echo "\t";
            } elseif (((isset($context["attr_value_id"]) || array_key_exists("attr_value_id", $context)) && (($context["attr_value_id"] ?? null) != ""))) {
                // line 36
                echo "\t\t";
                if (($this->env->getExtension('OfficeBrain\Bundle\CoreBundle\TwigExtension\Extension')->productImageUrl(($context["attr_value_id"] ?? null), $this->getAttribute($context["row"], "variation_image_path_txt", []), $this->getAttribute($context["row"], "variation_image_id_ss", [])) != "")) {
                    // line 37
                    echo "\t\t\t";
                    $context["product_image_url"] = $this->env->getExtension('OfficeBrain\Bundle\CoreBundle\TwigExtension\Extension')->productImageUrl(($context["attr_value_id"] ?? null), $this->getAttribute($context["row"], "variation_image_path_txt", []), $this->getAttribute($context["row"], "variation_image_id_ss", []));
                    // line 38
                    echo "\t\t\t";
                    $context["product_thumb_image_url"] = $this->env->getExtension('OfficeBrain\Bundle\CoreBundle\TwigExtension\Extension')->productThumbImageUrl(($context["attr_value_id"] ?? null), $this->getAttribute($context["row"], "variation_image_path_txt", []), $this->getAttribute($context["row"], "variation_image_id_ss", []));
                    // line 39
                    echo "\t\t";
                } else {
                    // line 40
                    echo "\t\t\t";
                    $context["product_image_url"] = (($this->getAttribute($context["row"], "image_path", [], "any", true, true)) ? ($this->getAttribute($context["row"], "image_path", [])) : ((($this->getAttribute($this->getAttribute($context["row"], "basic_information", [], "any", false, true), "default_image_url", [], "any", true, true)) ? ($this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "default_image_url", [])) : (""))));
                    // line 41
                    echo "\t\t\t";
                    $context["product_thumb_image_url"] = (($this->getAttribute($context["row"], "image_thumb_path", [], "any", true, true)) ? ($this->getAttribute($context["row"], "image_thumb_path", [])) : ((($this->getAttribute($this->getAttribute($context["row"], "basic_information", [], "any", false, true), "default_image_url", [], "any", true, true)) ? ($this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "default_image_url", [])) : (""))));
                    // line 42
                    echo "\t\t";
                }
                echo "\t
\t";
            } elseif (($this->getAttribute(            // line 43
$context["row"], "color_search_image", [], "any", true, true) && ($this->getAttribute($context["row"], "color_search_image", []) != ""))) {
                // line 44
                echo "\t\t";
                $context["product_image_url"] = (($context["product_image_base_url"] ?? null) . $this->getAttribute($context["row"], "color_search_image", []));
                // line 45
                echo "\t\t";
                $context["product_thumb_image_url"] = (($this->getAttribute($context["row"], "image_thumb_path", [], "any", true, true)) ? ($this->getAttribute($context["row"], "image_thumb_path", [])) : ((($this->getAttribute($this->getAttribute($context["row"], "basic_information", [], "any", false, true), "default_image_thumb_url", [], "any", true, true)) ? ($this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "default_image_thumb_url", [])) : (""))));
                // line 46
                echo "\t";
            } else {
                // line 47
                echo "\t\t";
                $context["product_image_url"] = (($this->getAttribute($context["row"], "image_path", [], "any", true, true)) ? ($this->getAttribute($context["row"], "image_path", [])) : ((($this->getAttribute($this->getAttribute($context["row"], "basic_information", [], "any", false, true), "default_image_url", [], "any", true, true)) ? ($this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "default_image_url", [])) : (""))));
                // line 48
                echo "\t\t";
                $context["product_thumb_image_url"] = (($this->getAttribute($context["row"], "image_thumb_path", [], "any", true, true)) ? ($this->getAttribute($context["row"], "image_thumb_path", [])) : ((($this->getAttribute($this->getAttribute($context["row"], "basic_information", [], "any", false, true), "default_image_thumb_url", [], "any", true, true)) ? ($this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "default_image_thumb_url", [])) : (""))));
                // line 49
                echo "\t";
            }
            echo "\t
\t
\t";
            // line 51
            $context["product_image_url"] = (($this->getAttribute($context["row"], "image_path", [], "any", true, true)) ? ($this->getAttribute($context["row"], "image_path", [])) : (""));
            echo "\t
\t";
            // line 52
            $context["product_title"] = (($this->getAttribute($context["row"], "title", [], "any", true, true)) ? ($this->getAttribute($context["row"], "title", [])) : ((($this->getAttribute($this->getAttribute($context["row"], "basic_information", [], "any", false, true), "title", [], "any", true, true)) ? ($this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "title", [])) : (null))));
            // line 53
            echo "\t";
            $context["product_sku"] = (($this->getAttribute($context["row"], "sku", [], "any", true, true)) ? ($this->getAttribute($context["row"], "sku", [])) : ((($this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "sku_number", [])) ? ($this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "sku_number", [])) : (null))));
            // line 54
            echo "\t";
            $context["product_currency"] = (($this->getAttribute($context["row"], "currency_name", [], "any", true, true)) ? ($this->getAttribute($context["row"], "currency_name", [])) : ((($this->getAttribute($this->getAttribute($context["row"], "currency", [], "any", false, true), "name", [], "any", true, true)) ? ($this->getAttribute($this->getAttribute($context["row"], "currency", []), "name", [])) : (""))));
            // line 55
            echo "\t";
            $context["product_min_price"] = "null";
            // line 56
            echo "\t";
            $context["color_attributes"] = (($this->getAttribute($context["row"], "variation_image_id_ss", [], "any", true, true)) ? ($this->getAttribute($context["row"], "variation_image_id_ss", [])) : (null));
            // line 57
            echo "\t";
            $context["color_mapping"] = (($this->getAttribute($context["row"], "color_mapping", [], "any", true, true)) ? ($this->getAttribute($context["row"], "color_mapping", [])) : (null));
            // line 58
            echo "\t";
            $context["color_ss"] = (($this->getAttribute($context["row"], "color_ss", [], "any", true, true)) ? ($this->getAttribute($context["row"], "color_ss", [])) : (null));
            // line 59
            echo "\t";
            if (($this->getAttribute($context["row"], "attribute_ss", [], "any", true, true) &&  !twig_test_empty($this->getAttribute($context["row"], "attribute_ss", [])))) {
                // line 60
                echo "\t\t";
                $context["all_barrel_color"] = [];
                // line 61
                echo "    \t";
                $context["barrel_color"] = [];
                // line 62
                echo "    \t";
                $context["all_trim_color"] = [];
                // line 63
                echo "    \t";
                $context["trim_color"] = [];
                // line 64
                echo "    \t";
                $context["unique_color"] = [];
                // line 65
                echo "    \t
        ";
                // line 66
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["row"], "attribute_ss", []));
                $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["colorName"]) {
                    // line 67
                    echo "            ";
                    $context["colorDivide"] = twig_split_filter($this->env, $context["colorName"], ":");
                    echo " 
            
            ";
                    // line 69
                    if ($this->getAttribute(($context["colorDivide"] ?? null), 0, [], "array", true, true)) {
                        // line 70
                        echo "                ";
                        if (($this->getAttribute(($context["colorDivide"] ?? null), 0, [], "array") == "Barrel Colors")) {
                            // line 71
                            echo "                    ";
                            $context["all_barrel_color"] = twig_array_merge(($context["all_barrel_color"] ?? null), [$this->getAttribute($context["loop"], "index", []) => twig_lower_filter($this->env, $this->getAttribute(($context["colorDivide"] ?? null), 1, [], "array"))]);
                            // line 72
                            echo "                ";
                        }
                        // line 73
                        echo "                ";
                        if (($this->getAttribute(($context["colorDivide"] ?? null), 0, [], "array") == "Trim Colors")) {
                            // line 74
                            echo "                    ";
                            $context["all_trim_color"] = twig_array_merge(($context["all_trim_color"] ?? null), [$this->getAttribute($context["loop"], "index", []) => twig_lower_filter($this->env, $this->getAttribute(($context["colorDivide"] ?? null), 1, [], "array"))]);
                            // line 75
                            echo "                ";
                        }
                        // line 76
                        echo "                ";
                        if (($this->getAttribute(($context["colorDivide"] ?? null), 0, [], "array") == "Colors")) {
                            // line 77
                            echo "                    ";
                            $context["unique_color"] = twig_array_merge(($context["unique_color"] ?? null), [$this->getAttribute($context["loop"], "index", []) => twig_lower_filter($this->env, $this->getAttribute(($context["colorDivide"] ?? null), 1, [], "array"))]);
                            // line 78
                            echo "                ";
                        }
                        // line 79
                        echo "            ";
                    }
                    // line 80
                    echo "        ";
                    ++$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['colorName'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 81
                echo "        
        ";
                // line 82
                if ( !twig_test_empty(($context["all_barrel_color"] ?? null))) {
                    // line 83
                    echo "            ";
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable(($context["all_barrel_color"] ?? null));
                    foreach ($context['_seq'] as $context["i"] => $context["b"]) {
                        // line 84
                        echo "            \t";
                        if (twig_in_filter($context["b"], ($context["unique_color"] ?? null))) {
                            // line 85
                            echo "            \t\t";
                            $context["barrel_color"] = twig_array_merge(($context["barrel_color"] ?? null), [$context["i"] => $context["b"]]);
                            // line 86
                            echo "            \t";
                        }
                        // line 87
                        echo "            ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['i'], $context['b'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 88
                    echo "        ";
                }
                // line 89
                echo "        
        ";
                // line 90
                if ( !twig_test_empty(($context["all_trim_color"] ?? null))) {
                    // line 91
                    echo "            ";
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable(($context["all_trim_color"] ?? null));
                    foreach ($context['_seq'] as $context["i"] => $context["t"]) {
                        // line 92
                        echo "            \t";
                        if (twig_in_filter($context["t"], ($context["unique_color"] ?? null))) {
                            // line 93
                            echo "            \t\t";
                            $context["trim_color"] = twig_array_merge(($context["trim_color"] ?? null), [$context["i"] => $context["t"]]);
                            // line 94
                            echo "            \t";
                        }
                        // line 95
                        echo "            ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['i'], $context['t'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 96
                    echo "        ";
                }
                // line 97
                echo "    ";
            }
            // line 98
            echo "        
\t";
            // line 99
            $context["category"] = [];
            // line 100
            echo "\t";
            if ($this->getAttribute($context["row"], "category_name_id_ss", [], "any", true, true)) {
                // line 101
                echo "            ";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["row"], "category_name_id_ss", []));
                $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["cat"]) {
                    // line 102
                    echo "                ";
                    $context["cat_data"] = twig_split_filter($this->env, $context["cat"], "|");
                    echo " 
               ";
                    // line 103
                    $context["category"] = twig_array_merge(($context["category"] ?? null), [$this->getAttribute($context["loop"], "index", []) => $this->getAttribute(($context["cat_data"] ?? null), 0, [], "array")]);
                    // line 104
                    echo "            ";
                    ++$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['cat'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 105
                echo "        ";
            }
            // line 106
            echo "\t
";
            // line 107
            if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", [], "any", false, true), "query", [], "any", false, true), "get", [0 => "quantity"], "method", true, true) && ($this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "query", []), "get", [0 => "quantity"], "method") > 0))) {
                // line 108
                echo "\t";
                $context["break"] = 0;
                // line 109
                echo "\t\t";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable(range(1, 15));
                foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                    // line 110
                    echo "\t\t\t";
                    if (((($context["ob_project_user_service_group_id"] ?? null) > 0) && $this->getAttribute($context["row"], (((("min_qty" . "_") . ($context["ob_project_user_service_group_id"] ?? null)) . "_") . $context["i"]), [], "array", true, true))) {
                        // line 111
                        echo "\t\t\t\t";
                        if (((($this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "query", []), "get", [0 => "quantity"], "method") >= $this->getAttribute($context["row"], (((("min_qty" . "_") . ($context["ob_project_user_service_group_id"] ?? null)) . "_") . $context["i"]), [], "array")) && ($this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "query", []), "get", [0 => "quantity"], "method") <= $this->getAttribute($context["row"], (((("max_qty" . "_") . ($context["ob_project_user_service_group_id"] ?? null)) . "_") . $context["i"]), [], "array"))) && ($this->getAttribute($context["row"], (((((($context["prefix"] ?? null) . "price") . "_") . ($context["ob_project_user_service_group_id"] ?? null)) . "_") . $context["i"]), [], "array") > 0))) {
                            // line 112
                            echo "\t\t\t\t\t";
                            $context["product_min_price"] = $this->getAttribute($context["row"], (((((($context["prefix"] ?? null) . "price") . "_") . ($context["ob_project_user_service_group_id"] ?? null)) . "_") . $context["i"]), [], "array");
                            // line 113
                            echo "\t\t\t\t";
                        }
                        // line 114
                        echo "\t\t\t";
                    } elseif ($this->getAttribute($context["row"], (("min_qty" . "_") . $context["i"]), [], "array", true, true)) {
                        // line 115
                        echo "\t\t\t";
                        if (((($this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "query", []), "get", [0 => "quantity"], "method") >= $this->getAttribute($context["row"], (("min_qty" . "_") . $context["i"]), [], "array")) && ($this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "query", []), "get", [0 => "quantity"], "method") <= $this->getAttribute($context["row"], (("max_qty" . "_") . $context["i"]), [], "array"))) && ($this->getAttribute($context["row"], (((($context["prefix"] ?? null) . "price") . "_") . $context["i"]), [], "array") > 0))) {
                            // line 116
                            echo "\t\t\t\t\t";
                            $context["product_min_price"] = $this->getAttribute($context["row"], (((($context["prefix"] ?? null) . "price") . "_") . $context["i"]), [], "array");
                            // line 117
                            echo "\t\t\t\t";
                        }
                        // line 122
                        echo "\t\t\t";
                    }
                    echo "\t
\t\t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
            } else {
                // line 125
                echo "\t";
                if ((((($context["ob_project_user_service_group_id"] ?? null) > 0) && $this->getAttribute($context["row"], (((($context["prefix"] ?? null) . "min_price") . "_") . ($context["ob_project_user_service_group_id"] ?? null)), [], "array", true, true)) && false)) {
                    // line 126
                    echo "  \t     \t";
                    $context["product_min_price"] = $this->getAttribute($context["row"], (((($context["prefix"] ?? null) . "min_price") . "_") . ($context["ob_project_user_service_group_id"] ?? null)), [], "array");
                    // line 127
                    echo "\t";
                } elseif (((($context["ob_project_user_service_group_id"] ?? null) > 0) &&  !$this->getAttribute($context["row"], (((($context["prefix"] ?? null) . "min_price") . "_") . ($context["ob_project_user_service_group_id"] ?? null)), [], "array", true, true))) {
                    // line 128
                    echo "        ";
                    $context["product_min_price"] = (($this->getAttribute($context["row"], (($context["pricePrefix"] ?? null) . "min_price"), [], "array", true, true)) ? ($this->getAttribute($context["row"], (($context["pricePrefix"] ?? null) . "min_price"), [], "array")) : (""));
                    // line 129
                    echo "\t";
                } else {
                    // line 131
                    echo "        ";
                    $context["product_min_price"] = (($this->getAttribute($context["row"], (($context["pricePrefix"] ?? null) . "min_price"), [], "array", true, true)) ? ($this->getAttribute($context["row"], (($context["pricePrefix"] ?? null) . "min_price"), [], "array")) : (""));
                    // line 132
                    echo "\t";
                }
            }
            // line 134
            echo "
\t";
            // line 135
            $context["product_min_price"] = (($this->getAttribute($context["row"], "min_price", [], "any", true, true)) ? ($this->getAttribute($context["row"], "min_price", [])) : (""));
            // line 136
            echo "   \t";
            if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", [], "any", false, true), "query", [], "any", false, true), "get", [0 => "quantity"], "method", true, true) && ($this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "query", []), "get", [0 => "quantity"], "method") != null))) {
                // line 137
                echo "\t\t";
                $context["min_quantity"] = $this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "query", []), "get", [0 => "quantity"], "method");
                // line 138
                echo "\t";
            } elseif (($this->getAttribute($context["row"], "min_qty_1", [], "any", true, true) && ($this->getAttribute($context["row"], "min_qty_1", []) != ""))) {
                // line 139
                echo "\t\t";
                $context["min_quantity"] = $this->getAttribute($context["row"], "min_qty_1", []);
                // line 140
                echo "\t";
            } else {
                // line 141
                echo "\t\t";
                $context["min_quantity"] = "";
                // line 142
                echo "\t";
            }
            // line 144
            echo "\t";
            $context["product_description"] = (($this->getAttribute($context["row"], "description", [], "any", true, true)) ? ($this->getAttribute($context["row"], "description", [])) : (""));
            // line 145
            echo "\t";
            $context["product_regular_variations_charges"] = $context["row"];
            // line 146
            echo "\t";
            $context["product_currency_symbol"] = (($this->getAttribute($context["row"], "price_currency", [], "any", true, true)) ? ($this->getAttribute($context["row"], "price_currency", [])) : ((($this->getAttribute($this->getAttribute($context["row"], "currency", [], "any", false, true), "symbol", [], "any", true, true)) ? ($this->getAttribute($this->getAttribute($context["row"], "currency", []), "symbol", [])) : (null))));
            // line 147
            echo "\t";
            $context["product_currency_currency"] = (($this->getAttribute($context["row"], "price_currency", [], "any", true, true)) ? ($this->getAttribute($context["row"], "price_currency", [])) : ((($this->getAttribute($this->getAttribute($context["row"], "currency", [], "any", false, true), "currency", [], "any", true, true)) ? ($this->getAttribute($this->getAttribute($context["row"], "currency", []), "currency", [])) : (null))));
            // line 148
            echo "\t";
            $context["call_for_price"] = (($this->getAttribute($context["row"], "call_for_price", [], "any", true, true)) ? ($this->getAttribute($context["row"], "call_for_price", [])) : ("no"));
            // line 149
            echo "\t";
            $context["custom_tag_style"] = (($this->getAttribute($context["row"], "custom_tag_style_ss", [], "any", true, true)) ? ($this->getAttribute($context["row"], "custom_tag_style_ss", [])) : (""));
            // line 150
            echo "\t";
            $context["product_min_price_code"] = "";
            // line 151
            echo "\t
\t";
            // line 152
            $context["price_type"] = ((($this->getAttribute($context["row"], "call_for_price", [], "any", true, true) && ($this->getAttribute($context["row"], "call_for_price", []) == "yes"))) ? ("call_for_price") : (""));
            // line 153
            echo "
\t";
            // line 154
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(range(1, 15));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                // line 155
                echo "\t\t";
                if (((($context["ob_project_user_service_group_id"] ?? null) > 0) && $this->getAttribute($context["row"], (((("min_qty" . "_") . ($context["ob_project_user_service_group_id"] ?? null)) . "_") . $context["i"]), [], "array", true, true))) {
                    // line 156
                    echo "\t\t\t";
                    if (((($context["product_min_price"] ?? null) == $this->getAttribute($context["row"], (((((($context["prefix"] ?? null) . "price") . "_") . ($context["ob_project_user_service_group_id"] ?? null)) . "_") . $context["i"]), [], "array")) && $this->getAttribute($context["row"], (((("code" . "_") . ($context["ob_project_user_service_group_id"] ?? null)) . "_") . $context["i"]), [], "array", true, true))) {
                        // line 157
                        echo "\t\t\t\t";
                        $context["product_min_price_code"] = $this->getAttribute($context["row"], (((("code" . "_") . ($context["ob_project_user_service_group_id"] ?? null)) . "_") . $context["i"]), [], "array");
                        // line 158
                        echo "\t\t\t\t";
                    }
                    // line 159
                    echo "\t\t\t";
                } elseif ($this->getAttribute($context["row"], (("min_qty" . "_") . $context["i"]), [], "array", true, true)) {
                    // line 160
                    echo "\t\t\t";
                    if (((($context["product_min_price"] ?? null) == $this->getAttribute($context["row"], (((($context["prefix"] ?? null) . "price") . "_") . $context["i"]), [], "array")) && $this->getAttribute($context["row"], (("code" . "_") . $context["i"]), [], "array", true, true))) {
                        // line 161
                        echo "\t\t\t\t";
                        $context["product_min_price_code"] = twig_lower_filter($this->env, $this->getAttribute($context["row"], (("code" . "_") . $context["i"]), [], "array"));
                        // line 162
                        echo "\t\t\t";
                    }
                    // line 163
                    echo "\t\t";
                }
                echo "\t
\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 165
            echo "
\t";
            // line 166
            $this->loadTemplate((((($context["ob_project_instance_theme_path"] ?? null) . ":") . ($context["ob_project_instance_theme"] ?? null)) . ":Search/searchProductBoxLayout.html.twig"), "OfficeBrainSearchBundle:Search:searchProductRow.html.twig", 166)->display(twig_array_merge($context, ["is_solr_data" => true, "from_model" => "1", "prefix" => ($context["prefix"] ?? null)]));
            // line 167
            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;
    }

    public function getTemplateName()
    {
        return "OfficeBrainSearchBundle:Search:searchProductRow.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  606 => 167,  604 => 166,  601 => 165,  592 => 163,  589 => 162,  586 => 161,  583 => 160,  580 => 159,  577 => 158,  574 => 157,  571 => 156,  568 => 155,  564 => 154,  561 => 153,  559 => 152,  556 => 151,  553 => 150,  550 => 149,  547 => 148,  544 => 147,  541 => 146,  538 => 145,  535 => 144,  532 => 142,  529 => 141,  526 => 140,  523 => 139,  520 => 138,  517 => 137,  514 => 136,  512 => 135,  509 => 134,  505 => 132,  502 => 131,  499 => 129,  496 => 128,  493 => 127,  490 => 126,  487 => 125,  477 => 122,  474 => 117,  471 => 116,  468 => 115,  465 => 114,  462 => 113,  459 => 112,  456 => 111,  453 => 110,  448 => 109,  445 => 108,  443 => 107,  440 => 106,  437 => 105,  423 => 104,  421 => 103,  416 => 102,  398 => 101,  395 => 100,  393 => 99,  390 => 98,  387 => 97,  384 => 96,  378 => 95,  375 => 94,  372 => 93,  369 => 92,  364 => 91,  362 => 90,  359 => 89,  356 => 88,  350 => 87,  347 => 86,  344 => 85,  341 => 84,  336 => 83,  334 => 82,  331 => 81,  317 => 80,  314 => 79,  311 => 78,  308 => 77,  305 => 76,  302 => 75,  299 => 74,  296 => 73,  293 => 72,  290 => 71,  287 => 70,  285 => 69,  279 => 67,  262 => 66,  259 => 65,  256 => 64,  253 => 63,  250 => 62,  247 => 61,  244 => 60,  241 => 59,  238 => 58,  235 => 57,  232 => 56,  229 => 55,  226 => 54,  223 => 53,  221 => 52,  217 => 51,  211 => 49,  208 => 48,  205 => 47,  202 => 46,  199 => 45,  196 => 44,  194 => 43,  189 => 42,  186 => 41,  183 => 40,  180 => 39,  177 => 38,  174 => 37,  171 => 36,  168 => 35,  165 => 34,  162 => 33,  160 => 32,  157 => 31,  154 => 30,  151 => 29,  148 => 28,  134 => 27,  131 => 26,  113 => 25,  110 => 24,  108 => 23,  103 => 22,  101 => 21,  97 => 20,  92 => 19,  89 => 18,  87 => 17,  84 => 16,  81 => 15,  78 => 14,  75 => 13,  72 => 12,  70 => 11,  65 => 10,  48 => 9,  46 => 8,  43 => 7,  41 => 6,  37 => 4,  35 => 3,  32 => 2,  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("", "OfficeBrainSearchBundle:Search:searchProductRow.html.twig", "/var/www/html/src/OfficeBrain/Bundle/SearchBundle/Resources/views/Search/searchProductRow.html.twig");
    }
}
