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

/* OfficeBrainWishListBundle:WishList:recentWishList.html.twig */
class __TwigTemplate_454de8517d3b06d6ed7fc4547551e7367e8c2fd7a8b16c3800e84b2330b7e1e0 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->blocks = [
            'recent_wish_list' => [$this, 'block_recent_wish_list'],
            'recent_wish_list_more_button' => [$this, 'block_recent_wish_list_more_button'],
            'recent_wish_list_js' => [$this, 'block_recent_wish_list_js'],
            'recent_wish_list_not_found' => [$this, 'block_recent_wish_list_not_found'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 7
        return $this->loadTemplate(($context["recent_wish_list_layout"] ?? null), "OfficeBrainWishListBundle:WishList:recentWishList.html.twig", 7);
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        if ((($context["total_record"] ?? null) > 0)) {
            // line 2
            $context["recent_wish_list_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", [])) . ":WishList/recentWishListLayout.html.twig");
        } else {
            // line 4
            $context["recent_wish_list_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", [])) . ":WishList/recentWishListNotFoundLayout.html.twig");
        }
        // line 7
        $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
    }

    // line 9
    public function block_recent_wish_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";
            $context["product_id"] = $this->getAttribute($context["row"], "product_id", []);
            // line 13
            echo "\t\t";
            $context["culture_product_id"] = $this->getAttribute($context["row"], "culture_product_id", []);
            // line 14
            echo "\t\t";
            $context["product_slug"] = $this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "slug", []);
            // line 15
            echo "\t\t";
            $context["product_default_image_url"] = $this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "default_image_url", []);
            // line 16
            echo "\t\t";
            $context["default_image_thumb_url"] = $this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "default_image_thumb_url", []);
            // line 17
            echo "\t\t";
            $context["product_title"] = $this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "title", []);
            // line 18
            echo "\t\t";
            $context["product_sku"] = $this->getAttribute($this->getAttribute($context["row"], "basic_information", []), "sku_number", []);
            // line 19
            echo "\t\t";
            $context["product_currency_symbol"] = $this->getAttribute($this->getAttribute($context["row"], "currency", []), "symbol", []);
            // line 20
            echo "\t\t";
            // line 21
            echo "\t\t
\t\t";
            // line 22
            $context["product_minimum_quantity_range"] = $this->getAttribute($context["row"], "minimum_quantity_range", []);
            // line 23
            echo "\t\t";
            $context["product_supplier_id"] = $this->getAttribute($this->getAttribute($context["row"], "supplier", []), "supplier_id", []);
            // line 24
            echo "\t\t    ";
            $context["product_min_price"] = $this->getAttribute($context["row"], "min_price", []);
            // line 25
            echo "\t\t";
            if ((($this->getAttribute($context["row"], "ca_min_price", [], "any", true, true) && ($this->getAttribute($context["row"], "ca_min_price", []) != null)) && (($context["currentCountry"] ?? null) == "ca"))) {
                echo "   
             ";
                // line 26
                $context["product_min_price"] = $this->getAttribute($context["row"], "ca_min_price", []);
                // line 27
                echo "        ";
            }
            // line 28
            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 29
                echo "\t\t\t ";
                $context["product_min_price"] = $this->getAttribute($context["row"], "us_min_price", []);
                // line 30
                echo "        ";
            }
            // line 31
            echo "       
\t\t";
            // line 32
            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"), "OfficeBrainWishListBundle:WishList:recentWishList.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"), "OfficeBrainWishListBundle:WishList:recentWishList.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/addToCompareProductButton.html.twig"), "OfficeBrainWishListBundle:WishList:recentWishList.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)) . ":WishList/recentWishListRowLayout.html.twig"), "OfficeBrainWishListBundle:WishList:recentWishList.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 57
    public function block_recent_wish_list_more_button($context, array $blocks = [])
    {
        // line 58
        echo "\t";
        $context["remaing_wish_list"] = (($context["total_record"] ?? null) - $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["ob_project_transaction_configuration_rule"] ?? null), "wish_list", []), "inline_view", []), "option", []), "no_of_product", []));
        // line 59
        echo "\t";
        if ((($context["remaing_wish_list"] ?? null) > 0)) {
            // line 60
            echo "\t<a href=\"";
            echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getUrl("office_brain_wishlistbundle_wishlist_wishlist");
            echo "\" class=\"more-btn\"> ";
            echo twig_escape_filter($this->env, ($context["remaing_wish_list"] ?? null), "html", null, true);
            echo " ";
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("transaction.more_product_in_wish_list", [], "app"), "html", null, true);
            echo "</a>
\t<a href=\"";
            // line 61
            echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getUrl("office_brain_wishlistbundle_wishlist_wishlist");
            echo "\" class=\"fa fa-angle-right\"></a>
\t";
        }
    }

    // line 67
    public function block_recent_wish_list_js($context, array $blocks = [])
    {
        // line 68
        echo "\t";
    }

    // line 75
    public function block_recent_wish_list_not_found($context, array $blocks = [])
    {
        // line 76
        echo "\t";
        $this->loadTemplate((((($context["ob_project_instance_theme_path"] ?? null) . ":") . ($context["ob_project_instance_theme"] ?? null)) . ":WishList/recentWishListNotFoundLayout.html.twig"), "OfficeBrainWishListBundle:WishList:recentWishList.html.twig", 76)->display($context);
    }

    public function getTemplateName()
    {
        return "OfficeBrainWishListBundle:WishList:recentWishList.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  248 => 76,  245 => 75,  241 => 68,  238 => 67,  231 => 61,  222 => 60,  219 => 59,  216 => 58,  213 => 57,  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,  132 => 32,  129 => 31,  126 => 30,  123 => 29,  120 => 28,  117 => 27,  115 => 26,  110 => 25,  107 => 24,  104 => 23,  102 => 22,  99 => 21,  97 => 20,  94 => 19,  91 => 18,  88 => 17,  85 => 16,  82 => 15,  79 => 14,  76 => 13,  73 => 12,  55 => 11,  53 => 10,  50 => 9,  46 => 7,  43 => 4,  40 => 2,  38 => 1,  32 => 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("", "OfficeBrainWishListBundle:WishList:recentWishList.html.twig", "/var/www/html/src/OfficeBrain/Bundle/WishListBundle/Resources/views/WishList/recentWishList.html.twig");
    }
}
