<div class="table-form-admin-contein table2-contein">
<table border="1">
    <thead>
		<tr>
			<td>ФИО</td>
			<td>Статус заказа</td>
			<td>Сумма</td>
			<td>Количество</td>
			<td>Редактировать</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">Редактировать </button>
        </td>
    </tr>
 <?php } ?>
</tbody>
</table>
<a href="<?php echo $url_add; ?>" class="btn btn-success">Заказать</a>
</div>
<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>