
  <!-- 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>Franchise Page</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">Franchise Page</li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

    <?php echo form_open_multipart(base_url().'admin/franchise/update_page'); ?>
    <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">Page SEO</h3>
              </div>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Page Title</label>
                      <input type="text" name="page_1_title" class="form-control" placeholder="Enter Page Meta Title"  value="<?php echo $data->page_1_title; ?>">
                    </div>
                  </div>

                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Page Meta Title</label>
                      <input type="text" name="page_1_meta_title" class="form-control" placeholder="Enter Page Meta Title"  value="<?php echo $data->page_1_meta_title; ?>">
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Page Meta Keywords</label>
                      <textarea type="text" name="page_1_keywords" class="form-control" placeholder="Enter Page Meta Keywords"><?php echo $data->page_1_keywords; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                      <label>Page Meta Description</label>
                      <textarea type="text" name="page_1_meta_description" class="form-control" placeholder="Enter Page Meta Description"><?php echo $data->page_1_meta_description; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Testimonial Heading</label>
                      <textarea type="text" name="page_1_testimonial_heading" class="form-control text-editor" placeholder="Enter Page Testimonial Heading"><?php echo $data->page_1_testimonial_heading; ?></textarea>
                    </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>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
    <!----------------------Section 1 ----------------->
    <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">Section 1</h3>
              </div>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 1 Content</label>
                      <textarea type="text" name="page_1_section_1" class="form-control text-editor" placeholder="Enter Section 1 Content" ><?php echo $data->page_1_section_1; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 1 Image</label>
                      <input type="file" name="page_1_section_1_img" class="form-control" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 1 Image Preview</label>
                      <br/>
                      <img src="<?php echo base_url() ?><?php echo $data->page_1_section_1_img ?>" width="100px">
                    </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>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
    <!----------------------Section 1 ----------------->

    <!----------------------Section 2 ----------------->
    <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">Section 2</h3>
              </div>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 2 Content</label>
                      <textarea type="text" name="page_1_section_2" class="form-control text-editor" placeholder="Enter Section 2 Content" ><?php echo $data->page_1_section_2; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 2 Image</label>
                      <input type="file" name="page_1_section_img" class="form-control" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 2 Image Preview</label>
                      <br/>
                      <img src="<?php echo base_url() ?><?php echo $data->page_1_section_img ?>" width="100px">
                    </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>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
    <!----------------------Section 2 ----------------->

    <!----------------------Section 3 ----------------->
    <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">Section 3</h3>
              </div>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 3 heading</label>
                      <textarea type="text" name="page_1_section_3_heading" class="form-control text-editor" placeholder="Enter Section 3 heading"><?php echo $data->page_1_section_3_heading; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 3 Image</label>
                      <input type="file" name="page_1_section_3_img" class="form-control" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 3 Image Preview</label>
                      <br/>
                      <img src="<?php echo base_url() ?><?php echo $data->page_1_section_3_img ?>" width="100px">
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group row mb-3">
                       <label class="col-md-12 col-form-label" for="outcomes">Content</label>
                       <div class="col-md-12">
                          <div id = "plans_area">
                             <?php  if (count(json_decode($data->page_1_section_3_title)) > 0): ?>
                                <?php
                                $sst = 0;
                                foreach (json_decode($data->page_1_section_3_title) as $oto => $content_title):
                                   ?>
                                   <?php if ($sst == 0):
                                   $sst++; ?>
                                      <div class="d-flex mt-2">
                                         <div class="flex-grow-1 px-3">
                                            <div class="form-group">
                                               <input type="text" class="form-control" name="page_1_section_3_title[]"  placeholder="<?php echo get_phrase('Content Title'); ?>" value="<?php echo  $content_title ?>">
                                            </div>
                                            <div class="form-group">
                                               <textarea type="text" class="form-control" name="page_1_section_3_content[]"  placeholder="<?php echo get_phrase('Content Description'); ?>"><?php echo json_decode($data->page_1_section_3_content)[$oto]; ?></textarea>
                                            </div>
                                         </div>
                                         <div class="">
                                            <button type="button" class="btn btn-success btn-sm" name="button" onclick="appendPlans()"> <i class="fa fa-plus"></i> </button>
                                         </div>
                                      </div>
                                   <?php else: ?>
                                      <div class="d-flex mt-2">
                                         <div class="flex-grow-1 px-3">
                                            <div class="form-group">
                                               <input type="text" class="form-control" name="page_1_section_3_title[]"  placeholder="<?php echo get_phrase('Content Title'); ?>" value="<?php echo  $content_title ?>">
                                            </div>
                                            <div class="form-group">
                                               <textarea type="text" class="form-control" name="page_1_section_3_content[]"  placeholder="<?php echo get_phrase('Content Description'); ?>"><?php echo json_decode($data->page_1_section_3_content)[$oto]; ?></textarea>
                                            </div>
                                         </div>
                                         <div class="">
                                            <button type="button" class="btn btn-danger btn-sm" style="margin-top: 0px;" name="button" onclick="removePlans(this)"> <i class="fa fa-minus"></i> </button>
                                         </div>
                                      </div>
                                   <?php endif; ?>
                                <?php endforeach; ?>
                             <?php else: ?>
                                <div class="d-flex mt-2">
                                   <div class="flex-grow-1 px-3">
                                      <div class="form-group">
                                         <input type="text" class="form-control" name="page_1_section_3_title[]"  placeholder="<?php echo get_phrase('Content Title'); ?>">
                                      </div>
                                      <div class="form-group">
                                         <textarea type="text" class="form-control" name="page_1_section_3_content[]"  placeholder="<?php echo get_phrase('Content Description'); ?>"></textarea>
                                      </div>
                                   </div>
                                   <div class="">
                                      <button type="button" class="btn btn-success btn-sm" name="button" onclick="appendPlans()"> <i class="fa fa-plus"></i> </button>
                                   </div>
                                </div>
                             <?php endif;?>
                          </div>
                       </div>
                    </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>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
    <!----------------------Section 3 ----------------->

    <!----------------------Section 4 ----------------->
    <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">Section 4</h3>
              </div>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 4 heading</label>
                      <textarea type="text" name="page_1_section_4_heading" class="form-control text-editor" placeholder="Enter Section 4 heading" ><?php echo $data->page_1_section_4_heading; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group row mb-3">
                       <label class="col-md-12 col-form-label" for="outcomes">Content</label>
                       <div class="col-md-12">
                          <div id = "area_1">
                             <?php  if (count(json_decode($data->page_1_section_4_icon)) > 0): ?>
                                <?php
                                $sst_1 = 0;
                                foreach (json_decode($data->page_1_section_4_icon) as $key_1 => $section_4_icon):
                                   ?>
                                   <?php if ($sst_1 == 0):
                                   $sst_1++; ?>
                                      <div class="d-flex mt-2">
                                         <div class="flex-grow-1 px-3">
                                            <div class="form-group">
                                               <select class="form-control font-awsom" name="page_1_section_4_icon[]"  required="required">
                                                  <option value="">Select Icon</option>
                                                   <?php $this->load->view('admin/include/fafa_icon_select', ['icon' => $section_4_icon]) ?>
                                                </select>
                                            </div>
                                            <div class="form-group">
                                               <input type="text" class="form-control" name="page_1_section_4_title[]"  placeholder="<?php echo get_phrase('Content Title'); ?>" value="<?php echo json_decode($data->page_1_section_4_title)[$key_1]; ?>">
                                            </div>
                                            <div class="form-group">
                                               <textarea type="text" class="form-control" name="page_1_section_4_description[]"  placeholder="<?php echo get_phrase('Content Description'); ?>"><?php echo json_decode($data->page_1_section_4_description)[$key_1]; ?></textarea>
                                            </div>
                                         </div>
                                         <div class="">
                                            <button type="button" class="btn btn-success btn-sm" name="button" onclick="append_1()"> <i class="fa fa-plus"></i> </button>
                                         </div>
                                      </div>
                                   <?php else: ?>
                                      <div class="d-flex mt-2">
                                         <div class="flex-grow-1 px-3">
                                            <div class="form-group">
                                               <select class="form-control font-awsom" name="page_1_section_4_icon[]"  required="required">
                                                  <option value="">Select Icon</option>
                                                   <?php $this->load->view('admin/include/fafa_icon_select', ['icon' => $section_4_icon]) ?>
                                                </select>
                                            </div>
                                            <div class="form-group">
                                               <input type="text" class="form-control" name="page_1_section_4_title[]"  placeholder="<?php echo get_phrase('Content Title'); ?>" value="<?php echo json_decode($data->page_1_section_4_title)[$key_1]; ?>">
                                            </div>
                                            <div class="form-group">
                                               <textarea type="text" class="form-control" name="page_1_section_4_description[]"  placeholder="<?php echo get_phrase('Content Description'); ?>"><?php echo json_decode($data->page_1_section_4_description)[$key_1]; ?></textarea>
                                            </div>
                                         </div>
                                         <div class="">
                                            <button type="button" class="btn btn-danger btn-sm" style="margin-top: 0px;" name="button" onclick="remove_1(this)"> <i class="fa fa-minus"></i> </button>
                                         </div>
                                      </div>
                                   <?php endif; ?>
                                <?php endforeach; ?>
                             <?php else: ?>
                                <div class="d-flex mt-2">
                                   <div class="flex-grow-1 px-3">
                                      <div class="form-group">
                                         <select class="form-control font-awsom" name="page_1_section_4_icon[]"  required="required">
                                            <option value="">Select Icon</option>
                                             <?php $this->load->view('admin/include/fafa_icon_select') ?>
                                          </select>
                                      </div>
                                      <div class="form-group">
                                         <input type="text" class="form-control" name="page_1_section_4_title[]"  placeholder="<?php echo get_phrase('Content Title'); ?>">
                                      </div>
                                      <div class="form-group">
                                         <textarea type="text" class="form-control" name="page_1_section_4_description[]"  placeholder="<?php echo get_phrase('Content Description'); ?>"></textarea>
                                      </div>
                                   </div>
                                   <div class="">
                                      <button type="button" class="btn btn-success btn-sm" name="button" onclick="append_1()"> <i class="fa fa-plus"></i> </button>
                                   </div>
                                </div>
                             <?php endif;?>
                          </div>
                       </div>
                    </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>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
    <!----------------------Section 4 ----------------->

    <!----------------------Section 5 ----------------->
    <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">Section 5</h3>
              </div>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 5 Content</label>
                      <textarea type="text" name="page_1_section_5_heading" class="form-control text-editor" placeholder="Enter Section 5 Heading" ><?php echo $data->page_1_section_5_heading; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 5 Image</label>
                      <input type="file" name="page_1_section_5_img" class="form-control" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 5 Image Preview</label>
                      <br/>
                      <img src="<?php echo base_url() ?><?php echo $data->page_1_section_5_img ?>" width="100px">
                    </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>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
    <!----------------------Section 5 ----------------->

    <!----------------------Section 6 ----------------->

    <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">Section 6</h3>
              </div>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 6 heading</label>
                      <textarea type="text" name="page_1_section_6_heading" class="form-control text-editor" placeholder="Enter Section 6 heading" ><?php echo $data->page_1_section_6_heading; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group row mb-3">
                       <label class="col-md-12 col-form-label" for="outcomes">Content</label>
                       <div class="col-md-12">
                          <div id = "area_2">
                             <?php  if (count(json_decode($data->page_1_section_6_content)) > 0): ?>
                                <?php
                                $sst = 0;
                                foreach (json_decode($data->page_1_section_6_content) as $sst_1 => $content_title_2):
                                   ?>
                                   <?php if ($sst == 0):
                                   $sst++; ?>
                                      <div class="d-flex mt-2">
                                         <div class="flex-grow-1 px-3">
                                            <div class="form-group">
                                               <input type="text" class="form-control" name="page_1_section_6_content[]"  placeholder="<?php echo get_phrase('Content Title'); ?>" value="<?php echo $content_title_2 ?>">
                                            </div>
                                         </div>
                                         <div class="">
                                            <button type="button" class="btn btn-success btn-sm" name="button" onclick="append_2()"> <i class="fa fa-plus"></i> </button>
                                         </div>
                                      </div>
                                   <?php else: ?>
                                      <div class="d-flex mt-2">
                                         <div class="flex-grow-1 px-3">
                                            <div class="form-group">
                                               <input type="text" class="form-control" name="page_1_section_6_content[]"  placeholder="<?php echo get_phrase('Content Title'); ?>" value="<?php echo  $content_title_2 ?>">
                                            </div>
                                         </div>
                                         <div class="">
                                            <button type="button" class="btn btn-danger btn-sm" style="margin-top: 0px;" name="button" onclick="remove_2(this)"> <i class="fa fa-minus"></i> </button>
                                         </div>
                                      </div>
                                   <?php endif; ?>
                                <?php endforeach; ?>
                             <?php else: ?>
                                <div class="d-flex mt-2">
                                   <div class="flex-grow-1 px-3">
                                      <div class="form-group">
                                         <input type="text" class="form-control" name="page_1_section_6_content[]"  placeholder="<?php echo get_phrase('Content Title'); ?>">
                                      </div>
                                   </div>
                                   <div class="">
                                      <button type="button" class="btn btn-success btn-sm" name="button" onclick="append_2()"> <i class="fa fa-plus"></i> </button>
                                   </div>
                                </div>
                             <?php endif;?>
                          </div>
                       </div>
                    </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>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!----------------------Section 6 ----------------->

    <!----------------------Section 7 ----------------->
    <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">Section 7</h3>
              </div>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 7 heading</label>
                      <textarea type="text" name="page_1_section_7_heading" class="form-control text-editor" placeholder="Enter Section 7 heading"><?php echo $data->page_1_section_7_heading; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group row mb-3">
                       <label class="col-md-12 col-form-label" for="outcomes">Content</label>
                       <div class="col-md-12">
                          <div id = "area_3">
                             <?php  if (count(json_decode($data->page_1_section_7_number)) > 0): ?>
                                <?php
                                $sst_1 = 0;
                                foreach (json_decode($data->page_1_section_7_number) as $key_4 => $section_4_icon):
                                   ?>
                                   <?php if ($sst_1 == 0):
                                   $sst_1++; ?>
                                      <div class="d-flex mt-2">
                                         <div class="flex-grow-1 px-3">
                                            <div class="form-group">
                                               <input type="text" class="form-control" name="page_1_section_7_number[]"  placeholder="<?php echo get_phrase('Content Title'); ?>" value="<?php echo json_decode($data->page_1_section_7_number)[$key_4]; ?>">
                                            </div>
                                            <div class="form-group">
                                               <textarea type="text" class="form-control" name="page_1_section_7_description[]"  placeholder="<?php echo get_phrase('Content Description'); ?>"><?php echo json_decode($data->page_1_section_7_description)[$key_4]; ?></textarea>
                                            </div>
                                         </div>
                                         <div class="">
                                            <button type="button" class="btn btn-success btn-sm" name="button" onclick="append_3()"> <i class="fa fa-plus"></i> </button>
                                         </div>
                                      </div>
                                   <?php else: ?>
                                      <div class="d-flex mt-2">
                                         <div class="flex-grow-1 px-3">
                                            <div class="form-group">
                                               <input type="text" class="form-control" name="page_1_section_7_number[]"  placeholder="<?php echo get_phrase('Content Title'); ?>" value="<?php echo json_decode($data->page_1_section_7_number)[$key_4]; ?>">
                                            </div>
                                            <div class="form-group">
                                               <textarea type="text" class="form-control" name="page_1_section_7_description[]"  placeholder="<?php echo get_phrase('Content Description'); ?>"><?php echo json_decode($data->page_1_section_7_description)[$key_4]; ?></textarea>
                                            </div>
                                         </div>
                                         <div class="">
                                            <button type="button" class="btn btn-danger btn-sm" style="margin-top: 0px;" name="button" onclick="remove_3(this)"> <i class="fa fa-minus"></i> </button>
                                         </div>
                                      </div>
                                   <?php endif; ?>
                                <?php endforeach; ?>
                             <?php else: ?>
                                <div class="d-flex mt-2">
                                   <div class="flex-grow-1 px-3">
                                      <div class="form-group">
                                         <input type="text" class="form-control" name="page_1_section_7_number[]"  placeholder="<?php echo get_phrase('Content Title'); ?>">
                                      </div>
                                      <div class="form-group">
                                         <textarea type="text" class="form-control" name="page_1_section_7_description[]"  placeholder="<?php echo get_phrase('Content Description'); ?>"></textarea>
                                      </div>
                                   </div>
                                   <div class="">
                                      <button type="button" class="btn btn-success btn-sm" name="button" onclick="append_3()"> <i class="fa fa-plus"></i> </button>
                                   </div>
                                </div>
                             <?php endif;?>
                          </div>
                       </div>
                    </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>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!----------------------Section 7 ----------------->

    <!----------------------Section 8 ----------------->
    <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">Section 8</h3>
              </div>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 8 Content</label>
                      <textarea type="text" name="page_1_section_8_content" class="form-control text-editor" placeholder="Enter Section 8 Content" ><?php echo $data->page_1_section_8_content; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 8 Image</label>
                      <input type="file" name="page_1_section_8_img" class="form-control" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Section 8 Image Preview</label>
                      <br/>
                      <img src="<?php echo base_url() ?><?php echo $data->page_1_section_8_img ?>" width="100px">
                    </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>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
    
    <!----------------------Section 8 ----------------->

    <!----------------------Contact Section ----------------->
    <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">Contact Section</h3>
              </div>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Contact Section Heading</label>
                      <textarea type="text" name="page_1_section_10_heading" class="form-control text-editor" placeholder="Enter Contact Section Heading" ><?php echo $data->page_1_section_10_heading; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Contact Section Image</label>
                      <input type="file" name="page_1_section_10_img" class="form-control" >
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>Contact Section Image Preview</label>
                      <br/>
                      <img src="<?php echo base_url() ?><?php echo $data->page_1_section_10_img ?>" width="100px">
                    </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>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
    <!----------------------Contact Section ----------------->

    <!----------------------Section 9 ----------------->
    <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">FAQ Section</h3>
              </div>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label>FAQ Section Heading</label>
                      <textarea type="text" name="page_1_section_9_heading" class="form-control text-editor" placeholder="Enter Faq Section Heading" ><?php echo $data->page_1_section_9_heading; ?></textarea>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group row mb-3">
                       <label class="col-md-12 col-form-label" for="outcomes">FAQ</label>
                       <div class="col-md-12">
                          <div id = "area_4">
                             <?php  if (count(json_decode($data->page_1_section_9_qns)) > 0): ?>
                                <?php
                                $sst_1 = 0;
                                foreach (json_decode($data->page_1_section_9_qns) as $key_6 => $section_4_icon):
                                   ?>
                                   <?php if ($sst_1 == 0):
                                   $sst_1++; ?>
                                      <div class="d-flex mt-2">
                                         <div class="flex-grow-1 px-3">
                                            <div class="form-group">
                                               <input type="text" class="form-control" name="page_1_section_9_qns[]"  placeholder="<?php echo get_phrase('QNS.'); ?>" value="<?php echo json_decode($data->page_1_section_9_qns)[$key_6]; ?>">
                                            </div>
                                            <div class="form-group">
                                               <textarea type="text" class="form-control" name="page_1_section_9_ans[]"  placeholder="<?php echo get_phrase('Ans.'); ?>"><?php echo json_decode($data->page_1_section_9_ans)[$key_6]; ?></textarea>
                                            </div>
                                         </div>
                                         <div class="">
                                            <button type="button" class="btn btn-success btn-sm" name="button" onclick="append_4()"> <i class="fa fa-plus"></i> </button>
                                         </div>
                                      </div>
                                   <?php else: ?>
                                      <div class="d-flex mt-2">
                                         <div class="flex-grow-1 px-3">
                                            <div class="form-group">
                                               <input type="text" class="form-control" name="page_1_section_9_qns[]"  placeholder="<?php echo get_phrase('QNS.'); ?>" value="<?php echo json_decode($data->page_1_section_9_qns)[$key_6]; ?>">
                                            </div>
                                            <div class="form-group">
                                               <textarea type="text" class="form-control" name="page_1_section_9_ans[]"  placeholder="<?php echo get_phrase('Ans.'); ?>"><?php echo json_decode($data->page_1_section_9_ans)[$key_6]; ?></textarea>
                                            </div>
                                         </div>
                                         <div class="">
                                            <button type="button" class="btn btn-danger btn-sm" style="margin-top: 0px;" name="button" onclick="remove_4(this)"> <i class="fa fa-minus"></i> </button>
                                         </div>
                                      </div>
                                   <?php endif; ?>
                                <?php endforeach; ?>
                             <?php else: ?>
                                <div class="d-flex mt-2">
                                   <div class="flex-grow-1 px-3">
                                      <div class="form-group">
                                         <input type="text" class="form-control" name="page_1_section_9_qns[]"  placeholder="<?php echo get_phrase('QNS.'); ?>">
                                      </div>
                                      <div class="form-group">
                                         <textarea type="text" class="form-control" name="page_1_section_9_ans[]"  placeholder="<?php echo get_phrase('Ans.'); ?>"></textarea>
                                      </div>
                                   </div>
                                   <div class="">
                                      <button type="button" class="btn btn-success btn-sm" name="button" onclick="append_4()"> <i class="fa fa-plus"></i> </button>
                                   </div>
                                </div>
                             <?php endif;?>
                          </div>
                       </div>
                    </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>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
    <!----------------------Section 9 ----------------->
    
    <?php echo form_close(); ?>
  </div>


  <div id = "blank_plans_field">
     <div class="d-flex mt-2">
        <div class="flex-grow-1 px-3">
           <div class="form-group">
              <input type="text" class="form-control" name="page_1_section_3_title[]"  placeholder="<?php echo get_phrase('Content Title'); ?>">
           </div>
           <div class="form-group">
              <textarea type="text" class="form-control" name="page_1_section_3_content[]"  placeholder="<?php echo get_phrase('Content Description'); ?>"></textarea>
           </div>
        </div>
        <div class="">
           <button type="button" class="btn btn-danger btn-sm" style="margin-top: 0px;" name="button" onclick="removePlans(this)"> <i class="fa fa-minus"></i> </button>
        </div>
     </div>
  </div>

  <div id = "blank_field_1">
     <div class="d-flex mt-2">
        <div class="flex-grow-1 px-3">
           <div class="form-group">
              <select class="form-control font-awsom" name="page_1_section_4_icon[]"  required="required">
                 <option value="">Select Icon</option>
                  <?php $this->load->view('admin/include/fafa_icon_select') ?>
               </select>
           </div>
           <div class="form-group">
              <input type="text" class="form-control" name="page_1_section_4_title[]"  placeholder="<?php echo get_phrase('Content Title'); ?>">
           </div>
           <div class="form-group">
              <textarea type="text" class="form-control" name="page_1_section_4_description[]"  placeholder="<?php echo get_phrase('Content Description'); ?>"></textarea>
           </div>
        </div>
        <div class="">
           <button type="button" class="btn btn-danger btn-sm" style="margin-top: 0px;" name="button" onclick="remove_1(this)"> <i class="fa fa-minus"></i> </button>
        </div>
     </div>
  </div>
  <div id = "blank_field_2">
     <div class="d-flex mt-2">
        <div class="flex-grow-1 px-3">
           <div class="form-group">
              <input type="text" class="form-control" name="page_1_section_6_content[]"  placeholder="<?php echo get_phrase('Content Title'); ?>">
           </div>
        </div>
        <div class="">
           <button type="button" class="btn btn-danger btn-sm" style="margin-top: 0px;" name="button" onclick="remove_2(this)"> <i class="fa fa-minus"></i> </button>
        </div>
     </div>
  </div>

  <div id = "blank_field_3">
     <div class="d-flex mt-2">
        <div class="flex-grow-1 px-3">
           <div class="form-group">
              <input type="text" class="form-control" name="page_1_section_7_number[]"  placeholder="<?php echo get_phrase('Content Title'); ?>">
           </div>
           <div class="form-group">
              <textarea type="text" class="form-control" name="page_1_section_7_description[]"  placeholder="<?php echo get_phrase('Content Description'); ?>"></textarea>
           </div>
        </div>
        <div class="">
           <button type="button" class="btn btn-danger btn-sm" style="margin-top: 0px;" name="button" onclick="remove_3(this)"> <i class="fa fa-minus"></i> </button>
        </div>
     </div>
  </div>

  <div id = "blank_field_4">
     <div class="d-flex mt-2">
        <div class="flex-grow-1 px-3">
           <div class="form-group">
              <input type="text" class="form-control" name="page_1_section_9_qns[]"  placeholder="<?php echo get_phrase('QNS.'); ?>">
           </div>
           <div class="form-group">
              <textarea type="text" class="form-control" name="page_1_section_9_ans[]"  placeholder="<?php echo get_phrase('Ans.'); ?>"></textarea>
           </div>
        </div>
        <div class="">
           <button type="button" class="btn btn-danger btn-sm" style="margin-top: 0px;" name="button" onclick="remove_4(this)"> <i class="fa fa-minus"></i> </button>
        </div>
     </div>
  </div>

