<table class="widthpersent100 table table-bordered table-striped">
    <thead>
        <tr>
            <th>S No.</th>
            <th>Date & Time</th>
            <th>Booking Ref.No</th>
            <th>Booking Address</th>
            <th>Client</th>
            <th>Mobile No</th>
            <th>Status</th>
            <th>Type</th>
        </tr>
        <?php
            $i = 1;
            foreach ($allocationData as $val) {
                ?>
                <tr>
                <td><?php echo $i;?></td>
                <td><?php echo date('Y-m-d H:i:s',strtotime($val['updateOn']));?></td>
                <td><?php echo $val['reference_number'];?></td>
                <td><?php echo $val['pickup_address'];?></td>
                <td><?php echo $val['client_name'];?></td>
                <td><?php echo $val['mobile'];?></td>
                <td><?php echo $val['status'];?></td>
                <td><?php echo $val['type'];?></td>
                </tr>
                <?php
                $i++;
            }
            ?>
    </thead>
</table>