<?php //Zend\Debug\Debug::dump($mvehicleList);  ?>
<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>Amenities Type</th>
            <th>Created By</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        <?php
        if (count($mvehicleList) > 0) {
            $i = 1;
            foreach ($mvehicleList as $listing) {
                $userName   =   $this->mainMenu()->fetchUserName($listing['created_by']);
                ?>
                <tr class="odd">
                    <td class="sorting_1"><input type="checkbox" class="check" rel="<?php echo $listing['id']; ?>"></td>
                    <td class="sorting_1"><?php echo $i; ?></td>
                    <td class=" "><?php echo $listing['amenities_name']; ?></td>
                    <td class=" "><?php echo $userName; ?></td>
                    <td class=" "><div class="iconsize <?php echo ($listing['status'] == '1' ? 'aprovestatus' : 'unaprovestatus'); ?>" name="ChangeStatus"> </div></td>
                    <td>
                        <div class="hidden-sm hidden-xs action-buttons">
                            <a href="<?php echo $this->url('vehicleamenities', array('action' => 'edit'), array('query' => array('id' => $listing['id']))); ?>" class="red pointer edit-form" title="Edit Cab" rel="<?php echo $listing['id']; ?>"> <i class="ace-icon fa fa-edit bigger-130"></i> </a>  <a class="red" href="<?php echo $this->url('vehicleamenities', array('action' => 'delete'), array('query' => array('data' => $listing['id']))); ?>" title="Delete"> <i class="ace-icon fa fa-trash-o bigger-130"></i> </a> </div>
                    </td>
                </tr>
                <?php
                $i++;
            }
        } else {
            ?>
            <tr>
                <td colspan="6" style="text-align: center;">No Records Found</td>
            </tr>
        <?php } ?>
    </tbody>
</table>
