<!DOCTYPE html>
<html lang="en">
<head>
<?php $this->load->view('includes/head'); ?>
</head>
<body>
  <div id="app">
    <div class="main-wrapper">
      <?php $this->load->view('includes/navbar'); ?>
        <div class="main-content">
          <section class="section">
            <div class="section-header">
              <div class="section-header-back">
                <a href="<?=base_url()?>" class="btn btn-icon"><i class="fas fa-arrow-left"></i></a>
              </div>
              <h1><?=$this->lang->line('frontend')?$this->lang->line('frontend'):'Frontend'?></h1>
              <div class="section-header-breadcrumb">
                <div class="breadcrumb-item active"><a href="<?=base_url()?>"><?=$this->lang->line('dashboard')?$this->lang->line('dashboard'):'Dashboard'?></a></div>
                <div class="breadcrumb-item"><?=$this->lang->line('frontend')?$this->lang->line('frontend'):'Frontend'?></div>
              </div>
            </div>

            <div class="section-body">
              <div class="row">
              
                <div class="col-md-3">
                  <div class="card card-primary">
                    <div class="card-body">
                      <ul class="nav nav-pills flex-column">
                        <li class="nav-item"><a href="<?=base_url('front/landing')?>" class="nav-link active"><?=$this->lang->line('general')?$this->lang->line('general'):'General'?></a></li>
                        <li class="nav-item"><a href="<?=base_url('front/home')?>" class="nav-link"><?=$this->lang->line('home')?$this->lang->line('home'):'Home'?></a></li>
                        <li class="nav-item"><a href="<?=base_url('front/features')?>" class="nav-link"><?=$this->lang->line('features')?$this->lang->line('features'):'Features'?></a></li>
                        <li class="nav-item"><a href="<?=base_url('front/about')?>" class="nav-link"><?=$this->lang->line('about')?$this->lang->line('about'):'About Us'?></a></li>
                        <li class="nav-item"><a href="<?=base_url('front/saas-privacy-policy')?>" class="nav-link"><?=$this->lang->line('privacy_policy')?$this->lang->line('privacy_policy'):'Privacy Policy'?></a></li>
                        <li class="nav-item"><a href="<?=base_url('front/saas-terms-and-conditions')?>" class="nav-link"><?=$this->lang->line('terms_and_conditions')?$this->lang->line('terms_and_conditions'):'Terms and Conditions'?></a></li>
                      </ul>
                    </div>
                  </div>
                </div>
                <div class="col-md-9">
                  <div class="card card-primary" id="settings-card">
                    



                    <form action="<?=base_url('settings/save-front-setting')?>" method="POST" id="setting-form">
                      <div class="card-body row">
                        <div class="col-md-12">
                          <div class="form-group col-md-12">
                              <label class="d-block mt-3"><?=$this->lang->line('enable_or_disable_sections')?$this->lang->line('enable_or_disable_sections'):'Enable OR Disable Sections'?> <i class="fas fa-question-circle" data-toggle="tooltip" data-placement="right" title="" data-original-title="<?=$this->lang->line('disable_landing_page_option_to_disable_whole_frontend')?$this->lang->line('disable_landing_page_option_to_disable_whole_frontend'):'Disable Landing Page option to Disable whole frontend.'?>"></i></label>

                              <div class="form-check form-check-inline">
                                <input class="form-check-input" type="checkbox" id="landing_page" name="landing_page" value="<?=(isset($frontend_permissions->landing_page) && !empty($frontend_permissions->landing_page))?$frontend_permissions->landing_page:0?>" <?=(isset($frontend_permissions->landing_page) && !empty($frontend_permissions->landing_page) && $frontend_permissions->landing_page == 1)?'checked':''?>>
                                <label class="form-check-label" for="landing_page"><?=$this->lang->line('landing_page')?$this->lang->line('landing_page'):'Landing Page'?></label>
                              </div>

                              <div class="form-check form-check-inline">
                                <input class="form-check-input" type="checkbox" id="home" name="home" value="<?=(isset($frontend_permissions->home) && !empty($frontend_permissions->home))?$frontend_permissions->home:0?>" <?=(isset($frontend_permissions->home) && !empty($frontend_permissions->home) && $frontend_permissions->home == 1)?'checked':''?>>
                                <label class="form-check-label" for="home"><?=$this->lang->line('home')?$this->lang->line('home'):'Home'?></label>
                              </div>

                              <div class="form-check form-check-inline">
                                <input class="form-check-input" type="checkbox" id="features" name="features" value="<?=(isset($frontend_permissions->features) && !empty($frontend_permissions->features))?$frontend_permissions->features:0?>" <?=(isset($frontend_permissions->features) && !empty($frontend_permissions->features) && $frontend_permissions->features == 1)?'checked':''?>>
                                <label class="form-check-label" for="features"><?=$this->lang->line('features')?$this->lang->line('features'):'Features'?></label>
                              </div>
                              
                              <div class="form-check form-check-inline">
                                <input class="form-check-input" type="checkbox" id="subscription_plans" name="subscription_plans" value="<?=(isset($frontend_permissions->subscription_plans) && !empty($frontend_permissions->subscription_plans))?$frontend_permissions->subscription_plans:0?>" <?=(isset($frontend_permissions->subscription_plans) && !empty($frontend_permissions->subscription_plans) && $frontend_permissions->subscription_plans == 1)?'checked':''?>>
                                <label class="form-check-label" for="subscription_plans"><?=$this->lang->line('subscription_plans')?$this->lang->line('subscription_plans'):'Plans'?></label>
                              </div>
                              
                              <div class="form-check form-check-inline">
                                <input class="form-check-input" type="checkbox" id="contact" name="contact" value="<?=(isset($frontend_permissions->contact) && !empty($frontend_permissions->contact))?$frontend_permissions->contact:0?>" <?=(isset($frontend_permissions->contact) && !empty($frontend_permissions->contact) && $frontend_permissions->contact == 1)?'checked':''?>>
                                <label class="form-check-label" for="contact"><?=$this->lang->line('contact_form')?$this->lang->line('contact_form'):'Contact Form'?></label>
                              </div>

                              
                              <div class="form-check form-check-inline">
                                <input class="form-check-input" type="checkbox" id="about" name="about" value="<?=(isset($frontend_permissions->about) && !empty($frontend_permissions->about))?$frontend_permissions->about:0?>" <?=(isset($frontend_permissions->about) && !empty($frontend_permissions->about) && $frontend_permissions->about == 1)?'checked':''?>>
                                <label class="form-check-label" for="about">About Us</label>
                              </div>

                              
                              <div class="form-check form-check-inline">
                                <input class="form-check-input" type="checkbox" id="privacy" name="privacy" value="<?=(isset($frontend_permissions->privacy) && !empty($frontend_permissions->privacy))?$frontend_permissions->privacy:0?>" <?=(isset($frontend_permissions->privacy) && !empty($frontend_permissions->privacy) && $frontend_permissions->privacy == 1)?'checked':''?>>
                                <label class="form-check-label" for="privacy">Privacy Policy</label>
                              </div>

                              
                              <div class="form-check form-check-inline">
                                <input class="form-check-input" type="checkbox" id="terms" name="terms" value="<?=(isset($frontend_permissions->terms) && !empty($frontend_permissions->terms))?$frontend_permissions->terms:0?>" <?=(isset($frontend_permissions->terms) && !empty($frontend_permissions->terms) && $frontend_permissions->terms == 1)?'checked':''?>>
                                <label class="form-check-label" for="terms">Terms and Conditions</label>
                              </div>

                          </div>


                          
                        </div>

                      </div>
                        <div class="card-footer bg-whitesmoke text-md-right">
                          <button class="btn btn-primary savebtn"><?=$this->lang->line('save_changes')?$this->lang->line('save_changes'):'Save Changes'?></button>
                        </div>
                      <div class="result"></div>
                    </form>



                  </div>
                </div>
              </div>
            </div>
          </section>
        </div>
      <?php $this->load->view('includes/footer'); ?>
    </div>
  </div>

<?php $this->load->view('includes/js'); ?>
</body>
</html>
