<?php require $_SERVER["DOCUMENT_ROOT"] . '/vendor/autoload.php'; use SMS\App\Modules\RegisterStaff\Controller\RegisterStaffController as RegisterStaff; $view = new RegisterStaff(); $fields = $view->getTableFields(); $staffs = $view->getStaffs(); ?> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-header"> <h3 class="box-title">You Can Use The Search Form To Filter Data On This Page</h3> </div><!-- /.box-header --> <div class="box-body"> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th class="info" style="width: 20px !important;"><center><i class="fa fa-info"></i></center></th> <?php foreach ($fields as $field) { $name = $field["Name"]; echo "<th>{$name}</th>"; } ?> </tr> </thead> <tbody> <?php foreach ($staffs as $staff) {