<?php

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

/* extension/journal_3/catalog/view/template/checkout/cart_list_41.twig */
class __TwigTemplate_9dd8077418afe1053ad0de690c27ca16 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1
        if (($context["products"] ?? null)) {
            yield " ";
            if (($context["error_warning"] ?? null)) {
                // line 2
                yield "<div class=\"alert alert-danger alert-dismissible\">
  <i class=\"fa-solid fa-circle-exclamation\"></i> ";
                // line 3
                yield ($context["error_warning"] ?? null);
                yield " <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\"></button>
</div>
";
            }
            // line 5
            yield " ";
            if (($context["error_stock"] ?? null)) {
                // line 6
                yield "<div class=\"alert alert-danger alert-dismissible\">
  <i class=\"fa-solid fa-circle-exclamation\"></i> ";
                // line 7
                yield ($context["error_stock"] ?? null);
                yield " <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\"></button>
</div>
";
            }
            // line 9
            yield " ";
            if (($context["success"] ?? null)) {
                // line 10
                yield "<div class=\"alert alert-success alert-dismissible\">
  <i class=\"fa-solid fa-circle-check\"></i> ";
                // line 11
                yield ($context["success"] ?? null);
                yield " <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\"></button>
</div>
";
            }
            // line 13
            yield " ";
            if (($context["attention"] ?? null)) {
                // line 14
                yield "<div class=\"alert alert-info\">
  <i class=\"fa-solid fa-circle-info\"></i> ";
                // line 15
                yield ($context["attention"] ?? null);
                yield " <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\"></button>
</div>
";
            }
            // line 17
            yield " ";
            if ((CoreExtension::getAttribute($this->env, $this->source, ($context["journal3"] ?? null), "get", ["pageTitlePosition"], "method", false, false, false, 17) == "default")) {
                // line 18
                yield "<h1 class=\"title page-title ";
                yield CoreExtension::getAttribute($this->env, $this->source, ($context["journal3"] ?? null), "get", ["title_color_scheme"], "method", false, false, false, 18);
                yield "\">";
                yield ($context["heading_title"] ?? null);
                if (($context["weight"] ?? null)) {
                    yield "&nbsp;(";
                    yield ($context["weight"] ?? null);
                    yield ")";
                }
                yield "</h1>
";
            }
            // line 20
            yield "<div id=\"output-cart\" class=\"cart-table\">
  <div class=\"table-responsive\">
    <div class=\"row\">
      <div class=\"col-md-7\">
        <div class=\"table-custom\">
          ";
            // line 25
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["products"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
                // line 26
                yield "          <article class=\"d-flex flex-column mb-5\">
            <div class=\"d-flex flex-row\">
              ";
                // line 28
                if (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "thumb", [], "any", false, false, false, 28)) {
                    yield "<a href=\"";
                    yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "href", [], "any", false, false, false, 28);
                    yield "\" class=\"me-4\"
                ><img src=\"";
                    // line 29
                    yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "thumb", [], "any", false, false, false, 29);
                    yield "\" alt=\"";
                    yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 29);
                    yield "\" title=\"";
                    yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 29);
                    yield "\" class=\"img-thumbnail\" /></a
              >";
                }
                // line 31
                yield "              <div class=\"d-flex flex-nowrap flex-grow-1 flex-column\">
                <div class=\"d-flex\">
                  <div class=\"d-flex flex-column w-100\">
                    <div class=\"d-flex flex-row justify-content-between\">
                      <div>
                        <a href=\"";
                // line 36
                yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "href", [], "any", false, false, false, 36);
                yield "\" style=\"color: #000\" class=\"fw-bold\">";
                yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 36);
                yield "</a
                        >";
                // line 37
                if ( !CoreExtension::getAttribute($this->env, $this->source, $context["product"], "stock", [], "any", false, false, false, 37)) {
                    yield " <span class=\"text-danger\">***</span>";
                }
                // line 38
                yield "                      </div>
                      <a href=\"";
                // line 39
                yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "remove", [], "any", false, false, false, 39);
                yield "\" data-toggle=\"tooltip-hover\" title=\"";
                yield ($context["button_remove"] ?? null);
                yield "\" class=\"btn btn-danger btn-remove\"
                        ><i class=\"fa fa-times-circle\"></i
                      ></a>
                    </div>
                    <div class=\"d-flex flex-row justify-content-between\">
                      <div class=\"d-flex flex-column\">
                        <ul class=\"list-unstyled mb-0\">
                          <li>
                            <small> - ";
                // line 47
                yield ($context["text_model"] ?? null);
                yield ": ";
                yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "model", [], "any", false, false, false, 47);
                yield "</small>
                          </li>
                          ";
                // line 49
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "option", [], "any", false, false, false, 49));
                foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
                    // line 50
                    yield "                          <li>
                            <small> - ";
                    // line 51
                    yield CoreExtension::getAttribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 51);
                    yield ": ";
                    yield CoreExtension::getAttribute($this->env, $this->source, $context["option"], "value", [], "any", false, false, false, 51);
                    yield "</small>
                          </li>
                          ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_key'], $context['option'], $context['_parent']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 53
                yield " ";
                if (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "subscription", [], "any", false, false, false, 53)) {
                    // line 54
                    yield "                          <li>
                            <small> - ";
                    // line 55
                    yield ($context["text_subscription"] ?? null);
                    yield ": ";
                    yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "subscription", [], "any", false, false, false, 55);
                    yield "</small>
                          </li>
                          ";
                }
                // line 57
                yield " ";
                if (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "reward", [], "any", false, false, false, 57)) {
                    // line 58
                    yield "                          <li>
                            <small> - ";
                    // line 59
                    yield ($context["text_points"] ?? null);
                    yield ": ";
                    yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "reward", [], "any", false, false, false, 59);
                    yield "</small>
                          </li>
                          ";
                }
                // line 62
                yield "                        </ul>
                        <div class=\"fw-bold mt-2\" style=\"font-size: 16px\">
                          ";
                // line 64
                yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "price", [], "any", false, false, false, 64);
                yield "
                        </div>

                        ";
                // line 67
                if (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "minimum", [], "any", false, false, false, 67)) {
                    // line 68
                    yield "                        <small class=\"invalid-feedback d-block\">";
                    yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "minimum", [], "any", false, false, false, 68);
                    yield "</small>
                        ";
                }
                // line 70
                yield "                      </div>
                      <div class=\"d-flex flex-column align-items-end justify-content-end\">
                        <form method=\"post\" data-oc-target=\"#shopping-cart\">
                          <div class=\"input-group\">
                            <div class=\"stepper\">
                              <button aria-label=\"-\" class=\"fa fa-angle-down\" type=\"button\"></button>
                              <input
                                type=\"text\"
                                name=\"quantity\"
                                value=\"";
                // line 79
                yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "quantity", [], "any", false, false, false, 79);
                yield "\"
                                size=\"1\"
                                class=\"form-control";
                // line 81
                if (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "minimum", [], "any", false, false, false, 81)) {
                    yield " is-invalid";
                }
                yield "\"
                              />
                              <input type=\"hidden\" name=\"key\" value=\"";
                // line 83
                yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "cart_id", [], "any", false, false, false, 83);
                yield "\" />
                              <button aria-label=\"+\" class=\"fa fa-angle-up\" type=\"button\"></button>
                            </div>
                            <span class=\"input-group-btn\">
                              <button
                                type=\"submit\"
                                formaction=\"";
                // line 89
                yield ($context["edit"] ?? null);
                yield "\"
                                data-toggle=\"tooltip-hover\"
                                title=\"";
                // line 91
                yield ($context["button_update"] ?? null);
                yield "\"
                                class=\"btn btn-update\"
                              >
                                <i class=\"fa fa-refresh\"></i>
                              </button>
                            </span>
                          </div>
                        </form>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </article>
          ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['product'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 107
            yield "        </div>
      </div>
      <div class=\"col-md-1\"></div>
      <div class=\"col-md-4\">
        <div class=\"cart-bottom p-0\">
          <div class=\"panels-total\">
            ";
            // line 113
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["totals"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["total"]) {
                // line 114
                yield "            <div class=\"d-flex justify-content-between flex-row mb-5\">
              <strong>";
                // line 115
                yield CoreExtension::getAttribute($this->env, $this->source, $context["total"], "title", [], "any", false, false, false, 115);
                yield " </strong>
              <strong>";
                // line 116
                yield CoreExtension::getAttribute($this->env, $this->source, $context["total"], "text", [], "any", false, false, false, 116);
                yield "</strong>
            </div>

            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['total'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 119
            yield " ";
            if (($context["modules"] ?? null)) {
                // line 120
                yield "            <div class=\"panels-total\">
              ";
                // line 121
                if ((($context["modules"] ?? null) && CoreExtension::getAttribute($this->env, $this->source, ($context["journal3"] ?? null), "get", ["cartPanelsStatus"], "method", false, false, false, 121))) {
                    // line 122
                    yield "              <div class=\"cart-panels\">
                <h2 class=\"title\">";
                    // line 123
                    yield ($context["text_next"] ?? null);
                    yield "</h2>
                <p>";
                    // line 124
                    yield ($context["text_next_choice"] ?? null);
                    yield "</p>
                <div class=\"panel-group\" id=\"accordion\">
                  ";
                    // line 126
                    $context['_parent'] = $context;
                    $context['_seq'] = CoreExtension::ensureTraversable(($context["modules"] ?? null));
                    foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
                        // line 127
                        yield "                  ";
                        yield $context["module"];
                        yield "
                  ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_key'], $context['module'], $context['_parent']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 129
                    yield "                </div>
              </div>
              ";
                }
                // line 132
                yield "            </div>
            ";
            }
            // line 134
            yield "          </div>
          <div class=\"buttons row mt-0\">
            <div class=\"col pull-right text-end\">
              <a href=\"";
            // line 137
            yield ($context["checkout"] ?? null);
            yield "\" class=\"btn btn-primary\">";
            yield ($context["button_checkout"] ?? null);
            yield "</a>
            </div>
            <div class=\"col pull-left\">
              <a href=\"";
            // line 140
            yield ($context["continue"] ?? null);
            yield "\" class=\"btn btn-default\">";
            yield ($context["button_shopping"] ?? null);
            yield "</a>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

";
        } else {
            // line 149
            yield " ";
            if ((CoreExtension::getAttribute($this->env, $this->source, ($context["journal3"] ?? null), "get", ["pageTitlePosition"], "method", false, false, false, 149) == "default")) {
                // line 150
                yield "<h1 class=\"title page-title ";
                yield CoreExtension::getAttribute($this->env, $this->source, ($context["journal3"] ?? null), "get", ["title_color_scheme"], "method", false, false, false, 150);
                yield "\">";
                yield ($context["heading_title"] ?? null);
                if (($context["weight"] ?? null)) {
                    yield "&nbsp;(";
                    yield ($context["weight"] ?? null);
                    yield ")";
                }
                yield "</h1>
";
            }
            // line 152
            yield "<p>";
            yield ($context["text_no_results"] ?? null);
            yield "</p>
<div class=\"buttons\">
  <div class=\"text-end pull-right\">
    <a href=\"";
            // line 155
            yield ($context["continue"] ?? null);
            yield "\" class=\"btn btn-primary\">";
            yield ($context["button_continue"] ?? null);
            yield "</a>
  </div>
</div>
";
        }
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "extension/journal_3/catalog/view/template/checkout/cart_list_41.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  422 => 155,  415 => 152,  402 => 150,  399 => 149,  384 => 140,  376 => 137,  371 => 134,  367 => 132,  362 => 129,  353 => 127,  349 => 126,  344 => 124,  340 => 123,  337 => 122,  335 => 121,  332 => 120,  329 => 119,  319 => 116,  315 => 115,  312 => 114,  308 => 113,  300 => 107,  278 => 91,  273 => 89,  264 => 83,  257 => 81,  252 => 79,  241 => 70,  235 => 68,  233 => 67,  227 => 64,  223 => 62,  215 => 59,  212 => 58,  209 => 57,  201 => 55,  198 => 54,  195 => 53,  184 => 51,  181 => 50,  177 => 49,  170 => 47,  157 => 39,  154 => 38,  150 => 37,  144 => 36,  137 => 31,  128 => 29,  122 => 28,  118 => 26,  114 => 25,  107 => 20,  94 => 18,  91 => 17,  85 => 15,  82 => 14,  79 => 13,  73 => 11,  70 => 10,  67 => 9,  61 => 7,  58 => 6,  55 => 5,  49 => 3,  46 => 2,  42 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% if products %} {% if error_warning %}
<div class=\"alert alert-danger alert-dismissible\">
  <i class=\"fa-solid fa-circle-exclamation\"></i> {{ error_warning }} <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\"></button>
</div>
{% endif %} {% if error_stock %}
<div class=\"alert alert-danger alert-dismissible\">
  <i class=\"fa-solid fa-circle-exclamation\"></i> {{ error_stock }} <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\"></button>
</div>
{% endif %} {% if success %}
<div class=\"alert alert-success alert-dismissible\">
  <i class=\"fa-solid fa-circle-check\"></i> {{ success }} <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\"></button>
</div>
{% endif %} {% if attention %}
<div class=\"alert alert-info\">
  <i class=\"fa-solid fa-circle-info\"></i> {{ attention }} <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\"></button>
</div>
{% endif %} {% if journal3.get('pageTitlePosition') == 'default' %}
<h1 class=\"title page-title {{ journal3.get('title_color_scheme') }}\">{{ heading_title }}{% if weight %}&nbsp;({{ weight }}){% endif %}</h1>
{% endif %}
<div id=\"output-cart\" class=\"cart-table\">
  <div class=\"table-responsive\">
    <div class=\"row\">
      <div class=\"col-md-7\">
        <div class=\"table-custom\">
          {% for product in products %}
          <article class=\"d-flex flex-column mb-5\">
            <div class=\"d-flex flex-row\">
              {% if product.thumb %}<a href=\"{{ product.href }}\" class=\"me-4\"
                ><img src=\"{{ product.thumb }}\" alt=\"{{ product.name }}\" title=\"{{ product.name }}\" class=\"img-thumbnail\" /></a
              >{% endif %}
              <div class=\"d-flex flex-nowrap flex-grow-1 flex-column\">
                <div class=\"d-flex\">
                  <div class=\"d-flex flex-column w-100\">
                    <div class=\"d-flex flex-row justify-content-between\">
                      <div>
                        <a href=\"{{ product.href }}\" style=\"color: #000\" class=\"fw-bold\">{{ product.name }}</a
                        >{% if not product.stock %} <span class=\"text-danger\">***</span>{% endif %}
                      </div>
                      <a href=\"{{ product.remove }}\" data-toggle=\"tooltip-hover\" title=\"{{ button_remove }}\" class=\"btn btn-danger btn-remove\"
                        ><i class=\"fa fa-times-circle\"></i
                      ></a>
                    </div>
                    <div class=\"d-flex flex-row justify-content-between\">
                      <div class=\"d-flex flex-column\">
                        <ul class=\"list-unstyled mb-0\">
                          <li>
                            <small> - {{ text_model }}: {{ product.model }}</small>
                          </li>
                          {% for option in product.option %}
                          <li>
                            <small> - {{ option.name }}: {{ option.value }}</small>
                          </li>
                          {% endfor %} {% if product.subscription %}
                          <li>
                            <small> - {{ text_subscription }}: {{ product.subscription }}</small>
                          </li>
                          {% endif %} {% if product.reward %}
                          <li>
                            <small> - {{ text_points }}: {{ product.reward }}</small>
                          </li>
                          {% endif %}
                        </ul>
                        <div class=\"fw-bold mt-2\" style=\"font-size: 16px\">
                          {{ product.price }}
                        </div>

                        {% if product.minimum %}
                        <small class=\"invalid-feedback d-block\">{{ product.minimum }}</small>
                        {% endif %}
                      </div>
                      <div class=\"d-flex flex-column align-items-end justify-content-end\">
                        <form method=\"post\" data-oc-target=\"#shopping-cart\">
                          <div class=\"input-group\">
                            <div class=\"stepper\">
                              <button aria-label=\"-\" class=\"fa fa-angle-down\" type=\"button\"></button>
                              <input
                                type=\"text\"
                                name=\"quantity\"
                                value=\"{{ product.quantity }}\"
                                size=\"1\"
                                class=\"form-control{% if product.minimum %} is-invalid{% endif %}\"
                              />
                              <input type=\"hidden\" name=\"key\" value=\"{{ product.cart_id }}\" />
                              <button aria-label=\"+\" class=\"fa fa-angle-up\" type=\"button\"></button>
                            </div>
                            <span class=\"input-group-btn\">
                              <button
                                type=\"submit\"
                                formaction=\"{{ edit }}\"
                                data-toggle=\"tooltip-hover\"
                                title=\"{{ button_update }}\"
                                class=\"btn btn-update\"
                              >
                                <i class=\"fa fa-refresh\"></i>
                              </button>
                            </span>
                          </div>
                        </form>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </article>
          {% endfor %}
        </div>
      </div>
      <div class=\"col-md-1\"></div>
      <div class=\"col-md-4\">
        <div class=\"cart-bottom p-0\">
          <div class=\"panels-total\">
            {% for total in totals %}
            <div class=\"d-flex justify-content-between flex-row mb-5\">
              <strong>{{ total.title }} </strong>
              <strong>{{ total.text }}</strong>
            </div>

            {% endfor %} {% if modules %}
            <div class=\"panels-total\">
              {% if modules and journal3.get('cartPanelsStatus') %}
              <div class=\"cart-panels\">
                <h2 class=\"title\">{{ text_next }}</h2>
                <p>{{ text_next_choice }}</p>
                <div class=\"panel-group\" id=\"accordion\">
                  {% for module in modules %}
                  {{ module }}
                  {% endfor %}
                </div>
              </div>
              {% endif %}
            </div>
            {% endif %}
          </div>
          <div class=\"buttons row mt-0\">
            <div class=\"col pull-right text-end\">
              <a href=\"{{ checkout }}\" class=\"btn btn-primary\">{{ button_checkout }}</a>
            </div>
            <div class=\"col pull-left\">
              <a href=\"{{ continue }}\" class=\"btn btn-default\">{{ button_shopping }}</a>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

{% else %} {% if journal3.get('pageTitlePosition') == 'default' %}
<h1 class=\"title page-title {{ journal3.get('title_color_scheme') }}\">{{ heading_title }}{% if weight %}&nbsp;({{ weight }}){% endif %}</h1>
{% endif %}
<p>{{ text_no_results }}</p>
<div class=\"buttons\">
  <div class=\"text-end pull-right\">
    <a href=\"{{ continue }}\" class=\"btn btn-primary\">{{ button_continue }}</a>
  </div>
</div>
{% endif %}
", "extension/journal_3/catalog/view/template/checkout/cart_list_41.twig", "/home/isatuzun/public_html/opencart.my-multiplanet.ch/extension/journal_3/catalog/view/template/checkout/cart_list_41.twig");
    }
}
