<input type="hidden" id="baseurl" value="<?php echo base_url(); ?>" >
<div class="row">
    <div class="col-md-12">
        <div class="hs_heading medium">
            <h3>sliders (<?php if(!empty($all_sliders)){ echo count($all_sliders); }else{ echo 0; } ?>) <a href="<?php echo base_url().'setting/add_slider'; ?>" class="btn" data-toggle="modal">Add new</a></h3>
        </div>
        <div class="hs_datatable_wrapper">
            <table class="hs_datatable table table-bordered">
                <thead>
                    <tr>
                        <th>#</th> 
                        <th>Slider Heading</th>
						<th>Slider Title</th>
                        <th>Slider Subtitle</th>
						<th>Slider Button1</th>
						<th>Slider Button2</th>
						<th>Slider Bcakground image</th>
						<th>Slider Image</th>
						<th>Status</th>
						<th>Action</th>
                    </tr>
                </thead>
                <tbody>
				<?php 
				  $i= 0;
				  if(!empty($all_sliders)){
				foreach($all_sliders  as $slider){ ?>
				
				
				
					<tr>
						<td><?php echo ++$i; ?></td>
						<td><?php echo $slider->slider_heading; ?></td>
						<td><?php echo $slider->slider_title; ?></td>
						<td><?php echo $slider->slider_subtitle; ?></td>
						<td><?php echo $slider->slider_button1; ?></td>
						<td><?php echo $slider->slider_button2; ?></td>
						 <td>
							<img src="<?php echo base_url().$slider->slider_backimage; ?>" width="200px" height="100" alt="icon">
						</td>
						 <td>
							<img src="<?php echo base_url().$slider->slider_image; ?>" width="70px" height="100" alt="icon">
						</td>
						<td>
							<label class="switch">
								<input id="slidestatus_<?php echo $slider->slider_id; ?>" onclick="update_slider_status(<?php echo $slider->slider_id; ?>);"   type="checkbox" value="" <?php if($slider->slider_status == 1){ echo "checked"; } ?> >
								<span class="slider"></span>
							</label>
							
						</td>
						 
						<td width="200">
							<a href="<?php echo base_url().'setting/update_slider/'.$slider->slider_id;  ?>" class="btn" title="Edit" data-name="Business Statistics" ><i class="fa fa-pencil" aria-hidden="true"></i></a>
							 <a  href="<?php echo base_url().'setting/delete_slider/'.$slider->slider_id; ?>" class="btn" title="Delete" onclick="return delete_confirmation()"><i class="fa fa-trash" aria-hidden="true"></i></a>
						</td>
					</tr>
			    <?php
				 }
				} 
				?>	
				</tbody>
            </table>
        </div>
    </div>
</div>

 


 
	
 
	
	
	