<?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>Are You</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">Are You</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">
                <h4>Section 1</h4>
              </div>
              <!-- /.card-header -->
              <?php echo form_open_multipart(base_url().'admin/frontend_setting/add_about_us_section_1'); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>About Us Heading<span class="required">*</span></label>
                      <input type="text" name="heading" class="form-control" placeholder="Enter About Us Heading" required="" value="<?php echo $content_1->heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>About Us Sub-Heading<span class="required">*</span></label>
                      <input type="text" name="sub_heading" class="form-control" placeholder="Enter About Us Sub-Heading" required="" value="<?php echo $content_1->sub_heading; ?>">
                    </div>
                  </div>



                  <div class="col-md-6">

                    <div class="form-group">
                      <label>Select Content</label>
                      <select onclick="change_video(this)" type="text" name="video_or_image" class="form-control" required="">
                        <option <?php if($content_1->video_or_image == 1){echo 'selected';}?> value="1">Image</option>
                        <option <?php if($content_1->video_or_image == 2){echo 'selected';}?> value="2">Video</option>
                      </select>
                    </div>
                    <script type="text/javascript">
                      function change_video(e) 
                      {
                          if(e.value == 1)
                          {
                            $('.image').show();
                            $('.video').hide();
                          }
                          else
                          {
                            $('.image').hide();
                            $('.video').show();
                          }
                      }
                    </script>
                    <style type="text/css">
                     <?php if($content_1->video_or_image == 1){?>
                      .video
                      {
                        display: none;
                      }
                    <?php }?>
                      <?php if($content_1->video_or_image == 2){?>
                       .image
                      {
                        display: none;
                      }
                    <?php };?>
                    </style>


                    <div class="form-group image" >
                      <label>Image</label>
                      <input type="file" name="image" class="form-control">
                    </div>
                    <div class="form-group image" >
                      <label>Preview Image</label>
                      <img src="<?php echo base_url()?><?php echo $content_1->image?>" width="50px">
                    </div>

                     <div class="form-group video" >
                      <label>Video Link</label>
                      <textarea type="file" name="video" class="form-control" placeholder="Enter Video Link"><?php echo $content_1->video; ?></textarea>
                    </div>
                  </div>



                  <div class="col-md-6">
                    <div class="form-group">
                      <label>About Us Content 2</label>
                      <textarea type="text" name="content" class="form-control" placeholder="Enter About Us Content 2" rows="5" ><?php echo $content_1->content; ?></textarea>
                    </div>
                  </div>


                  <div class="col-md-12">
                    <div class="form-group">
                      <button class="btn btn-info" type="submit" style="float: right">Add</button>
                    </div>
                  </div>
                  <?php echo form_close(); ?>
                </div>
              </div>
            </div>
          </div>
      </div>
    </section>
    <!-- Main content -->
    <section class="content" id="head_2">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h4>Section 2 Heading</h4>
              </div>
              <!-- /.card-header -->
              <?php echo form_open(base_url().'admin/frontend_setting/add_about_us_section_2_i'); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Heading<span class="required">*</span></label>
                      <input type="text" name="heading" class="form-control" placeholder="Enter About Us Heading" required="" value="<?php echo $content_2->heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Sub-Heading<span class="required">*</span></label>
                      <input type="text" name="sub_heading" class="form-control" placeholder="Enter About Us Sub-Heading" required="" value="<?php echo $content_2->sub_heading; ?>">
                    </div>
                  </div>

                  <div class="col-md-12">
                    <div class="form-group">
                      <button class="btn btn-info" type="submit" style="float: right">Add</button>
                    </div>
                  </div>
                  <?php echo form_close(); ?>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
    <section class="content" id="head_2_c">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h4>Section 2 Content</h4>
              </div>
              <!-- /.card-header -->
              <?php echo form_open_multipart(base_url().'admin/frontend_setting/add_about_us_section_2_ii'); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Heading<span class="required">*</span></label>
                      <input type="text" name="heading" class="form-control" placeholder="Enter About Us Heading" required="" value="">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>About Us Sub-Heading<span class="required">*</span></label>
                      <textarea type="text" name="des" class="form-control" placeholder="Enter About Us Sub-Heading" required="" value=""></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Image<span class="required">*</span></label>
                      <input type="file" name="image" class="form-control" placeholder="Enter About Us Heading" required="" >
                    </div>
                  </div>

                  <div class="col-md-12">
                    <div class="form-group">
                      <button class="btn btn-info" type="submit" style="float: right">Add</button>
                    </div>
                  </div>
                  <?php echo form_close(); ?>
                </div>
              </div>
        
              <div class="card-header">
                <h4>View  All Content</h4>
                
              </div>
                <div class="card-body">
                  <table id="example" class="table table-bordered table-striped">
                    <thead>
                    <tr>
                      <th>id</th>
                      <th>Heading</th>
                      <th>Description</th>
                      <th>Image</th>
                      <th></th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php $i=1; foreach ($content_2_i as $key => $content):?>
                    <tr>
                      <td><?php echo $i ?></td>
                      <td><?php echo $content->heading ?></td>
                      <td><?php echo $content->des ?></td>
                      <td><img src="<?php echo base_url(); ?><?php echo $content->image ?>" width="50px"></td>
                      <td><a href="" class="btn btn-info btn-sm" data-toggle="modal" data-target="#update_sec_2_content<?php echo $content->id ?>"><i class="fa fa-edit" aria-hidden="true"></i></a>
                        <a class="btn btn-danger btn-sm" onclick="return confirm('Are you sure?')" href="<?php echo base_url() ?>admin/frontend_setting/delete_section_2_content/<?php echo $content->id ?>"><i class="fa fa-trash" aria-hidden="true"></i></a></td>
                    </tr>
                    <?php $i++; ?>
                    <?php endforeach; ?>
                    </tbody>
                    
                  </table>
                </div>
              </div>
            </div>
          </div>
      </div>
    </section>
      <!-- Main content -->
    <section class="content" id="head_3">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h4>Section 3</h4>
              </div>
              <!-- /.card-header -->
              <?php echo form_open(base_url().'admin/frontend_setting/add_about_us_section_3'); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Heading<span class="required">*</span></label>
                      <input type="text" name="heading" class="form-control" placeholder="Enter About Us Heading" required="" value="<?php echo $content_3->heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Sub-Heading<span class="required">*</span></label>
                      <input type="text" name="sub_heading" class="form-control" placeholder="Enter About Us Sub-Heading" required="" value="<?php echo $content_3->sub_heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Button Name<span class="required">*</span></label>
                      <input type="text" name="button_name" class="form-control" placeholder="Enter About Us Button Name" required="" value="<?php echo $content_3->button_name; ?>">
                    </div>
                  </div>

                  <div class="col-md-12">
                    <div class="form-group">
                      <button class="btn btn-info" type="submit" style="float: right">Add</button>
                    </div>
                  </div>
                  <?php echo form_close(); ?>
                </div>
              </div>
            </div>
          </div>
      </div>
    </section>
    <!-- /.content -->
    <section class="content" id="head_4">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h4>Section 4 Heading & image</h4>
              </div>
              <!-- /.card-header -->
              <?php echo form_open_multipart(base_url().'admin/frontend_setting/add_about_us_section_4_i'); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Heading<span class="required">*</span></label>
                      <input type="text" name="heading" class="form-control" placeholder="Enter About Us Heading" required="" value="<?php echo $content_4->heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Sub-Heading<span class="required">*</span></label>
                      <input type="text" name="sub_heading" class="form-control" placeholder="Enter About Us Sub-Heading" required="" value="<?php echo $content_4->sub_heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Right Side Image <?php if(!$content_4->image){?><span class="required">*</span> <?php }; ?></label>
                      <input type="file" name="image" class="form-control" placeholder="Enter About Us Button Name" <?php if(!$content_4->image){?> required="" <?php } ?>>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Right Side Image<span class="required">*</span></label>
                      <img src="<?php echo base_url()?><?php echo $content_4->image?>" width="100px">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <button class="btn btn-info" type="submit" style="float: right">Add</button>
                    </div>
                  </div>
                  <?php echo form_close(); ?>
                </div>
              </div>
            </div>
          </div>
      </div>
    </section>
    <section class="content" id="head_4_c">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h4>Section 4 Content</h4>
              </div>
              <!-- /.card-header -->
              <?php echo form_open_multipart(base_url().'admin/frontend_setting/add_about_us_section_4_ii'); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Heading<span class="required">*</span></label>
                      <input type="text" name="heading" class="form-control" placeholder="Enter About Us Heading" required="" value="">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Sub-Heading<span class="required">*</span></label>
                      <input type="text" name="sub_heading" class="form-control" placeholder="Enter About Us Sub-Heading" required="" value=""></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Fa Fa Icon<span class="required">*</span></label>
                      <select class="form-control font-awsom" name="icon"  required="required">
                        <option value="">Select Icon</option>
                         <?php $this->load->view('admin/include/fafa_icon_select') ?>
                      </select>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Color</label>
                       <div class="input-group my-colorpicker2 site_color_1 colorpicker-element" data-colorpicker-id="2">
                        <input type="text" name="color" required="" class="form-control" data-original-title="" title="">

                        <div class="input-group-append">
                          <span class="input-group-text"><i  class="fas fa-square fa_1"></i></span>
                        </div>
                      </div>
                    </div>
                  </div>

                  <div class="col-md-12">
                    <div class="form-group">
                      <button class="btn btn-info" type="submit" style="float: right">Add</button>
                    </div>
                  </div>
                  <?php echo form_close(); ?>
                </div>
              </div>
        
              <div class="card-header">
                <h4>View  All Content</h4>
                
              </div>
                <div class="card-body">
                  <table id="example" class="table table-bordered table-striped">
                    <thead>
                    <tr>
                      <th>id</th>
                      <th>Heading</th>
                      <th>Description</th>
                      <th>Icon</th>
                      <th></th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php $i=1; foreach ($content_4_i as $key => $content):?>
                    <tr>
                      <td><?php echo $i ?></td>
                      <td><?php echo $content->heading ?></td>
                      <td><?php echo $content->sub_heading ?></td>
                      <td><i class="fa <?php echo $content->icon?>" style="color:<?php echo $content->color; ?>"></i></td>
                      <td><a href="" class="btn btn-info btn-sm" data-toggle="modal" data-target="#update_sec_4_content<?php echo $content->id ?>"><i class="fa fa-edit" aria-hidden="true"></i></a>
                        <a class="btn btn-danger btn-sm" onclick="return confirm('Are you sure?')" href="<?php echo base_url() ?>admin/frontend_setting/delete_section_4_content/<?php echo $content->id ?>"><i class="fa fa-trash" aria-hidden="true"></i></a></td>
                    </tr>
                    <?php $i++; ?>
                    <?php endforeach; ?>
                    </tbody>
                    
                  </table>
                </div>
              </div>
            </div>
          </div>
      </div>
    </section>

    <section class="content" id="head_5">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h4>Section 5 Content</h4>
              </div>
              <!-- /.card-header -->
              <?php echo form_open_multipart(base_url().'admin/frontend_setting/add_about_us_section_5'); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Heading<span class="required">*</span></label>
                      <input type="text" name="heading" class="form-control" placeholder="Enter About Us Heading" required="" value="">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Number<span class="required">*</span></label>
                      <input type="number" name="number" class="form-control" placeholder="Enter About Us number" required="" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Fa Fa Icon<span class="required">*</span></label>
                      <select class="form-control font-awsom" name="icon"  required="required">
                        <option value="">Select Icon</option>
                         <?php $this->load->view('admin/include/fafa_icon_select') ?>
                      </select>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <button class="btn btn-info" type="submit" style="float: right">Add</button>
                    </div>
                  </div>
                  <?php echo form_close(); ?>
                </div>
              </div>
        
              <div class="card-header">
                <h4>View  All Content</h4>
                
              </div>
                <div class="card-body">
                  <table id="example" class="table table-bordered table-striped">
                    <thead>
                    <tr>
                      <th>id</th>
                      <th>Heading</th>
                      <th>Number</th>
                      <th>Icon</th>
                      <th></th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php $i=1; foreach ($content_5 as $key => $content):?>
                    <tr>
                      <td><?php echo $i ?></td>
                      <td><?php echo $content->heading ?></td>
                      <td><?php echo $content->number ?></td>
                      <td><i class="fa <?php echo $content->icon?>" ></i></td>
                      <td><a href="" class="btn btn-info btn-sm" data-toggle="modal" data-target="#update_sec_5_content<?php echo $content->id ?>"><i class="fa fa-edit" aria-hidden="true"></i></a>
                        <a class="btn btn-danger btn-sm" onclick="return confirm('Are you sure?')" href="<?php echo base_url() ?>admin/frontend_setting/delete_section_5_content/<?php echo $content->id ?>"><i class="fa fa-trash" aria-hidden="true"></i></a></td>
                    </tr>
                    <?php $i++; ?>
                    <?php endforeach; ?>
                    </tbody>
                    
                  </table>
                </div>
              </div>
            </div>
          </div>
      </div>
    </section>

     <!-- /.content -->
    <section class="content" id="head_6">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h4>Section 6 Heading</h4>
              </div>
              <!-- /.card-header -->
              <?php echo form_open(base_url().'admin/frontend_setting/add_about_us_section_6_i'); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Heading<span class="required">*</span></label>
                      <input type="text" name="heading" class="form-control" placeholder="Enter About Us Heading" required="" value="<?php echo $content_6_i->heading; ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Sub-Heading<span class="required">*</span></label>
                      <input type="text" name="sub_heading" class="form-control" placeholder="Enter About Us Sub-Heading" required="" value="<?php echo $content_6_i->sub_heading; ?>">
                    </div>
                  </div>
                  
                  <div class="col-md-12">
                    <div class="form-group">
                      <button class="btn btn-info" type="submit" style="float: right">Add</button>
                    </div>
                  </div>
                  <?php echo form_close(); ?>
                </div>
              </div>
            </div>
          </div>
      </div>
    </section>
    <section class="content" id="head_5">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h4>Section 6 Content</h4>
              </div>
              <!-- /.card-header -->
              <?php echo form_open_multipart(base_url().'admin/frontend_setting/add_about_us_section_6_ii'); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Name<span class="required">*</span></label>
                      <input type="text" name="name" class="form-control" placeholder="Enter name" required="" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>designation<span class="required">*</span></label>
                      <input type="text" name="designation" class="form-control" placeholder="Enter Designation" required="" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Year of Experience<span class="required">*</span></label>
                      <input type="number" name="year" class="form-control" placeholder="Enter Year of Experience" required="" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Image<span class="required">*</span></label>
                      <input type="file" name="image" class="form-control" placeholder="Enter Year of Experience" required="" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Description<span class="required">*</span></label>
                      <textarea type="text" name="des" class="form-control" placeholder="Enter Description" required="" ></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <button class="btn btn-info" type="submit" style="float: right">Add</button>
                    </div>
                  </div>
                  <?php echo form_close(); ?>
                </div>
              </div>
        
              <div class="card-header">
                <h4>View  All Content</h4>
                
              </div>
                <div class="card-body">
                  <table id="example" class="table table-bordered table-striped">
                    <thead>
                    <tr>
                      <th>id</th>
                      <th>Heading</th>
                      <th>Number</th>
                      <th>Icon</th>
                      <th></th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php $i=1; foreach ($content_6_ii as $key => $content):?>
                    <tr>
                      <td><?php echo $i ?></td>
                      <td><?php echo $content->name ?></td>
                      <td><?php echo $content->designation ?></td>
                      <td><?php echo $content->year ?> Years</td>
                      <td><?php echo $content->des ?></td>
                      <td><img src="<?php echo base_url(); ?><?php echo $content->image ?>" width="50px"></td>
                      <td><a href="" class="btn btn-info btn-sm" data-toggle="modal" data-target="#update_sec_6_ii_content<?php echo $content->id ?>"><i class="fa fa-edit" aria-hidden="true"></i></a>
                        <a class="btn btn-danger btn-sm" onclick="return confirm('Are you sure?')" href="<?php echo base_url() ?>admin/frontend_setting/delete_section_6_ii_content/<?php echo $content->id ?>"><i class="fa fa-trash" aria-hidden="true"></i></a></td>
                    </tr>
                    <?php $i++; ?>
                    <?php endforeach; ?>
                    </tbody>
                    
                  </table>
                </div>
              </div>
            </div>
          </div>
      </div>
    </section>
    <section class="content" id="head_7">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h4>Section Timeline</h4>
              </div>
              <!-- /.card-header -->
              <?php echo form_open_multipart(base_url().'admin/frontend_setting/add_about_us_section_timeline'); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Time line Year<span class="required">*</span></label>
                      <input type="text" name="time_line_year" class="form-control" placeholder="Enter Time Line Yeat" required="" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Time line Title<span class="required">*</span></label>
                      <input type="text" name="time_line_title" class="form-control" placeholder="Enter Time line Title" required="" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Time line Description<span class="required">*</span></label>
                      <textarea type="text" name="time_line_description" class="form-control" placeholder="Enter Time line Description" required="" ></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <button class="btn btn-info" type="submit" style="float: right">Add</button>
                    </div>
                  </div>
                  <?php echo form_close(); ?>
                </div>
              </div>
        
              <div class="card-header">
                <h4>View  All Content</h4>
                
              </div>
                <div class="card-body">
                  <table id="example" class="table table-bordered table-striped">
                    <thead>
                    <tr>
                      <th>id</th>
                      <th>Year</th>
                      <th>Title</th>
                      <th></th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php $i=1; foreach ($all_timeline as $key => $timeline):?>
                    <tr>
                      <td><?php echo $i ?></td>
                      <td><?php echo $timeline->time_line_year ?></td>
                      <td><?php echo $timeline->time_line_title ?></td>
                      <td><a href="" class="btn btn-info btn-sm" data-toggle="modal" data-target="#update_sec_timeline<?php echo $timeline->time_line_id ?>"><i class="fa fa-edit" aria-hidden="true"></i></a>
                        <a class="btn btn-danger btn-sm" onclick="return confirm('Are you sure?')" href="<?php echo base_url() ?>admin/frontend_setting/delete_section_timeline_content/<?php echo $timeline->time_line_id ?>"><i class="fa fa-trash" aria-hidden="true"></i></a></td>
                    </tr>
                    <?php $i++; ?>
                    <?php endforeach; ?>
                    </tbody>
                    
                  </table>
                </div>
              </div>
            </div>
          </div>
      </div>
    </section>
    <section class="content" id="head_8">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h4>Section Brain Behind</h4>
              </div>
              <!-- /.card-header -->
              <?php echo form_open_multipart(base_url().'admin/frontend_setting/update_brain_behind'); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Heading<span class="required">*</span></label>
                      <input type="text" name="brain_behind_title" class="form-control" placeholder="Enter About Us Heading" required="" value="<?php echo $brain->brain_behind_title; ?>">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Description<span class="required">*</span></label>
                      <textarea type="text" name="brain_behind_description" class="form-control text-editor" placeholder="Enter About Us Sub-Heading" required=""><?php echo $brain->brain_behind_description; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Image</label>
                      <input type="file" name="brain_behind_image" class="form-control" placeholder="Enter About Us Heading" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Preview Image</label><br/>
                      <img src="<?php echo base_url(); ?><?php echo $brain->brain_behind_image ?>" width="70px">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <button class="btn btn-info" type="submit" style="float: right">Add</button>
                    </div>
                  </div>
                  <?php echo form_close(); ?>
                </div>
              </div>
            </div>
          </div>
      </div>
    </section>
    <section class="content" id="head_9">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h4>Section Award & Achievement</h4>
              </div>
              <!-- /.card-header -->
              <?php echo form_open_multipart(base_url().'admin/frontend_setting/add_about_us_section_award'); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Award Title<span class="required">*</span></label>
                      <input type="text" name="awards_title" class="form-control" placeholder="Enter Award Title" required="" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Award Description<span class="required">*</span></label>
                      <textarea type="text" name="awards_description" class="form-control" placeholder="Enter Award Description" required="" ></textarea>
                    </div>
                  </div>
                  <div class="col-md-4">
                    <div class="form-group">
                      <label>Award Image<span class="required">*</span></label>
                      <input type="file" name="awards_image" class="form-control" placeholder="Enter Time line Title" required="" >
                    </div>
                  </div>
                  <div class="col-md-4">
                    <div class="form-group">
                      <label>Award Date<span class="required">*</span></label>
                      <input type="date" name="awards_date" class="form-control" placeholder="Enter Time line Title" required="" >
                    </div>
                  </div>
                  <div class="col-md-4">
                    <div class="form-group">
                      <label>Award Place<span class="required">*</span></label>
                      <input type="text" name="awards_place" class="form-control" placeholder="Enter Award Place" required="" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <button class="btn btn-info" type="submit" style="float: right">Add</button>
                    </div>
                  </div>
                  <?php echo form_close(); ?>
                </div>
              </div>
        
              <div class="card-header">
                <h4>View  All Content</h4>
                
              </div>
                <div class="card-body">
                  <table id="example" class="table table-bordered table-striped">
                    <thead>
                    <tr>
                      <th>id</th>
                      <th>Image</th>
                      <th>Title</th>
                      <th>Date</th>
                      <th>Place</th>
                      <th></th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php $i=1; foreach ($get_all_award as $key => $award):?>
                    <tr>
                      <td><?php echo $i ?></td>
                      <td><img src="<?php echo base_url() ?><?php echo $award->awards_image ?>" width="70px"></td>
                      <td><?php echo $award->awards_title ?></td>
                      <td><?php echo $award->awards_date ?></td>
                      <td><?php echo $award->awards_place ?></td>
                      <td><a href="" class="btn btn-info btn-sm" data-toggle="modal" data-target="#update_sec_award<?php echo $award->awards_id ?>"><i class="fa fa-edit" aria-hidden="true"></i></a>
                        <a class="btn btn-danger btn-sm" onclick="return confirm('Are you sure?')" href="<?php echo base_url() ?>admin/frontend_setting/delete_section_award_content/<?php echo $award->awards_id ?>"><i class="fa fa-trash" aria-hidden="true"></i></a></td>
                    </tr>
                    <?php $i++; ?>
                    <?php endforeach; ?>
                    </tbody>
                    
                  </table>
                </div>
              </div>
            </div>
          </div>
      </div>
    </section>
  </div>

