<?php include '__header.phtml'; ?>
<h2 class="page-header">Berichten</h2>
<?php foreach ($berichten as $bericht) {
?>
<div class="panel panel-default">
<div class="panel-heading">
<?php if (!$bericht['gelezen']) {
<span class="label label-info">Nieuw bericht</span><br/><br/>
<?php
} ?>
<h3 class="panel-title"><?php echo $bericht['datum']; ?></h3>
<small>Afzender: </small><?php echo $bericht['afzender']; ?></div>
<div class="panel-body">
<?php echo $bericht['bericht']; ?>
</div>
}
if (count($berichten) === 0) {
?>U heeft geen berichten.<?php
<?php include '__footer.phtml'; ?>