<?php

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

/* catalog/product_list.twig */
class __TwigTemplate_fd3de02b272bdb84f42f50f0bbacc641 extends Template
{
    private $source;
    private $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 = [])
    {
        $macros = $this->macros;
        // line 1
        echo ($context["header"] ?? null);
        echo ($context["column_left"] ?? null);
        echo "
<div id=\"content\">
  <div class=\"page-header\">
    <div class=\"container-fluid\">
      <div class=\"pull-right\">
        <button type=\"button\" data-toggle=\"tooltip\" title=\"";
        // line 6
        echo ($context["button_filter"] ?? null);
        echo "\" onclick=\"\$('#filter-product').toggleClass('hidden-sm hidden-xs');\" class=\"btn btn-default hidden-md hidden-lg\"><i class=\"fa fa-filter\"></i></button>
        ";
        // line 7
        if ((($context["config_product_download"] ?? null) == 1)) {
            // line 8
            echo "        <a href=\"";
            echo ($context["download"] ?? null);
            echo "\" data-toggle=\"tooltip\" title=\"";
            echo ($context["button_download"] ?? null);
            echo "\" class=\"btn btn-warning\"><i class=\"fa fa-download\"></i></a>
        ";
        }
        // line 10
        echo "        <a href=\"";
        echo ($context["add"] ?? null);
        echo "\" data-toggle=\"tooltip\" title=\"";
        echo ($context["button_add"] ?? null);
        echo "\" class=\"btn btn-primary\"><i class=\"fa fa-plus\"></i></a>
        <button type=\"submit\" form=\"form-product\" formaction=\"";
        // line 11
        echo ($context["copy"] ?? null);
        echo "\" data-toggle=\"tooltip\" title=\"";
        echo ($context["button_copy"] ?? null);
        echo "\" class=\"btn btn-default\"><i class=\"fa fa-copy\"></i></button>
        <button type=\"button\" form=\"form-product\" formaction=\"";
        // line 12
        echo ($context["delete"] ?? null);
        echo "\" data-toggle=\"tooltip\" title=\"";
        echo ($context["button_delete"] ?? null);
        echo "\" class=\"btn btn-danger\" onclick=\"confirm('";
        echo ($context["text_confirm"] ?? null);
        echo "') ? \$('#form-product').submit() : false;\"><i class=\"fa fa-trash-o\"></i></button>
      </div>
      <h1>";
        // line 14
        echo ($context["heading_title"] ?? null);
        echo "</h1>
      <ul class=\"breadcrumb\">
        ";
        // line 16
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["breadcrumbs"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 17
            echo "        <li><a href=\"";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "href", [], "any", false, false, false, 17);
            echo "\">";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "text", [], "any", false, false, false, 17);
            echo "</a></li>
        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 19
        echo "      </ul>
    </div>
  </div>
  <div class=\"container-fluid\">";
        // line 22
        if (($context["error_warning"] ?? null)) {
            // line 23
            echo "    <div class=\"alert alert-danger alert-dismissible\"><i class=\"fa fa-exclamation-circle\"></i> ";
            echo ($context["error_warning"] ?? null);
            echo "
      <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
    </div>
    ";
        }
        // line 27
        echo "    ";
        if (($context["success"] ?? null)) {
            // line 28
            echo "    <div class=\"alert alert-success alert-dismissible\"><i class=\"fa fa-check-circle\"></i> ";
            echo ($context["success"] ?? null);
            echo "
      <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
    </div>
    ";
        }
        // line 32
        echo "    
    <div class=\"row\">
        <div id=\"filter-product\" class=\"col-md-12 col-sm-12 hidden-sm hidden-xs\">
        <div class=\"panel panel-default\">
          <div class=\"panel-heading\">
            <h3 class=\"panel-title\"><i class=\"fa fa-filter\"></i> ";
        // line 37
        echo ($context["text_filter"] ?? null);
        echo "</h3>
          </div>
          <div class=\"panel-body\">
              
            <div class=\"row\">
                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                      <label class=\"control-label\" for=\"input-id\">";
        // line 44
        echo ($context["entry_id"] ?? null);
        echo "</label>
                      <input type=\"text\" name=\"filter_id\" value=\"";
        // line 45
        echo ($context["filter_id"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_id"] ?? null);
        echo "\" id=\"input-id\" class=\"form-control\" />
                    </div>
                </div>
                <div class=\"col-md-4\">
                    <div class=\"form-group\">
                      <label class=\"control-label\" for=\"input-name\">";
        // line 50
        echo ($context["entry_name"] ?? null);
        echo "</label>
                      <input type=\"text\" name=\"filter_name\" value=\"";
        // line 51
        echo ($context["filter_name"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_name"] ?? null);
        echo "\" id=\"input-name\" class=\"form-control\" />
                    </div>
                </div>
                
                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                        <label class=\"control-label\" for=\"input-parent\">";
        // line 57
        echo ($context["entry_category"] ?? null);
        echo "</label>
                        <input type=\"text\" name=\"path\" value=\"";
        // line 58
        echo ($context["path"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_category"] ?? null);
        echo "\" id=\"input-parent\" class=\"form-control\" />
                        <input type=\"hidden\" name=\"filter_category_id\" value=\"";
        // line 59
        echo ($context["filter_category_id"] ?? null);
        echo "\" />
                      </div>
                </div>
                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                        <label class=\"control-label\" for=\"input-stock-status\">";
        // line 64
        echo ($context["column_stock_status"] ?? null);
        echo "</label>
                        <select name=\"filter_stock_status\" id=\"input-stock-status\" class=\"form-control\">
                          <option value=\"*\">-- Select Stock Status --</option>
                          ";
        // line 67
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["stock_statuses"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["status"]) {
            // line 68
            echo "                            <option value=\"";
            echo twig_get_attribute($this->env, $this->source, $context["status"], "stock_status_id", [], "any", false, false, false, 68);
            echo "\" ";
            if ((twig_get_attribute($this->env, $this->source, $context["status"], "stock_status_id", [], "any", false, false, false, 68) == ($context["filter_stock_status"] ?? null))) {
                echo "selected";
            }
            echo ">";
            echo twig_get_attribute($this->env, $this->source, $context["status"], "name", [], "any", false, false, false, 68);
            echo "</option>
                          ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['status'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 70
        echo "                        </select>
                    </div>
                </div>
                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                        <label class=\"control-label\" for=\"input-manufacturer\">";
        // line 75
        echo ($context["entry_manufacturer"] ?? null);
        echo "</label>
                        <input type=\"text\" name=\"manufacturer\" value=\"";
        // line 76
        echo ($context["manufacturer"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_manufacturer"] ?? null);
        echo "\" id=\"input-manufacturer\" class=\"form-control\"/> 
                        <input type=\"hidden\" name=\"filter_manufacture\" value=\"";
        // line 77
        echo ($context["filter_manufacture"] ?? null);
        echo "\"/>
                    </div>
                </div>
                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                      <label class=\"control-label\" for=\"input-model\">";
        // line 82
        echo ($context["entry_model"] ?? null);
        echo "</label>
                      <input type=\"text\" name=\"filter_model\" value=\"";
        // line 83
        echo ($context["filter_model"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_model"] ?? null);
        echo "\" id=\"input-model\" class=\"form-control\" />
                    </div>
                </div>
                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                      <label class=\"control-label\" for=\"input-price\">";
        // line 88
        echo ($context["entry_price"] ?? null);
        echo "</label>
                      <input type=\"text\" name=\"filter_price\" value=\"";
        // line 89
        echo ($context["filter_price"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_price"] ?? null);
        echo "\" id=\"input-price\" class=\"form-control\" />
                    </div>
                </div>
                ";
        // line 93
        echo "                ";
        // line 94
        echo "                ";
        // line 95
        echo "                ";
        // line 96
        echo "                ";
        // line 97
        echo "                ";
        // line 98
        echo "                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                      <label class=\"control-label\" for=\"input-status\">";
        // line 100
        echo ($context["entry_status"] ?? null);
        echo "</label>
                      <select name=\"filter_status\" id=\"input-status\" class=\"form-control\">
                        <option value=\"\"></option>
                          ";
        // line 103
        if ((($context["filter_status"] ?? null) == "1")) {
            // line 104
            echo "                        <option value=\"1\" selected=\"selected\">";
            echo ($context["text_enabled"] ?? null);
            echo "</option>
                          ";
        } else {
            // line 106
            echo "                        <option value=\"1\">";
            echo ($context["text_enabled"] ?? null);
            echo "</option>
                          ";
        }
        // line 108
        echo "                          ";
        if ((($context["filter_status"] ?? null) == "0")) {
            // line 109
            echo "                        <option value=\"0\" selected=\"selected\">";
            echo ($context["text_disabled"] ?? null);
            echo "</option>
                          ";
        } else {
            // line 111
            echo "                        <option value=\"0\">";
            echo ($context["text_disabled"] ?? null);
            echo "</option>
                          ";
        }
        // line 113
        echo "                      </select>
                    </div>
                </div>
                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                      <label class=\"control-label\" for=\"input-user\">";
        // line 118
        echo ($context["entry_users"] ?? null);
        echo "</label>
                      <input type=\"text\" name=\"users\" value=\"";
        // line 119
        echo ($context["users"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_users"] ?? null);
        echo "\" id=\"input-user\" class=\"form-control\" />
                      <input type=\"hidden\" name=\"filter_added_by\" value=\"";
        // line 120
        echo ($context["filter_added_by"] ?? null);
        echo "\" />
                    </div>
                </div>
                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                      <label class=\"control-label\" for=\"filter_date_added\">";
        // line 125
        echo ($context["entry_date_added"] ?? null);
        echo "</label>
                      <input type=\"date\" name=\"filter_date_added\" value=\"";
        // line 126
        echo ($context["filter_date_added"] ?? null);
        echo "\" id=\"filter_date_added\" class=\"form-control\"/>
                    </div>
                </div>
                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                      <label class=\"control-label\" for=\"filter_date_modified\">";
        // line 131
        echo ($context["entry_date_modified"] ?? null);
        echo "</label>
                      <input type=\"date\" name=\"filter_date_modified\" value=\"";
        // line 132
        echo ($context["filter_date_modified"] ?? null);
        echo "\" id=\"filter_date_modified\" class=\"form-control\"/>
                    </div>
                </div>
            </div>
            <div class=\"form-group text-right\">
              <button type=\"button\" id=\"button-filter\" class=\"btn btn-default\"><i class=\"fa fa-filter\"></i> ";
        // line 137
        echo ($context["button_filter"] ?? null);
        echo "</button>
              <button type=\"button\" id=\"button-clear\" class=\"btn btn-danger\">";
        // line 138
        echo ($context["button_clear"] ?? null);
        echo "</button>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <div class=\"row\">
      <div class=\"col-md-12 col-sm-12\">
        <div class=\"panel panel-default\">
          <div class=\"panel-heading\">
            <h3 class=\"panel-title\"><i class=\"fa fa-list\"></i> ";
        // line 149
        echo ($context["text_list"] ?? null);
        echo "</h3>
          </div>
          <div class=\"panel-body\">
            <form action=\"";
        // line 152
        echo ($context["delete"] ?? null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-product\">
              <div class=\"table-responsive\">
                <table class=\"table table-bordered table-hover\">
                  <thead>
                    <tr>
                      <td style=\"width: 1px;\" class=\"text-center\"><input type=\"checkbox\" onclick=\"\$('input[name*=\\'selected\\']').prop('checked', this.checked);\" /></td>
                      <td class=\"text-center\">";
        // line 158
        echo ($context["column_id"] ?? null);
        echo "</td>
                      <td class=\"text-center\">";
        // line 159
        echo ($context["column_image"] ?? null);
        echo "</td>
                      <td class=\"text-left\">";
        // line 160
        if ((($context["sort"] ?? null) == "pd.name")) {
            echo " <a href=\"";
            echo ($context["sort_name"] ?? null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, ($context["order"] ?? null));
            echo "\">";
            echo ($context["column_name"] ?? null);
            echo "</a> ";
        } else {
            echo " <a href=\"";
            echo ($context["sort_name"] ?? null);
            echo "\">";
            echo ($context["column_name"] ?? null);
            echo "</a> ";
        }
        echo "</td>
                      <td class=\"text-left\">";
        // line 161
        echo ($context["entry_category"] ?? null);
        echo "</td>
                      <td class=\"text-left\">";
        // line 162
        if ((($context["sort"] ?? null) == "p.price")) {
            echo " <a href=\"";
            echo ($context["sort_price"] ?? null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, ($context["order"] ?? null));
            echo "\">";
            echo ($context["column_price"] ?? null);
            echo "</a> ";
        } else {
            echo " <a href=\"";
            echo ($context["sort_price"] ?? null);
            echo "\">";
            echo ($context["column_price"] ?? null);
            echo "</a> ";
        }
        echo "</td>
                      <td class=\"text-left\">";
        // line 163
        if ((($context["sort"] ?? null) == "p.quantity")) {
            echo " <a href=\"";
            echo ($context["sort_quantity"] ?? null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, ($context["order"] ?? null));
            echo "\">";
            echo ($context["column_quantity"] ?? null);
            echo "</a> ";
        } else {
            echo " <a href=\"";
            echo ($context["sort_quantity"] ?? null);
            echo "\">";
            echo ($context["column_quantity"] ?? null);
            echo "</a> ";
        }
        echo "</td>
                      <td class=\"text-left\">";
        // line 164
        if ((($context["sort"] ?? null) == "p.status")) {
            echo " <a href=\"";
            echo ($context["sort_status"] ?? null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, ($context["order"] ?? null));
            echo "\">";
            echo ($context["column_status"] ?? null);
            echo "</a> ";
        } else {
            echo " <a href=\"";
            echo ($context["sort_status"] ?? null);
            echo "\">";
            echo ($context["column_status"] ?? null);
            echo "</a> ";
        }
        echo "</td>
                      <td class=\"text-left\">";
        // line 165
        echo ($context["text_viewed"] ?? null);
        echo "</td>
                      <td class=\"text-left\">";
        // line 166
        echo ($context["column_seo_score"] ?? null);
        echo "</td>
                      <td class=\"text-left\">";
        // line 167
        echo ($context["column_product_strength"] ?? null);
        echo "</td>
                      <td class=\"text-left\">";
        // line 168
        echo ($context["text_date_added"] ?? null);
        echo "</td>
                      <td class=\"text-right\">";
        // line 169
        echo ($context["column_action"] ?? null);
        echo "</td>
                    </tr>
                  </thead>
                  <tbody>
                  
                  ";
        // line 174
        if (($context["products"] ?? null)) {
            // line 175
            echo "                  ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["products"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
                // line 176
                echo "                  <tr>
                    <td class=\"text-center\">";
                // line 177
                if (twig_in_filter(twig_get_attribute($this->env, $this->source, $context["product"], "product_id", [], "any", false, false, false, 177), ($context["selected"] ?? null))) {
                    // line 178
                    echo "                      <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "product_id", [], "any", false, false, false, 178);
                    echo "\" checked=\"checked\" />
                      ";
                } else {
                    // line 180
                    echo "                      <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "product_id", [], "any", false, false, false, 180);
                    echo "\" />
                      ";
                }
                // line 181
                echo "</td>
                    <td class=\"text-center\">";
                // line 182
                echo twig_get_attribute($this->env, $this->source, $context["product"], "product_id", [], "any", false, false, false, 182);
                echo "</td>
                    <td class=\"text-center\">";
                // line 183
                if (twig_get_attribute($this->env, $this->source, $context["product"], "image", [], "any", false, false, false, 183)) {
                    echo " <img src=\"";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "image", [], "any", false, false, false, 183);
                    echo "\" alt=\"";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 183);
                    echo "\" class=\"img-thumbnail\" /> ";
                } else {
                    echo " <span class=\"img-thumbnail list\"><i class=\"fa fa-camera fa-2x\"></i></span> ";
                }
                echo "</td>
                    <td class=\"text-left\"><a href=\"";
                // line 184
                echo twig_get_attribute($this->env, $this->source, $context["product"], "view", [], "any", false, false, false, 184);
                echo "\" target=\"_blank\">";
                echo twig_get_attribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 184);
                echo "</a></td>
                    <td class=\"text-left\">";
                // line 185
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable(($context["categories"] ?? null));
                foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
                    if (twig_in_filter(twig_get_attribute($this->env, $this->source, $context["category"], "category_id", [], "any", false, false, false, 185), twig_get_attribute($this->env, $this->source, $context["product"], "category", [], "any", false, false, false, 185))) {
                        echo twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 185);
                        echo "<br>";
                    }
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                echo "</td>
                    <td class=\"text-left\">";
                // line 186
                if (twig_get_attribute($this->env, $this->source, $context["product"], "special", [], "any", false, false, false, 186)) {
                    echo " <span style=\"text-decoration: line-through;\">";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "price", [], "any", false, false, false, 186);
                    echo "</span><br/>
                      <div class=\"text-danger\">";
                    // line 187
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "special", [], "any", false, false, false, 187);
                    echo "</div>
                      ";
                } else {
                    // line 189
                    echo "                      ";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "price", [], "any", false, false, false, 189);
                    echo "
                      ";
                }
                // line 190
                echo "</td>
                    <td class=\"text-left\">
                        ";
                // line 192
                if (twig_get_attribute($this->env, $this->source, $context["product"], "subtract", [], "any", false, false, false, 192)) {
                    // line 193
                    echo "                        <small class=\"text-success\">Yes</small>
                        ";
                } else {
                    // line 195
                    echo "                        <small class=\"text-danger\">No</small>
                        ";
                }
                // line 197
                echo "                        ";
                if ((twig_get_attribute($this->env, $this->source, $context["product"], "quantity", [], "any", false, false, false, 197) <= 0)) {
                    echo " <span class=\"label label-warning\">";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "quantity", [], "any", false, false, false, 197);
                    echo "</span> 
                        ";
                } elseif ((twig_get_attribute($this->env, $this->source,                 // line 198
$context["product"], "quantity", [], "any", false, false, false, 198) <= 5)) {
                    echo " <span class=\"label label-danger\">";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "quantity", [], "any", false, false, false, 198);
                    echo "</span> 
                        ";
                } else {
                    // line 199
                    echo " <span class=\"label label-success\">";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "quantity", [], "any", false, false, false, 199);
                    echo "</span> 
                        ";
                }
                // line 201
                echo "                        
                    </td>
                    <td class=\"text-left\">
\t\t\t\t\t    ";
                // line 204
                echo twig_get_attribute($this->env, $this->source, $context["product"], "stock_status", [], "any", false, false, false, 204);
                echo "<br/>
\t\t\t\t\t    ";
                // line 205
                if (twig_get_attribute($this->env, $this->source, $context["product"], "status", [], "any", false, false, false, 205)) {
                    // line 206
                    echo "                          <small class=\"text-success\">";
                    echo ($context["text_enabled"] ?? null);
                    echo "</small>
                        ";
                } else {
                    // line 208
                    echo "                          <small class=\"text-danger\">";
                    echo ($context["text_disabled"] ?? null);
                    echo "</small>
                        ";
                }
                // line 210
                echo "\t\t\t\t\t</td>
\t\t\t\t\t<td class=\"text-left\">
\t\t\t\t\t\t";
                // line 212
                if ((twig_get_attribute($this->env, $this->source, $context["product"], "viewed", [], "any", false, false, false, 212) <= 50)) {
                    // line 213
                    echo "\t\t\t\t\t\t<span class=\"text-danger\"><font title=\"";
                    echo ($context["help_chart"] ?? null);
                    echo "\" data-toggle=\"tooltip\"><i class=\"fa fa-line-chart\"><i class=\"fa fa-level-down\" style=\"margin-left: 5px;margin-right: 5px;\"></i></i> ";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "viewed", [], "any", false, false, false, 213);
                    echo "</font></span>
\t\t\t\t\t\t";
                } elseif ((twig_get_attribute($this->env, $this->source,                 // line 214
$context["product"], "viewed", [], "any", false, false, false, 214) <= 100)) {
                    // line 215
                    echo "\t\t\t\t\t\t<span class=\"text-warning\"><font title=\"";
                    echo ($context["help_chart_down"] ?? null);
                    echo "\" data-toggle=\"tooltip\"><i class=\"fa fa-line-chart\"></i> ";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "viewed", [], "any", false, false, false, 215);
                    echo "</font></span>
\t\t\t\t\t\t";
                } else {
                    // line 217
                    echo "\t\t\t\t\t\t<span class=\"text-success\"><font title=\"";
                    echo ($context["help_chart_up"] ?? null);
                    echo "\" data-toggle=\"tooltip\"><i class=\"fa fa-line-chart\"></i><i class=\"fa fa-level-up\" style=\"margin-left: 5px;margin-right: 5px;\"></i> ";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "viewed", [], "any", false, false, false, 217);
                    echo "</font></span>
\t\t\t\t\t\t";
                }
                // line 219
                echo "\t\t\t\t\t</td>
\t\t\t\t\t<td>
                      <button type=\"button\" class=\"btn btn-info btn-sm view-seo-issues\"
                            data-toggle=\"modal\"
                            data-target=\"#productSeoScorehModal\"
                            data-issues='";
                // line 224
                echo twig_escape_filter($this->env, json_encode(twig_get_attribute($this->env, $this->source, $context["product"], "product_seo_details", [], "any", false, false, false, 224)), "html_attr");
                echo "'>
                            ";
                // line 225
                echo twig_get_attribute($this->env, $this->source, $context["product"], "product_seo_total_score", [], "any", false, false, false, 225);
                echo "/";
                echo twig_get_attribute($this->env, $this->source, $context["product"], "product_seo_out_of", [], "any", false, false, false, 225);
                echo "
                        </button>
                    </td>
                    
                    <td>
                      <button type=\"button\" class=\"btn btn-info btn-sm view-product-strngth-issues\"
                            data-toggle=\"modal\"
                            data-target=\"#productStrengthModal\"
                            data-issues='";
                // line 233
                echo twig_escape_filter($this->env, json_encode(twig_get_attribute($this->env, $this->source, $context["product"], "product_strength_details", [], "any", false, false, false, 233)), "html_attr");
                echo "'>
                            ";
                // line 234
                echo twig_get_attribute($this->env, $this->source, $context["product"], "product_strength_total_score", [], "any", false, false, false, 234);
                echo "/";
                echo twig_get_attribute($this->env, $this->source, $context["product"], "product_strength_out_of", [], "any", false, false, false, 234);
                echo "
                        </button>
                    </td>
                    <td class=\"text-left\">
\t\t\t\t\t\t<i class=\"fa fa-calendar\" data-toggle=\"tooltip\" title=\"";
                // line 238
                echo ($context["text_date_added"] ?? null);
                echo "\"></i> ";
                echo twig_get_attribute($this->env, $this->source, $context["product"], "date_added", [], "any", false, false, false, 238);
                echo " ";
                if (twig_get_attribute($this->env, $this->source, $context["product"], "added_by", [], "any", false, false, false, 238)) {
                    echo " (";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "added_by", [], "any", false, false, false, 238);
                    echo ") ";
                }
                echo " <br/>
\t\t\t\t\t\t<i class=\"fa fa-refresh\" data-toggle=\"tooltip\" title=\"";
                // line 239
                echo ($context["text_date_modified"] ?? null);
                echo "\"></i> ";
                echo twig_get_attribute($this->env, $this->source, $context["product"], "date_modified", [], "any", false, false, false, 239);
                echo " ";
                if (twig_get_attribute($this->env, $this->source, $context["product"], "updated_by", [], "any", false, false, false, 239)) {
                    echo " (";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "updated_by", [], "any", false, false, false, 239);
                    echo ") ";
                }
                // line 240
                echo "\t\t\t\t\t</td>
                    <td class=\"text-right\">
                        <div style=\"min-width: 120px;\">
                          <div class=\"btn-group\"><a href=\"";
                // line 243
                echo twig_get_attribute($this->env, $this->source, $context["product"], "edit", [], "any", false, false, false, 243);
                echo "\" target=\"_blank\" data-toggle=\"tooltip\" title=\"";
                echo ($context["button_edit"] ?? null);
                echo "\" class=\"btn btn-primary\"><i class=\"fa fa-pencil\"></i></a>
                            <button type=\"button\" data-toggle=\"dropdown\" class=\"btn btn-primary dropdown-toggle\"><span class=\"caret\"></span></button>
                            <ul class=\"dropdown-menu dropdown-menu-right\">
                              <li><a href=\"";
                // line 246
                echo twig_constant("HTTP_CATALOG");
                echo "?route=product/product&product_id=";
                echo twig_get_attribute($this->env, $this->source, $context["product"], "product_id", [], "any", false, false, false, 246);
                echo "\" target=\"_blank\"><i class=\"fa fa-eye\"></i> ";
                echo ($context["button_view"] ?? null);
                echo "</a></li>
                              <li><a href=\"";
                // line 247
                echo twig_get_attribute($this->env, $this->source, $context["product"], "google_search", [], "any", false, false, false, 247);
                echo "\" target=\"_blank\"><i class=\"fa fa-search\"></i> Search Google</a></li>
                              <li><a href=\"";
                // line 248
                echo twig_get_attribute($this->env, $this->source, $context["product"], "google_index_check", [], "any", false, false, false, 248);
                echo "\" target=\"_blank\"><i class=\"fa fa-globe\"></i> Check Google Index</a></li>
                            </ul>
                          </div>
                        </div>
                    </td>
                  </tr>
                  ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 255
            echo "                  ";
        } else {
            // line 256
            echo "                  <tr>
                    <td class=\"text-center\" colspan=\"8\">";
            // line 257
            echo ($context["text_no_results"] ?? null);
            echo "</td>
                  </tr>
                  ";
        }
        // line 260
        echo "                    </tbody>
                  
                </table>
              </div>
            </form>
            <div class=\"row\">
              <div class=\"col-sm-6 text-left\">";
        // line 266
        echo ($context["pagination"] ?? null);
        echo "</div>
              <div class=\"col-sm-6 text-right\">";
        // line 267
        echo ($context["results"] ?? null);
        echo "</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  
  <div class=\"modal fade\" id=\"productSeoScorehModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"productSeoScorehModalLabel\" aria-hidden=\"true\">
  <div class=\"modal-dialog modal-lg\" role=\"document\">
    <div class=\"modal-content\">
      <div class=\"modal-header\">
        <h5 class=\"modal-title\" id=\"productSeoScorehModalLabel\">SEO Score</h5>
        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
          <span aria-hidden=\"true\">&times;</span>
        </button>
      </div>
      <div class=\"modal-body\">
        <table class=\"table table-bordered table-striped\">
          <thead>
            <tr>
              <th>#</th>
              <th>Check</th>
              <th>Score</th>
              <th>Out Of</th>
              <th>Issue</th>
            </tr>
          </thead>
          <tbody id=\"seo-details-body\">
            <!-- JS will populate this -->
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>


  <div class=\"modal fade\" id=\"productStrengthModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"productStrengthModalLabel\" aria-hidden=\"true\">
  <div class=\"modal-dialog modal-lg\" role=\"document\">
    <div class=\"modal-content\">
      <div class=\"modal-header\">
        <h5 class=\"modal-title\" id=\"productStrengthModalLabel\">Product Strength</h5>
        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
          <span aria-hidden=\"true\">&times;</span>
        </button>
      </div>
      <div class=\"modal-body\">
        <table class=\"table table-bordered table-striped\">
          <thead>
            <tr>
              <th>#</th>
              <th>Check</th>
              <th>Score</th>
              <th>Out Of</th>
              <th>Issue</th>
            </tr>
          </thead>
          <tbody id=\"product-strength-body\">
            <!-- JS will populate this -->
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>

<script>
document.addEventListener('DOMContentLoaded', function () {
  const buttons = document.querySelectorAll('.view-product-strngth-issues');

  buttons.forEach(button => {
    button.addEventListener('click', function () {
      const data = this.getAttribute('data-issues');
      let details = [];

      try {
        details = JSON.parse(data);
      } catch (e) {
        alert('Failed to parse SEO details.');
        return;
      }

      const tbody = document.getElementById('product-strength-body');
      tbody.innerHTML = '';

      if (details.length === 0) {
        tbody.innerHTML = '<tr><td colspan=\"5\">No details available.</td></tr>';
        return;
      }

      details.forEach((item, index) => {
        const tr = document.createElement('tr');
        tr.innerHTML = `
          <td>\${index + 1}</td>
          <td>\${item.label}</td>
          <td>\${item.earned}</td>
          <td>\${item.max}</td>
          <td>\${item.note ?? '-'}</td>
        `;
        tbody.appendChild(tr);
      });
    });
  });
});
</script>

<script>
document.addEventListener('DOMContentLoaded', function () {
  const buttons = document.querySelectorAll('.view-seo-issues');

  buttons.forEach(button => {
    button.addEventListener('click', function () {
      const data = this.getAttribute('data-issues');
      let details = [];

      try {
        details = JSON.parse(data);
      } catch (e) {
        alert('Failed to parse SEO details.');
        return;
      }

      const tbody = document.getElementById('seo-details-body');
      tbody.innerHTML = '';

      if (details.length === 0) {
        tbody.innerHTML = '<tr><td colspan=\"5\">No details available.</td></tr>';
        return;
      }

      details.forEach((item, index) => {
        const tr = document.createElement('tr');
        tr.innerHTML = `
          <td>\${index + 1}</td>
          <td>\${item.title}</td>
          <td>\${item.score}</td>
          <td>\${item.out_of}</td>
          <td>\${item.issue ?? '-'}</td>
        `;
        tbody.appendChild(tr);
      });
    });
  });
});
</script>
  
  <script type=\"text/javascript\"><!--
\$('#button-filter').on('click', function() {
\tvar url = '';
    
    var filter_id = \$('input[name=\\'filter_id\\']').val();

\tif (filter_id) {
\t\turl += '&filter_id=' + encodeURIComponent(filter_id);
\t}
\t
\tvar filter_name = \$('input[name=\\'filter_name\\']').val();

\tif (filter_name) {
\t\turl += '&filter_name=' + encodeURIComponent(filter_name);
\t}
\t
\tvar filter_category_id = \$('input[name=\\'filter_category_id\\']').val();

\tif (filter_category_id) {
\t\turl += '&filter_category_id=' + encodeURIComponent(filter_category_id);
\t}
\t
\tvar filter_added_by = \$('input[name=\\'filter_added_by\\']').val();

\tif (filter_added_by) {
\t\turl += '&filter_added_by=' + encodeURIComponent(filter_added_by);
\t}
    
    var filter_stock_status = \$('select[name=\\'filter_stock_status\\']').val();

    if (filter_stock_status != '*') {
        url += '&filter_stock_status=' + encodeURIComponent(filter_stock_status);
    }
    
    var filter_manufacture = \$('input[name=\\'filter_manufacture\\']').val();

\tif (filter_manufacture) {
\t\turl += '&filter_manufacture=' + encodeURIComponent(filter_manufacture);
\t}

\tvar filter_model = \$('input[name=\\'filter_model\\']').val();

\tif (filter_model) {
\t\turl += '&filter_model=' + encodeURIComponent(filter_model);
\t}

\tvar filter_price = \$('input[name=\\'filter_price\\']').val();

\tif (filter_price) {
\t\turl += '&filter_price=' + encodeURIComponent(filter_price);
\t}

\tvar filter_quantity = \$('input[name=\\'filter_quantity\\']').val();

\tif (filter_quantity) {
\t\turl += '&filter_quantity=' + encodeURIComponent(filter_quantity);
\t}

\tvar filter_status = \$('select[name=\\'filter_status\\']').val();

\tif (filter_status !== '') {
\t\turl += '&filter_status=' + encodeURIComponent(filter_status);
\t}
\t
\tvar filter_date_added = \$('input[name=\\'filter_date_added\\']').val();

\tif (filter_date_added) {
\t\turl += '&filter_date_added=' + encodeURIComponent(filter_date_added);
\t}
\t
\tvar filter_date_modified = \$('input[name=\\'filter_date_modified\\']').val();

\tif (filter_date_modified) {
\t\turl += '&filter_date_modified=' + encodeURIComponent(filter_date_modified);
\t}

\tlocation = 'index.php?route=catalog/product&user_token=";
        // line 490
        echo ($context["user_token"] ?? null);
        echo "' + url;
});
\$('#button-clear').on('click', function() {
\t location ='index.php?route=catalog/product&user_token=";
        // line 493
        echo ($context["user_token"] ?? null);
        echo "';
\t});\t
//--></script> 
  <script type=\"text/javascript\"><!--
// IE and Edge fix!
\$('button[form=\\'form-product\\']').on('click', function(e) {
\t\$('#form-product').attr('action', \$(this).attr('formaction'));
});
  
\$('input[name=\\'filter_name\\']').autocomplete({
\t'source': function(request, response) {
\t\t\$.ajax({
\t\t\turl: 'index.php?route=catalog/product/autocomplete&user_token=";
        // line 505
        echo ($context["user_token"] ?? null);
        echo "&filter_name=' +  encodeURIComponent(request),
\t\t\tdataType: 'json',
\t\t\tsuccess: function(json) {
\t\t\t\tresponse(\$.map(json, function(item) {
\t\t\t\t\treturn {
\t\t\t\t\t\tlabel: item['name'],
\t\t\t\t\t\tvalue: item['product_id']
\t\t\t\t\t}
\t\t\t\t}));
\t\t\t}
\t\t});
\t},
\t'select': function(item) {
\t\t\$('input[name=\\'filter_name\\']').val(item['label']);
\t}
});

\$('input[name=\\'path\\']').autocomplete({
\t'source': function(request, response) {
\t\t\$.ajax({
\t\t\turl: 'index.php?route=catalog/category/autocomplete&user_token=";
        // line 525
        echo ($context["user_token"] ?? null);
        echo "&filter_name=' +  encodeURIComponent(request),
\t\t\tdataType: 'json',
\t\t\tsuccess: function(json) {
\t\t\t\tjson.unshift({
\t\t\t\t\tcategory_id: '',
\t\t\t\t\tname: '";
        // line 530
        echo ($context["text_none"] ?? null);
        echo "'
\t\t\t\t});

\t\t\t\tresponse(\$.map(json, function(item) {
\t\t\t\t\treturn {
\t\t\t\t\t\tlabel: item['name'],
\t\t\t\t\t\tvalue: item['category_id']
\t\t\t\t\t}
\t\t\t\t}));
\t\t\t}
\t\t});
\t},
\t'select': function(item) {
\t\t\$('input[name=\\'path\\']').val(item['label']);
\t\t\$('input[name=\\'filter_category_id\\']').val(item['value']);
\t}
});

\$('input[name=\\'users\\']').autocomplete({
\t'source': function(request, response) {
\t\t\$.ajax({
\t\t\turl: 'index.php?route=user/user/autocomplete&user_token=";
        // line 551
        echo ($context["user_token"] ?? null);
        echo "&filter_name=' +  encodeURIComponent(request),
\t\t\tdataType: 'json',
\t\t\tsuccess: function(json) {
\t\t\t\tjson.unshift({
\t\t\t\t\tuser_id: '',
\t\t\t\t\tname: '";
        // line 556
        echo ($context["text_none"] ?? null);
        echo "'
\t\t\t\t});

\t\t\t\tresponse(\$.map(json, function(item) {
\t\t\t\t\treturn {
\t\t\t\t\t\tlabel: item['name'],
\t\t\t\t\t\tvalue: item['user_id']
\t\t\t\t\t}
\t\t\t\t}));
\t\t\t}
\t\t});
\t},
\t'select': function(item) {
\t\t\$('input[name=\\'users\\']').val(item['label']);
\t\t\$('input[name=\\'filter_added_by\\']').val(item['value']);
\t}
});

// Manufacturer
\$('input[name=\\'manufacturer\\']').autocomplete({
  'source': function(request, response) {
\t  \$.ajax({
\t\t  url: 'index.php?route=catalog/manufacturer/autocomplete&user_token=";
        // line 578
        echo ($context["user_token"] ?? null);
        echo "&filter_name=' + encodeURIComponent(request),
\t\t  dataType: 'json',
\t\t  success: function(json) {
\t\t\t  json.unshift({
\t\t\t\t  manufacturer_id: '',
\t\t\t\t  name: '";
        // line 583
        echo ($context["text_none"] ?? null);
        echo "'
\t\t\t  });

\t\t\t  response(\$.map(json, function(item) {
\t\t\t\t  return {
\t\t\t\t\t  label: item['name'],
\t\t\t\t\t  value: item['manufacturer_id']
\t\t\t\t  }
\t\t\t  }));
\t\t  }
\t  });
  },
  'select': function(item) {
\t  \$('input[name=\\'manufacturer\\']').val(item['label']);
\t  \$('input[name=\\'filter_manufacture\\']').val(item['value']);
  }
});

\$('input[name=\\'filter_model\\']').autocomplete({
\t'source': function(request, response) {
\t\t\$.ajax({
\t\t\turl: 'index.php?route=catalog/product/autocomplete&user_token=";
        // line 604
        echo ($context["user_token"] ?? null);
        echo "&filter_model=' +  encodeURIComponent(request),
\t\t\tdataType: 'json',
\t\t\tsuccess: function(json) {
\t\t\t\tresponse(\$.map(json, function(item) {
\t\t\t\t\treturn {
\t\t\t\t\t\tlabel: item['model'],
\t\t\t\t\t\tvalue: item['product_id']
\t\t\t\t\t}
\t\t\t\t}));
\t\t\t}
\t\t});
\t},
\t'select': function(item) {
\t\t\$('input[name=\\'filter_model\\']').val(item['label']);
\t}
});
//--></script></div>
";
        // line 621
        echo ($context["footer"] ?? null);
        echo " ";
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "catalog/product_list.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  1183 => 621,  1163 => 604,  1139 => 583,  1131 => 578,  1106 => 556,  1098 => 551,  1074 => 530,  1066 => 525,  1043 => 505,  1028 => 493,  1022 => 490,  796 => 267,  792 => 266,  784 => 260,  778 => 257,  775 => 256,  772 => 255,  759 => 248,  755 => 247,  747 => 246,  739 => 243,  734 => 240,  724 => 239,  712 => 238,  703 => 234,  699 => 233,  686 => 225,  682 => 224,  675 => 219,  667 => 217,  659 => 215,  657 => 214,  650 => 213,  648 => 212,  644 => 210,  638 => 208,  632 => 206,  630 => 205,  626 => 204,  621 => 201,  615 => 199,  608 => 198,  601 => 197,  597 => 195,  593 => 193,  591 => 192,  587 => 190,  581 => 189,  576 => 187,  570 => 186,  556 => 185,  550 => 184,  538 => 183,  534 => 182,  531 => 181,  525 => 180,  519 => 178,  517 => 177,  514 => 176,  509 => 175,  507 => 174,  499 => 169,  495 => 168,  491 => 167,  487 => 166,  483 => 165,  465 => 164,  447 => 163,  429 => 162,  425 => 161,  407 => 160,  403 => 159,  399 => 158,  390 => 152,  384 => 149,  370 => 138,  366 => 137,  358 => 132,  354 => 131,  346 => 126,  342 => 125,  334 => 120,  328 => 119,  324 => 118,  317 => 113,  311 => 111,  305 => 109,  302 => 108,  296 => 106,  290 => 104,  288 => 103,  282 => 100,  278 => 98,  276 => 97,  274 => 96,  272 => 95,  270 => 94,  268 => 93,  260 => 89,  256 => 88,  246 => 83,  242 => 82,  234 => 77,  228 => 76,  224 => 75,  217 => 70,  202 => 68,  198 => 67,  192 => 64,  184 => 59,  178 => 58,  174 => 57,  163 => 51,  159 => 50,  149 => 45,  145 => 44,  135 => 37,  128 => 32,  120 => 28,  117 => 27,  109 => 23,  107 => 22,  102 => 19,  91 => 17,  87 => 16,  82 => 14,  73 => 12,  67 => 11,  60 => 10,  52 => 8,  50 => 7,  46 => 6,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "catalog/product_list.twig", "");
    }
}
