<div class="col-lg-10 col-md-10 col-sm-10 col-xs-10 bodyitem">
    <div  class="col-lg-2 col-md-2 col-sm-2  col-xs-2 tabbg1" onclick="getBaseAjaxPage('<?php echo site_url('gkpos/settings/index') ?>', '<?php echo $this->lang->line('gkpos_setting') ?>')">
        <i class="fa fa-3x fa-gears center-block"></i>
        <h1><?php echo $this->lang->line('gkpos_setting') ?></h1>
    </div>
    <div  class="col-lg-2 col-md-2 col-sm-2  col-xs-2 tabbg1" onclick="getOnlineSettingPage('<?php echo site_url('gkpos/online/openinghour') ?>', '<?php echo $this->lang->line("gkpos_opening_hour") ?>')">
        <i class="fa fa-3x fa-calendar-o center-block"></i>
        <h1><?php echo $this->lang->line('gkpos_opening_hour') ?></h1>
    </div>

    <?php if ($this->session->userdata('gkpos_usertype') == 1): ?>
        <div  class="col-lg-2 col-md-2 col-sm-2  col-xs-2 tabbg1" onclick="getOnlineSettingPage('<?php echo site_url('gkpos/online/promotion') ?>', '<?php echo $this->lang->line("gkpos_promotion") ?>')">
            <i class="fa fa-3x fa-gift center-block"></i>
            <h1 style="font-size: 12px;"><?php echo $this->lang->line('gkpos_promotion') ?></h1>
        </div>
    <?php endif; ?>

    <?php if ($this->session->userdata('gkpos_usertype') == 1 || $this->session->userdata('gkpos_usertype') == 2): ?>
        <div  class="col-lg-2 col-md-2 col-sm-2 col-xs-2 tabbg1" onclick="getOnlineSettingPage('<?php echo site_url('gkpos/online/gateway') ?>', '<?php echo $this->lang->line("gkpos_payment_gateway") ?>')">
            <i class="fa fa-3x fa-money center-block"></i>
            <h1><?php echo $this->lang->line('gkpos_payment_gateway') ?></h1>
        </div>
    <?php endif; ?>

    <?php if ($this->session->userdata('gkpos_usertype') == 1 || $this->session->userdata('gkpos_usertype') == 2): ?>
        <div  class="col-lg-2 col-md-2 col-sm-2 col-xs-2 tabbg1" onclick="getOnlineSettingPage('<?php echo site_url('gkpos/online/home') ?>', '<?php echo $this->lang->line('gkpos_home') ?>')">
            <i class="fa fa-3x fa-newspaper-o center-block"></i>
            <h1><?php echo $this->lang->line('gkpos_home') ?></h1>
        </div>
    <?php endif; ?>
    <?php if ($this->session->userdata('gkpos_usertype') == 1 || $this->session->userdata('gkpos_usertype') == 2): ?>
        <div  class="col-lg-2 col-md-2 col-sm-2 col-xs-2 tabbg1" onclick="getOnlineSettingPage('<?php echo site_url('gkpos/online/about') ?>', 'About')">
            <i class="fa fa-3x fa-newspaper-o center-block"></i>
            <h1>About</h1>
        </div>
    <?php endif; ?>
    <?php if ($this->session->userdata('gkpos_usertype') == 1 || $this->session->userdata('gkpos_usertype') == 2): ?>
        <div  class="col-lg-2 col-md-2 col-sm-2 col-xs-2 tabbg1" onclick="getOnlineSettingPage('<?php echo site_url('gkpos/online/onlineorder') ?>', '<?php echo $this->lang->line('gkpos_online_order') ?>')">
            <i class="fa fa-3x fa-newspaper-o center-block"></i>
            <h1><?php echo $this->lang->line('gkpos_online_order') ?></h1>
        </div>
    <?php endif; ?>

    <?php if ($this->session->userdata('gkpos_usertype') == 1): ?>
        <div  class="col-lg-2 col-md-2 col-sm-2 col-xs-2 tabbg1"  onclick="getOnlineSettingPage('<?php echo site_url('gkpos/online/contact') ?>', '<?php echo $this->lang->line('gkpos_contact') ?>')">
            <i class="fa fa-3x fa-newspaper-o  center-block"></i>
            <h1><?php echo $this->lang->line('gkpos_contact') ?></h1>
        </div>
    <?php endif; ?>

    <div  class="col-lg-2 col-md-2 col-sm-2 col-xs-2 tabbg1" onclick="getOnlineSettingPage('<?php echo site_url('gkpos/online/gallery') ?>', '<?php echo $this->lang->line('gkpos_gallery') ?>')">
        <i class="fa fa-3x fa-newspaper-o center-block"></i>
        <h1><?php echo $this->lang->line('gkpos_gallery') ?></h1>
    </div>

    <?php if ($this->session->userdata('gkpos_usertype') == 1): ?>
        <div  class="col-lg-2 col-md-2 col-sm-2 col-xs-2 tabbg1" onclick="getOnlineSettingPage('<?php echo site_url('gkpos/online/gallery_images') ?>', '<?php echo $this->lang->line('gkpos_gallery_images') ?>')">
            <i class="fa fa-3x fa-image center-block"></i>
            <h1><?php echo $this->lang->line('gkpos_gallery_images') ?></h1>
        </div>
    <?php endif; ?>
    <?php if ($this->session->userdata('gkpos_usertype') == 1): ?>
        <div  class="col-lg-2 col-md-2 col-sm-2 col-xs-2 tabbg1" onclick="getOnlineSettingPage('<?php echo site_url('gkpos/online/pagesetup') ?>', 'Page Setup')">
            <i class="fa fa-3x fa-paperclip center-block"></i>
            <h1>Page Setup</h1>
        </div>
    <?php endif; ?>
    <?php if ($this->session->userdata('gkpos_usertype') == 1): ?>
        <a  class="col-lg-2 col-md-2 col-sm-2 col-xs-2 tabbg1" style="color: #000" href="<?php echo site_url('gkpos/online/template') ?>">
            <i class="fa fa-3x fa-adjust center-block"></i>
            <h1>Template</h1>
        </a>
    <?php endif; ?>

    <?php if ($this->session->userdata('gkpos_usertype') == 1): ?>
        <div  class="col-lg-2 col-md-2 col-sm-2 col-xs-2 tabbg1" onclick="getOnlineSettingPage('<?php echo site_url('gkpos/online/footer_links') ?>', 'Footer Links')">
            <i class="fa fa-3x fa-link center-block"></i>
            <h1>Footer Links</h1>
        </div>
    <?php endif; ?>
    <?php if ($this->session->userdata('gkpos_usertype') == 1): ?>
        <div  class="col-lg-2 col-md-2 col-sm-2 col-xs-2 tabbg1" onclick="getOnlineSettingPage('<?php echo site_url('gkpos/online/listreviews') ?>', 'listreviews')">
            <i class="fa fa-3x fa-renren center-block"></i>
            <h1>Review Manager</h1>
        </div>
    <?php endif; ?>
