<div class="page-header">
    <?= $this->render('manage/_partials/nav') ?>
</div>
<section>
    <?php if (empty($projects)): ?>
        <p class="alert"><?= t('No project') ?></p>
    <?php else: ?>
        <div
            id="gantt-chart"
            data-records='<?= json_encode($projects, JSON_HEX_APOS) ?>'
            data-store-url="<?= $this->url->href('Project/ProjectController', 'updateDate') ?>"
            data-label-project-manager="<?= t('Project managers') ?>"
            data-label-project-member="<?= t('Project members') ?>"
            data-label-gantt-link="<?= t('Gantt chart for this project') ?>"
            data-label-board-link="<?= t('Project board') ?>"
            data-label-start-date="<?= t('Start date:') ?>"
            data-label-end-date="<?= t('End date:') ?>"
            data-label-not-defined="<?= t('There is no start date or end date for this project.') ?>"
        ></div>
    <?php endif ?>
</section>
