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

/* OfficeBrainOrderBundle:Order:recentCartList.html.twig */
class __TwigTemplate_f5b5d4176a86884a297d19f5a83d7cf926496704b9a91415d07de40461386fd6 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->blocks = [
            'recent_cart_list' => [$this, 'block_recent_cart_list'],
            'recent_cart_list_more_button' => [$this, 'block_recent_cart_list_more_button'],
            'recent_cart_list_button' => [$this, 'block_recent_cart_list_button'],
            'recent_cart_list_not_found' => [$this, 'block_recent_cart_list_not_found'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 7
        return $this->loadTemplate(($context["recent_cart_list_layout"] ?? null), "OfficeBrainOrderBundle:Order:recentCartList.html.twig", 7);
    }

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

    // line 9
    public function block_recent_cart_list($context, array $blocks = [])
    {
        // line 10
        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["cart_id"] => $context["row"]) {
            // line 11
            echo "\t\t";
            $context["cart_id"] = $context["cart_id"];
            // 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";
            $context["product_regular_price"] = $this->getAttribute($context["row"], "regular_price", []);
            // line 21
            echo "\t\t";
            $context["product_unit_price"] = $this->getAttribute($context["row"], "unit_price", []);
            // line 22
            echo "\t\t";
            $context["product_supplier_id"] = $this->getAttribute($this->getAttribute($context["row"], "supplier", []), "supplier_id", []);
            // line 23
            echo "\t\t";
            $context["product_minimum_quantity_range"] = $this->getAttribute($context["row"], "minimum_quantity_range", []);
            echo "\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t";
            // line 25
            if (($this->getAttribute($context["row"], "is_deleted", [], "any", true, true) && ($this->getAttribute($context["row"], "is_deleted", []) == 1))) {
                // line 26
                echo "\t\t\t\t\t\t\t\t";
                $context["is_deleted"] = 1;
                // line 27
                echo "\t\t\t\t\t\t\t";
            } else {
                // line 28
                echo "\t\t\t\t\t\t\t\t";
                $context["is_deleted"] = 0;
                // line 29
                echo "\t\t\t\t\t\t\t";
            }
            // line 30
            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 31
                echo "\t\t\t\t\t\t\t\t";
                $context["active"] = 1;
                // line 32
                echo "\t\t\t\t\t\t\t";
            } else {
                // line 33
                echo "\t\t\t\t\t\t\t\t";
                $context["active"] = 0;
                // line 34
                echo "\t\t\t\t\t\t\t";
            }
            // line 35
            echo "\t\t\t\t\t\t\t";
            if (((($context["is_deleted"] ?? null) == 1) || (($context["active"] ?? null) == 0))) {
                // line 36
                echo "\t\t\t\t\t\t\t\t";
                $context["is_deleted_or_inactive"] = 1;
                // line 37
                echo "\t\t\t\t\t\t\t";
            } else {
                // line 38
                echo "\t\t\t\t\t\t\t\t";
                $context["is_deleted_or_inactive"] = 0;
                // line 39
                echo "\t\t\t\t\t\t\t";
            }
            // line 40
            echo "\t\t\t\t\t\t\t
\t\t";
            // line 41
            $this->loadTemplate((((($context["ob_project_instance_theme_path"] ?? null) . ":") . ($context["ob_project_instance_theme"] ?? null)) . ":Cart/recentCartListRowLayout.html.twig"), "OfficeBrainOrderBundle:Order:recentCartList.html.twig", 41)->display($context);
            // line 42
            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['cart_id'], $context['row'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
    }

    // line 45
    public function block_recent_cart_list_more_button($context, array $blocks = [])
    {
        // line 46
        echo "\t";
        $this->loadTemplate((((($context["ob_project_instance_theme_path"] ?? null) . ":") . ($context["ob_project_instance_theme"] ?? null)) . ":Cart/recentCartListMoreButtonLayout.html.twig"), "OfficeBrainOrderBundle:Order:recentCartList.html.twig", 46)->display($context);
    }

    // line 49
    public function block_recent_cart_list_button($context, array $blocks = [])
    {
        // line 50
        echo "\t";
        $this->loadTemplate((((($context["ob_project_instance_theme_path"] ?? null) . ":") . ($context["ob_project_instance_theme"] ?? null)) . ":Cart/recentCartListButtonLayout.html.twig"), "OfficeBrainOrderBundle:Order:recentCartList.html.twig", 50)->display($context);
        echo "\t
";
    }

    // line 53
    public function block_recent_cart_list_not_found($context, array $blocks = [])
    {
        // line 54
        echo "\t";
        $this->loadTemplate((((($context["ob_project_instance_theme_path"] ?? null) . ":") . ($context["ob_project_instance_theme"] ?? null)) . ":Cart/recentCartListNotFoundLayout.html.twig"), "OfficeBrainOrderBundle:Order:recentCartList.html.twig", 54)->display($context);
    }

    public function getTemplateName()
    {
        return "OfficeBrainOrderBundle:Order:recentCartList.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  199 => 54,  196 => 53,  189 => 50,  186 => 49,  181 => 46,  178 => 45,  162 => 42,  160 => 41,  157 => 40,  154 => 39,  151 => 38,  148 => 37,  145 => 36,  142 => 35,  139 => 34,  136 => 33,  133 => 32,  130 => 31,  127 => 30,  124 => 29,  121 => 28,  118 => 27,  115 => 26,  113 => 25,  107 => 23,  104 => 22,  101 => 21,  98 => 20,  95 => 19,  92 => 18,  89 => 17,  86 => 16,  83 => 15,  80 => 14,  77 => 13,  74 => 12,  71 => 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("", "OfficeBrainOrderBundle:Order:recentCartList.html.twig", "/var/www/html/src/OfficeBrain/Bundle/OrderBundle/Resources/views/Order/recentCartList.html.twig");
    }
}
