<div class="table-responsive">
    <table class="table table-hover table-bordered personal-task" id="tab_hiddengmcs">        
        <tr>            
            <th width="4%">No</th>
            <th width="40%">Distributer Type</th>        
            <th class="">
                <a class="btn btn-xs btn-theme" href="javascript:void(0);" onclick="addTableRow($('#tab_hiddengmcs'));"><i class="fa fa-plus"></i></a>
            </th>
        </tr>
    </table>
    <?php
    $modelhiddenDetails= array(new HiddenDistributerGmcs());
    //$modelhiddenDetails =$modelhiddenDetails->findAll(['condition'=>'product_id='.(int)$model->id]);
            $m=1;
            foreach ($modelhiddenDetails as $i => $each){?>
                <tr>
                    <td><label><?php echo ($i + 1); ?></label></td>
                    <td></td>
                </tr>
          <?php   }?>
</div>