<?php $i=1; foreach ($get_all_award as $key => $award):?>
<div class="modal fade" id="update_sec_award<?php echo $award->awards_id ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Update Content</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <?php echo form_open_multipart(base_url().'admin/frontend_setting/update_about_us_section_award/'.$award->awards_id); ?>
           <div class="col-md-12">
              <div class="form-group">
                <label>Award Title<span class="required">*</span></label>
                <input type="text" name="awards_title" class="form-control" placeholder="Enter Award Title" required="" value="<?php echo $award->awards_title ?>">
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Award Description<span class="required">*</span></label>
                <textarea type="text" name="awards_description" class="form-control" placeholder="Enter Award Description" required="" ><?php echo $award->awards_description ?></textarea>
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Award Image<span class="required">*</span></label>
                <input type="file" name="awards_image" class="form-control" placeholder="Enter Time line Title"  >
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Award Image Preview</label><br/>
                <img src="<?php echo base_url() ?><?php echo $award->awards_image ?>" width="70px">
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Award Date<span class="required">*</span></label>
                <input type="date" name="awards_date" class="form-control" placeholder="Enter Time line Title" required="" value="<?php echo $award->awards_date ?>">
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Award Place<span class="required">*</span></label>
                <input type="text" name="awards_place" class="form-control" placeholder="Enter Award Place" required="" value="<?php echo $award->awards_place ?>">
              </div>
            </div>
            
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit" class="btn btn-primary">Update</button>
      </div>
      <?php echo form_close(); ?>
    </div>
  </div>
