<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?> 

<table width="100%" class="table table-sm table-striped">
	<?php if(isset($data['entry'])){ ?>
		<tr>
			<td align="right"><b>ID</b></td>
			<td width="20px">:</td>
			<td align="left"><?php echo $data['entry'][0]->resource->id ?></td>
		</tr>
		<tr>
			<td align="right"><b>Name</b></td>
			<td width="20px">:</td>
			<td align="left"><?php echo $data['entry'][0]->resource->name[0]->text ?></td>
		</tr>
		<tr>
			<td align="right"><b>BirthDate</b></td>
			<td width="20px">:</td>
			<td align="left"><?php echo $data['entry'][0]->resource->birthDate ?></td>
		</tr>
		<tr>
			<td align="right"><b>Gender</b></td>
			<td width="20px">:</td>
			<td align="left"><?php echo $data['entry'][0]->resource->gender ?></td>
		</tr>
		<tr>
			<td align="right"><b>ResourceType</b></td>
			<td width="20px">:</td>
			<td align="left"><?php echo $data['entry'][0]->resource->resourceType ?></td>
		</tr>
		<tr>
			<td align="right"><b>Meta (lastUpdated, versionId)</b></td>
			<td width="20px">:</td>
			<td align="left"><?php echo $data['entry'][0]->resource->meta->lastUpdated.'<br>['.$data['entry'][0]->resource->meta->versionId.']'; ?></td>
		</tr>
	<?php } else echo '<tr><td>TIDAK ADA DATA</td></tr>' ?>
</table>