<div class="row">
  <div class="col-lg-12 mt-4">
    <div class="card">
      <div class="card-header form-card-header">
        <h4 class="m-b-0 text-light">ADD DIVISION</h4>
      </div>
      <div class="card-body">
        <form id="add_division" class="form-material">
          <div class="form-body">
            <div class="row">
              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>SELECT PARENT DESIGNATIONS</strong></label>
                  <select class="form-control"   autocomplete="off"   id="designation" name="designation" required="">
                    <option value="">SELECT DESIGNATION</option>
                    <?php 
                    if($designation !== "No Data"){
                      foreach($designation as $val){
                        echo '<option value="'.$val->id.'">'.strtoupper($val->name).'</option>';
                      }
                    }
                    ?>
                  </select>
                  <label for="designation" class="error"></label> 
                </div>
              </div>
              
              <div class="col-md-12">
                <div class="form-group">
                  <label class="control-label"><strong>DIVISION NAME</strong></label>
                  <input type="text" id="name" name="name" class="form-control"   autocomplete="off" maxlength="255" required="" >
                  <label for="name" class="error"></label> 
                </div>
              </div>
            </div>
          </div>

          <?php $_SESSION["token"] = md5(uniqid(mt_rand(), true)); ?>
          <input type="hidden" name="csrfToken" id="csrfreg" value="<?php echo $_SESSION["token"];?>">

          <div class="form-actions">
            <button type="submit" class="btn btn-rounded btn-outline-success col-md-3">SAVE</button>  
            <button type="button" class="btn btn-rounded btn-outline-danger col-md-3" onclick="window.location.href='<?php echo base_url(); ?>coa/designations'">CANCEL</button>  
          </div>
        </form>
      </div>
    </div>
  </div>
</div>