</div>
<?php endforeach; ?>

<?php $i=1; foreach ($all_timeline as $key => $timeline):?>
<div class="modal fade" id="update_sec_timeline<?php echo $timeline->time_line_id ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Update Content</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <?php echo form_open_multipart(base_url().'admin/frontend_setting/update_about_us_section_timeline/'.$timeline->time_line_id); ?>
            <div class="col-md-12">
              <div class="form-group">
                <label>Time line Year<span class="required">*</span></label>
                <input type="text" name="time_line_year" class="form-control" placeholder="Enter Time Line Yeat" required="" value="<?php echo $timeline->time_line_year ?>">
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Time line Title<span class="required">*</span></label>
                <input type="text" name="time_line_title" class="form-control" placeholder="Enter Time line Title" required="" value="<?php echo $timeline->time_line_title ?>">
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Time line Description<span class="required">*</span></label>
                <textarea type="text" name="time_line_description" class="form-control" placeholder="Enter Time line Description" required="" ><?php echo $timeline->time_line_description ?></textarea>
              </div>
            </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit" class="btn btn-primary">Update</button>
      </div>
      <?php echo form_close(); ?>
    </div>
  </div>
</div>
<?php endforeach; ?>

  <?php $i=1; foreach ($content_6_ii as $key => $content):?>
