<?php

use yii\helpers\Html;

$this->title = Yii::t('app', 'Approve Training');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Trainings'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="trainings-create middle-page-container">

    <h1><?= Yii::t('app', 'Choose Training Date and Place') ?></h1>

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

    <?= $this->render('_form', [
        'model' => $model,
        'training_request_model' => $training_request_model,
        'branches' => $branches,
        'holidays' => $holidays,
        'weekend_days' => $weekend_days,
        'training_days' => $training_days
    ]) ?>

</div>
