<p class="category">The budgets you contribute to along with other people.</p> </div> <div class="content table-responsive table-full-width"> <table class="table table-hover table-striped"> <thead> <th>Name</th> <th>Your contribution</th> <th>Total</th> </thead> <tbody> <?php $select = new \Models\Select(); foreach ($this->budgets as $key => $value) { echo "<tr>"; echo "<td>" . $value['link'] . "</td>"; $total = $select->getTotalBudgets($value['budget_id']); $mymoney = $select->getMoneyBudget($value['budget_id']); echo "<td>" . $mymoney[0]['money'] . "</td>"; echo "<td>" . $total . "</td>"; echo "</tr>"; } ?> </tbody> </table> </div> </div> </div> <!-- <div class="col-md-12"> <div class="card card-plain">