
    <!-- Form Examples area start-->
    <div class="form-example-area">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <?php
              $success = $this->session->flashdata('success');
               if(isset($success)){  ?>
            <div class="alert alert-success">
              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
              <?php echo $this->session->flashdata('success');?>
          </div>
          <?php } ?>

          <?php
              $same = $this->session->flashdata('same');
               if(isset($same)){  ?>
            <div class="alert alert-warning">
              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
              <?php echo $this->session->flashdata('same');?>
          </div>
          <?php } ?>
                    <form action="<?php  echo base_url('admin/Add_banner/insert'); ?>" method="POST" enctype="multipart/form-data">
                    <div class="form-example-wrap">
                            
                        <div class="cmp-tb-hd">
                            <h2>Add New Banner</h2>
                            <p></p>
                        </div>
                        
                       
                        <div class="form-example-int">
                            <div class="form-group">
                                <label>Banner Image </label>
                                <div class="nk-int-st">
                                    <input type="file"  name="img[]" <?php if(!isset($data)){ echo "required ";} ?> class="form-control input-sm">
                                    <?php 
                                        if(isset($data)){
                                            if($data != 0){
                                     ?>
                                     <img src="<?php echo base_url('uploads/').$data[0]->img; ?>" alt="">

                                 <?php } } ?>
                                </div>
                            </div>
                        </div>
                    
                        <div class="form-example-int">
                            <div class="form-group">
                                <label>Banner Image Alt Text </label>
                                <div class="nk-int-st">
                                    <?php 
                                            if(isset($data)){
                                                if($data != 0){


                                     ?>
                                    <input type="text" name="alt" value="<?php if(isset($data)){echo $data[0]->alt;}else{ echo "";} ?>" required="" class="form-control input-sm" placeholder="Image Title">
                                <?php }else{ ?>
                                    <input type="text" name="alt"  required="" class="form-control input-sm" placeholder="Image Title">
                                <?php } } ?>
                                    
                               </div>
                            </div>
                        </div>
                        
                        
                        
                        <div class="form-example-int mg-t-15">
                            <button class="btn btn-success notika-btn-success" type="submit"><?php if(isset($data)){ ?> UPDATE BANNER <?php }else{ ?>ADD BANNER <?php } ?></button>
                        </div>
                    </div>
                    </form>
                </div>
            </div>
            
            
        </div>
    </div>
    <!-- Form Examples area End-->
    