<?php
if (count($data) > 0) {
    foreach ($data as $val) {
        ?>
<tr>
    <td><?php echo $val['driver_name']; ?></td>
    <td><?php echo $val['vehicle']; ?></td>
    <td><?php echo date('d-m-Y H:i:s',strtotime($val['created'])); ?></td>
    <td><?php echo $val['status']; ?></td>
</tr>
<?php

    }
} else {
    ?>
<tr>
    <td colspan="4" >No Record Found</td>
</tr>
<?php } ?>