<div class="slider">
    <div class="page-header">
    <h2><?= t('Projects') ?></h2>
    </div>
    <h3><i class="fa fa-star-o fa-fw"></i><?= t('Starred projects') ?></h3>
    <?php if (empty($starred_projects)): ?>
    <p class="alert"><?= t('No projects to show.') ?></p>
    <?php else: ?>
    <ul>
        <?php foreach ($starred_projects as $project): ?>
        <li>
            <?= $this->url->link($this->text->e($project['name']).($project['is_private']?'<i class="fa fa-lock pull-right" title="'.t('Private project').'"></i>':null), 'Project/ProjectController', 'show', ['project_id' => $project['id']]) ?>
        </li>
        <?php endforeach ?>
    </ul>
    <?php endif ?>
    <h3><i class="fa fa-history fa-fw"></i><?= t('Recent projects') ?></h3>
    <?php if (empty($recent_projects)): ?>
    <p class="alert"><?= t('No projects to show.') ?></p>
    <?php else: ?>
    <ul>
        <?php foreach ($recent_projects as $project): ?>
        <li>
            <?= $this->url->link($this->text->e($project['name']).($project['is_private']?'<i class="fa fa-lock pull-right" title="'.t('Private project').'"></i>':null), 'Project/ProjectController', 'show', ['project_id' => $project['id']]) ?>
        </li>
        <?php endforeach ?>
    </ul>
    <?php endif ?>
</div>