<?php
use yii\widgets\DetailView;
use \common\modules\analyticsSchool\models\AnalyticsSchoolLesson;
use \yii\grid\GridView;

/** @var AnalyticsSchoolLesson $model */
/** @var \yii\data\ActiveDataProvider $files */
?>

<h1>Просмотр урока #<?= $model->id; ?></h1>

<div class="analytics-school-view">
    <?=
    DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'name',
            [
                'attribute' => 'course_id',
                'value' => $model->course->name
            ],
            'video_link',
            'content:ntext',
        ],
    ]);
    ?>
</div>
<div class="analytics-school-files-view">
    <?= GridView::widget([
        'dataProvider' => $files,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'title',
            'file',
        ],
    ]); ?>
</div>
