<?php $pagetitle = 'Controller Profile'; require_once 'includes/header.php'; try { $student = $t->getStudent(Input::get('id')); if ($user->isActive($student->cid)) { $hours = $user->atcHours($student->cid); } $t = new Training(); $avatar = $user->getAvatarURL(['email' => $student->email]); $bookings = $t->userBookings($student->cid); } catch (Exception $e) { echo $e->getMessage(); } ?> <div class="col-md-12"> <h3 class="text-center"><?php echo $student->first_name . ' ' . $student->last_name; ?> </h3><br> <div class="row"> <div class="col-md-8"> <div class="panel panel-warning"> <div class="panel-heading"> <h3 class="panel-title">Profile</h3> </div> <div class="panel-body"> <div class="col-md-12">