<div class="content-header">
  <div class="container-fluid">
    <div class="row mb-2">
      <div class="col-sm-6">
        <!-- <h1 class="m-0">Deactive Member </h1> -->
      </div>
      <div class="col-sm-6">
        <ol class="breadcrumb float-sm-right">
          <li class="breadcrumb-item"><a href="#">Setting</a></li>
          <li class="breadcrumb-item active">Edit Category </li>
        </ol>
      </div>
    </div>
  </div>
</div>
<section class="content">
  <div class="container-fluid">
    <div class="row">
      <section class="col-lg-12 connectedSortable">
        <div class="card">
          <div class="card-header " style="background-color:#31708e;color:white">
            <h3 class="card-title">
              Edit Category Details
            </h3>
            <div class="card-tools">
              <ul class="nav nav-pills ml-auto">
              </ul>
            </div>
          </div>
          <div class="card-body">
            <div class="tab-content p-0">
              <form method="post" action=" <?php echo base_url(); ?>index.php/Member/update_category" enctype="multipart/form-data">
                <div class="row">
                  <div class="form-group col-sm-3">
                    <label><b>Category</b></label>
                  </div>
                  <div class="form-group col-sm-3">
                    <input type="hidden" name="id" value="<?php echo  $data->id; ?>">
                    <input type="text" name="category" id="category" class="form-control" value="<?php echo  $data->category; ?>">
                  </div>
                </div>
                <div class="row">
                  <div class="form-group col-sm-3">
                    <label><b>Type</b></label>
                  </div>
                  <div class="form-group col-sm-3">
                    <select class="form-control" style="width:300px" name="type">
                      <option value="0" <?php if ($data->type == "0") {
                                          echo "selected";
                                        } ?>>All</option>
                      <option value="1" <?php if ($data->type == "1") {
                                          echo "selected";
                                        } ?>>Income</option>
                      <option value="2" <?php if ($data->type == "2") {
                                          echo "selected";
                                        } ?>>Expense</option>
                    </select>
                  </div>
                </div>
                <center>
                  <div>
                    <button type="submit" class="btn btn-success">Save</button>
                    <button type="button" class="btn btn-primary">Cancel</button>
                  </div>
                </center>

              </form>

            </div>
          </div>
        </div>
    </div>
</section>
</div>
</div>
</section>