<!-- Begin Page Content -->
        <div class="container-fluid">

          <!-- Page Heading -->
          <h1 class="h3 mb-2 text-gray-800">DMR Commission</h1>
          


          <!-- DataTales Example -->
          <div class="card shadow mb-4">
            <div class="card-header py-3">
              <h6 class="m-0 font-weight-bold text-primary">List of Commission <button class="btn btn-primary" style="float: right;" onclick="window.location.href='dmr_commission_details.php';">Add New Slab</button></h6>
             
            </div>
          
            <div class="card-body">
              <div class="table-responsive">
                <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
                  <thead>
                    <tr style="color:white; background-color:#034ea1!important;">
                      <th>S.No</th>
                      <th>Start Amount</th>
                      <th>End Amount</th>
                      <th>DMR Type</th>
                      <th>User Plan</th>
                      <th>Commission Value</th>
                      <th>Action</th>
                    </tr>
                  </thead>
                  <tfoot>
                    <tr>
                      <th>S.No</th>
                      <th>Start Amount</th>
                      <th>End Amount</th>
                      <th>DMR Type</th>
                      <th>User Plan</th>
                      <th>Commission Value</th>
                      <th>Action</th>
                    </tr>
                  </tfoot>
                  <tbody>
                    <?php for ($i = 0; $i < $rows; $i++) {?>
                     
                      <tr>
                        <td><?=$i + 1;?></td>
                        
                        <td>
                          <i class="fa fa-rupee-sign"></i> <?=$res[$i]['start_amount'];?>
                        </td>
                        <td>
                          <i class="fa fa-rupee-sign"></i><?=$res[$i]['end_amount'];?>
                        </td>
                        <td>
                         <?=$res[$i]['dmr_type'];?>
                        </td>
                         <td>
                         <?=user_plans($res[$i]['plan_id'])?>
                        </td>
                        <td>
                         <i class="fa fa-rupee-sign"></i><?= $res[$i]['commission_value'];?>
                        </td>
                        
                        <td>
                          <a href="dmr_commission_details.php?aid=<?=$res[$i]['dmr_commission_id'];?>" style="color:<?=$colors['color'];?>"><i class="fa fa-pen-square fa-fw"></i></a>
                          
                        </td>
                      </tr>
                    <?php }?>
                  </tbody>
                </table>
              </div>
            </div>
          </div>

        </div>
        <!-- /.container-fluid -->