<tr> <th style="text-align:center" colspan="8"><h3>Product List<a href="index.php?page=aproduct&m=add" class="btn btn-xs btn-primary pull-right"><span class="glyphicon glyphicon-plus"></span></a></h3></th> </tr> <tr> <th>Id</th> <th>Name</th> <th>Description</th> <th>Sell Price</th> <th>Cost Price</th> <th>Photo</th> <th>Status</th> <th>Action</th> </tr> <?php $product_repo = new ProductRepository(); foreach ($product_repo->get_all() as $product) { ?> <tr class="<?php echo $product->get_status() ? "" : "danger"; ?> "> <td><?php echo $product->get_id(); ?> </td> <td><?php echo $product->get_name(); ?> </td> <td><?php echo $product->get_description();