<div class="row">
    <?php $index = 1; ?>
    <?php foreach ($this->relatedVideos as $video) { ?>
        <div class="col-md-4 mt-3">
            <a class="card-video" href="<?php echo JBusinessUtil::getVideoLink($video) ?>">
                <div class="card-video-wrap">
                    <img src="<?php echo !empty($video->thumbnail) ? BD_PICTURES_PATH . $video->thumbnail  : BD_PICTURES_PATH . '/video_default.jpg' ?>" />
                    <div class="play-pause">
                        <i class="la la-play"></i>
                    </div>
                </div>

                <div class="card-video-title">
                    <div class="video-btn video-category">
                        <?php echo $video->mainSubcategoryName ?>
                    </div>
                    <div class="video-duration d-flex justify-content-around">
                        <i class="la la-clock-o mr-2"></i>
                        <div class="video-duration-time"><?php echo $video->duration ?></div>
                    </div>
                </div>

                <div class="card-video-text">
                    <?php echo $video->description ?>
                </div>
            </a>
        </div>
        <?php $index++; ?>
        <?php if ($index == 7) break;  ?>
    <?php } ?>
</div>