<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr>
            <th><input type="checkbox" class="selectall">All</th>
            <th>S.No</th>
            <th>Vehicle Model</th>
            <th>Vehicle Type</th>
            <th>Vehicle Name</th>
            <th>Vehicle Number</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        <?php
        if (count($vehicleListing)>0) {
            $i = 1;
            foreach ($vehicleListing as $listing) {
                ?>
                <tr>
                    <td class="center"><label class="pos-rel">
                        <input type="checkbox" rel="<?php echo $listing['vehicle_master_id']; ?>" class="ace list-checkbox check" />
                            <span class="lbl"></span> </label>
                    </td>
                    <td><?php echo $i; ?></td>
                    <td><?php echo $listing['model']; ?></td>
                    <td><?php echo $listing['vehicle_type_name']; ?></td>
                    <td><?php echo $listing['vehicle_model_name']; ?></td>
                    <td><?php echo $listing['vehicle_no']; ?></td>
                    <td><div class="<?php echo ($listing['status'] == '1' ? 'aprovestatus' : 'unaprovestatus'); ?> iconsize" name="ChangeStatus"> </div></td>
                    <td>
                    <div class="hidden-sm hidden-xs action-buttons">
                            <a class="red " title="Edit" href="<?php echo $this->url('vehicle-details', ['action'=>'edit-new-cab', 'id'=>
                                $listing['vehicle_master_id']]); ?>"> <i class="ace-icon fa fa-edit bigger-130"></i> </a>
                                <a class="red" href="<?php echo $this->url('vehicle-details', ['action'=>'delete', 'id'=>
                                $listing['vehicle_master_id']]); ?>" >
                                    <i class="ace-icon fa fa-trash-o bigger-130"></i>
                                </a>
                    </div>
                    </td>
                </tr>
                <?php $i++;
            }
        } else { ?>
                <tr><td colspan="7" style="text-align: center;">No Records Found</td></tr>
<?php } ?>
    </tbody>
</table>