<div class="modal fade" id="update_sec_6_ii_content<?php echo $content->id ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Update Content</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <?php echo form_open_multipart(base_url().'admin/frontend_setting/update_about_us_section_6_ii'); ?>
          <div class="col-md-12">
              <div class="form-group">
                <label>Name<span class="required">*</span></label>
                <input type="text" name="name" class="form-control" placeholder="Enter name" required="" value="<?php echo $content->name?>">
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>designation<span class="required">*</span></label>
                <input type="text" name="designation" class="form-control" placeholder="Enter Designation" required="" value="<?php echo $content->designation?>">
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Year of Experience<span class="required">*</span></label>
                <input type="number" name="year" class="form-control" placeholder="Enter Year of Experience" required="" value="<?php echo $content->year?>">
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Description<span class="required">*</span></label>
                <textarea type="text" name="des" class="form-control" placeholder="Enter Description" required="" ><?php echo $content->des?></textarea>
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Image</label>
                <input type="file" name="image" class="form-control" placeholder="Enter Year of Experience">
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Image<span class="required">*</span></label>
                <img src="<?php echo base_url()?><?php echo $content->image?>" width="50px">
              </div>
            </div>
          
          <input type="hidden" name="id" class="form-control" value="<?php echo $content->id; ?>">
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit" class="btn btn-primary">Update</button>
      </div>
      <?php echo form_close(); ?>
    </div>
  </div>
