<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_general/', array('id' => 'general_form', 'enctype' => 'multipart/form-data', 'class' => 'form-horizontal')); ?>
            <div id="config_wrapper">
                <fieldset id="config_info">
                    <div class="col-lg-6 col-md-6 col-sm-6">
                        <div class="form-group form-group-sm">	
                            <?php echo form_label($this->lang->line('gkpos_restaurant_name'), '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-home" aria-hidden="true"></i></a></span>
                                    <input name="gk_name" class="form-control required"  type="text" id="gk_name" value="<?php echo $this->config->item('gk_name') ?>">
                                </div>
                            </div>
                        </div>
                        <div class="form-group form-group-sm">	
                            <?php echo form_label('Tagline', 'gk_tagline', 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-home" aria-hidden="true"></i></a></span>
                                    <input name="gk_tagline" class="form-control"  type="text" id="gk_tagline" value="<?php echo $this->config->item('gk_tagline') ?>">
                                </div>
                            </div>
                        </div>
                        <div class="form-group form-group-sm">	
                            <?php echo form_label($this->lang->line('gkpos_show_restaurant_name'), '', array('class' => 'text-uppercase control-label col-lg-5 col-md-5 col-sm-5 col-xs-5')); ?>
                            <div class='col-lg-2 col-md-2 col-sm-2 col-xs-2 text-uppercase '><?php echo form_checkbox(array('name' => 'gk_name_show', 'class' => 'checkbox-inline', 'value' => 'gk_name_show', 'checked' => $this->config->item('gk_name_show'))); ?></div>
                        </div>
                        <div class="form-group form-group-sm">	
                            <?php echo form_label($this->lang->line('gkpos_logo'), 'gk_logo', 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="fileinput <?php echo isset($logo_exists) ? 'fileinput-exists' : 'fileinput-new'; ?>" data-provides="fileinput">
                                    <div class="fileinput-new thumbnail" style="max-width: 150px; max-height: 150px">
                                        <img data-src="holder.js/100%x100%" alt="<?php echo $this->lang->line('gk_logo'); ?>"
                                             src="<?php
                                             if (isset($logo_exists))
                                                 echo base_url('uploads/gkpos/logo/' . $this->Appconfig->get('gk_logo'));
                                             else
                                                 echo '';
                                             ?>"
                                             />
                                    </div>
                                    <div>
                                        <input type="file" name="gk_logo" class="fileinput">
                                    </div>
                                    <br/>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-6 col-md-6 col-sm-6">
                        <div class="form-group form-group-sm">	
                            <?php echo form_label($this->lang->line('gkpos_address'), 'gk_address', 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'>
                                <?php echo form_textarea(array('name' => 'gk_address', 'rows' => 2, 'class' => 'form-control', 'id' => 'gk_address'), $this->config->item('gk_address')) ?>
                            </div>
                        </div>

                        <div class="form-group form-group-sm">	
                            <?php echo form_label($this->lang->line('gkpos_website'), 'gk_website', 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-home" aria-hidden="true"></i></a></span>
                                    <input name="gk_website" class="form-control required"  type="text" id="gk_website" value="<?php echo $this->config->item('gk_website') ?>">
                                </div>
                            </div>
                        </div>

                        <div class="form-group form-group-sm">	
                            <?php echo form_label($this->lang->line('gkpos_email'), 'gk_email', 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"><span class="glyphicon glyphicon-envelope"></span></span>
                                    <input name="gk_email" class="form-control"  type="text" id="gk_email" value="<?php echo $this->config->item('gk_email') ?>">
                                </div>
                            </div>
                        </div>

                        <div class="form-group form-group-sm">	
                            <?php echo form_label($this->lang->line('gkpos_phone'), 'gk_phone', 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;"><span class="glyphicon glyphicon-phone-alt"></span></span>
                                    <input name="gk_phone" class="form-control required"  type="text" id="gk_phone" value="<?php echo $this->config->item('gk_phone') ?>">
                                </div>
                            </div>
                        </div>

                        <div class="form-group form-group-sm">	
                            <?php echo form_label($this->lang->line('gkpos_fax'), 'gk_fax', 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"><span class="glyphicon glyphicon-phone-alt"></span></span>
                                    <input name="gk_fax" class="form-control"  type="text" id="gk_fax" value="<?php echo $this->config->item('gk_fax') ?>">
                                </div>
                            </div>
                        </div>

                        <div class="form-group form-group-sm">	
                            <?php echo form_label($this->lang->line('gkpos_term_condition'), 'gk_policy', 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'>
                                <?php echo form_textarea(array('name' => 'gk_policy', 'rows' => 2, 'class' => 'form-control', 'id' => 'gk_policy'), $this->config->item('gk_policy')) ?>
                            </div>
                        </div>
                    </div>
                    <div class="form-group form-group-md">	
                        <ul id="general_error_message_box" class="error_message_box text-capitalize"></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>
                </fieldset>
            </div>
            <?php echo form_close(); ?>

            <script type='text/javascript'>
                $(document).ready(function () {
                    $("a.fileinput-exists").click(function () {
                        $.ajax({
                            type: "GET",
                            url: "<?php echo site_url("admin/config/remove_logo"); ?>",
                            dataType: "json"
                        });
                    });

                    $('#general_form').validate({
                        submitHandler: function () {
                            var myform = document.getElementById('general_form');
                            var formdata = new FormData(myform);
                            $.ajax({
                                url: $('#general_form').attr('action'),
                                data: formdata,
                                cache: false,
                                processData: false,
                                contentType: false,
                                type: 'POST',
                                dataType: 'json',
                                success: function (response) {
                                    if (response.success) {
                                        getSettingPage('<?php echo site_url("gkpos/settings/general") ?>', 'Information')
                                    } else {
                                        ALERT_TITLE = "Error!";
                                        alert(response.message);
                                    }
                                }
                            });
                        },
                        errorClass: "has-error",
                        errorLabelContainer: "#general_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_name: "required",
                            gk_address: "required",
                            gk_phone: "required",
                            gk_email: "email",
                            gk_policy: "required",
                        },
                        messages: {
                            gk_name: "<?php echo $this->lang->line('gkpos_restaurant_name_required'); ?>",
                            gk_address: "<?php echo $this->lang->line('gkpos_address_required'); ?>",
                            gk_phone: "<?php echo $this->lang->line('gkpos_valid_phone_required'); ?>",
                            gk_email: "<?php echo $this->lang->line('gkpos_email_invalid_format'); ?>",
                            gk_policy: "<?php echo $this->lang->line('gkpos_return_policy_required'); ?>"
                        }
                    });
                });
            </script>
        </div>
</div>

