<?php

$id = 0;
if($_GET['id']){
	$id = $_GET['id'];
}
$post = get_post($id);
if($post){

	?>
	<table class="form-table" style="text-align: right">
		<tr>
			<th> <?php _e('Username' , 'woo2app'); ?> </th>
			<td>
				<strong>
					<?= $post->post_title ;?>
				</strong>
			</td>
		</tr>
		<tr>
			<th>  <?php _e('App version' , 'woo2app'); ?> </th>
			<td>
				<strong>
					<?= get_post_meta($id , 'app-version' , true)?>
				</strong>
			</td>
		</tr>
		<tr>
			<th> <?php _e('Os Version' , 'woo2app'); ?> </th>
			<td>
				<strong>
					<?= get_post_meta($id , 'os-version' , true)?>
				</strong>
			</td>
		</tr>
		<tr>
			<th>  <?php _e('Install Id' , 'woo2app'); ?> </th>
			<td>
				<strong>
					<?= get_post_meta($id , 'install-id' , true)?>
				</strong>
			</td>
		</tr>

		<tr>
			<th> <?php _e('Message' , 'woo2app'); ?> </th>
			<td>
				<p>
					<?= $post->post_content; ?>
				</p>
			</td>
		</tr>

	</table>
	<hr>
	<a class="button button-primary" href="<?= current_url?>">
		<?php _e('Back' , 'woo2app'); ?>
	</a>
	<?php
}
