hasIdentity()) { $user = $auth->getIdentity(); echo ''.$user->username.' '; if ($user->usertype=="administrator") echo 'ADMIN '; echo 'CART Logout'; } else { echo 'Login Register'; } ?>