<?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_form.twig */
class __TwigTemplate_0ae1efbba7d04110287ce0de444d49ccb2bd644285d1080de148896c8bb07f10 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\">
        <button type=\"submit\" form=\"form-member\" data-toggle=\"tooltip\" title=\"";
        // line 6
        echo ($context["button_save"] ?? null);
        echo "\" class=\"btn btn-primary\"><i class=\"fa fa-save\"></i></button>
        <a href=\"";
        // line 7
        echo ($context["cancel"] ?? null);
        echo "\" data-toggle=\"tooltip\" title=\"";
        echo ($context["button_cancel"] ?? null);
        echo "\" class=\"btn btn-default\"><i class=\"fa fa-reply\"></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 "    <div class=\"panel panel-default\">
      <div class=\"panel-heading\">
        <h3 class=\"panel-title\"><i class=\"fa fa-pencil\"></i> ";
        // line 24
        echo ($context["text_form"] ?? null);
        echo "</h3>
      </div>
      <div class=\"panel-body\">
        <form action=\"";
        // line 27
        echo ($context["action"] ?? null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-member\" class=\"form-horizontal\">
            <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-external_member_id\">";
        // line 29
        echo ($context["entry_external_id"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"external_member_id\" value=\"";
        // line 31
        echo ($context["external_member_id"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_external_id"] ?? null);
        echo "\" id=\"input-external_member_id\" class=\"form-control\" />
              ";
        // line 32
        if (($context["error_external_id"] ?? null)) {
            // line 33
            echo "              <div class=\"text-danger\">";
            echo ($context["error_external_id"] ?? null);
            echo "</div>
              ";
        }
        // line 35
        echo "            </div>
          </div>
            <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-first_name\">";
        // line 38
        echo ($context["entry_first_name"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"first_name\" value=\"";
        // line 40
        echo ($context["first_name"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_first_name"] ?? null);
        echo "\" id=\"input-first_name\" class=\"form-control\" />
              ";
        // line 41
        if (($context["error_first_name"] ?? null)) {
            // line 42
            echo "              <div class=\"text-danger\">";
            echo ($context["error_first_name"] ?? null);
            echo "</div>
              ";
        }
        // line 44
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-last_name\">";
        // line 47
        echo ($context["entry_last_name"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"last_name\" value=\"";
        // line 49
        echo ($context["last_name"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_last_name"] ?? null);
        echo "\" id=\"input-last_name\" class=\"form-control\" />
              ";
        // line 50
        if (($context["error_last_name"] ?? null)) {
            // line 51
            echo "              <div class=\"text-danger\">";
            echo ($context["error_last_name"] ?? null);
            echo "</div>
              ";
        }
        // line 53
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-email\">";
        // line 56
        echo ($context["entry_email"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"email\" value=\"";
        // line 58
        echo ($context["email"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_email"] ?? null);
        echo "\" id=\"input-email\" class=\"form-control\" />
              ";
        // line 59
        if (($context["error_email"] ?? null)) {
            // line 60
            echo "              <div class=\"text-danger\">";
            echo ($context["error_email"] ?? null);
            echo "</div>
              ";
        }
        // line 62
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-phone_no\">";
        // line 65
        echo ($context["entry_phone_no"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"phone_no\" value=\"";
        // line 67
        echo ($context["phone_no"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_phone_no"] ?? null);
        echo "\" id=\"input-phone_no\" class=\"form-control\" />
              ";
        // line 68
        if (($context["error_phone_no"] ?? null)) {
            // line 69
            echo "              <div class=\"text-danger\">";
            echo ($context["error_phone_no"] ?? null);
            echo "</div>
              ";
        }
        // line 71
        echo "            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-gender\">";
        // line 74
        echo ($context["entry_gender"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <select name=\"gender\" id=\"input-gender\" class=\"form-control\">
                ";
        // line 77
        if ((($context["gender"] ?? null) == "M")) {
            // line 78
            echo "                <option value=\"M\" selected=\"selected\">";
            echo ($context["text_male"] ?? null);
            echo "</option>
                <option value=\"F\">";
            // line 79
            echo ($context["text_female"] ?? null);
            echo "</option>
                <option value=\"\">";
            // line 80
            echo ($context["text_unknown"] ?? null);
            echo "</option>
                ";
        } elseif ((        // line 81
($context["gender"] ?? null) == "F")) {
            // line 82
            echo "                <option value=\"M\">";
            echo ($context["text_male"] ?? null);
            echo "</option>
                <option value=\"F\"  selected=\"selected\">";
            // line 83
            echo ($context["text_female"] ?? null);
            echo "</option>
                <option value=\"\">";
            // line 84
            echo ($context["text_unknown"] ?? null);
            echo "</option>
                ";
        } else {
            // line 86
            echo "                <option value=\"M\">";
            echo ($context["text_male"] ?? null);
            echo "</option>
                <option value=\"F\">";
            // line 87
            echo ($context["text_female"] ?? null);
            echo "</option>
                <option value=\"\" selected=\"selected\">";
            // line 88
            echo ($context["text_unknown"] ?? null);
            echo "</option>
                ";
        }
        // line 90
        echo "              </select>
            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-date_of_birth\">";
        // line 94
        echo ($context["entry_date_of_birth"] ?? null);
        echo "</label>
            <div class=\"col-sm-4 date\" style=\"display: table\">
              <input type=\"text\" name=\"date_of_birth\" value=\"";
        // line 96
        echo ($context["date_of_birth"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_date_of_birth"] ?? null);
        echo "\" data-date-format=\"YYYY-MM-DD\" id=\"input-date_of_birth\" class=\"form-control\" />
              <span class=\"input-group-btn\">
              <button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
              ";
        // line 99
        if (($context["error_date_of_birth"] ?? null)) {
            // line 100
            echo "              <div class=\"text-danger\">";
            echo ($context["error_date_of_birth"] ?? null);
            echo "</div>
              ";
        }
        // line 102
        echo "            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-tier_level\">";
        // line 105
        echo ($context["entry_tier_level"] ?? null);
        echo "</label>
                <div class=\"col-sm-10\">
                    <select name=\"tier_setting_id\" id=\"input-tier_level\" class=\"form-control\">
                      ";
        // line 108
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["tier_levels"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["tier_level"]) {
            // line 109
            echo "                        ";
            if ((twig_get_attribute($this->env, $this->source, $context["tier_level"], "tier_setting_id", [], "any", false, false, false, 109) == ($context["tier_setting_id"] ?? null))) {
                // line 110
                echo "                            <option value=\"";
                echo twig_get_attribute($this->env, $this->source, $context["tier_level"], "tier_setting_id", [], "any", false, false, false, 110);
                echo "\" selected=\"selected\">";
                echo twig_get_attribute($this->env, $this->source, $context["tier_level"], "title", [], "any", false, false, false, 110);
                echo "</option>
                        ";
            } else {
                // line 112
                echo "                            <option value=\"";
                echo twig_get_attribute($this->env, $this->source, $context["tier_level"], "tier_setting_id", [], "any", false, false, false, 112);
                echo "\">";
                echo twig_get_attribute($this->env, $this->source, $context["tier_level"], "title", [], "any", false, false, false, 112);
                echo "</option>
                        ";
            }
            // line 114
            echo "                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tier_level'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 115
        echo "                     </select>
                </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-tier_expiry_date\">";
        // line 119
        echo ($context["entry_tier_expiry_date"] ?? null);
        echo "</label>
            <div class=\"col-sm-4 date\" style=\"display: table\">
              <input type=\"text\" name=\"tier_expiry_date\" value=\"";
        // line 121
        echo ($context["tier_expiry_date"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_tier_expiry_date"] ?? null);
        echo "\" data-date-format=\"YYYY-MM-DD\" id=\"input-date_of_birth\" class=\"form-control\" />
              <span class=\"input-group-btn\">
              <button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
              ";
        // line 124
        if (($context["error_tier_expiry_date"] ?? null)) {
            // line 125
            echo "              <div class=\"text-danger\">";
            echo ($context["error_tier_expiry_date"] ?? null);
            echo "</div>
              ";
        }
        // line 127
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-total_available_point\">";
        // line 130
        echo ($context["entry_total_available_point"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"total_available_point\" value=\"";
        // line 132
        echo ($context["total_available_point"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_total_available_point"] ?? null);
        echo "\" id=\"input-total_available_point\" class=\"form-control\" />
              ";
        // line 133
        if (($context["error_total_available_point"] ?? null)) {
            // line 134
            echo "              <div class=\"text-danger\">";
            echo ($context["error_total_available_point"] ?? null);
            echo "</div>
              ";
        }
        // line 136
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-total_tier_archived_purchase\">";
        // line 139
        echo ($context["entry_total_tier_archived_purchase"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"total_tier_archived_purchase\" value=\"";
        // line 141
        echo ($context["total_tier_archived_purchase"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_total_tier_archived_purchase"] ?? null);
        echo "\" id=\"input-total_available_point\" class=\"form-control\" />
              ";
        // line 142
        if (($context["error_total_tier_archived_purchase"] ?? null)) {
            // line 143
            echo "              <div class=\"text-danger\">";
            echo ($context["error_total_tier_archived_purchase"] ?? null);
            echo "</div>
              ";
        }
        // line 145
        echo "            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-status\">";
        // line 148
        echo ($context["entry_status"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <select name=\"status\" id=\"input-status\" class=\"form-control\">
                ";
        // line 151
        if (($context["status"] ?? null)) {
            // line 152
            echo "                <option value=\"0\">";
            echo ($context["text_inactive"] ?? null);
            echo "</option>
                <option value=\"1\" selected=\"selected\">";
            // line 153
            echo ($context["text_active"] ?? null);
            echo "</option>
                ";
        } else {
            // line 155
            echo "                <option value=\"0\" selected=\"selected\">";
            echo ($context["text_inactive"] ?? null);
            echo "</option>
                <option value=\"1\">";
            // line 156
            echo ($context["text_active"] ?? null);
            echo "</option>
                ";
        }
        // line 158
        echo "              </select>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
";
        // line 166
        echo ($context["footer"] ?? null);
        echo " 

  <script type=\"text/javascript\">
    \$('.date').datetimepicker({
\t\tlanguage: '";
        // line 170
        echo ($context["datepicker"] ?? null);
        echo "',
\t\tpickTime: false
    });
</script>";
    }

    public function getTemplateName()
    {
        return "member/member_form.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  470 => 170,  463 => 166,  453 => 158,  448 => 156,  443 => 155,  438 => 153,  433 => 152,  431 => 151,  425 => 148,  420 => 145,  414 => 143,  412 => 142,  406 => 141,  401 => 139,  396 => 136,  390 => 134,  388 => 133,  382 => 132,  377 => 130,  372 => 127,  366 => 125,  364 => 124,  356 => 121,  351 => 119,  345 => 115,  339 => 114,  331 => 112,  323 => 110,  320 => 109,  316 => 108,  310 => 105,  305 => 102,  299 => 100,  297 => 99,  289 => 96,  284 => 94,  278 => 90,  273 => 88,  269 => 87,  264 => 86,  259 => 84,  255 => 83,  250 => 82,  248 => 81,  244 => 80,  240 => 79,  235 => 78,  233 => 77,  227 => 74,  222 => 71,  216 => 69,  214 => 68,  208 => 67,  203 => 65,  198 => 62,  192 => 60,  190 => 59,  184 => 58,  179 => 56,  174 => 53,  168 => 51,  166 => 50,  160 => 49,  155 => 47,  150 => 44,  144 => 42,  142 => 41,  136 => 40,  131 => 38,  126 => 35,  120 => 33,  118 => 32,  112 => 31,  107 => 29,  102 => 27,  96 => 24,  92 => 22,  84 => 18,  82 => 17,  76 => 13,  65 => 11,  61 => 10,  56 => 8,  50 => 7,  46 => 6,  37 => 1,);
    }

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