</div> <!-- model to view message --> <div id="myModalViewMessage" class="modal fade" role="dialog"> <div class="modal-dialog modal-lg"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Orders</h4> </div> <!-- contents of model here --> <div class="modal-body"> <?php $OrdersObj = new orders(); $res = $OrdersObj->show_orders(); if ($res) { ?> <table class="table table-bordered"> <tr> <th>SN</th> <th>Branch name</th> <th>Bike</th> <th>Number</th> </tr> <?php $i = 1; foreach ($res as $value) { echo <<<ABC <tr> <td>{$i}</td>