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

/* reward/tier_list.twig */
class __TwigTemplate_f5686fe41b06e6836c4c316425f47d4811c9f1d716391f4e16fba9b49ecb6a5b extends \Twig\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\">
      <a href=\"";
        // line 6
        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>
      </div>
      <h1>";
        // line 8
        echo ($context["heading_title"] ?? null);
        echo "</h1>
      <ul class=\"breadcrumb\">
        ";
        // line 10
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["breadcrumbs"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 11
            echo "        <li><a href=\"";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "href", [], "any", false, false, false, 11);
            echo "\">";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "text", [], "any", false, false, false, 11);
            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 13
        echo "      </ul>
    </div>
  </div>
  <div class=\"container-fluid\">
    ";
        // line 17
        if (($context["error_warning"] ?? null)) {
            // line 18
            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 22
        echo "    ";
        if (($context["success"] ?? null)) {
            // line 23
            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 27
        echo "    <div class=\"panel panel-default\">
      <div class=\"panel-heading\">
        <h3 class=\"panel-title\"><i class=\"fa fa-list\"></i> ";
        // line 29
        echo ($context["text_list"] ?? null);
        echo "</h3>
      </div>
      <div class=\"panel-body\">
        <form action=\"";
        // line 32
        echo ($context["delete"] ?? null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-reward\">
          <div class=\"table-responsive\">
            <table id=\"tbl-tier\" class=\"table table-bordered table-hover\">
              <thead>
                <tr>
                  <td class=\"text-left\">";
        // line 37
        echo ($context["column_image"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 38
        if ((($context["sort"] ?? null) == "title")) {
            // line 39
            echo "                    <a href=\"";
            echo ($context["sort_title"] ?? null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, ($context["order"] ?? null));
            echo "\">";
            echo ($context["column_title"] ?? null);
            echo "</a>
                    ";
        } else {
            // line 41
            echo "                    <a href=\"";
            echo ($context["sort_title"] ?? null);
            echo "\">";
            echo ($context["column_title"] ?? null);
            echo "</a>
                    ";
        }
        // line 42
        echo "</td>
                  <td class=\"text-left\">";
        // line 43
        echo ($context["column_description"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 44
        echo ($context["column_tc"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 45
        echo ($context["column_multiplier_rate"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 46
        echo ($context["column_details"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 47
        if ((($context["sort"] ?? null) == "status")) {
            // line 48
            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 {
            // line 50
            echo "                    <a href=\"";
            echo ($context["sort_status"] ?? null);
            echo "\">";
            echo ($context["column_status"] ?? null);
            echo "</a>
                    ";
        }
        // line 51
        echo "</td>
                  <td class=\"text-left\">";
        // line 52
        if ((($context["sort"] ?? null) == "date_added")) {
            // line 53
            echo "                    <a href=\"";
            echo ($context["sort_date_added"] ?? null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, ($context["order"] ?? null));
            echo "\">";
            echo ($context["column_date_added"] ?? null);
            echo "</a>
                    ";
        } else {
            // line 55
            echo "                    <a href=\"";
            echo ($context["sort_date_added"] ?? null);
            echo "\">";
            echo ($context["column_date_added"] ?? null);
            echo "</a>
                    ";
        }
        // line 56
        echo "</td>
                  <td class=\"text-right\">";
        // line 57
        echo ($context["column_action"] ?? null);
        echo "</td>
                </tr>
              </thead>
              <tbody>
                ";
        // line 61
        if (($context["tiers"] ?? null)) {
            // line 62
            echo "                ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["tiers"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["tier"]) {
                // line 63
                echo "                <tr>
                  <td class=\"text-center\">";
                // line 64
                if (twig_get_attribute($this->env, $this->source, $context["tier"], "image", [], "any", false, false, false, 64)) {
                    echo " <img src=\"";
                    echo twig_get_attribute($this->env, $this->source, $context["tier"], "image", [], "any", false, false, false, 64);
                    echo "\" alt=\"";
                    echo twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "name", [], "any", false, false, false, 64);
                    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\">";
                // line 65
                echo twig_get_attribute($this->env, $this->source, $context["tier"], "title", [], "any", false, false, false, 65);
                echo "</td>
                  <td class=\"text-left row-fix-width\" >";
                // line 66
                echo twig_get_attribute($this->env, $this->source, $context["tier"], "description", [], "any", false, false, false, 66);
                echo "</td>
                  <td class=\"text-left row-fix-width\" >";
                // line 67
                echo twig_get_attribute($this->env, $this->source, $context["tier"], "term_and_condition", [], "any", false, false, false, 67);
                echo "</td>
                  <td class=\"text-left\">
                        <table>
                           <tr>
                            <td class=\"text-right\"><b>";
                // line 71
                echo ($context["text_regular_item"] ?? null);
                echo ": </b></td>
                            <td class=\"text-left\"> ";
                // line 72
                echo twig_get_attribute($this->env, $this->source, $context["tier"], "multiply_regular_item", [], "any", false, false, false, 72);
                echo " </td>
                           </tr>
                             <tr>
                            <td class=\"text-right\"><b>";
                // line 75
                echo ($context["text_sales_item"] ?? null);
                echo ": </b></td>
                            <td class=\"text-left\"> ";
                // line 76
                echo twig_get_attribute($this->env, $this->source, $context["tier"], "multiply_sales_item", [], "any", false, false, false, 76);
                echo " </td>
                           </tr>
                        </table>
                  </td>
                  <td class=\"text-left\">
                   <table>
                           <tr>
                              <td class=\"text-right\"><b>";
                // line 83
                echo ($context["text_achieve_tier_amount"] ?? null);
                echo ": </b></td>
                              <td class=\"text-left\"> ";
                // line 84
                echo twig_get_attribute($this->env, $this->source, $context["tier"], "achieve_tier_amount", [], "any", false, false, false, 84);
                echo " </td>
                           </tr>
                            <tr>
                              <td class=\"text-right\"><b>";
                // line 87
                echo ($context["text_maintain_tier_type"] ?? null);
                echo ": </b></td>
                              <td class=\"text-left\"> ";
                // line 88
                echo (((twig_get_attribute($this->env, $this->source, $context["tier"], "maintain_tier_type_id", [], "any", false, false, false, 88) == 1)) ? (($context["text_cash"] ?? null)) : (($context["text_point"] ?? null)));
                echo " </td>
                           </tr>
                           <tr>
                              <td class=\"text-right\"><b>";
                // line 91
                echo ($context["text_maintain_tier_amount"] ?? null);
                echo ": </b></td>
                              <td class=\"text-left\"> ";
                // line 92
                echo twig_get_attribute($this->env, $this->source, $context["tier"], "maintain_tier_amount", [], "any", false, false, false, 92);
                echo " </td>
                           </tr>
                           <tr>
                              <td class=\"text-right\"><b>";
                // line 95
                echo ($context["text_point_expiry"] ?? null);
                echo ": </b></td>
                              <td class=\"text-left\"> ";
                // line 96
                echo twig_get_attribute($this->env, $this->source, $context["tier"], "point_expiry", [], "any", false, false, false, 96);
                echo " </td>
                           </tr>
                           <tr>
                              <td class=\"text-right\"><b>";
                // line 99
                echo ($context["text_tier_expiry"] ?? null);
                echo ": </b></td>
                              <td class=\"text-left\"> ";
                // line 100
                echo twig_get_attribute($this->env, $this->source, $context["tier"], "tier_expiry", [], "any", false, false, false, 100);
                echo " </td>
                           </tr>
                        </table>
                  </td>
                  <td class=\"text-left\">";
                // line 104
                echo twig_get_attribute($this->env, $this->source, $context["tier"], "status", [], "any", false, false, false, 104);
                echo "</td>
                  <td class=\"text-left\">";
                // line 105
                echo twig_get_attribute($this->env, $this->source, $context["tier"], "date_added", [], "any", false, false, false, 105);
                echo "</td>
                  <td class=\"text-right\">
                    <a href=\"";
                // line 107
                echo twig_get_attribute($this->env, $this->source, $context["tier"], "edit", [], "any", false, false, false, 107);
                echo "\" data-toggle=\"tooltip\" title=\"";
                echo ($context["button_edit"] ?? null);
                echo "\" class=\"btn btn-primary\"><i class=\"fa fa-pencil\"></i></a>
                    ";
                // line 108
                if (twig_get_attribute($this->env, $this->source, $context["tier"], "delete", [], "any", false, false, false, 108)) {
                    // line 109
                    echo "                      <a href=\"";
                    echo twig_get_attribute($this->env, $this->source, $context["tier"], "delete", [], "any", false, false, false, 109);
                    echo "\" data-toggle=\"tooltip\" title=\"";
                    echo ($context["button_delete"] ?? null);
                    echo "\" class=\"btn btn-danger\"><i class=\"fa fa-trash-o\"></i></a>
                     ";
                }
                // line 111
                echo "                  </td>
                </tr>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tier'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 114
            echo "                ";
        } else {
            // line 115
            echo "                <tr>
                  <td class=\"text-center\" colspan=\"10\">";
            // line 116
            echo ($context["text_no_results"] ?? null);
            echo "</td>
                </tr>
                ";
        }
        // line 119
        echo "              </tbody>
            </table>
          </div>
        </form>
        <div class=\"row\">
          <div class=\"col-sm-6 text-left\">";
        // line 124
        echo ($context["pagination"] ?? null);
        echo "</div>
          <div class=\"col-sm-6 text-right\">";
        // line 125
        echo ($context["results"] ?? null);
        echo "</div>
        </div>
      </div>
    </div>
  </div>
</div>
";
        // line 131
        echo ($context["footer"] ?? null);
        echo " 

<style>
#tbl-tier > tbody > tr > td {
    white-space: normal;
    word-wrap: break-word;
}

.row-fix-width
{
  max-width:100px;
}
</style>

";
    }

    public function getTemplateName()
    {
        return "reward/tier_list.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  391 => 131,  382 => 125,  378 => 124,  371 => 119,  365 => 116,  362 => 115,  359 => 114,  351 => 111,  343 => 109,  341 => 108,  335 => 107,  330 => 105,  326 => 104,  319 => 100,  315 => 99,  309 => 96,  305 => 95,  299 => 92,  295 => 91,  289 => 88,  285 => 87,  279 => 84,  275 => 83,  265 => 76,  261 => 75,  255 => 72,  251 => 71,  244 => 67,  240 => 66,  236 => 65,  224 => 64,  221 => 63,  216 => 62,  214 => 61,  207 => 57,  204 => 56,  196 => 55,  186 => 53,  184 => 52,  181 => 51,  173 => 50,  163 => 48,  161 => 47,  157 => 46,  153 => 45,  149 => 44,  145 => 43,  142 => 42,  134 => 41,  124 => 39,  122 => 38,  118 => 37,  110 => 32,  104 => 29,  100 => 27,  92 => 23,  89 => 22,  81 => 18,  79 => 17,  73 => 13,  62 => 11,  58 => 10,  53 => 8,  46 => 6,  37 => 1,);
    }

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