<?php 
$this->title = Yii::t('app', 'Dashboard');
?>

<div class="admin">

    <?php if(Yii::$app->session->hasFlash('request_rejected')): ?>
        <div class="alert alert-success">
            <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
            <?= Yii::$app->session->getFlash('request_rejected') ?>
        </div>
    <?php endif; ?>

    <h1><?= Yii::t('app', 'Training Requests') ?></h1>
    <?= $this->render('_pending_requests', ['dataProvider' => $pendingRequestsDataProvider]) ?>
    
    <hr>

    <h1><?= Yii::t('app', 'Today Interviews') ?></h1>
    <?= $this->render('_interviews', ['dataProvider' => $todayInterviewsDataProvider]) ?>

</div>
