<?php
	the_post();
	$values = get_post_custom( get_the_id() );
	if ( is_user_logged_in() ) {
	$user = wp_get_current_user();
	$ticket_user_id  = $values['ea_user_id'][0];
	$current_user_id = get_current_user_id();
	$qr_user_role = mep_get_option( 'mep_qr_user_role', 'qr_general_attendee_sec', 'administrator' );
	if ( $ticket_user_id == $current_user_id || in_array( 'administrator', (array) $user->roles ) || in_array( $qr_user_role, (array) $user->roles ) ){
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2.0">
	<?php wp_head(); ?>
    <style>
		.mep-reg-user-details {
			width: 400px;
			margin: 0 auto;
			border-top: 1px solid #ddd;
			border-left: 1px solid #ddd;
			margin-top: 50px;
			border-right: 1px solid #ddd;
		}
		.mep-reg-user-details table tr td {
			border-color: #ddd;
			padding: 0px 10px;
			border-bottom: 1px solid #ddd;
		}
		.mep-reg-user-details table tr td img {
			border-radius: 100%;
			margin: 20px 0;
			width: 100px;
			height: auto;
		}
		.mep-reg-user-details table tr td h2 {
			font-size: 25px;
			margin: 0;
			padding: 0;
		}
		.mep-reg-user-details table tr td h3 {
			font-size: 14px;
			margin: 10px 0;
			padding: 0;
			font-weight: bold;
		}
		.mep-reg-user-details table tr td h4 {
			font-size: 16px;
			margin-bottom: 20px;
		}
		.mep-reg-user-details table {
			width: 100%;
			background: #fff;
			margin: 0;
		}
		.mep-reg-user-details h4, .mep-reg-user-details h2 {
			padding: 0;
			margin: 0;
		}
        <?php do_action('mep_attendee_details_page_style',get_the_id()); ?>
    </style>
</head>
<body>
<div class="mep-wrapper">
    <div class="mep-reg-user-details">
		<?php do_action( 'mep_attendee_details_page', get_the_id() ); ?>
    </div>
</div>
<?php
	}else{
?>
<html>
<head>
    <title><?php esc_html_e( 'Sorry, You Can not see this page, Because Its not your Attendee Information.', 'mage-eventpress' ); ?></title>
</head>
<body>
<h3 style="text-align: center;border: 2px solid red;color: red;font-size: 30px;width: 60%;margin: 100px auto;padding: 30px;"><?php esc_html_e( 'Sorry, You Can not see this page, Because Its not your Attendee Information.', 'mage-eventpress' ); ?></h3>
<?php
	}
	do_action( 'at_footer' );
	} else {
	wp_redirect( wp_login_url( get_the_permalink() ) );
}
	wp_footer();
?>
</body>
</html>