    <div class="content-w">
        <?php include 'fancy.php';?>
        <div class="header-spacer"></div>
        <div class="conty">
            <div class="os-tabs-w menu-shad">
                <div class="os-tabs-controls">
                    <ul class="navs navs-tabs upper">
                        <li class="navs-item">
                            <a class="navs-links active" href="<?php echo base_url();?>admin/system_settings/"><i class="os-icon picons-thin-icon-thin-0050_settings_panel_equalizer_preferences"></i><span><?php echo getEduAppGTLang('system_settings');?></span></a>
                        </li>
                        <li class="navs-item">
                            <a class="navs-links" href="<?php echo base_url();?>admin/sms/"><i class="os-icon picons-thin-icon-thin-0287_mobile_message_sms"></i><span><?php echo getEduAppGTLang('sms');?></span></a>
                        </li>
                        <li class="navs-item">
                            <a class="navs-links" href="<?php echo base_url();?>admin/email/"><i class="os-icon picons-thin-icon-thin-0315_email_mail_post_send"></i><span><?php echo getEduAppGTLang('email_settings');?></span></a>
                        </li>
                        <li class="navs-item">
                            <a class="navs-links" href="<?php echo base_url();?>admin/translate/"><i class="os-icon picons-thin-icon-thin-0307_chat_discussion_yes_no_pro_contra_conversation"></i><span><?php echo getEduAppGTLang('translate');?></span></a>
                        </li>
                        <li class="navs-item">
                            <a class="navs-links" href="<?php echo base_url();?>admin/database/"><i class="picons-thin-icon-thin-0356_database"></i><span><?php echo getEduAppGTLang('database');?></span></a>
                        </li>
                        <li class="navs-item">
                            <a class="navs-links" href="<?php echo base_url();?>admin/frontend/"><i class="picons-thin-icon-thin-0180_www_website_address_url_browser"></i><span><?php echo getEduAppGTLang('frontend');?></span></a>
                        </li>
                    </ul>
                </div>
            </div><br>
            <div class="all-wrapper no-padding-content solid-bg-all">
                <div class="layout-w">
                    <div class="content-w">
                        <div class="content-i">
                            <div class="content-box">
                                <?php echo form_open(base_url() . 'admin/system_settings/do_update');?>
                                    <div class="col-sm-12">
                                        <div class="element-box lined-primary shadow rad10">
                                            <h4 class="form-header"><?php echo getEduAppGTLang('system_settings');?></h4><br>
                                            <div class="row">   
                                                <div class="col-sm-6">
                                                    <div class="form-group label-floating">
                                                        <label class="control-label"><?php echo getEduAppGTLang('system_name');?></label>
                                                        <input class="form-control" value="<?php echo $this->crud->getInfo('system_name');?>" type="text" name="system_name" required="">
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>
                                                <div class="col-sm-6"> 
                                                    <div class="form-group label-floating">
                                                        <label class="control-label"><?php echo getEduAppGTLang('system_title');?></label>
                                                        <input class="form-control" value="<?php echo $this->crud->getInfo('system_title');?>" type="text" name="system_title" required="">
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>
                                                <div class="col-sm-6">
                                                    <div class="form-group label-floating">
                                                        <label class="control-label"><?php echo getEduAppGTLang('system_email');?></label>
                                                        <input class="form-control" value="<?php echo $this->crud->getInfo('system_email');?>" type="text" name="system_email" required="">
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>
                                                <div class="col-sm-6">
                                                    <div class="form-group label-floating">
                                                        <label class="control-label"><?php echo getEduAppGTLang('system_phone');?></label>
                                                        <input class="form-control" value="<?php echo $this->crud->getInfo('phone');?>" type="text" name="phone" required="">
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>
                                                <div class="col-sm-6">
                                                    <div class="form-group label-floating">
                                                        <label class="control-label"><?php echo getEduAppGTLang('address');?></label>
                                                        <textarea class="form-control" name="address"><?php echo $this->crud->getInfo('address');?></textarea>
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>
                                                <div class="col-sm-6">
                                                    <div class="description-toggle">
                                                        <div class="description-toggle-content">
                                                            <div class="h6"><?php echo getEduAppGTLang('allow_user_register');?></div>
                                                            <p><?php echo getEduAppGTLang('user_register_message');?></p>
                                                        </div>          
                                                        <div class="togglebutton">
                                                            <label><input name="register" value="1" type="checkbox" <?php if($this->crud->getInfo('register') == 1) echo "checked";?>></label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-sm-4">
                                                    <div class="form-group label-floating is-select">
                                                        <label class="control-label"><?php echo getEduAppGTLang('language');?></label>
                                                        <div class="select">
                                                            <select name="language" required="">
                                                                <option value=""><?php echo getEduAppGTLang('select');?></option>
                                                                <?php $fields = $this->db->list_fields('language');
                                                                    foreach ($fields as $field)
                                                                {
                                                                if ($field == 'phrase_id' || $field == 'phrase') continue;
                                                                $current_default_language = $this->crud->getInfo('language'); ?>
                                                                <option value="<?php echo $field;?>"<?php if ($current_default_language == $field) echo 'selected';?>> <?php echo $field;?> </option>
                                                                <?php } ?>
                                                            </select>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-sm-4">
                                                    <div class="form-group label-floating is-select">
                                                        <label class="control-label"><?php echo getEduAppGTLang('calendar_language');?></label>
                                                        <div class="select">
                                                            <select name="calendar" required="">
                                                                <option value=""><?php echo getEduAppGTLang('select');?></option>
                                                                <?php $current_calendar_language = $this->crud->getInfo('calendar'); ?>
                                                                <option value="hy" <?php if ($current_calendar_language == 'hy') echo 'selected';?>> Armenio </option>
                                                                <option value="ca" <?php if ($current_calendar_language == 'ca') echo 'selected';?>> Catalán </option>
                                                                <option value="nl" <?php if ($current_calendar_language == 'nl') echo 'selected';?>> Holandés </option>
                                                                <option value="es" <?php if ($current_calendar_language == 'es') echo 'selected';?>> Español </option>
                                                                <option value="ru" <?php if ($current_calendar_language == 'ru') echo 'selected';?>> Russian </option>
                                                                <option value="en" <?php if ($current_calendar_language == 'en') echo 'selected';?>> English </option>
                                                                <option value="pt" <?php if ($current_calendar_language == 'pt') echo 'selected';?>> Portuguese </option>
                                                                <option value="hi" <?php if ($current_calendar_language == 'hi') echo 'selected';?>> Hindi </option>
                                                                <option value="fr" <?php if ($current_calendar_language == 'fr') echo 'selected';?>> French </option>
                                                                <option value="sr" <?php if ($current_calendar_language == 'sr') echo 'selected';?>> Serbian </option>
                                                            </select>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-sm-4">
                                                    <div class="form-group label-floating is-select">
                                                        <label class="control-label"><?php echo getEduAppGTLang('timezone');?></label>
                                                        <div class="select">
                                                            <select name="timezone" required="">
                                                                <option value=""><?php echo getEduAppGTLang('select');?></option>
                                                                <?php foreach($this->crud->tz_list() as $t) { ?>
                                                                <option value="<?php echo $t['zone'] ?>" <?php if($this->crud->getInfo('timezone') == $t['zone']) echo "selected";?>><?php echo $t['diff_from_GMT'] . ' - ' . $t['zone'] ?></option>
                                                                <?php } ?>
                                                            </select>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-sm-4">
                                                    <div class="form-group label-floating is-select">
                                                        <label class="control-label"><?php echo getEduAppGTLang('date_format');?></label>
                                                        <div class="select">
                                                            <select name="date_format" required="">
                                                            <?php $date_format = $this->crud->getInfo('date_format');?>
                                                                <option value=""><?php echo getEduAppGTLang('select');?></option>
                             		                            <option value="m/d" <?php if($date_format == 'm/d') echo 'selected';?>>mm/dd</option>
                                                         		<option value="m/d/Y" <?php if($date_format == 'm/d/Y') echo 'selected';?>>mm/dd/yyyy</option>
                                                         		<option value="Y-m" <?php if($date_format == 'Y-m') echo 'selected';?>>yy-mm</option>
                                                         		<option value="Y-m-d" <?php if($date_format == 'Y-m-d') echo 'selected';?>>yyy-mm-dd</option>
                                                         		<option value="m-d-Y" <?php if($date_format == 'm-d-Y') echo 'selected';?>>mm-dd-yyyy</option>
                                                         		<option value="d/m/Y" <?php if($date_format == 'd/m/Y') echo 'selected';?>>dd/mm/yyyy</option>
                                                         		<option value="d-m-Y" <?php if($date_format == 'd-m-Y') echo 'selected';?>>dd-mm-yyyy</option>
                                                            </select>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-sm-4">
                                                    <div class="form-group label-floating is-select">
                                                        <label class="control-label"><?php echo getEduAppGTLang('running_year');?></label>
                                                        <div class="select">
                                                            <select name="running_year" required="">
                                                                <?php $running_year = $this->crud->getInfo('running_year');?>
                                                                <option value=""><?php echo getEduAppGTLang('select');?></option>
                             		                            <option value="2020" <?php if($running_year == '2020') echo 'selected';?>>2020</option>
                                                         		<option value="2021" <?php if($running_year == '2021') echo 'selected';?>>2021</option>
                                                         		<option value="2022" <?php if($running_year == '2022') echo 'selected';?>>2022</option>
                                                         		<option value="2023" <?php if($running_year == '2023') echo 'selected';?>>2023</option>
                                                         		<option value="2024" <?php if($running_year == '2024') echo 'selected';?>>2024</option>
                                                         		<option value="2025" <?php if($running_year == '2025') echo 'selected';?>>2025</option>
                                                         		<option value="2026" <?php if($running_year == '2026') echo 'selected';?>>2026</option>
                                                         		<option value="2027" <?php if($running_year == '2027') echo 'selected';?>>2027</option>
                                                         		<option value="2028" <?php if($running_year == '2028') echo 'selected';?>>2028</option>
                                                         		<option value="2029" <?php if($running_year == '2029') echo 'selected';?>>2029</option>
                                                         		<option value="2030" <?php if($running_year == '2030') echo 'selected';?>>2030</option>
                                                            </select>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-sm-4">
                                                    <div class="form-group label-floating is-select">
                                                        <label class="control-label"><?php echo getEduAppGTLang('enable_logs');?></label>
                                                        <div class="select">
                                                            <select name="logs" required="">
                                                            <?php $logs = $this->crud->getInfo('logs');?>
                                                                <option value=""><?php echo getEduAppGTLang('select');?></option>
                                                     		    <option value="0" <?php if($logs == 0) echo 'selected';?>><?php echo getEduAppGTLang('no');?></option>
                                                     		    <option value="1" <?php if($logs == 1) echo 'selected';?>><?php echo getEduAppGTLang('yes');?></option>
                                                            </select>
                                                        </div>
                                                        <small><b>(<?php echo getEduAppGTLang('for_development_purposes');?>)</b></small>
                                                    </div>
                                                </div>
                                                <div class="col-sm-4">
                                                    <div class="form-group label-floating">
                                                        <label class="control-label"><?php echo getEduAppGTLang('currency');?></label>
                                                        <input class="form-control" value="<?php echo $this->crud->getInfo('currency');?>" type="text" name="currency" required="">
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>
                                                <div class="col-sm-4">
                                                    <div class="form-group label-floating">
                                                        <label class="control-label"><?php echo getEduAppGTLang('paypal_email');?></label>
                                                        <input class="form-control" value="<?php echo $this->crud->getInfo('paypal_email');?>" type="text" name="paypal_email" required="">
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>
                                                <div class="col-sm-4">
                                                    <div class="form-group label-floating is-select">
                                                        <label class="control-label"><?php echo getEduAppGTLang('enable_frontend');?></label>
                                                        <div class="select">
                                                            <select name="frontend" required="">
                                                                <option value=""><?php echo getEduAppGTLang('select');?></option>
                                                                <?php $current_calendar_language = $this->crud->getInfo('calendar'); ?>
                                                                <option value="1" <?php if ($this->crud->getInfo('frontend') == '1') echo 'selected';?>> <?php echo getEduAppGTLang('enabled');?> </option>
                                                                <option value="2" <?php if ($this->crud->getInfo('frontend') == '2') echo 'selected';?>> <?php echo getEduAppGTLang('disabled');?> </option>
                                                            </select>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-sm-6">
                                                    <div class="form-group label-floating">
                                                        <label class="control-label">Facebook</label>
                                                        <input class="form-control" value="<?php echo $this->crud->getInfo('facebook');?>" type="text" name="facebook">
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>
                                                <div class="col-sm-6">
                                                    <div class="form-group label-floating">
                                                        <label class="control-label">Twitter</label>
                                                        <input class="form-control" value="<?php echo $this->crud->getInfo('twitter');?>" type="text" name="twitter">
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>  
                                                <div class="col-sm-6">
                                                    <div class="form-group label-floating">
                                                        <label class="control-label">Instagram</label>
                                                        <input class="form-control" value="<?php echo $this->crud->getInfo('instagram');?>" type="text" name="instagram">
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>
                                                <div class="col-sm-6">
                                                    <div class="form-group label-floating">
                                                        <label class="control-label">YouTube</label>
                                                        <input class="form-control" value="<?php echo $this->crud->getInfo('youtube');?>" type="text" name="youtube">
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>
                                                <div class="col-sm-12">
                                                    <div class="pull-right">
                                                        <button class="btn btn-primary btn-rounded pull-right" type="submit"> <?php echo getEduAppGTLang('update');?></button>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <?php echo form_close();?>

                                        <div class="element-box lined-success shadow rad10">
                                            <?php echo form_open(base_url() . 'admin/smtp/update');?>
                                                <h4 class="form-header"><?php echo getEduAppGTLang('smtp_settings');?></h4><br>
                                                    <div class="row">
                                                        <div class="col-sm-6">
                                                            <div class="form-group label-floating">
                                                                <label class="control-label"><?php echo getEduAppGTLang('protocol');?></label>
                                                                <input class="form-control" value="<?php echo $this->db->get_where('settings', array('type' => 'protocol'))->row()->description;?>" type="text" name="protocol" required="">
                                                                <span class="material-input"></span>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-6"> 
                                                            <div class="form-group label-floating">
                                                                <label class="control-label"><?php echo getEduAppGTLang('smtp_host');?></label>
                                                                <input class="form-control" value="<?php echo $this->db->get_where('settings', array('type' => 'smtp_host'))->row()->description;?>" type="text" name="smtp_host" required="">
                                                                <span class="material-input"></span>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-6">
                                                            <div class="form-group label-floating">
                                                                <label class="control-label"><?php echo getEduAppGTLang('smtp_port');?></label>
                                                                <input class="form-control" value="<?php echo $this->db->get_where('settings', array('type' => 'smtp_port'))->row()->description;?>" type="text" name="smtp_port" required="">
                                                                <span class="material-input"></span>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-6">
                                                            <div class="form-group label-floating">
                                                                <label class="control-label"><?php echo getEduAppGTLang('smtp_user');?></label>
                                                                <input class="form-control" value="<?php echo $this->db->get_where('settings', array('type' => 'smtp_user'))->row()->description;?>" type="text" name="smtp_user" required="">
                                                                <span class="material-input"></span>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-6">
                                                            <div class="form-group label-floating">
                                                                <label class="control-label"><?php echo getEduAppGTLang('smtp_pass');?></label>
                                                                <input class="form-control" value="<?php echo $this->db->get_where('settings', array('type' => 'smtp_pass'))->row()->description;?>" type="text" name="smtp_pass" required="">
                                                                <span class="material-input"></span>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-6">
                                                            <div class="form-group label-floating">
                                                                <label class="control-label"><?php echo getEduAppGTLang('charset');?></label>
                                                                <input class="form-control" value="<?php echo $this->db->get_where('settings', array('type' => 'charset'))->row()->description;?>" type="text" name="charset" required="">
                                                                <span class="material-input"></span>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-12">
                                                            <button class="btn btn-primary btn-rounded pull-right" type="submit"> <?php echo getEduAppGTLang('update');?></button>
                                                        </div>
                                                    <div>
                                                </div>
                                            </div>
                                        <?php echo form_close();?>
                                    </div>

                                        <div class="element-box lined-success shadow rad10">
                                            <?php echo form_open(base_url() . 'admin/social/login');?>
                                                <h4 class="form-header"><?php echo getEduAppGTLang('social_login');?></h4><br>
                                                    <div class="row">
                                                        <div class="col-sm-12">
                                                            <div class="description-toggle">
                                                                <div class="description-toggle-content">
                                                                    <div class="h6"><?php echo getEduAppGTLang('enable_social_login');?></div>
                                                                    <p><?php echo getEduAppGTLang('social_login_message');?></p>
                                                                </div>          
                                                                <div class="togglebutton">
                                                                    <label><input name="social_login" value="1" type="checkbox" <?php if($this->crud->getInfo('social_login') == 1) echo "checked";?>></label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-6">
                                                            <div class="form-group label-floating">
                                                                <label class="control-label">Google Client ID</label>
                                                                <input class="form-control" value="<?php echo $this->crud->getInfo('google_sync');?>" type="text" name="google_sync">
                                                                <span class="material-input"></span>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-6">
                                                            <div class="form-group label-floating">
                                                                <label class="control-label">Google Secret</label>
                                                                <input class="form-control" value="<?php echo $this->crud->getInfo('google_login');?>" type="text" name="google_login">
                                                                <span class="material-input"></span>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-12">
                                                            <div class="form-group label-floating">
                                                                <label class="control-label">Facebook Sync UR</label>
                                                                <input class="form-control" value="<?php echo base_url();?>auth/facebook/" type="text" readonly>
                                                                <span class="material-input"></span>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-12">
                                                            <div class="form-group label-floating">
                                                                <label class="control-label">Facebook Login URL</label>
                                                                <input class="form-control" value="<?php echo base_url();?>auth/loginfacebook/" type="text" readonly>
                                                                <span class="material-input"></span>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-12">
                                                            <div class="form-group label-floating">
                                                                <label class="control-label">Google Sync URL</label>
                                                                <input class="form-control" value="<?php echo base_url();?>auth/sync/" type="text" readonly>
                                                                <span class="material-input"></span>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-12">
                                                            <div class="form-group label-floating">
                                                                <label class="control-label">Google Login URL</label>
                                                                <input class="form-control" value="<?php echo base_url();?>auth/login/" type="text" readonly>
                                                                <span class="material-input"></span>
                                                            </div>
                                                        </div>    
                                                        <div class="col-sm-12">
                                                            <button class="btn btn-primary btn-rounded pull-right" type="submit"> <?php echo getEduAppGTLang('update');?></button>
                                                        </div>
                                                    <div>
                                                </div>
                                            </div>
                                        <?php echo form_close();?>
                                    </div>
                                    <div class="element-box lined-purple shadow rad10">
                                        <h4 class="form-header"><i class="os-icon picons-thin-icon-thin-0688_paint_bucket_color"></i> <?php echo getEduAppGTLang('personalization');?></h4><br>
                                        <?php echo form_open(base_url() . 'admin/system_settings/skin', array('enctype' => 'multipart/form-data'));?>
                                            <div class="row">
                                                <div class="col-sm-6">
                                                    <div class="form-group">
                                                        <label class="control-label"><?php echo getEduAppGTLang('logo');?></label>
                                                        <input class="form-control" type="file" name="userfile">
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>
                                                <div class="col-sm-6">
                                                    <div class="form-group">
                                                        <label class="control-label"><?php echo getEduAppGTLang('logo_white');?></label>
                                                        <input class="form-control" type="file" name="logow">
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>
                                                <div class="col-sm-6">
                                                    <div class="form-group">
                                                        <label class="control-label"><?php echo getEduAppGTLang('icon_white');?></label>
                                                        <input class="form-control" type="file" name="icon_white">
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>
                                                <div class="col-sm-6">
                                                    <div class="form-group">
                                                        <label class="control-label"><?php echo getEduAppGTLang('favicon');?></label>
                                                        <input class="form-control" type="file" name="favicon">
                                                        <span class="material-input"></span>
                                                    </div>
                                                </div>
                                            </div>
                                            <legend><span><?php echo getEduAppGTLang('background');?></span></legend>
                                            <div class="row">
                                                <div class="col-sm-6">
                                                    <div class="form-group">
                                                        <input class="form-control" type="file" name="bglogin">
                                                        <span class="material-input"></span>
                                                    </div>    
                                                </div>
                                            </div>
                                            <div class="form-buttons-w text-right">
                                                <button class="btn btn-purple btn-rounded" type="submit"> <?php echo getEduAppGTLang('update');?></button>
                                            </div>
                                        <?php echo form_close();?> 
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="display-type"></div>
            </div>
        </div>
    </div>