echo \app\components\OvcVideoPlayerWidget::widget(['path' => $video->path, 'controls' => false, 'startTime' => '#t=00:00:01', 'cssClass' => 'player-lastest-videos']); ?> <div class="caption"> <table> <tr> <td style="width:50px;"><strong>Title</strong></td> <td> <?php echo strlen($video->title) > 25 ? substr($video->title, 0, 25) . '...' : $video->title; ?> </td> </tr> <tr> <td><strong>Course</strong></td> <td> <?php $course = app\models\Course::findOne($video->course_id)->name; ?> <?php echo strlen($course) > 25 ? substr($course, 0, 25) . '...' : $course; ?> </td> </tr> <tr> <td><strong>Date</strong></td> <td> <?php echo date("M j, Y, g:i a", strtotime($video->created_at)); ?> </td> </tr> </table>
?> </td> </tr> <tr> <td>Description</td> <td> <div style="height: 92px; overflow-y: scroll;"><?php 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); ?>