        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
                <div class="title_left">
                    <h3>Deduction</h3>
                </div>
            </div>
            <div class="clearfix"></div>

            <div class="row">
              <div class="col-md-6 col-sm-6 col-xs-6">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>Deduction Definition</h2>
                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">

                    <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>salary/savedef" method="post">
                        <?php if($edit!=null){$id=$edit['id'];}else{$id=0;}  ?>
                        
                        <input type="hidden" name="id" value="<?php echo $id; ?>">
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Name <span class="required">*</span>
                        </label>
                         <div class="col-md-6 col-sm-6 col-xs-12">
                          <input id="" <?php if($edit!=null){ echo "value='".$edit['name']."'";}  ?> class="form-control col-md-7 col-xs-12 abc" maxlength="40" name="name" placeholder="Enter Deduction Name............" required="required" type="text">
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Amount <span class="required">*</span>
                        </label>
                         <div class="col-md-6 col-sm-6 col-xs-12">
                          <input id="" <?php if($edit!=null){ echo "value='".$edit['amount']."'";}  ?>  class="form-control col-md-7 col-xs-12 num" maxlength="25" name="amount" placeholder="Amount...." required="required" type="text">
                        </div>
                      </div>
                        
                        
                         <div class="item form-group">
                         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Flag <span class="required"></span>
                        </label>
                              <div class="col-md-6 col-sm-6 col-xs-12">
<!--                         <div class="col-md-1 col-md-offset-3">-->
                             <input type="checkbox" value="1" name="flag" <?php 
                             $st=$edit['flag']; 
                             if($st!=null && $st=='1')
                             {
                                     ?>
                                     
                                      checked = checked;
                                      <?php
                                      
                             }
                             ?>
                         
                         
                                      
                              /></div></div>
                        
                       
                    <div class="ln_solid"></div>
                      <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                          <button id="send" type="submit" class="btn btn-success">Add</button>
                        </div>
                      </div>
                    </form>
                  </div>
                </div>
             
              </div>
               
             <div class="col-md-6 col-sm-6 col-xs-6">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>Deduction Definition View</h2>
                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                  <div class="x_content">
                     <div class="row">
                        
                    <table  class="table table-striped table-bordered dt-responsive nowrap">
                      <thead>
                        <tr>
                          <th>#</th>
                          <th style="width:100px;">Name</th>
                          <th style="width:100px;">Amount</th>
                          <th>Actions</th>
                        </tr>
                      </thead>


                      <tbody class="center">
                      <?php foreach ($view as $key => $value) { ?>
                            <tr>
                            <td><?php echo ++$key; ?></td>
                            <td><?php echo $value['name']; ?></td>
                            <td><?php echo $value['amount']; ?></td>
                            <td><a href="<?php echo base_url(); ?>salary/def/<?php echo $value['id']; ?>" ><i class="fa fa-edit"></i></a>
                           <a href="<?php echo base_url(); ?>salary/status/<?php echo $value['id']; ?>" ><i class="fa fa-trash"></i></a></td>
                            </tr>   
                      <?php } ?>
                      
                      </tbody>
                    </table>

                   
                    
                  </div>
                    
                  </div>
                </div>
             
              </div>
              </div>
            
            
            
            </div>
            
              
               
             
              
            
            </div>
          </div>
        </div>
        <script src="<?php echo base_url(); ?>assets/vendors/jquery/dist/jquery.min.js"></script>