<?php //Zend\Debug\Debug::dump($uLicenseList); ?>
<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr role="">
            <th><input type="checkbox" class="selectall">All</th>
            <th>S.No</th>
            <th>Name</th>
            <th>Role</th>
            <th>Day</th>
            <th>Before / After</th>
            <th>Created By</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        <?php
        if($uLicenseList!=""){
        if (count($uLicenseList) > 0) {
            $i = 1;
            foreach ($uLicenseList as $listing) {
                $userName   =   $this->mainMenu()->fetchUserName($listing['created_by']);
                ?>
                <tr>
                 <td><input type="checkbox" class="check" rel="<?php echo $listing['cron_schedule_id']; ?>"></td>
                    <td><?php echo $i; ?></td>
                    <td><?php echo $listing['name']; ?></td>
                    <td><?php echo $listing['roll_name']; ?></td>
                    <td><?php echo $listing['day']; ?></td>
                    <td><?php if($listing['before_after']==0) echo "Before"; else echo "After"; ?></td>
                    <td><?php echo $userName; ?></td>
                    <td><div id="changestatus-<?php echo $listing['cron_schedule_id']; ?>" status="<?php echo $listing['status'];?>"  class="iconsize <?php echo ($listing['status'] == '1' ? 'aprovestatus' : 'unaprovestatus'); ?>" name="ChangeStatus" onclick="changeRecordStatus('<?php echo $listing['cron_schedule_id']; ?>','cron','change-schedule-record-status','<?php echo $listing['status'];?>')"> </div>
                </td>
                    <td>
                        <div class="hidden-sm hidden-xs action-buttons"> 
                  <a href="<?php echo $this->url('cron', array('action' => 'edit-cron-schedule'), array('query' => array('id' => $listing['cron_schedule_id']))); ?>" class="red pointer edit-form" title="Edit Cron Schedule"> <i class="ace-icon fa fa-edit bigger-130"></i> </a>    
                  <a class="red" href="<?php echo $this->url('cron', array('action' => 'delete-cron-schedule'), array('query' => array('data' => $listing['cron_schedule_id']))); ?>" title="Delete"> <i class="ace-icon fa fa-trash-o bigger-130"></i> </a>
                            </div>
                    </td>
                </tr>
                <?php
                $i++;
            }
        } }else {
            ?>
            <tr>
                <td colspan="8" style="text-align: center;">No Records Found</td>
            </tr>
<?php } ?>
    </tbody>
</table>
