

 <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0 text-dark">Update Banner</h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?php echo base_url() ?>admin/admin/dashboard">Dashboard</a></li>
              <li class="breadcrumb-item"><a href="#">Home Setting</a></li>
              <li class="breadcrumb-item active">Update Banner</li>

            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->
    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h3 class="card-title">Update Banner </h3>

                <div class="card-tools">
                  <a href="<?php echo base_url()?>/admin/home_setting/all_banner" class="btn btn-primary btn-sm"><i class="fa fa-eye" aria-hidden="true"></i> View Banner</a>
                </div>
              </div>
              <!-- /.card-header -->
              <?php echo form_open_multipart('admin/home_setting/update_banner/'.$banner->banner_id); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-6">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Image Name <span class="required">*</span></label>
                       <div class="col-sm-12">
                          <input class="form-control"  name="banner_name" placeholder="Enter Image Name" required value="<?php echo $banner->banner_name; ?>">
                       </div>
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Image URL <span class="required">*</span></label>
                       <div class="col-sm-12">
                          <input class="form-control"  name="banner_url" placeholder="Enter Image URL" required value="<?php if($banner->banner_url){echo $banner->banner_url;}else{echo '#';}?>">
                       </div>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Banner Image <span class="required">*</span> <span id="size"></span></label>
                       <div class="col-sm-12">
                          <input type="file" class="form-control"  name="banner_image">
                       </div>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Preview Banner Image </label><br/>
                       <div class="col-sm-12">
                          <img src="<?php echo base_url() ?><?php echo $banner->banner_image ?>" width="100px">
                       </div>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                       <button name="submit" style="float: right" type="submit" class="btn btn-success">Update</button>
                    </div>
                  </div>

                   <?php echo form_close() ?>
                   

                  <!-- /.col -->
                </div>
                <!-- /.row -->
              </div>
              <!-- /.card-body -->
            </div>
          </div>
        </div>
            <!-- /.row -->
      </div><!--/. container-fluid -->
    </section>
    <!-- /.content -->
  </div>
