<div class="content-wrapper">
   <div class="container-full">
      <!-- Content Header (Page header) -->	  
      <div class="content-header">
         <div class="d-flex align-items-center">
            <div class="me-auto">
               <h4 class="page-title">Genral Management</h4>
               <div class="d-inline-block align-items-center">
                  <nav>
                     <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#"><i class="fa fa-home"></i></a></li>
                        <li class="breadcrumb-item active" aria-current="page">Home</li>
                     </ol>
                  </nav>
               </div>
            </div>
         </div>
      </div>
      <!-- Main content -->
      <section class="content">
          <?php if ($this->session->flashdata('success')) { ?>
         <div class="alert alert-success">
            <a href="<?= base_url('admin/we-help'); ?>" class="close" data-dismiss="alert" aria-label="close">×</a>
            <strong><?php echo $this->session->flashdata('success'); ?></strong>
         </div>
         <?php } ?>
         <?php if ($this->session->flashdata('error')) { ?>
         <div class="alert alert-danger">
            <a href="<?= base_url('admin/we-help'); ?>" class="close" data-dismiss="alert" aria-label="close">×</a>
            <strong><?php echo $this->session->flashdata('error'); ?></strong>
         </div>
         <?php } ?>
         <div class="row">
            <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
               <div class="box">
                  <!-- /.box-header -->
                  <div class="box-header with-border">
                     <h4 class="box-title">Update How We Help</h4>
                  </div>
                  <form class="form" action="<?= base_url('admin/we-help-update'); ?>" method="post"  enctype="multipart/form-data">
                     <div class="box-body">
                        <div class="row">
                           <div class="col-md-12">
                              <div class="form-group">
                                 <label class="form-label">Title</label>
                                 <input type="hidden" class="form-control" name="id" value="<?= $wehelpE->id; ?>" required>
                                 <input type="text" class="form-control" name="title" value="<?= $wehelpE->title; ?>"  required>
                              </div>
                           </div>
                            <div class="col-md-12">
                              <div class="form-group">
                                 <label class="form-label">Description</label>
                                 <textarea class="form-control" placeholder="Description ..." rows="2" id="editor2" name="description" ><?= $wehelpE->description; ?></textarea>
                              </div>
                           </div>
                          <div class="col-md-12">
                              <div class="form-group">
                                 <label class="form-label">Image</label>
                                 <input type="file" id="file" name="image">
                                 <img class="rounded-circle" width="60" height="60" src="<?= base_url(); ?>uploads/whychoose/<?= $wehelpE->image; ?>">
                              </div>
                           </div>

                       
                     </div>
                     </div>
                     <!-- /.box-body -->
                     <div class="box-footer">
                        <button type="submit" class="btn btn-primary">Update</button>
                     </div>
                  </form>
                
               </div>
               <!-- /.box -->			
            </div>
            
         </div>
      </section>
      <!-- /.content -->
   </div>
</div>

