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

if(isset($_REQUEST['del']))
{
    $h_end_id = base64_decode($_REQUEST['del']);
    $h_end_status = '1';
    $ex = $obj->softdel_home_end_to_end($h_end_id,$h_end_status);
    echo '<script>window.location="del_home_end_to_end.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 Home End To End Secction
            </div>
            <div class="card-body">
                <div class="table-responsive">
                    <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
                        <thead>
                            <tr>
                         <th>Title</th>
                         <th>Icon</th>
                         <th>Number</th>
                         <th>Description</th>
                         <th>Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            $ex = $obj->get_del_end_to_end();
                            while($row=mysqli_fetch_array($ex))
                            {
                            ?>
                            <tr>
                       <td><?php echo $row['h_end_title'];?></td>
                        <td><?php echo $row['h_end_icon'];?></td>
                        <td><?php echo $row['h_end_number'];?></td>
                        <td><?php echo $row['h_end_desc'];?></td>
                                <td>
                                    <a href="del_home_end_to_end.php?del=<?php echo base64_encode($row['h_end_id']);?>" class="btn btn-secondary  delete_right btn-sm"><i class="fas fa-recycle"></i></a>
                                </td>
                            </tr>
                            <?php } ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</main>


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