<!-- 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-12">
         <div class="panel panel-default card-view">
            <div class="panel-heading">
               <div class="pull-left">
                  <h6 class="panel-title txt-dark">Edit Banner</h6>
               </div>
               <div class="clearfix"></div>
            </div>
            <div class="panel-wrapper collapse in">
               <div class="panel-body">
                  <div class="form-wrap">
                     <form method="post" action="<?php echo base_url(A."/updateSlider"); ?>" id="uploadBannerForm1" enctype="multipart/form-data">
                        <input type="hidden" name="id" value="<?php echo $post['id']; ?>" />
                         <div class="modal-body">
                             <h6 class="panel-title txt-dark"></h6>

                             <?php if($post['image']!=''){ ?>
                              <div class="form-group">
                                 <img src="<?php echo base_url($post['image']); ?>" alt="image" style="width:200px;">
                              </div>
                              <?php } ?>  
                             <div class="form-group">

                                 <label for="recipient-name" class="form-control-label">Image: (Size: 1000x 625 px)</label>

                                 <input type="file" class="form-control" name="image">

                             </div>
                             <div class="form-group">
                                 <label>Title</label>
                                 <input type="text" name="title" placeholder="Enter Title" class="form-control" value="<?php echo $post['title']; ?>" />
                             </div>

                             <div class="form-group">
                                 <label>Sub Title</label>
                                 <textarea name="subtitle" placeholder="Enter Sub Title" class="form-control tinymce"><?php echo $post['subtitle']; ?></textarea>
                             </div>
                             <div class="form-group">
                                 <label>Link</label>
                                 <input type="text" name="url" placeholder="Enter Link" class="form-control" value="<?php echo $post['url']; ?>" />
                             </div>
                             <?php /*if($post['type']!='catbanner'){ ?>
                                <div class="form-group">
                                    <label>Type</label>
                                    <select class="form-control" name="type">
                                        <option <?php echo ($post['type']=='slider')?'selected':''; ?> value="slider">Slider</option>
                                        <option <?php echo ($post['type']=='middle_slider')?'selected':''; ?> value="middle_slider">Middle Slider</option>
                                        <option <?php echo ($post['type']=='bottom_slider')?'selected':''; ?> value="bottom_slider">Bottom Slider</option>
                                    </select>
                                </div>
                             <?php }else{ ?>
                              <input type="hidden" name="type" value="catbanner" />
                             <?php }*/ ?>

                         </div>

                         <div class="modal-footer">

                             <button type="submit" class="btn btn-primary">Update</button>

                         </div>

                     </form>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
   <!-- /Row -->
</div>