</div>
<script>

    function enableDisableKeyBoard(is_touch) {
        var keyboard = '';
        if (is_touch === 'enable') {
            keyboard = 'disable';
        } else {
            keyboard = 'enable';
        }
        $.post("<?php echo site_url('gkpos/keyboard_setting') ?>", {is_touch: keyboard}, function (output) {
            if (output === 1) {
                getSettingPage('<?php echo site_url("gkpos/settings/indexcontent") ?>');
            }
        }, 'json');

    }
    function enableDisableCallerId(is_caller_id) {
        var is_caller_id_value = '';
        if (is_caller_id === 'enable') {
            is_caller_id_value = 'disable';
        } else {
            is_caller_id_value = 'enable';
        }
        $.post("<?php echo site_url('gkpos/settings/caller_id_setting') ?>", {is_caller_id: is_caller_id_value}, function (output) {
            if (output === 1) {
                getSettingPage('<?php echo site_url("gkpos/settings/indexcontent") ?>');
            }
        }, 'json');

    }
    function cleanGarbage() {
        $.ajax({
            url: '<?php echo site_url('gkpos/settings/garbagecollector') ?>',
            dataType: 'json',
            beforeSend: function () {
                console.log('before send');
            },
            success: function (output) {
                if (output.success) {
                    ALERT_TITLE = "Success!";
                }
                alert(output.message);
            }
        });
    }
    function unlockBillPrinter() {
        $.ajax({
            url: '<?php echo site_url('gkpos/settings/clear_billcopy_table') ?>',
            dataType: 'json',
            beforeSend: function () {
                console.log('before send');
            },
            success: function (output) {
                if (output.success) {
                    ALERT_TITLE = "Success!";
                }
                alert(output.message);
            }
        });
    }
    function unlockOrder() {
        alert('cooming Soon')
    }

</script>