<h2>My Blog</h2>
<small><?php echo $hijri_date ' - ' $name?></small>
<table>
  <tr>
    <th>ID</th>
    <th>Title</th>
    <th>Date</th>
  </tr>
  
  <?php foreach($posts as $post): ?>
  <tr>
    <td><?php echo $post['Post']['id']; ?></td>
    <td><?php echo $html->link($post['Post']['title'], '/posts/view/'.$post['Post']['id']); ?></td>
    <td><?php echo $post['Post']['created']; ?></td>
  </tr>
  <?php endforeach; ?>
</table>