<?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_d7a18a246f78367912b555d83ca9fad6fce1371785c93614ca615c2279034bb1 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 5
        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=\"button\" data-toggle=\"tooltip\" title=\"";
        // line 6
        echo ($context["button_delete"] ?? null);
        echo "\" class=\"btn btn-danger\" onclick=\"confirm('";
        echo ($context["text_confirm"] ?? null);
        echo "') ? \$('#form-reward').submit() : false;\"><i class=\"fa fa-trash-o\"></i></button>
      </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 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-left\">";
        // line 38
        echo ($context["column_image"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 39
        if ((($context["sort"] ?? null) == "title")) {
            // line 40
            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 42
            echo "                    <a href=\"";
            echo ($context["sort_title"] ?? null);
            echo "\">";
            echo ($context["column_title"] ?? null);
            echo "</a>
                    ";
        }
        // line 43
        echo "</td>
                  <td class=\"text-left\">";
        // line 44
        if ((($context["sort"] ?? null) == "reward_type")) {
            // line 45
            echo "                    <a href=\"";
            echo ($context["sort_reward_type"] ?? null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, ($context["order"] ?? null));
            echo "\">";
            echo ($context["column_reward_type"] ?? null);
            echo "</a>
                    ";
        } else {
            // line 47
            echo "                    <a href=\"";
            echo ($context["sort_reward_type"] ?? null);
            echo "\">";
            echo ($context["column_reward_type"] ?? null);
            echo "</a>
                    ";
        }
        // line 48
        echo "</td>
                  <td class=\"text-left\">";
        // line 49
        echo ($context["column_description"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 50
        echo ($context["column_tc"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 51
        echo ($context["column_details"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 52
        if ((($context["sort"] ?? null) == "status")) {
            // line 53
            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 55
            echo "                    <a href=\"";
            echo ($context["sort_status"] ?? null);
            echo "\">";
            echo ($context["column_status"] ?? null);
            echo "</a>
                    ";
        }
        // line 56
        echo "</td>
                  <td class=\"text-left\">";
        // line 57
        if ((($context["sort"] ?? null) == "date_added")) {
            // line 58
            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 60
            echo "                    <a href=\"";
            echo ($context["sort_date_added"] ?? null);
            echo "\">";
            echo ($context["column_date_added"] ?? null);
            echo "</a>
                    ";
        }
        // line 61
        echo "</td>
                  <td class=\"text-right\">";
        // line 62
        echo ($context["column_action"] ?? null);
        echo "</td>
                </tr>
              </thead>
              <tbody>
                ";
        // line 66
        if (($context["rewards"] ?? null)) {
            // line 67
            echo "                ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["rewards"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["reward"]) {
                // line 68
                echo "                <tr>
                  <td class=\"text-center\">";
                // line 69
                if (twig_in_filter(twig_get_attribute($this->env, $this->source, ($context["tier"] ?? null), "tier_setting_id", [], "any", false, false, false, 69), ($context["selected"] ?? null))) {
                    // line 70
                    echo "                    <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo twig_get_attribute($this->env, $this->source, ($context["tier"] ?? null), "tier_setting_id", [], "any", false, false, false, 70);
                    echo "\" checked=\"checked\" />
                    ";
                } else {
                    // line 72
                    echo "                    <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo twig_get_attribute($this->env, $this->source, ($context["tier"] ?? null), "tier_setting_id", [], "any", false, false, false, 72);
                    echo "\" />
                    ";
                }
                // line 73
                echo "</td>
                  <td class=\"text-center\">";
                // line 74
                if (twig_get_attribute($this->env, $this->source, ($context["tier"] ?? null), "image", [], "any", false, false, false, 74)) {
                    echo " <img src=\"";
                    echo twig_get_attribute($this->env, $this->source, ($context["tier"] ?? null), "image", [], "any", false, false, false, 74);
                    echo "\" alt=\"";
                    echo twig_get_attribute($this->env, $this->source, ($context["product"] ?? null), "name", [], "any", false, false, false, 74);
                    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 75
                echo twig_get_attribute($this->env, $this->source, ($context["tier"] ?? null), "title", [], "any", false, false, false, 75);
                echo "</td>
                  <td class=\"text-left\">";
                // line 76
                echo twig_get_attribute($this->env, $this->source, ($context["tier"] ?? null), "reward_type", [], "any", false, false, false, 76);
                echo "</td>
                  <td class=\"text-left\">";
                // line 77
                echo twig_get_attribute($this->env, $this->source, ($context["tier"] ?? null), "description", [], "any", false, false, false, 77);
                echo "</td>
                  <td class=\"text-left\">";
                // line 78
                echo twig_get_attribute($this->env, $this->source, ($context["tier"] ?? null), "term_and_condition", [], "any", false, false, false, 78);
                echo "</td>
                  <td class=\"text-left\">";
                // line 79
                echo twig_get_attribute($this->env, $this->source, ($context["tier"] ?? null), "details", [], "any", false, false, false, 79);
                echo "</td>
                  <td class=\"text-left\">";
                // line 80
                echo twig_get_attribute($this->env, $this->source, ($context["tier"] ?? null), "status", [], "any", false, false, false, 80);
                echo "</td>
                  <td class=\"text-left\">";
                // line 81
                echo twig_get_attribute($this->env, $this->source, ($context["tier"] ?? null), "date_added", [], "any", false, false, false, 81);
                echo "</td>
                  <td class=\"text-right\"><a href=\"";
                // line 82
                echo twig_get_attribute($this->env, $this->source, ($context["tier"] ?? null), "edit", [], "any", false, false, false, 82);
                echo "\" data-toggle=\"tooltip\" title=\"";
                echo ($context["button_edit"] ?? null);
                echo "\" class=\"btn btn-primary\"><i class=\"fa fa-pencil\"></i></a></td>
                </tr>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reward'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 85
            echo "                ";
        } else {
            // line 86
            echo "                <tr>
                  <td class=\"text-center\" colspan=\"5\">";
            // line 87
            echo ($context["text_no_results"] ?? null);
            echo "</td>
                </tr>
                ";
        }
        // line 90
        echo "              </tbody>
            </table>
          </div>
        </form>
        <div class=\"row\">
          <div class=\"col-sm-6 text-left\">";
        // line 95
        echo ($context["pagination"] ?? null);
        echo "</div>
          <div class=\"col-sm-6 text-right\">";
        // line 96
        echo ($context["results"] ?? null);
        echo "</div>
        </div>
      </div>
    </div>
  </div>
</div>
";
        // line 102
        echo ($context["footer"] ?? null);
        echo " ";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  349 => 102,  340 => 96,  336 => 95,  329 => 90,  323 => 87,  320 => 86,  317 => 85,  306 => 82,  302 => 81,  298 => 80,  294 => 79,  290 => 78,  286 => 77,  282 => 76,  278 => 75,  266 => 74,  263 => 73,  257 => 72,  251 => 70,  249 => 69,  246 => 68,  241 => 67,  239 => 66,  232 => 62,  229 => 61,  221 => 60,  211 => 58,  209 => 57,  206 => 56,  198 => 55,  188 => 53,  186 => 52,  182 => 51,  178 => 50,  174 => 49,  171 => 48,  163 => 47,  153 => 45,  151 => 44,  148 => 43,  140 => 42,  130 => 40,  128 => 39,  124 => 38,  115 => 32,  109 => 29,  105 => 27,  97 => 23,  94 => 22,  86 => 18,  84 => 17,  78 => 13,  67 => 11,  63 => 10,  58 => 8,  51 => 6,  45 => 5,  37 => 1,);
    }

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