<table border="1">
    <thead>
    <tr>
    <td><?php echo $column_name; ?></td>
    <td><?php echo $column_status; ?></td>
    <td><?php echo $column_total; ?></td>
    <td><?php echo $column_quantity; ?></td>
    <td><?php echo $column_edit; ?></td>
    </tr>
    </thead>

<tbody>
 <?php  foreach($booking_info as $booking) { ?>
    <tr>
        <td>
        <?php echo $booking['name']; ?>
        </td>
        <td>
        <?php echo $booking['order_status']; ?>
        </td>
        <td>
            <?php echo $booking['total']; ?>
        </td>
        <td>
            <?php echo $booking['quantity']; ?>
        </td>
        <td>
            <button type="button" onclick="viewOrder(<?php echo $booking['order_id']; ?>)" class="btn btn-details"><?php echo $column_edit; ?> </button>
        </td>
    </tr>
 <?php } ?>
</tbody>
</table>
<script>
    function viewOrder(order_id) {


            var url= 'index.php?route=sale/order/edit&token='+'<?php echo $token; ?>'+'&order_id='+order_id;


        window.open(url, '_blank');


    }

</script>