<script type="text/javascript">

var blank_field_4 = jQuery('#blank_field_4').html();
jQuery(document).ready(function() {
   jQuery('#blank_field_4').hide();
});
function append_4() {
  jQuery('#area_4').append(blank_field_4);
}
function remove_4(outcomeElem) {
  jQuery(outcomeElem).parent().parent().remove();
}

var blank_field_3 = jQuery('#blank_field_3').html();
jQuery(document).ready(function() {
   jQuery('#blank_field_3').hide();
});
function append_3() {
  jQuery('#area_3').append(blank_field_3);
}
function remove_3(outcomeElem) {
  jQuery(outcomeElem).parent().parent().remove();
}

var blank_plans_field = jQuery('#blank_plans_field').html();
jQuery(document).ready(function() {
   jQuery('#blank_plans_field').hide();
});
function appendPlans() {
  jQuery('#plans_area').append(blank_plans_field);
}
function removePlans(outcomeElem) {
  jQuery(outcomeElem).parent().parent().remove();
}

var blank_field_1 = jQuery('#blank_field_1').html();
jQuery(document).ready(function() {
   jQuery('#blank_field_1').hide();
});
function append_1() {
  jQuery('#area_1').append(blank_field_1);
}
function remove_1(outcomeElem) {
  jQuery(outcomeElem).parent().parent().remove();
}

var blank_field_2 = jQuery('#blank_field_2').html();
jQuery(document).ready(function() {
   jQuery('#blank_field_2').hide();
});
function append_2() {
  jQuery('#area_2').append(blank_field_2);
}
function remove_2(outcomeElem) {
  jQuery(outcomeElem).parent().parent().remove();
}

</script>