<?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_8181944347e98d433c3c138c1145625e 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>
        <a href=\"";
        // line 7
        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 8
        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 9
        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 11
        echo ($context["heading_title"] ?? null);
        echo "</h1>
      <ul class=\"breadcrumb\">
        ";
        // line 13
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["breadcrumbs"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 14
            echo "        <li><a href=\"";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "href", [], "any", false, false, false, 14);
            echo "\">";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "text", [], "any", false, false, false, 14);
            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 16
        echo "      </ul>
    </div>
  </div>
  <div class=\"container-fluid\">";
        // line 19
        if (($context["error_warning"] ?? null)) {
            // line 20
            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 24
        echo "    ";
        if (($context["success"] ?? null)) {
            // line 25
            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 29
        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 34
        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-name\">";
        // line 41
        echo ($context["entry_id"] ?? null);
        echo "</label>
                      <input type=\"text\" name=\"filter_id\" value=\"";
        // line 42
        echo ($context["filter_id"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_id"] ?? null);
        echo "\" id=\"input-name\" class=\"form-control\" />
                    </div>
                </div>
                <div class=\"col-md-4\">
                    <div class=\"form-group\">
                      <label class=\"control-label\" for=\"input-name\">";
        // line 47
        echo ($context["entry_name"] ?? null);
        echo "</label>
                      <input type=\"text\" name=\"filter_name\" value=\"";
        // line 48
        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=\"select-category\">";
        // line 53
        echo ($context["entry_category"] ?? null);
        echo "</label>
                        <select name=\"filter_category_id\" id=\"select-category\" class=\"form-control\" >
                            <option value=\"\">--Select Category--</option>
                            ";
        // line 56
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["categories"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
            // line 57
            echo "                                ";
            if ((twig_get_attribute($this->env, $this->source, $context["category"], "category_id", [], "any", false, false, false, 57) == ($context["filter_category_id"] ?? null))) {
                // line 58
                echo "                                    <option value=\"";
                echo twig_get_attribute($this->env, $this->source, $context["category"], "category_id", [], "any", false, false, false, 58);
                echo "\" selected=\"selected\">";
                echo twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 58);
                echo "</option>
                                ";
            } else {
                // line 60
                echo "                                    <option value=\"";
                echo twig_get_attribute($this->env, $this->source, $context["category"], "category_id", [], "any", false, false, false, 60);
                echo "\">";
                echo twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 60);
                echo "</option>
                                ";
            }
            // line 62
            echo "                            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 63
        echo "                        </select>
                    </div>
                </div>
                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                        <label class=\"control-label\" for=\"input-stock-status\">";
        // line 68
        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 71
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["stock_statuses"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["status"]) {
            // line 72
            echo "                            <option value=\"";
            echo twig_get_attribute($this->env, $this->source, $context["status"], "stock_status_id", [], "any", false, false, false, 72);
            echo "\" ";
            if ((twig_get_attribute($this->env, $this->source, $context["status"], "stock_status_id", [], "any", false, false, false, 72) == ($context["filter_stock_status"] ?? null))) {
                echo "selected";
            }
            echo ">";
            echo twig_get_attribute($this->env, $this->source, $context["status"], "name", [], "any", false, false, false, 72);
            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 74
        echo "                        </select>
                    </div>
                </div>
                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                        <label class=\"control-label\" for=\"input-manufacture\">";
        // line 79
        echo ($context["entry_manufacturer"] ?? null);
        echo "</label>
                        <select name=\"filter_manufacture\" id=\"input-manufacture\" class=\"form-control\">
                          <option value=\"\">-- Select Manufacture --</option>
                          ";
        // line 82
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["manufacturers"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["manufacture"]) {
            // line 83
            echo "                            <option value=\"";
            echo twig_get_attribute($this->env, $this->source, $context["manufacture"], "manufacturer_id", [], "any", false, false, false, 83);
            echo "\" ";
            if ((twig_get_attribute($this->env, $this->source, $context["manufacture"], "manufacturer_id", [], "any", false, false, false, 83) == ($context["filter_manufacture"] ?? null))) {
                echo "selected";
            }
            echo ">";
            echo twig_get_attribute($this->env, $this->source, $context["manufacture"], "name", [], "any", false, false, false, 83);
            echo "</option>
                          ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['manufacture'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 85
        echo "                        </select>
                    </div>
                </div>
                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                      <label class=\"control-label\" for=\"input-model\">";
        // line 90
        echo ($context["entry_model"] ?? null);
        echo "</label>
                      <input type=\"text\" name=\"filter_model\" value=\"";
        // line 91
        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 96
        echo ($context["entry_price"] ?? null);
        echo "</label>
                      <input type=\"text\" name=\"filter_price\" value=\"";
        // line 97
        echo ($context["filter_price"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_price"] ?? null);
        echo "\" id=\"input-price\" class=\"form-control\" />
                    </div>
                </div>
                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                      <label class=\"control-label\" for=\"input-quantity\">";
        // line 102
        echo ($context["entry_quantity"] ?? null);
        echo "</label>
                      <input type=\"text\" name=\"filter_quantity\" value=\"";
        // line 103
        echo ($context["filter_quantity"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_quantity"] ?? null);
        echo "\" id=\"input-quantity\" class=\"form-control\" />
                    </div>
                </div>
                <div class=\"col-md-2\">
                    <div class=\"form-group\">
                      <label class=\"control-label\" for=\"input-status\">";
        // line 108
        echo ($context["entry_status"] ?? null);
        echo "</label>
                      <select name=\"filter_status\" id=\"input-status\" class=\"form-control\">
                        <option value=\"\"></option>
                          ";
        // line 111
        if ((($context["filter_status"] ?? null) == "1")) {
            // line 112
            echo "                        <option value=\"1\" selected=\"selected\">";
            echo ($context["text_enabled"] ?? null);
            echo "</option>
                          ";
        } else {
            // line 114
            echo "                        <option value=\"1\">";
            echo ($context["text_enabled"] ?? null);
            echo "</option>
                          ";
        }
        // line 116
        echo "                          ";
        if ((($context["filter_status"] ?? null) == "0")) {
            // line 117
            echo "                        <option value=\"0\" selected=\"selected\">";
            echo ($context["text_disabled"] ?? null);
            echo "</option>
                          ";
        } else {
            // line 119
            echo "                        <option value=\"0\">";
            echo ($context["text_disabled"] ?? null);
            echo "</option>
                          ";
        }
        // line 121
        echo "                      </select>
                    </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 128
        echo ($context["button_filter"] ?? null);
        echo "</button>
              <button type=\"button\" id=\"button-clear\" class=\"btn btn-danger\">";
        // line 129
        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 140
        echo ($context["text_list"] ?? null);
        echo "</h3>
          </div>
          <div class=\"panel-body\">
            <form action=\"";
        // line 143
        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 149
        echo ($context["column_id"] ?? null);
        echo "</td>
                      <td class=\"text-center\">";
        // line 150
        echo ($context["column_image"] ?? null);
        echo "</td>
                      <td class=\"text-left\">";
        // line 151
        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 152
        echo ($context["entry_category"] ?? null);
        echo "</td>
                      <td class=\"text-left\">";
        // line 153
        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 154
        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 155
        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 156
        echo ($context["text_viewed"] ?? null);
        echo "</td>
                      <td class=\"text-left\">";
        // line 157
        echo ($context["text_date_added"] ?? null);
        echo "</td>
                      <td class=\"text-right\">";
        // line 158
        echo ($context["column_action"] ?? null);
        echo "</td>
                    </tr>
                  </thead>
                  <tbody>
                  
                  ";
        // line 163
        if (($context["products"] ?? null)) {
            // line 164
            echo "                  ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["products"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
                // line 165
                echo "                  <tr>
                    <td class=\"text-center\">";
                // line 166
                if (twig_in_filter(twig_get_attribute($this->env, $this->source, $context["product"], "product_id", [], "any", false, false, false, 166), ($context["selected"] ?? null))) {
                    // line 167
                    echo "                      <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "product_id", [], "any", false, false, false, 167);
                    echo "\" checked=\"checked\" />
                      ";
                } else {
                    // line 169
                    echo "                      <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "product_id", [], "any", false, false, false, 169);
                    echo "\" />
                      ";
                }
                // line 170
                echo "</td>
                    <td class=\"text-center\">";
                // line 171
                echo twig_get_attribute($this->env, $this->source, $context["product"], "product_id", [], "any", false, false, false, 171);
                echo "</td>
                    <td class=\"text-center\">";
                // line 172
                if (twig_get_attribute($this->env, $this->source, $context["product"], "image", [], "any", false, false, false, 172)) {
                    echo " <img src=\"";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "image", [], "any", false, false, false, 172);
                    echo "\" alt=\"";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 172);
                    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 173
                echo twig_get_attribute($this->env, $this->source, $context["product"], "view", [], "any", false, false, false, 173);
                echo "\" target=\"_blank\">";
                echo twig_get_attribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 173);
                echo "</a></td>
                    <td class=\"text-left\">";
                // line 174
                $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, 174), twig_get_attribute($this->env, $this->source, $context["product"], "category", [], "any", false, false, false, 174))) {
                        echo twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 174);
                        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 175
                if (twig_get_attribute($this->env, $this->source, $context["product"], "special", [], "any", false, false, false, 175)) {
                    echo " <span style=\"text-decoration: line-through;\">";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "price", [], "any", false, false, false, 175);
                    echo "</span><br/>
                      <div class=\"text-danger\">";
                    // line 176
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "special", [], "any", false, false, false, 176);
                    echo "</div>
                      ";
                } else {
                    // line 178
                    echo "                      ";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "price", [], "any", false, false, false, 178);
                    echo "
                      ";
                }
                // line 179
                echo "</td>
                    <td class=\"text-left\">
                        ";
                // line 181
                if (twig_get_attribute($this->env, $this->source, $context["product"], "subtract", [], "any", false, false, false, 181)) {
                    // line 182
                    echo "                        <small class=\"text-success\">Yes</small>
                        ";
                } else {
                    // line 184
                    echo "                        <small class=\"text-danger\">No</small>
                        ";
                }
                // line 186
                echo "                        ";
                if ((twig_get_attribute($this->env, $this->source, $context["product"], "quantity", [], "any", false, false, false, 186) <= 0)) {
                    echo " <span class=\"label label-warning\">";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "quantity", [], "any", false, false, false, 186);
                    echo "</span> 
                        ";
                } elseif ((twig_get_attribute($this->env, $this->source,                 // line 187
$context["product"], "quantity", [], "any", false, false, false, 187) <= 5)) {
                    echo " <span class=\"label label-danger\">";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "quantity", [], "any", false, false, false, 187);
                    echo "</span> 
                        ";
                } else {
                    // line 188
                    echo " <span class=\"label label-success\">";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "quantity", [], "any", false, false, false, 188);
                    echo "</span> 
                        ";
                }
                // line 190
                echo "                        
                    </td>
                    <td class=\"text-left\">
