<?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>Order</th>
            <th>Image</th>
            <th>Vehicle Type</th>
            <th>Seating Capacity</th>
            <th>Luggage</th>
            <th>Created By</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody class="row_position">
        <?php
        if($mvehicleList!=""){
        if (count($mvehicleList) > 0) {
            $i = 1;
            foreach ($mvehicleList as $listing) {
                $userName   =   $this->mainMenu()->fetchUserName($listing['created_by']);
                ?>
                <tr class="row1" data-id="<?php echo $listing['id'] ?>">
                    <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['display_order']; ?></td>
                    <?php if(isset($listing['vehicle_image'])&& $listing['vehicle_image']!=""){ ?>
                    <td style="width: 150px; height: 77px; background-color:<?php echo $listing['color'];?>;" style=""><img src="<?php echo VEHICLE_IMAGE.$listing['vehicle_image']; ?>" ></td>
                    <?php } else {?>
                    <td><img src="/images/default.png" style="height:77px; width: 150px;"></td>
                <?php }?>
                    <td class=" "><?php echo $listing['vehicle_type']; ?></td>
                    <td class=" "><?php echo $listing['seating_capacity']; ?></td>
                    <td class=" "><?php echo $listing['luggage']; ?></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 class="blue" href="#"> <i class="ace-icon fa fa-search-plus bigger-130"></i> </a>-->
                            <a href="<?php echo $this->url('vehicletype', 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('vehicletype', 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="10" style="text-align: center;">No Records Found</td>
            </tr>
<?php } ?>
    </tbody>
</table>