</div>
<?php endforeach; ?>

<?php $i=1; foreach ($content_5 as $key => $content):?>
<div class="modal fade" id="update_sec_5_content<?php echo $content->id ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Update Content</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <?php echo form_open_multipart(base_url().'admin/frontend_setting/update_about_us_section_5'); ?>
          <div class="col-md-12">
              <div class="form-group">
                <label>Heading<span class="required">*</span></label>
                <input type="text" name="heading" class="form-control" placeholder="Enter About Us Heading" required="" value="<?php echo $content->heading?>">
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Number<span class="required">*</span></label>
                <input type="number" name="number" class="form-control" placeholder="Enter About Us Number" required="" value="<?php echo $content->number?>">
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Fa Fa Icon<span class="required">*</span></label>
                <select class="form-control font-awsom" name="icon"  required="required">
                  <option value="">Select Icon</option>
                   <?php $this->load->view('admin/include/fafa_icon_select', ['icon' => $content->icon]) ?>
                </select>
              </div>
            </div>
          
          <input type="hidden" name="id" class="form-control" value="<?php echo $content->id; ?>">
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit" class="btn btn-primary">Update</button>
      </div>
      <?php echo form_close(); ?>
    </div>
  </div>
</div>
<?php endforeach; ?>


 <?php $i=1; foreach ($content_4_i as $key => $content):?>
