main.php

<h1>User Dashboard for <?=$user->email?></h1>

<h2>Pages</h2>
<?=$package->links('help', 'reset.password', 'terms', 'security-logging');?>

<h2>Latest Security Logs</h1>
<p>Last 5 login attempts & other actions on your account.</p>
<table border=1 style="border-collapse:collapse;"><thead><tr><th>Action</th><th>IP</th><th>User Agent</th><th>Time/Date</th></thead>
<tbody>
<?php foreach ($package->get_user()->security_logs(5) as $index=>$entry): ?>
<tr>
    <td><?=$entry['action']?></td>
    <td><?=$entry['ip']?></td>
    <td><?=$entry['user_agent']?></td>
    <td><?=$entry['created_at']?></td>
<?php endforeach; ?>
</tbody>
</table>