<div class="row">
	<div class="col-md-12">
		
		<table class="table table-hover">
			<thead>
				<tr>
					<th>First Name</th>
					<th>Last Name</th>
					<th>Phone No.</th>
					<th>Address</th>
					<th>City</th>
					<th>User Role</th>
					<th>Actions</th>
				</tr>
			</thead>
			<tbody>
			<?php foreach($users as $user): ?>
				<tr>
					<td><?= $user->f_name ?></td>
					<td><?= $user->l_name ?></td>
					<td><?= $user->phone_no ?></td>
					<td><?= $user->address ?></td>
					<td><?= $user->city ?></td>
					<td><?= $user->role_name ?></td>
					<td>
						<div style="width:80px;">
						<?php echo view_action(base_url('users'),$user->user_ID); ?>
                        </div>
					</td>
				</tr>
			<?php endforeach; ?>
			</tbody>
		</table>
	</div>
	<div class="col-md-3">
		
	</div>
</div>

