<?php if (!empty($takeaway_orders)): ?>
    <div id="tableOrders" class="order-list row  no-margin">
        <div class="orders">
            <?php foreach ($takeaway_orders as $takeaway_order) : ?>
                <?php $order_status_color = 'order-status-color-' . $takeaway_order->status ?>
                <?php $takeaway_bg_color = ' order-bar-bg-color' ?>
                <?php $takeaway_icon = $takeaway_order->order_type . 'icon' ?>
                <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 order-item center-block">
                    <div onclick="isOccupied('<?php echo $takeaway_order->id ?>')" class="center-block table-icon <?php echo $takeaway_bg_color ?>"><img src="<?php echo ASSETS_GKPOS_PATH . 'images/' . $takeaway_icon . '.png' ?>" class="img-responsive center-block"></div> 
                    <div class="center-block order-heading text-center text-capitalize <?php echo $order_status_color; ?>"><?php isset($takeaway_order->name) && $takeaway_order->name != null ? print substr($takeaway_order->name, 0, 8) : print $takeaway_order->phone ?></div>
                </div>
            <?php endforeach; ?>
        </div>
    </div>
<?php endif; ?>