<div class="col-lg-10 col-md-10 col-sm-10 col-xs-10 bodyitem">
        <div class="row no-padding">
            <div class="buttons">
                <div onclick="getSettingPage('<?php echo site_url('gkpos/settings/general') ?>', '<?php echo $this->lang->line('gkpos_general_info') ?>')" class="btn btn-primary gradient text-center" style="font-size:90%;min-width: 90px;"><?php echo $this->lang->line('gkpos_general_info') ?></div>
                <div onclick="getSettingPage('<?php echo site_url('gkpos/settings/vatsetup') ?>', '<?php echo $this->lang->line('gkpos_general_vat_setup') ?>')" class="btn btn-primary gradient text-center" style="font-size: 90%;min-width: 90px;"><?php echo $this->lang->line('gkpos_general_vat_setup') ?></div>
                <div onclick="getSettingPage('<?php echo site_url('gkpos/settings/discountsetup') ?>', '<?php echo $this->lang->line('gkpos_discount') ?>')" class="btn btn-primary gradient text-center" style="font-size: 90%;min-width: 90px;"><?php echo $this->lang->line('gkpos_discount') ?></div>
                <div onclick="getSettingPage('<?php echo site_url('gkpos/settings/delivery_time') ?>', '<?php echo $this->lang->line('gkpos_delivery_time') ?>')" class="btn btn-primary gradient text-center" style="font-size: 90%;min-width: 110px;"><?php echo $this->lang->line('gkpos_delivery_time') ?></div>
                <div onclick="getSettingPage('<?php echo site_url('gkpos/settings/depliveryplan') ?>', '<?php echo $this->lang->line('gkpos_delivery_plan') ?>')" class="btn btn-primary gradient text-center" style="font-size: 90%;min-width: 110px;"><?php echo $this->lang->line('gkpos_delivery_plan') ?></div>
                <div onclick="getSettingPage('<?php echo site_url('gkpos/settings/pagination') ?>', '<?php echo $this->lang->line('gkpos_pagination') ?>')" class="btn btn-primary gradient text-center" style="font-size: 90%;min-width: 90px;" ><?php echo $this->lang->line('gkpos_pagination') ?></div>
                <?php if ($this->config->item('gk_only_online_admin') == 'no'): ?>
                    <div onclick="getSettingPage('<?php echo site_url('gkpos/settings/add_cc_fee') ?>', '<?php echo $this->lang->line('gkpos_add_cce_fee') ?>')" class="btn btn-primary gradient text-center" style="font-size: 90%;min-width: 90px;" ><?php echo $this->lang->line('gkpos_add_cce_fee') ?></div>
                <?php endif; ?>
            </div>
        </div>
        <div class="row no-padding">
            <?php echo form_open('gkpos/settings/save_vat/', array('id' => 'vat_form', 'enctype' => 'multipart/form-data', 'class' => 'form-horizontal')); ?>
            <div id="config_wrapper">
                <fieldset id="config_info">
                    <div class="form-group form-group-sm">	
                        <?php echo form_label($this->lang->line('gkpos_vat_reg_no'), 'gk_name', array('class' => 'control-label col-lg-4 col-md-4 col-sm-4 col-xs-4 text-capitalize')); ?>
                        <div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
                            <div class="input-group">
                                <span class="input-group-addon" style="background-color: #FF0000;"><a href="#"><i class="fa fa-table" aria-hidden="true"></i></a></span>
                                <input name="gk_vat_reg" class="form-control"  type="text" id="gk_vat_reg" value="<?php echo $this->config->item('gk_vat_reg') ?>">
                            </div>
                        </div>
                    </div>

                    <div class="form-group form-group-sm">	
                        <?php echo form_label($this->lang->line('gkpos_vat_percent'), 'gk_vat_percent', array('class' => 'control-label col-lg-4 col-md-4 col-sm-4 col-xs-4 text-capitalize')); ?>
                        <div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
                            <div class="input-group">
                                <span class="input-group-addon" style="background-color: #FF0000;"><a href="#"><i class="fa fa-table" aria-hidden="true"></i></a></span>
                                <input name="gk_vat_percent" class="form-control"  type="text" id="gk_vat_percent" value="<?php echo $this->config->item('gk_vat_percent') ?>">
                                <span class="input-group-addon" style="background-color: #FF0000;"><a href="#"><i class="fa fa-percent" aria-hidden="true"></i></a></span>
                            </div>
                        </div>
                    </div>
                    <div class="form-group form-group-sm">	
                        <label for="radio-inline" class="col-lg-4 col-md-4 col-sm-4 col-xs-4 control-label text-capitalize"><?php echo $this->lang->line('gkpos_tax_incuded') ?></label>
                        <div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
                            <label class="radio-inline text-capitalize"><input type="radio" name="gk_vat_included" id="gk_vat_percent1" value="yes" <?php ($this->config->item('gk_vat_included') == "yes") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_yes') ?></label>
                            <label class="radio-inline text-capitalize"><input type="radio" name="gk_vat_included" id="gk_vat_percent2" value="no" <?php ($this->config->item('gk_vat_included') == "no") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_no') ?></label>
                        </div>
                    </div>

                    <div class="form-group form-group-md">	
                        <div class="col-md-offset-4 col-md-8">
                            <ul id="vat_error_message_box" class="error_message_box"></ul>
                            <?php
                            echo form_submit(array(
                                'name' => 'submit_form',
                                'id' => 'submit_form',
                                'value' => $this->lang->line('gkpos_numpad_key_enter'),
                                'class' => 'btn btn-block btn-danger round btn-sm'));
                            ?>
                        </div>
                    </div>
                </fieldset>
            </div>
            <?php echo form_close(); ?>
            <script type='text/javascript'>
                $(document).ready(function () {
                    $('#vat_form').validate({
                        submitHandler: function () {
                            var myform = document.getElementById('vat_form');
                            var formdata = new FormData(myform);
                            $.ajax({
                                url: $('#vat_form').attr('action'),
                                data: formdata,
                                cache: false,
                                processData: false,
                                contentType: false,
                                type: 'POST',
                                dataType: 'json',
                                success: function (response) {
                                    if (response.success) {
                                        ALERT_TITLE = "Success!";
                                        alert(response.message);

                                    } else {
                                        ALERT_TITLE = "Error!";
                                        alert(response.message);
                                    }
                                }
                            });
                        },
                        errorClass: "has-error",
                        errorLabelContainer: "#vat_error_message_box",
                        wrapper: "li",
                        highlight: function (e) {
                            $(e).closest('.form-group').addClass('has-error');
                        },
                        unhighlight: function (e) {
                            $(e).closest('.form-group').removeClass('has-error');
                        },
                        rules: {
                            gk_vat_percent: {
                                number: true
                            }
                        },
                        messages: {
                            gk_vat_reg: "<?php echo $this->lang->line('gkpos_vat_reg_no_required'); ?>",
                            gk_vat_percent: "<?php echo $this->lang->line('gkpos_vat_percent_required') ?>",
                            gk_vat_included: "<?php echo $this->lang->line('gkpos_tax_included_required') ?>"
                        }
                    });
                });
            </script>
        </div>
</div>
