<?php
    $errors = $this->session->userdata('errors');
    if (isset($errors)) {
        ?>
        <script>
            swal ( "Oops" ,  "<?php echo $errors ?>" ,  "error" )
        </script>
        <?php echo $errors ?>
        <?php
        $this->session->unset_userdata('errors');
    }
    $error = $this->session->userdata('error');
    if (isset($error)) {
        ?>
         <script>
            swal ( "Oops" ,  "<?php echo $error ?>" ,  "error" )
        </script>
        <?php
        $this->session->unset_userdata('error');
    }
    $success = $this->session->userdata('success');
    if (isset($success)) {
        ?>
         <script>
            swal({
          title: "Done!",
          text: "<?php echo $success ?>",
          icon: "success",
        });
        </script>
        <?php
        $this->session->unset_userdata('success');
    }
    ?>
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1>Heading & Sub-Heading</h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?php echo admin_url() ?>admin">Home</a></li>
              <li class="breadcrumb-item active">Heading & Sub-Heading</li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <!-- /.card-header -->
              <?php echo form_open(base_url().'admin/frontend_setting/update_heading_and_sub_heading'); ?>
              <div class="card-body">
                <div class="row">
                <div class="col-md-12">
                    <div class="form-group">
                      <label>Course Section Heading<span class="required">*</span></label>
                      <input type="text" name="flag_course" class="form-control" required="" value="<?php echo $heading->flag_course ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 1 Heading<span class="required">*</span></label>
                      <input type="text" name="are_you" class="form-control" required="" value="<?php echo $heading->are_you ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 1 Sub-Heading<span class="required">*</span></label>
                      <input type="text" name="about_heaing" class="form-control" required="" value="<?php echo $heading->about_heaing ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Counter Section Heading<span class="required">*</span></label>
                      <input type="text" name="upcoming_batches_heading" class="form-control" required="" value="<?php echo $heading->upcoming_batches_heading ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Content Section Heading<span class="required">*</span></label>
                      <input type="text" name="upcoming_batches_description" class="form-control" required="" value="<?php echo $heading->upcoming_batches_description ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Image Section Heading<span class="required">*</span></label>
                      <input type="text" name="training_title" class="form-control" required="" value="<?php echo $heading->training_title ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Media Section Heading<span class="required">*</span></label>
                      <input type="text" name="training_description" class="form-control" required="" value="<?php echo $heading->training_description ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Form Heading<span class="required">*</span></label>
                      <input type="text" name="form_heading" class="form-control" required="" value="<?php echo $heading->form_heading ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Form Description<span class="required">*</span></label>
                      <input type="text" name="form_sub_heading" class="form-control" required="" value="<?php echo $heading->form_sub_heading ?>">
                    </div>
                  </div>
                  
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Flag Course Section Sub Heading<span class="required">*</span></label>
                      <input type="text" name="flag_course_desc" class="form-control" required="" value="<?php echo $heading->flag_course_desc ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>API Course Section Heading<span class="required">*</span></label>
                      <input type="text" name="api_course" class="form-control" required="" value="<?php echo $heading->api_course ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>API Course Section Sub Heading<span class="required">*</span></label>
                      <input type="text" name="api_course_desc" class="form-control" required="" value="<?php echo $heading->api_course_desc ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Tranding Course Section Heading<span class="required">*</span></label>
                      <input type="text" name="tranding_course" class="form-control" required="" value="<?php echo $heading->tranding_course ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Tranding Course Section Sub Heading<span class="required">*</span></label>
                      <input type="text" name="tranding_course_desc" class="form-control" required="" value="<?php echo $heading->tranding_course_desc ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Exclusive Ebook Section Heading<span class="required">*</span></label>
                      <input type="text" name="exclusive_ebook" class="form-control" required="" value="<?php echo $heading->exclusive_ebook ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Exclusive Ebook Section Sub Heading<span class="required">*</span></label>
                      <input type="text" name="exclusive_ebook_desc" class="form-control" required="" value="<?php echo $heading->exclusive_ebook_desc ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Event Section Heading<span class="required">*</span></label>
                      <input type="text" name="event_heading" class="form-control" required="" value="<?php echo $heading->event_heading ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Event Section Sub Heading<span class="required">*</span></label>
                      <input type="text" name="event_desc" class="form-control" required="" value="<?php echo $heading->event_desc ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Trainging Section Heading<span class="required">*</span></label>
                      <input type="text" name="trainign_heading" class="form-control" required="" value="<?php echo $heading->trainign_heading ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Trainging Section Sub Heading<span class="required">*</span></label>
                      <input type="text" name="trainign_desc" class="form-control" required="" value="<?php echo $heading->trainign_desc ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Social Share Heading<span class="required">*</span></label>
                      <input type="text" name="social_share_heading" class="form-control" required="" value="<?php echo $heading->social_share_heading ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Member Review Image<span class="required">*</span></label>
                      <input type="text" name="member_review_image" class="form-control" required="" value="<?php echo $heading->member_review_image ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Place Student<span class="required">*</span></label>
                      <input type="text" name="place_student" class="form-control" required="" value="<?php echo $heading->place_student ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Latest Blog Heading<span class="required">*</span></label>
                      <input type="text" name="latest_blog_heading" class="form-control" required="" value="<?php echo $heading->latest_blog_heading ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Company Logo Section Heading<span class="required">*</span></label>
                      <input type="text" name="company_logo" class="form-control" required="" value="<?php echo $heading->company_logo ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Trial Class Heading<span class="required">*</span></label>
                      <input type="text" name="trail_class_heading" class="form-control" required="" value="<?php echo $heading->trail_class_heading ?>">
                    </div>
                  </div>
                   <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Trial Class Sub Heading<span class="required">*</span></label>
                      <input type="text" name="trail_class_desc" class="form-control" required="" value="<?php echo $heading->trail_class_desc ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Newsletter Section Heading<span class="required">*</span></label>
                      <input type="text" name="newsletter_heading" class="form-control" required="" value="<?php echo $heading->newsletter_heading  ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Newsletter Section Sub Heading<span class="required">*</span></label>
                      <input type="text" name="newsletter_desc" class="form-control" required="" value="<?php echo $heading->newsletter_desc  ?>">
                    </div>
                  </div>

                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Footer Section Useful Link<span class="required">*</span></label>
                      <input type="text" name="useful_link" class="form-control" required="" value="<?php echo $heading->useful_link  ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Footer Section Quick Link<span class="required">*</span></label>
                      <input type="text" name="quick_link" class="form-control" required="" value="<?php echo $heading->quick_link  ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Footer Section Support<span class="required">*</span></label>
                      <input type="text" name="support" class="form-control" required="" value="<?php echo $heading->support  ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Branch Page Heading<span class="required">*</span></label>
                      <input type="text" name="branch_page_heading" class="form-control" required="" value="<?php echo $heading->branch_page_heading  ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Branch Page Sub-Heading<span class="required">*</span></label>
                      <input type="text" name="branch_page_sub_heading" class="form-control" required="" value="<?php echo $heading->branch_page_sub_heading  ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Google Algorithm Heading<span class="required">*</span></label>
                      <input type="text" name="google_algorithm_heading" class="form-control" required="" value="<?php echo $heading->google_algorithm_heading  ?>">
                    </div>
                  </div>
                  <div class="col-md-6 d-none">
                    <div class="form-group">
                      <label>Google Algorithm Sub-Heading<span class="required">*</span></label>
                      <input type="text" name="google_algorithm_sub_heading" class="form-control" required="" value="<?php echo $heading->google_algorithm_sub_heading  ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <button class="btn btn-info" type="submit" style="float: right">Update</button>
                    </div>
                  </div>
                  <?php echo form_close(); ?>
                </div>
              </div>
            </div>
          </div>

      </div>
    </section>
    <!-- /.content -->
  </div>
