echo $model->description; ?> </div> </td> </tr> <tr> <td>Course</td> <td><?php echo app\models\Course::findOne($model->course_id)->name; ?> </td> </tr> <tr> <td>Comments</td> <td><?php echo count(app\models\Comment::findAll(['video_id' => $model->id])); ?> </td> </tr> <tr> <td>Uploaded By</td> <td><?php echo app\components\OvcUser::getUserFullName($model->user_id); ?> </td> </tr> <tr> <td>Created on</td> <td><?php echo app\components\OvcUtility::ovcDateFormat($model->created_at); ?>