<div class="row"> <table class="table table-stripped table-hover"> <tr> <th>Id</th> <th>Company Name</th> <th>contact Person</th> <th>Email</th> <th>Contact No</th> <th>Enquiry Date</th> <th>Subject</th> <th>Action</th> </tr> <?php foreach ($enquiry_repository->get_all('id desc') as $enq) { ?> <tr> <td><?php echo $enq->get_id(); ?> </td> <td><?php echo $enq->get_company_name(); ?> </td> <td><?php echo $enq->get_first_name(); ?> <?php echo $enq->get_last_name();
<table class="table table-stripped table-hover"> <tr> <th>Id</th> <th>Company Name</th> <th>contact Person</th> <th>Email</th> <th>Contact No</th> <th>Enquiry Date</th> <th>Subject</th> <th>Action</th> </tr> <?php $enquiry_repository = new EnquiryRepository(); foreach ($enquiry_repository->get_all() as $enq) { ?> <tr> <td><?php echo $enq->get_id(); ?> </td> <td><?php echo $enq->get_company_name(); ?> </td> <td><?php echo $enq->get_first_name(); ?> <?php echo $enq->get_last_name();