<table class="table table-condensed" align="center">
        <thead>
        <tr bgcolor="AntiqueWhite ">
            <th>Product</th>
            <th>Price</th>
            <th>image</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
        </thead>
        <tbody>
        <?php 
require_once "../controllers/DbConnection.php";
require_once "../controllers/Product.php";
$pro = new Product(DbConnection::getConnection());
$result = $pro->Get_Products();
if ($result->num_rows > 0) {
    // output data of each row
    while ($row = $result->fetch_assoc()) {
        if ($row['status'] == 1) {
            echo '<tr>';
            echo '<td>' . $row['p_name'] . '</td>';
            echo '<td>' . $row['u_price'] . '</td>';
            echo "<td><img src='../assets/img/" . $row['p_img'] . "' width='30' height='30'></td>";
            echo '<td><a href="../models/Available.php?id=' . $row['p_id'] . '">available</a></td>';
            echo '<td>
                          <a href="../views/EditProduct.php?id=' . $row['p_id'] . '">EDIT</a>
                          <a href="../models/deleteProduct.php?id=' . $row['p_id'] . '">Delete</a> </td>';
            echo '<tr>';
        } else {
            echo '<tr>';