\t\t\t\t\t    ";
                // line 193
                echo twig_get_attribute($this->env, $this->source, $context["product"], "stock_status", [], "any", false, false, false, 193);
                echo "<br/>
\t\t\t\t\t    ";
                // line 194
                if (twig_get_attribute($this->env, $this->source, $context["product"], "status", [], "any", false, false, false, 194)) {
                    // line 195
                    echo "                          <small class=\"text-success\">";
                    echo ($context["text_enabled"] ?? null);
                    echo "</small>
                        ";
                } else {
                    // line 197
                    echo "                          <small class=\"text-danger\">";
                    echo ($context["text_disabled"] ?? null);
                    echo "</small>
                        ";
                }
                // line 199
                echo "\t\t\t\t\t</td>
\t\t\t\t\t<td class=\"text-left\">
\t\t\t\t\t\t";
                // line 201
                if ((twig_get_attribute($this->env, $this->source, $context["product"], "viewed", [], "any", false, false, false, 201) <= 50)) {
                    // line 202
                    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, 202);
                    echo "</font></span>
\t\t\t\t\t\t";
                } elseif ((twig_get_attribute($this->env, $this->source,                 // line 203
$context["product"], "viewed", [], "any", false, false, false, 203) <= 100)) {
                    // line 204
                    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, 204);
                    echo "</font></span>
