<?php
require_once("header.php");
require_once("menu.php");
error_reporting(0);

if(isset($_REQUEST['del']))
{
    $home_slider_id = base64_decode($_REQUEST['del']);
    $home_slider_status = '1';
    $ex = $obj->softdel_home_slider($home_slider_id,$home_slider_status);
    echo '<script>window.location="del_homeslider.php"</script>';
}

?>

<div id="layoutSidenav_content">
<main class="mt-4">
    <div class="container-fluid">        
        <div class="card mb-4">
            <div class="card-header">
                <i class="fas fa-recycle mr-1"></i>Deleted Slider 
            </div>
            <div class="card-body">
                 <div class="table-responsive">
                <?php
                  $ex = $obj->get_del_home_slider();
                  while($row=mysqli_fetch_array($ex))
                  {
                  ?>
               <table class="table table-bordered" width="100%" cellspacing="0">
                 <tr>
                     <th style="width: 300px;">Home Slider Title</th>
                     <td><?php echo $row['title'];?></td>
                  </tr>
                   <tr>
                     <th style="width: 300px;">Home Slider Subtitle</th>
                     <td><?php echo $row['subtitle'];?></td>
                  </tr>
                   <tr>
                     <th style="width: 300px;">Home Slider Text</th>
                     <td><?php echo $row['home_slider_text'];?></td>
                  </tr>
                  <tr>
                      <th>Slider Background</th>
                      <td><img height="200" width="500" src="<?php echo $row['home_slider_bg'];?>"></td>
                  </tr>
                <tr>
                      <th>Slider Image</th>
                      <td><img height="100" width="100" src="<?php echo $row['home_slider_img'];?>"></td>
                  </tr>
                   <tr>
                     <th>Action</th>
                      <td colspan="2">
                       
                         <a href="del_homeslider.php?del=<?php echo base64_encode($row['home_slider_id']);?>" class="btn btn-secondary  delete_right btn-sm"><i class="fas fa-recycle"></i></a>
                     </td>
                  </tr>
           
                  <?php } ?>
               </table>
            </div>
            </div>
        </div>
    </div>
</main>


<?php require_once("footer.php");?>
