<div class="table-responsive">
    <table class="table table-hover table-bordered personal-task" id="price_details">        
        <tr>            
            <th width="5%">No</th>
            <th width="30%">Area</th>        
            <th width="15%">Price</th>
            <th width="25%">Effective From</th>        
            <th width="25%">Effective To</th> 
        </tr>
        <?php 
        $price_cnd = 'product_id='.(int)$model->id.'';
        $mod_inv_price=InventoryPrice::model()->findAll(array('condition'=>$price_cnd,'order'=>'to_date DESC,region_id ASC'));
        $i=1;
        foreach($mod_inv_price as $eachinvprice){?>
        <tr>            
            <td><?php echo $i;?></td>
            <td><?php echo $eachinvprice->region_det->region_name;?></td>        
            <td><?php echo $eachinvprice->price;?></td>
            <td><?php echo $eachinvprice->from_date;?></td>        
            <td><?php echo $eachinvprice->to_date;?></td> 
        </tr>
        <?php $i++;} ?>
        <tr>            
        </tr>
    </table>
</div>