?> <span class="glyphicon glyphicon-trash comment-delete" data-url='<?php echo yii\helpers\Url::to(['comment/delete', 'id' => $comment->id, 'video_id' => $comment->video_id]); ?> ' data-comment-id='<?php echo $comment->id; ?> ' title="trash"></span> <?php } ?> </div> <p> <strong class="ucfirst"><?php echo app\components\OvcUser::getUserFullName($comment->user_id); ?> </strong> </p> <p><?php echo $comment->text; ?> </p> <p class="ovc-border-up small"> <time class="timeago" datetime="<?php echo date('Y-m-d\\TH:i:s\\Z', strtotime($comment->created_at)); ?> "></time> </p> </div> </div>
<div class="media ovc-comment-box ovc-edit-comment" id="edit-comment-<?php echo $comment->id; ?> "> <div class="media-left"> <img src="<?php echo Yii::getAlias('@web'); ?> /images/user.png" alt="course" style="max-width: 45px;"/> </div> <div class="media-body"> <p><strong class="ucfirst"><?php echo app\components\OvcUser::getUserFullName($currentUserId); ?> </strong></p> <p><textarea style="width: 100%;" class="text-comment"><?php echo $comment->text; ?> </textarea></p> <p class="text-right"> <button type="button" class="btn btn-primary btn-xs save-comment" data-comment-id="<?php echo $comment->id; ?> ">Save</button> <input type="hidden" class="inline-save-comment" value="<?php echo yii\helpers\Url::to(['comment/inline-save', 'id' => $comment->id]); ?> "> </p> </div> </div>
<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); ?> </td> </tr> <tr> <td>Modified on</td> <td><?php echo app\components\OvcUtility::ovcDateFormat($model->modified_at); ?>