<div style="display: none;">
    <div id="eposNewOrderPage">
        <div class="popup-header toolbar-header">
            <div class="popup-title">New Order</div>
            <div class="popup-close-btn" onclick="zamanEposPopupcloser()"><span class="icon icon-cancel"></span></div>
        </div>
        <div class="popup-content">
            <div class="order-new-order">
                <?php if ((in_array('table', $this->session->userdata('userApps')) && $services['table'] === '3') || $this->session->userdata('group') == '2'): ?>   
                    <div class="tab-group keypad">
                        <div class="tab-item zaman-epos-nav quantity-digit new-order-type table-bg common-bg" onclick="zamanPlaceTableOrder(0, '', '', '', '')">
                            <img class="table-icon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAAA1JREFUeNpjYBgF1AQAAVAAATS4OtkAAAAASUVORK5CYII=">
                            <span><?php echo $this->lang->line('table') ?></span>
                        </div>
                    </div>
                <?php endif; ?>
                <?php if ((in_array('waiting', $this->session->userdata('userApps')) && $services['waiting'] === '3') || $this->session->userdata('group') == '2'): ?>   
                    <div class="tab-group keypad">
                        <div class="tab-item zaman-epos-nav quantity-digit new-order-type waiting-bg common-bg" onclick="zamanPlaceWaitingOrder(0, '', '', '', '')">
                            <img class="waiting-icon" alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAAA1JREFUeNpjYBgF1AQAAVAAATS4OtkAAAAASUVORK5CYII=">
                            <span><?php echo $this->lang->line('waiting') ?></span>
                        </div>
                    </div>
                <?php endif; ?>
                <?php if ((in_array('bar', $this->session->userdata('userApps')) && $services['bar'] === '3') || $this->session->userdata('group') == '2'): ?>   
                    <div class="tab-group keypad">
                        <div class="tab-item zaman-epos-nav quantity-digit new-order-type bar-bg common-bg" onclick="zamanPlaceBarOrder(0, '', '', '', '')">
                            <img class="bar-icon" alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAAvAQMAAABJ6QHvAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAAA1JREFUeNpjYBgFVAEAAUkAAf+U2WcAAAAASUVORK5CYII=">
                            <span><?php echo $this->lang->line('bar') ?></span>
                        </div>
                    </div>
                <?php endif; ?>
                <?php if ((in_array('delivery', $this->session->userdata('userApps')) && $services['delivery'] === '3') || $this->session->userdata('group') == '2'): ?>   
                    <div class="tab-group keypad">
                        <div class="tab-item zaman-epos-nav quantity-digit new-order-type delivery-bg common-bg" onclick="zamanPlaceDeliveryOrder(0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')">
                            <img class="delivery-icon" alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAAA1JREFUeNpjYBgF1AQAAVAAATS4OtkAAAAASUVORK5CYII=">
                            <span><?php echo $this->lang->line('delivery') ?></span>
                        </div>
                    </div>
                <?php endif; ?>
                <?php if ((in_array('collection', $this->session->userdata('userApps')) && $services['collection'] === '3') || $this->session->userdata('group') == '2'): ?>   
                    <div class="tab-group keypad">
                        <div class="tab-item zaman-epos-nav quantity-digit new-order-type collection-bg common-bg" onclick="zamanPlaceCollectionOrder(0, '', '', '', '', '')">
                            <img class="collection-icon" alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAAA1JREFUeNpjYBgF1AQAAVAAATS4OtkAAAAASUVORK5CYII=">
                            <span><?php echo $this->lang->line('collection') ?></span>
                        </div>
                    </div>
                <?php endif; ?>
                <?php if ((in_array('booking', $this->session->userdata('userApps')) && $services['booking'] === '3') || $this->session->userdata('group') == '2'): ?>   
                    <div class="tab-group keypad"><div class="tab-item zaman-epos-nav quantity-digit new-order-type booking-bg common-bg" onclick="zamanBookingOrderInfoControllerPopup(0, '', '', '', '', '', '', '', '', '')">
                            <img src="<?php echo EPOS_RESOURCES_PATH ?>images/booking-icon.png"/>
                            <span><?php echo $this->lang->line('booking') ?></span>
                        </div>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function zamanNewOrderPageControllerPopup() {
        $.colorbox({
            inline: true,
            scrolling: false,
            href: "#eposNewOrderPage",
            width: '290px',
            height: 'auto',
            maxHeight: '450px',
            maxWidth: "100%",
            top: '10%',
            open: true,
            closeButton: false,
            transition: 'elastic',
            overlayClose: true,
            className: 'transparent-overlay',
            onOpen: function () {
                playBeepSound();
            },
            onLoad: function () {
            },
            onComplete: function () {
            },
            onCleanup: function () {
            },
            onClosed: function () {
            }
        });
    }
</script>