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

if(isset($_REQUEST['del']))
{
    $faq_id = base64_decode($_REQUEST['del']);
    $faq_status = '1';
    $ex = $obj->softdel_faq($faq_id,$faq_status);
    echo '<script>window.location="del_faq.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 Faq 
            </div>
            <div class="card-body">
                 <div class="table-responsive">
               
               <table class="table table-bordered" width="100%" cellspacing="0">
                  
                   <thead>
                            <tr>
                         <th>Section Title</th>
                         <th>Title</th>
                         <th>Description</th>
                         <th>Action</th>
                            </tr>
                        </thead>
                         <?php
                            $ex = $obj->get_del_faq();
                            while($row=mysqli_fetch_array($ex))
                            {
                            ?>
                            <tr>
                        <td><?php echo $row['faq_menu_name'];?></td>
                         <td><?php echo $row['faq_title'];?></td>
                        <td><?php echo $row['faq_desc'];?></td>
                      <td colspan="2">
                         <a href="del_faq.php?del=<?php echo base64_encode($row['faq_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");?>
