<!-- Main Content -->
<div class="page-wrapper">
<div class="container-fluid pt-25">
   <div class="row">
      <div class="alert alert-success alert-dismissible" role="alert" <?php if($this->session->flashdata('message')==''){ ?> style="display:none" <?php } ?> >
         <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
         <?php echo $this->session->flashdata('message'); ?>
      </div>
      <div class="alert alert-warning alert-dismissible" role="alert" <?php if($this->session->flashdata('emessage')==''){ ?> style="display:none" <?php } ?> >
         <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
         <?php echo $this->session->flashdata('emessage'); ?>
      </div>
   </div>
   <!-- Row -->
   <div class="row">
      <div class="col-sm-8 col-md-offset-2">
         <div class="panel panel-default card-view">
            <div class="panel-heading">
               <div class="pull-left">
                  <h6 class="panel-title txt-dark">Edit Baking Tools</h6>
               </div>
               <div class="clearfix"></div>
            </div>
            <div class="panel-wrapper collapse in">
               <div class="panel-body">
                  <div class="form-wrap">
                     <form id="addTestimonialFrom" class="form-horizontal" action="<?php echo base_url(A."/editClient"); ?>" enctype="multipart/form-data" method='post'>
                        <input type="hidden" name="id" value="<?php echo $post['id']; ?>" />
                        <div class="row">
                           <div class="col-md-12">
                              <?php  if($post['image']!=''){ ?>
                              <div class="form-group">
                                 <div class="col-sm-12">
                                    <img src="<?php echo base_url($post['image']); ?>" alt="image" style="width:100px;">
                                 </div>
                              </div>
                              <?php } ?>
                              <div class="form-group">
                                 <label class="col-sm-12">Image (Size : 500x522 px)</label>
                                 <div class="col-sm-12">
                                    <input type="file" name="image" class="form-control">
                                 </div>
                              </div>
                              <div class="form-group">
                                 <label class="col-sm-12">Title:</label>
                                 <div class="col-sm-12">
                                    <input type="text" name="name" class="form-control" value="<?php echo $post['name']; ?>" required>
                                 </div>
                              </div>
                              <!-- <div class="form-group">
                                 <label class="col-sm-12">Year:</label>
                                 <div class="col-sm-12">
                                    <input type="text" name="year" class="form-control" value="<?php //echo $post['year']; ?>" placeholder="Enter Year" required>
                                 </div>
                              </div> -->
                              <div class="form-group">
                                 <label class="col-sm-12">Link:</label>
                                 <div class="col-sm-12">
                                    <input type="text" name="link" class="form-control" value="<?php echo $post['link']; ?>" placeholder="Enter Link">
                                 </div>
                              </div>
                              <!-- <div class="form-group">
                                 <label class="col-sm-12">Short Description:</label>
                                 <div class="col-sm-12">
                                    <textarea name="description" class="form-control tinymce" placeholder="Enter Short Description"><?php //echo $post['description']; ?></textarea>
                                 </div>
                              </div> -->
                              <div class="form-group mb-0">
                                 <div class="col-sm-12">
                                    <button type="submit" class="btn btn-success btn-anim pull-right"><i class="icon-rocket"></i><span class="btn-text">Update</span></button>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </form>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
   <!-- /Row -->
</div>