 <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">Edit Slider</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="#">Main Page Setting</a></li>
              <li class="breadcrumb-item active">Edit Slider</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">Edit Slider</h3>

                <div class="card-tools">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/slider/" class="btn btn-primary btn-sm"><i class="fa fa-eye" aria-hidden="true"></i> View Slider</a>
                </div>
              </div>
              <!-- /.card-header -->
              <?php echo form_open_multipart('admin/main_page_setting/update_slider/'.$slider->slider_id); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-3">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Slider Language <span class="required">*</span></label>
                       <div class="col-sm-12">
                          <select class="form-control"  name="slider_language" placeholder="Enter Slider Heading">
                            <option <?php if($slider->slider_language == 'en'){echo 'selected';}  ?> value="en">English</option>
                            <option <?php if($slider->slider_language == 'hi'){echo 'selected';}  ?> value="hi">Hindi</option>
                          </select>
                       </div>
                    </div>
                  </div>
                  <div class="col-md-9">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Slider Heading</label>
                       <div class="col-sm-12">
                          <input class="form-control"  name="slider_heading" placeholder="Enter Slider Heading" value="<?php echo $slider->slider_heading  ?>">
                       </div>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Slider Sub Heading</label>
                       <div class="col-sm-12">
                          <input class="form-control"  name="slider_sub_heading" placeholder="Enter Slider Sub Heading" value="<?php echo $slider->slider_sub_heading ?>">
                       </div>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Slider Description </label>
                       <div class="col-sm-12">
                          <textarea class="form-control"  name="slider_description" placeholder="Enter Slider Description" ><?php echo $slider->slider_description  ?></textarea>
                       </div>
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Slider Button Name </label>
                       <div class="col-sm-12">
                          <input class="form-control"  name="slider_btn_name" placeholder="Enter Slider Button Name"  value="<?php echo $slider->slider_btn_name  ?>">
                       </div>
                    </div>
                  </div>

                  <div class="col-md-6">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Slider Button Link </label>
                       <div class="col-sm-12">
                          <input class="form-control"  name="slider_btn_link" placeholder="Enter Slider Button Link" value="<?php echo $slider->slider_btn_link  ?>">
                       </div>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label for="inputEmail" class="col-sm-12 col-form-label">Slider Background Image <span class="required">*</span> (Size 1920px X 1280px)</label>
                       <div class="col-sm-12">
                          <input type="file" class="form-control"  name="slider_image" >
                       </div>
                    </div>
                  </div>

                  <div class="col-md-12" >
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Preview Image</label>
                       <div class="col-sm-12">
                          <img style="border: 1px solid black" src="<?php echo base_url() ?><?php echo $slider->slider_image ?>" width="150px;">
                       </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>
  <!-- /.content-wrapper -->