<input type="hidden" id="baseurl" value="<?php echo base_url(); ?>" >
<div class="row">
    <div class="col-md-6 margin-bottom-30">
        <div class="hs_heading medium">
            <h3>Update Slider</h3>
        </div>
		  <form id="update_slider_form" enctype="multipart/form-data">
		  <input type="hidden" name="old_slider_id" id="old_slider_id" value="<?php if(!empty($slider_details)){ echo $slider_details[0]->slider_id; } ?>">
        <div class="hs_input">
            <label>slider Heading</label>
            <input type="text" class="form-control" placeholder="Heading" name="upslider_heading" id="upslider_heading" value="<?php if(!empty($slider_details)){ echo $slider_details[0]->slider_heading; } ?>">
        </div>
        <div class="hs_input">
            <label>slider Title</label>
            <input type="text" class="form-control" placeholder="Title" name="upslider_title" id="upslider_title" value="<?php if(!empty($slider_details)){ echo $slider_details[0]->slider_title; } ?>">
        </div>
		<div class="hs_input">
            <label>slider subtitle</label>
            <input type="text" class="form-control" placeholder="Sub Title" name="upslider_subtitle" id="upslider_subtitle" value="<?php if(!empty($slider_details)){ echo $slider_details[0]->slider_subtitle; } ?>">
        </div>
         <div class="hs_input">
            <label>slider Button1 Text</label>
            <input type="text" class="form-control" placeholder="Button1 Text" name="upslider_button1" id="upslider_button1" value="<?php if(!empty($slider_details)){ echo $slider_details[0]->slider_button1; } ?>">
        </div>
		<div class="hs_input">
            <label>slider Button1 Url Link</label>
            <input type="text" class="form-control" placeholder="Url Link" name="upslider_btn1url" id="upslider_btn1url" value="<?php if(!empty($slider_details)){ echo $slider_details[0]->button1_url; } ?>">
        </div>
		<div class="hs_input">
            <label>slider Button2 Text</label>
            <input type="text" class="form-control" placeholder="Button2 Text" name="upslider_button2" id="upslider_button2" value="<?php if(!empty($slider_details)){ echo $slider_details[0]->slider_button2; } ?>">
        </div>
		<div class="hs_input">
            <label>slider Button2 Url Link</label>
            <input type="text" class="form-control" placeholder="Url Link" name="upslider_btn2url" id="upslider_btn2url" value="<?php if(!empty($slider_details)){ echo $slider_details[0]->button2_url; } ?>">
        </div>
	   <div class="hs_input">
            <label for="upslider_image">slider image</label>
            <input type="file" name="upslider_image" id="upslider_image" class="form-control">
        </div>
		 <div class="hs_input">
            <label for="upslider_image">slider Background image</label>
            <input type="file" name="upslider_backimage" id="upslider_backimage" class="form-control">
        </div>
		<button type="submit" class="btn">Update</button>
		</form>
    </div>
</div>
