<div class="col-lg-12">
        <?php
            $model_user = User::model()->findByPk($owner_id);                
        ?>
        <p>
            <label>Lead Owner : </label>
            <b><?php echo $model_user['first_name']." ".$model_user['last_name'];  ?></b>
        </p>
        <table class="table table-hover table-bordered personal-task">
            <thead>
                <tr>
                    <th>S.No</th>
                    <th>Month</th>                    
                    <th>Lead Count</th>
                </tr>
            </thead>
            <tbody>
            
            <?php
            if(!empty($graph_detail)){
                $i  =1;
                $month_array = array("January","February","March","April","May","June","July","August","September","October","November","December");
                
                $total  = 0.00;
                foreach ($graph_detail as $value) {
                        $month   = $value['m']-1;
                    ?>
                        <tr onclick="getMonthDetails(<?php echo $value['m']; ?>,<?php echo $value['y']; ?>,<?php echo $owner_id; ?>)">
                            <td><?php echo $i; ?></td>
                            <td><?php echo $month_array[$month]." - ".$value['y']; ?></td>                            
                            <td><?php echo $value['TOTAL_COUNT']; ?></td>
                        </tr>
                    <?php
                    $total+=$value['TOTAL_AMT'];
                    $i++;   
                }
                ?>
<!--                    <tr>
                        <td class="text-right" colspan="2">Total Amount</td>
                        <td class="text-right"><?php // echo number_format((float)$total, 2, '.', '');; ?></td>
                    </tr>-->
                <?php
            }
            else{
                ?>
                    <tr>
                        <td colspan="4">No data found</td>
                    </tr>
                <?php
            }
            
            ?>
            </tbody>
        </table>
    </div>
