<?php //Zend\Debug\Debug::dump($uLicenseList); ?>
<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr role="">
            <th>S.No</th>
            <th>Name</th>
            <th>Created By</th>
            <th>Status</th>
        </tr>
    </thead>
    <tbody>
        <?php
        if($uLicenseList!=""){
        if (count($uLicenseList) > 0) {
            $i = 1;
            foreach ($uLicenseList as $listing) {
                $userName   =   $this->mainMenu()->fetchUserName($listing['CreatedBy']);
                ?>
                <tr>
                    <td><?php echo $i; ?></td>
                    <td><?php echo $listing['RoleName']; ?></td>
                    <td><?php echo $userName; ?></td>
                    <td><div id="changestatus-<?php echo $listing['cron_schedule_id']; ?>" status="<?php echo $listing['IsActive'];?>"  class="iconsize <?php echo ($listing['IsActive'] == '1' ? 'aprovestatus' : 'unaprovestatus'); ?>" name="ChangeStatus"> </div>
                </td>
                </tr>
                <?php
                $i++;
            }
        } }else {
            ?>
            <tr>
                <td colspan="8" style="text-align: center;">No Records Found</td>
            </tr>
<?php } ?>
    </tbody>
</table>
