<!DOCTYPE html>
<html lang="en">
<?php include('fixed/top.php');  ?>
<body>
  <div class="loader"></div>
  <div id="app">
    <div class="main-wrapper main-wrapper-1">
      <div class="navbar-bg"></div>

       <?php include('fixed/navigation.php');  ?>
      <!-- Main Content -->
      <div class="main-content">
        <section class="section">
          <div class="section-body">
            <div class="row">
              <div class="col-10">
                   <?php echo $this->session->flashdata('msg'); ?>
                <div class="card">
                  <div class="card-header">
                    <h4><?=$title?></h4>
                  </div>
                  <div class="card-body">
                   <form method="post" action="<?php echo base_url(); ?>admin/do_add_about/<?php if(!empty($about_data)){ echo $about_data->id; } ?>" enctype="multipart/form-data">
                     
                    
                     <?php if(!empty($about_data) && !empty($about_data->photo)) { ?>
                    <div class="form-group">
                   <label>Banner Image</label>
                     <img class="d-block w-100" src="<?php echo base_url(); ?>uploads/front/banner_image/<?=$about_data->photo?>" alt="<?=$about_data->id?>" style="">
                    </div>
                     <?php } ?>
                    <div class="form-group">
                      <label><?php if(!empty($about_data)) echo 'Upload New '; ?>Banner</label>
                      <input name="main_image" type="file" class="form-control">
                       <input name="ext_photo" type="hidden" class="form-control" value="<?php if(!empty($about_data)) echo $about_data->photo ?>">  
                    </div>
                   <div class="card-footer text-right">
                    <button class="btn btn-primary mr-1" type="submit"  name="submit" onclick="nicEditors.findEditor('textarea1').saveContent();">Update</button>
                    <!--button class="btn btn-secondary" type="reset">Reset</button-->
                  </div>
                      </form>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </section>
      </div>
      <?php include('fixed/footer.php');  ?>
    </div>
  </div>
   <?php include('fixed/bottom.php');  ?>

</body>
</html>