<div class="panel panel-default">
	<div class="panel-heading panel-heading-transparent">
		<strong>Trainers</strong>
	</div>

	<div class="panel-body">
		<table id="user" class="table table-bordered table-striped">
			<thead>
				<tr><b>
					<th><h4>No.</h4></th>
					<th><h4>Name</h4></th>
					<th><h4>Qualification</h4></th>
					<th><h4>Field</h4></th>
					<th><h4>Experience</h4></th>
					<th><h4>Actions</h4></th>
				</b>	</tr>
			</thead>
			<tbody>
					<?php
					$i=0;
					 foreach($trainers as $trainer):
					 $i++;
					 ?>
				<tr>
					<td><?php echo $i.'.';   ?></td>
					<td><?php echo $trainer['title'].' '.$trainer['firstName'].' '.$trainer['secondName'].' '.$trainer['surName'] ;       ?></td>
					<td><?php echo $trainer['qualification'];  ?></td>
					<td><?php echo $trainer['specialization'];  ?></td>
					<td><?php echo $trainer['yearsOfExperience'];  ?></td>
					<td><a class="btn btn-primary" href="trainer/<?php echo $trainer['userID'];    ?>">View trainer details</a></td>
				</tr>
			<?php endforeach;   ?>


			</tbody>
			<tfoot>

			</tfoot>
		</table>
	</div>
</div>