<div class="modal fade" id="update_sec_4_content<?php echo $content->id ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Update Content</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <?php echo form_open_multipart(base_url().'admin/frontend_setting/update_about_us_section_4_ii'); ?>
          <div class="col-md-12">
              <div class="form-group">
                <label>Heading<span class="required">*</span></label>
                <input type="text" name="heading" class="form-control" placeholder="Enter About Us Heading" required="" value="<?php echo $content->heading?>">
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Sub-Heading<span class="required">*</span></label>
                <input type="text" name="sub_heading" class="form-control" placeholder="Enter About Us Sub-Heading" required="" value="<?php echo $content->sub_heading?>">
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                <label>Fa Fa Icon<span class="required">*</span></label>
                <select class="form-control font-awsom" name="icon"  required="required">
                  <option value="">Select Icon</option>
                   <?php $this->load->view('admin/include/fafa_icon_select', ['icon' => $content->icon]) ?>
                </select>
              </div>
            </div>
            <div class="col-md-12">
              <div class="form-group">
                 <label for="inputEmail" class="col-sm-12 col-form-label">Color</label>
                 <div class="input-group my-colorpicker2 site_color_1_<?php echo $content->id; ?> colorpicker-element" data-colorpicker-id="2">
                  <input type="text" name="color" class="form-control" data-original-title="" value="<?php echo $content->color?>" title="">

                  <div class="input-group-append">
                    <span class="input-group-text"><i style="color:<?php echo $content->color?>"  class="fas fa-square fa_1_<?php echo $content->id; ?>"></i></span>
                  </div>
                </div>
              </div>
            </div>
          <input type="hidden" name="id" class="form-control" value="<?php echo $content->id; ?>">
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit" class="btn btn-primary">Update</button>
      </div>
      <?php echo form_close(); ?>
    </div>
  </div>
