<?php 
$response = $this->response;
?>
<h1>Výpis poznámek</h1>
<table>
	<thead>
		<tr>
			<th>
			#
			</th>
			<th>
			Poznámka
			</th>
			<th>
			Autor
			</th>
			<th>
			Vytvořeno
			</th>
		</tr>
	</thead>
	<tbody>
		<?php 
		foreach ($response["note"] as $note) {
			?>
		<tr>
			<td>
			<a href="/note/get/<?php echo $note->id; ?>.html"><?php echo $note->id; ?></a>
			</td>
			<td>
			<?php echo $note->note; ?>
			</td>
			<td>
			<?php echo $note->user_id; ?>
			</td>
			<td>
			<?php echo $note->created_at; ?>
			</td>
		</tr>
			<?php 
		}
		?>
	</tbody>
</table>