<?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>Section Main</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">Section Main</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">
              <div class="card-header">
                <h3 class="card-title">Update Section</h3>
                <div class="card-tools">
                  <a href="<?php echo base_url()?>admin/live_class_page/all_pages"><button type="button" class="btn btn-success btn-sm">View All Page</button></a>
               </div>
              </div>
              <!-- /.card-header -->
              <?php echo form_open_multipart(base_url().'admin/live_class_page/update_section_main/'.$section_main->live_class_id); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-8">
                    <div class="form-group">
                      <label>Page Name<span class="required">*</span></label>
                      <input type="text" name="live_class_page_name" class="form-control" placeholder="Enter Page Name" required="" value="<?php echo $section_main->live_class_page_name; ?>">
                    </div>
                  </div>
                  <div class="col-md-4">
                    <div class="form-group">
                      <label>Event Date<span class="required">*</span></label>
                      <input type="date" name="live_class_page_date" class="form-control" placeholder="Enter Page Name" required="" value="<?php echo $section_main->live_class_page_date; ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Heading<span class="required">*</span></label>
                      <input type="text" name="live_class_heading" class="form-control" placeholder="Enter Heading" required="" value="<?php echo $section_main->live_class_heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Content<span class="required">*</span></label>
                      <textarea type="text" name="live_class_sub_heading" class="form-control" placeholder="Enter  Content" required=""><?php echo $section_main->live_class_sub_heading; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Video URL<span class="required">*</span></label>
                      <textarea type="text" name="live_class_video" class="form-control" placeholder="Enter  Video URL" required><?php echo $section_main->live_class_video; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Head Code</label>
                      <textarea type="text" name="live_class_head_code" class="form-control" placeholder="Enter Head Code" ><?php echo $section_main->live_class_head_code; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Button Title<span class="required">*</span></label>
                      <input type="text" name="live_class_button_heading" class="form-control" placeholder="Enter Button Title" required="" value="<?php echo $section_main->live_class_button_heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Button Sub-Title<span class="required">*</span></label>
                      <input type="text" name="live_class_button_sub_heading" class="form-control" placeholder="Enter Button Sub-Title" required="" value="<?php echo $section_main->live_class_button_sub_heading; ?>">
                    </div>
                  </div>

                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 2 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_2" class="form-control" placeholder="Enter Section 2 Heading" required="" value="<?php echo $section_main->live_class_section_2; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 3 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_3" class="form-control" placeholder="Enter Section 3 Heading" required="" value="<?php echo $section_main->live_class_section_3; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 4 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_4" class="form-control" placeholder="Enter Section 4 Heading" required="" value="<?php echo $section_main->live_class_section_4; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 5 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_5" class="form-control" placeholder="Enter Section 5 Heading" required="" value="<?php echo $section_main->live_class_section_5; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 6 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_6" class="form-control" placeholder="Enter Section 6 Heading" required="" value="<?php echo $section_main->live_class_section_6; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 7 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_7" class="form-control" placeholder="Enter Section 7 Heading" required="" value="<?php echo $section_main->live_class_section_7; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 8 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_8" class="form-control" placeholder="Enter Section 8 Heading" required="" value="<?php echo $section_main->live_class_section_8; ?>">
                    </div>
                  </div>

                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 9 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_9" class="form-control" placeholder="Enter Section 9 Heading" required="" value="<?php echo $section_main->live_class_section_9; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 10 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_10" class="form-control" placeholder="Enter Section 10 Heading" required="" value="<?php echo $section_main->live_class_section_10; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 11 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_11" class="form-control" placeholder="Enter Section 11 Heading" required="" value="<?php echo $section_main->live_class_section_11; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 12 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_12" class="form-control" placeholder="Enter Section 12 Heading" required="" value="<?php echo $section_main->live_class_section_12; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 13 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_13" class="form-control" placeholder="Enter Section 13 Heading" required="" value="<?php echo $section_main->live_class_section_13; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 14 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_14" class="form-control" placeholder="Enter Section 14 Heading" required="" value="<?php echo $section_main->live_class_section_14; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 15 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_15" class="form-control" placeholder="Enter Section 15 Heading" required="" value="<?php echo $section_main->live_class_section_15; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Section 16 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_section_16" class="form-control" placeholder="Enter Section 16 Heading" required="" value="<?php echo $section_main->live_class_section_16; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                     
                    </div>
                  </div>

                  <div class="col-md-2">
                    <div class="form-group">
                      <label>Icon <span class="required">*</span></label>
                      <select class="form-control select2icon font-awsom" name="live_class_header_stats_1_icon"  required="required">
                        <option value="">Select Icon</option>
                         <?php $this->load->view('admin/include/fafa_icon_select', ['icon' => $section_main->live_class_header_stats_1_icon]) ?>
                      </select>
                    </div>
                  </div>
                  <div class="col-md-5">
                    <div class="form-group">
                      <label>Head Section Stats 1 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_header_stats_1_heading" class="form-control" placeholder="Enter Head Section Stats 1 Heading" required="" value="<?php echo $section_main->live_class_header_stats_1_heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-5">
                    <div class="form-group">
                      <label>Head Section Stats 1 Sub-Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_header_stats_1_sub_heading" class="form-control" placeholder="Enter Head Section Stats 1 Sub-Heading" required="" value="<?php echo $section_main->live_class_header_stats_1_sub_heading; ?>">
                    </div>
                  </div>

                  <div class="col-md-2">
                    <div class="form-group">
                      <label>Icon <span class="required">*</span></label>
                      <select class="form-control select2icon font-awsom" name="live_class_header_stats_2_icon"  required="required">
                        <option value="">Select Icon</option>
                         <?php $this->load->view('admin/include/fafa_icon_select', ['icon' => $section_main->live_class_header_stats_2_icon]) ?>
                      </select>
                    </div>
                  </div>
                  <div class="col-md-5">
                    <div class="form-group">
                      <label>Head Section Stats 2 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_header_stats_2_heading" class="form-control" placeholder="Enter Head Section Stats 2 Heading" required="" value="<?php echo $section_main->live_class_header_stats_2_heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-5">
                    <div class="form-group">
                      <label>Head Section Stats 2 Sub-Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_header_stats_2_sub_heading" class="form-control" placeholder="Enter Head Section Stats 2 Sub-Heading" required="" value="<?php echo $section_main->live_class_header_stats_2_sub_heading; ?>">
                    </div>
                  </div>

                  <div class="col-md-2">
                    <div class="form-group">
                      <label>Icon <span class="required">*</span></label>
                      <select class="form-control select2icon font-awsom" name="live_class_header_stats_3_icon"  required="required">
                        <option value="">Select Icon</option>
                         <?php $this->load->view('admin/include/fafa_icon_select', ['icon' => $section_main->live_class_header_stats_3_icon]) ?>
                      </select>
                    </div>
                  </div>
                  <div class="col-md-5">
                    <div class="form-group">
                      <label>Head Section Stats 3 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_header_stats_3_heading" class="form-control" placeholder="Enter Head Section Stats 3 Heading" required="" value="<?php echo $section_main->live_class_header_stats_3_heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-5">
                    <div class="form-group">
                      <label>Head Section Stats 3 Sub-Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_header_stats_3_sub_heading" class="form-control" placeholder="Enter Head Section Stats 3 Sub-Heading" required="" value="<?php echo $section_main->live_class_header_stats_3_sub_heading; ?>">
                    </div>
                  </div>

                  <div class="col-md-2">
                    <div class="form-group">
                      <label>Icon <span class="required">*</span></label>
                      <select class="form-control select2icon font-awsom" name="live_class_header_stats_4_icon"  required="required">
                        <option value="">Select Icon</option>
                         <?php $this->load->view('admin/include/fafa_icon_select', ['icon' => $section_main->live_class_header_stats_4_icon]) ?>
                      </select>
                    </div>
                  </div>
                  <div class="col-md-5">
                    <div class="form-group">
                      <label>Head Section Stats 4 Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_header_stats_4_heading" class="form-control" placeholder="Enter Head Section Stats 3 Heading" required="" value="<?php echo $section_main->live_class_header_stats_4_heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-5">
                    <div class="form-group">
                      <label>Head Section Stats 4 Sub-Heading <span class="required">*</span></label>
                      <input type="text" name="live_class_header_stats_4_sub_heading" class="form-control" placeholder="Enter Head Section Stats 4 Sub-Heading" required="" value="<?php echo $section_main->live_class_header_stats_4_sub_heading; ?>">
                    </div>
                  </div>

                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 6 Video Link</label>
                      <input type="text" name="live_class_section_6_url" class="form-control" placeholder="Enter Section 6 Video Url" value="<?php echo $section_main->live_class_section_6_url; ?>">
                    </div>
                  </div>

                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 9 Certificate Image</label>
                      <input type="file" name="live_class_section_8_cer_img" class="form-control" placeholder="Enter Section 6 Video Url" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <img src="<?php echo base_url() ?><?php echo $section_main->live_class_section_8_cer_img; ?>" width="100px">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 7 Content</label>
                      <textarea name="live_class_section_7_content" class="form-control text-editor" placeholder="Enter Section 6 Video Url" ><?php echo $section_main->live_class_section_7_content; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 11 Content</label>
                      <textarea name="live_class_section_11_content" class="form-control text-editor" placeholder="Enter Section 6 Video Url" ><?php echo $section_main->live_class_section_11_content; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Button CTA footer</label>
                      <textarea name="live_class_button_footer_text" class="form-control text-editor" placeholder="Enter Section 6 Video Url" ><?php echo $section_main->live_class_button_footer_text; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Thank You Page Heading</label>
                      <input  name="thank_you_heading" class="form-control" placeholder="Enter Thank You Page Heading" value="<?php echo $section_main->thank_you_heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Thank You Page Sub-Heading</label>
                      <input  name="thank_you_sub_heading" class="form-control" placeholder="Enter Thank You Page Sub-Heading" value="<?php echo $section_main->thank_you_sub_heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Thank You Page Video Url</label>
                      <input  name="thank_you_video" class="form-control" placeholder="Enter Thank You Page Video URL" value="<?php echo $section_main->thank_you_video; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Thank You Page Description 1</label>
                      <input  name="thank_you_des_1" class="form-control" placeholder="Enter Thank You Page Description 1" value="<?php echo $section_main->thank_you_des_1; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Thank You Page Description 2</label>
                      <input  name="thank_you_dec_2" class="form-control" placeholder="Enter Thank You Page Description 2" value="<?php echo $section_main->thank_you_dec_2; ?>">
                    </div>
                  </div>

                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Thank You Page Facebook Link</label>
                      <input  name="thank_you_fb" class="form-control" placeholder="Enter Thank You Page Facebook Link" value="<?php echo $section_main->thank_you_fb; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Thank You Page Whatsapp Link</label>
                      <input  name="thank_you_whatsapp" class="form-control" placeholder="Enter Thank You Page Whatsapp Link" value="<?php echo $section_main->thank_you_whatsapp; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Thank You Page Youtube Link</label>
                      <input  name="thank_you_youtube" class="form-control" placeholder="Enter Thank You Page Youtube Link" value="<?php echo $section_main->thank_you_youtube; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Thank You Page Telegram Link</label>
                      <input  name="thank_you_telegram" class="form-control" placeholder="Enter Thank You Page Telegram Link" value="<?php echo $section_main->thank_you_telegram; ?>">
                    </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>
  