</div>
<script type="text/javascript">
   $(function () {
 $('.site_color_1_<?php echo $content->id; ?>').colorpicker()
    $('.site_color_1_<?php echo $content->id; ?>').on('colorpickerChange', function(event) {
      $('.site_color_1_<?php echo $content->id; ?> .fa_1_<?php echo $content->id; ?>').css('color', event.color.toString());
    });
  });
</script>
<?php endforeach; ?>


<?php $i=1; foreach ($content_2_i as $key => $content):?>
<div class="modal fade" id="update_sec_2_content<?php echo $content->id ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Update Content</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <?php echo form_open_multipart(base_url().'admin/frontend_setting/update_about_us_section_2_ii'); ?>
          <div class="col-md-12">
            <div class="form-group">
              <label>Heading<span class="required">*</span></label>
              <input type="text" name="heading" class="form-control" placeholder="Enter About Us Heading" required="" value="<?php echo $content->heading; ?>">
            </div>
          </div>
          <div class="col-md-12">
            <div class="form-group">
              <label>About Us Sub-Heading<span class="required">*</span></label>
              <textarea type="text" name="des" class="form-control" placeholder="Enter About Us Sub-Heading" required="" value=""><?php echo $content->des; ?></textarea>
            </div>
          </div>
          <div class="col-md-12">
            <div class="form-group">
              <label>Image</label>
              <input type="file" name="image" class="form-control" placeholder="Enter About Us Heading" >
            </div>
          </div>
          <div class="col-md-12">
            <div class="form-group">
              <label>Preview Image</label>
              <img src="<?php echo base_url()?><?php echo $content->image?>" width="100px">
            </div>
          </div>
          <input type="hidden" name="id" class="form-control" value="<?php echo $content->id; ?>">
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit" class="btn btn-primary">Update</button>
      </div>
      <?php echo form_close(); ?>
    </div>
  </div>
</div>
<?php endforeach; ?>


<script type="text/javascript">
   $(function () {
 $('.site_color_1').colorpicker()
    $('.site_color_1').on('colorpickerChange', function(event) {
      $('.site_color_1 .fa_1').css('color', event.color.toString());
    });
  });
</script>