\t\t\t\t\t\t";
                } else {
                    // line 206
                    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, 206);
                    echo "</font></span>
\t\t\t\t\t\t";
                }
                // line 208
                echo "\t\t\t\t\t</td>
\t\t\t\t\t<td class=\"text-left\">
\t\t\t\t\t\t<i class=\"fa fa-calendar\" data-toggle=\"tooltip\" title=\"";
                // line 210
                echo ($context["text_date_added"] ?? null);
                echo "\"></i> ";
                echo twig_get_attribute($this->env, $this->source, $context["product"], "date_added", [], "any", false, false, false, 210);
                echo " ";
                if (twig_get_attribute($this->env, $this->source, $context["product"], "added_by", [], "any", false, false, false, 210)) {
                    echo " (";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "added_by", [], "any", false, false, false, 210);
                    echo ") ";
                }
                echo " <br/>
\t\t\t\t\t\t<i class=\"fa fa-refresh\" data-toggle=\"tooltip\" title=\"";
                // line 211
                echo ($context["text_date_modified"] ?? null);
                echo "\"></i> ";
                echo twig_get_attribute($this->env, $this->source, $context["product"], "date_modified", [], "any", false, false, false, 211);
                echo " ";
                if (twig_get_attribute($this->env, $this->source, $context["product"], "updated_by", [], "any", false, false, false, 211)) {
                    echo " (";
                    echo twig_get_attribute($this->env, $this->source, $context["product"], "updated_by", [], "any", false, false, false, 211);
                    echo ") ";
                }
                // line 212
                echo "\t\t\t\t\t</td>
                    <td class=\"text-right\">
                        <a href=\"";
                // line 214
                echo twig_get_attribute($this->env, $this->source, $context["product"], "edit", [], "any", false, false, false, 214);
                echo "\" data-toggle=\"tooltip\" title=\"";
                echo ($context["button_edit"] ?? null);
                echo "\" class=\"btn btn-primary\"><i class=\"fa fa-pencil\"></i></a>
                        <a href=\"";
                // line 215
                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, 215);
                echo "\" target=\"_blank\" data-toggle=\"tooltip\" title=\"";
                echo ($context["button_view"] ?? null);
                echo "\" class=\"btn btn-primary\"><i class=\"fa fa-eye\"></i></a>
                    </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 219
            echo "                  ";
        } else {
            // line 220
            echo "                  <tr>
                    <td class=\"text-center\" colspan=\"8\">";
            // line 221
            echo ($context["text_no_results"] ?? null);
            echo "</td>
                  </tr>
                  ";
        }
        // line 224
        echo "                    </tbody>
                  
                </table>
              </div>
            </form>
            <div class=\"row\">
              <div class=\"col-sm-6 text-left\">";
        // line 230
        echo ($context["pagination"] ?? null);
        echo "</div>
              <div class=\"col-sm-6 text-right\">";
        // line 231
        echo ($context["results"] ?? null);
        echo "</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <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 = \$('select[name=\\'filter_category_id\\']').val();

    if (filter_category_id != '*') {
        url += '&filter_category_id=' + encodeURIComponent(filter_category_id);
    }
    
    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 = \$('select[name=\\'filter_manufacture\\']').val();

    if (filter_manufacture != '*') {
        url += '&filter_manufacture=' + encodeURIComponent(filter_manufacture);
    }

