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

/* member/member_list.twig */
class __TwigTemplate_75c58760f4d6b4aabe1b39b2cc9c43be1b87a9b15a26754c503805e1c3a29e96 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 id=\"tbl-tier\" 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
        if ((($context["sort"] ?? null) == "first_name ")) {
            // line 39
            echo "                    <a href=\"";
            echo ($context["sort_first_name"] ?? null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, ($context["order"] ?? null));
            echo "\">";
            echo ($context["column_first_name"] ?? null);
            echo "</a>
                    ";
        } else {
            // line 41
            echo "                    <a href=\"";
            echo ($context["sort_first_name"] ?? null);
            echo "\">";
            echo ($context["column_first_name"] ?? null);
            echo "</a>
                    ";
        }
        // line 42
        echo "</td>
                  <td class=\"text-left\">";
        // line 43
        if ((($context["sort"] ?? null) == "last_name ")) {
            // line 44
            echo "                    <a href=\"";
            echo ($context["sort_last_name"] ?? null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, ($context["order"] ?? null));
            echo "\">";
            echo ($context["column_last_name"] ?? null);
            echo "</a>
                    ";
        } else {
            // line 46
            echo "                    <a href=\"";
            echo ($context["sort_last_name"] ?? null);
            echo "\">";
            echo ($context["column_last_name"] ?? null);
            echo "</a>
                    ";
        }
        // line 47
        echo "</td>
                  <td class=\"text-left\">";
        // line 48
        echo ($context["column_email"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 49
        echo ($context["column_phone_no"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 50
        echo ($context["column_gender"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 51
        echo ($context["column_date_of_birth"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 52
        echo ($context["column_tier_level"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 53
        echo ($context["column_tier_expiry_date"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 54
        if ((($context["sort"] ?? null) == "total_available_point")) {
            // line 55
            echo "                    <a href=\"";
            echo ($context["sort_total_available_point"] ?? null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, ($context["order"] ?? null));
            echo "\">";
            echo ($context["column_total_available_point"] ?? null);
            echo "</a>
                    ";
        } else {
            // line 57
            echo "                    <a href=\"";
            echo ($context["sort_total_available_point"] ?? null);
            echo "\">";
            echo ($context["column_total_available_point"] ?? null);
            echo "</a>
                    ";
        }
        // line 58
        echo "</td>
                  <td class=\"text-left\">";
        // line 59
        echo ($context["column_total_tier_archived_purchase"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 60
        if ((($context["sort"] ?? null) == "status")) {
            // line 61
            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 63
            echo "                    <a href=\"";
            echo ($context["sort_status"] ?? null);
            echo "\">";
            echo ($context["column_status"] ?? null);
            echo "</a>
                    ";
        }
        // line 64
        echo "</td>
                  <td class=\"text-left\">";
        // line 65
        if ((($context["sort"] ?? null) == "date_added")) {
            // line 66
            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 68
            echo "                    <a href=\"";
            echo ($context["sort_date_added"] ?? null);
            echo "\">";
            echo ($context["column_date_added"] ?? null);
            echo "</a>
                    ";
        }
        // line 69
        echo "</td>
                  <td class=\"text-right\">";
        // line 70
        echo ($context["column_action"] ?? null);
        echo "</td>
                </tr>
              </thead>
              <tbody>
                ";
        // line 74
        if (($context["members"] ?? null)) {
            // line 75
            echo "                ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["members"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["member"]) {
                // line 76
                echo "                <tr>
                  <td class=\"text-center\">";
                // line 77
                if (twig_in_filter(twig_get_attribute($this->env, $this->source, $context["member"], "member_id", [], "any", false, false, false, 77), ($context["selected"] ?? null))) {
                    // line 78
                    echo "                    <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo twig_get_attribute($this->env, $this->source, $context["member"], "member_id", [], "any", false, false, false, 78);
                    echo "\" checked=\"checked\" />
                    ";
                } else {
                    // line 80
                    echo "                    <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo twig_get_attribute($this->env, $this->source, $context["member"], "member_id", [], "any", false, false, false, 80);
                    echo "\" />
                    ";
                }
                // line 81
                echo "</td>
                  <td class=\"text-left\">";
                // line 82
                echo twig_get_attribute($this->env, $this->source, $context["member"], "first_name", [], "any", false, false, false, 82);
                echo "</td>
                  <td class=\"text-left\">";
                // line 83
                echo twig_get_attribute($this->env, $this->source, $context["member"], "last_name", [], "any", false, false, false, 83);
                echo "</td>
                  <td class=\"text-left\" >";
                // line 84
                echo twig_get_attribute($this->env, $this->source, $context["member"], "email", [], "any", false, false, false, 84);
                echo "</td>
                  <td class=\"text-left\" >";
                // line 85
                echo twig_get_attribute($this->env, $this->source, $context["member"], "phone_no", [], "any", false, false, false, 85);
                echo "</td>
                  <td class=\"text-left\" >";
                // line 86
                echo twig_get_attribute($this->env, $this->source, $context["member"], "gender", [], "any", false, false, false, 86);
                echo "</td>
                  <td class=\"text-left\" >";
                // line 87
                echo twig_get_attribute($this->env, $this->source, $context["member"], "date_of_birth", [], "any", false, false, false, 87);
                echo "</td>
                  <td class=\"text-left\" >";
                // line 88
                echo twig_get_attribute($this->env, $this->source, $context["member"], "tier_level", [], "any", false, false, false, 88);
                echo "</td>
                  <td class=\"text-left\" >";
                // line 89
                echo twig_get_attribute($this->env, $this->source, $context["member"], "tier_expiry_date", [], "any", false, false, false, 89);
                echo "</td>
                  <td class=\"text-left\" >";
                // line 90
                echo twig_get_attribute($this->env, $this->source, $context["member"], "total_available_point", [], "any", false, false, false, 90);
                echo "</td>
                  <td class=\"text-left\" >";
                // line 91
                echo twig_get_attribute($this->env, $this->source, $context["member"], "total_tier_archived_purchase", [], "any", false, false, false, 91);
                echo "</td>
                  <td class=\"text-left\">";
                // line 92
                echo twig_get_attribute($this->env, $this->source, $context["member"], "status", [], "any", false, false, false, 92);
                echo "</td>
                  <td class=\"text-left\">";
                // line 93
                echo twig_get_attribute($this->env, $this->source, $context["member"], "date_added", [], "any", false, false, false, 93);
                echo "</td>
                  <td class=\"text-right\"><a href=\"";
                // line 94
                echo twig_get_attribute($this->env, $this->source, $context["member"], "edit", [], "any", false, false, false, 94);
                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['member'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 97
            echo "                ";
        } else {
            // line 98
            echo "                <tr>
                  <td class=\"text-center\" colspan=\"10\">";
            // line 99
            echo ($context["text_no_results"] ?? null);
            echo "</td>
                </tr>
                ";
        }
        // line 102
        echo "              </tbody>
            </table>
          </div>
        </form>
        <div class=\"row\">
          <div class=\"col-sm-6 text-left\">";
        // line 107
        echo ($context["pagination"] ?? null);
        echo "</div>
          <div class=\"col-sm-6 text-right\">";
        // line 108
        echo ($context["results"] ?? null);
        echo "</div>
        </div>
      </div>
    </div>
  </div>
</div>
";
        // line 114
        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 "member/member_list.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  392 => 114,  383 => 108,  379 => 107,  372 => 102,  366 => 99,  363 => 98,  360 => 97,  349 => 94,  345 => 93,  341 => 92,  337 => 91,  333 => 90,  329 => 89,  325 => 88,  321 => 87,  317 => 86,  313 => 85,  309 => 84,  305 => 83,  301 => 82,  298 => 81,  292 => 80,  286 => 78,  284 => 77,  281 => 76,  276 => 75,  274 => 74,  267 => 70,  264 => 69,  256 => 68,  246 => 66,  244 => 65,  241 => 64,  233 => 63,  223 => 61,  221 => 60,  217 => 59,  214 => 58,  206 => 57,  196 => 55,  194 => 54,  190 => 53,  186 => 52,  182 => 51,  178 => 50,  174 => 49,  170 => 48,  167 => 47,  159 => 46,  149 => 44,  147 => 43,  144 => 42,  136 => 41,  126 => 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("", "member/member_list.twig", "");
    }
}