\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}

\tlocation = 'index.php?route=catalog/product&user_token=";
        // line 296
        echo ($context["user_token"] ?? null);
        echo "' + url;
});
\$('#button-clear').on('click', function() {
\t location ='index.php?route=catalog/product&user_token=";
        // line 299
        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 311
        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=\\'filter_model\\']').autocomplete({
\t'source': function(request, response) {
\t\t\$.ajax({
\t\t\turl: 'index.php?route=catalog/product/autocomplete&user_token=";
        // line 331
        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 348
        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 (  861 => 348,  841 => 331,  818 => 311,  803 => 299,  797 => 296,  729 => 231,  725 => 230,  717 => 224,  711 => 221,  708 => 220,  705 => 219,  691 => 215,  685 => 214,  681 => 212,  671 => 211,  659 => 210,  655 => 208,  647 => 206,  639 => 204,  637 => 203,  630 => 202,  628 => 201,  624 => 199,  618 => 197,  612 => 195,  610 => 194,  606 => 193,  601 => 190,  595 => 188,  588 => 187,  581 => 186,  577 => 184,  573 => 182,  571 => 181,  567 => 179,  561 => 178,  556 => 176,  550 => 175,  536 => 174,  530 => 173,  518 => 172,  514 => 171,  511 => 170,  505 => 169,  499 => 167,  497 => 166,  494 => 165,  489 => 164,  487 => 163,  479 => 158,  475 => 157,  471 => 156,  453 => 155,  435 => 154,  417 => 153,  413 => 152,  395 => 151,  391 => 150,  387 => 149,  378 => 143,  372 => 140,  358 => 129,  354 => 128,  345 => 121,  339 => 119,  333 => 117,  330 => 116,  324 => 114,  318 => 112,  316 => 111,  310 => 108,  300 => 103,  296 => 102,  286 => 97,  282 => 96,  272 => 91,  268 => 90,  261 => 85,  246 => 83,  242 => 82,  236 => 79,  229 => 74,  214 => 72,  210 => 71,  204 => 68,  197 => 63,  191 => 62,  183 => 60,  175 => 58,  172 => 57,  168 => 56,  162 => 53,  152 => 48,  148 => 47,  138 => 42,  134 => 41,  124 => 34,  117 => 29,  109 => 25,  106 => 24,  98 => 20,  96 => 19,  91 => 16,  80 => 14,  76 => 13,  71 => 11,  62 => 9,  56 => 8,  50 => 7,  46 => 6,  37 => 1,);
    }

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