
<?php $__env->startSection('page-css'); ?>
<?php echo HTML::style('assets/js/site/customScrollBar/scrollbar.css'); ?>
<?php echo HTML::style('assets/js/site/prettyPhoto/prettyPhoto.css'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="bg-white-blue float-left full-width">
    <?php echo $__env->make('layouts.site.partials._header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <div class="gallery"></div>
    <div class="contents-container">
        <div class="heading video"></div>
        <div class="subscribe-btn">
            <a target="_blank" href="<?php echo $setting->youtube_link; ?>" class="button">Subscribe!</a>
        </div>
        <div class="gallery">
            <?php foreach (array_chunk($videos->all(), 3) as $row): ?>
                <div class="column">
                    <?php foreach ($row as $video): ?>
                        <div class="thumbnail-cion-2">
                            <div class="thumbnail">
                                <div class="play-icon">
                                    <a href="<?php echo $video->youtube_link.'?rel=0'; ?>" rel="prettyPhoto">
                                        <img src="<?php echo asset('assets/imgs/site/play-icon.png'); ?>">
                                    </a>
                                </div>
                                <?php
                                    $parsed_youtube_link = parse_url($video->youtube_link);
                                    parse_str($parsed_youtube_link['query'], $url_parts);
                                ?>
                                <img src="http://img.youtube.com/vi/<?php echo $url_parts['v']; ?>/mqdefault.jpg" alt="<?php echo $video->title; ?>"/>
                            </div>
                            <div class="thumbnail-label">
                                <?php echo $video->title; ?>
                            </div>
                        </div>
                    <?php endforeach; ?>
                </div>
            <?php endforeach; ?>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page-js'); ?>
<?php echo HTML::script('assets/js/site/customScrollBar/jquery.mCustomScrollbar.concat.min.js'); ?>
<?php echo HTML::script('assets/js/site/prettyPhoto/jquery.prettyPhoto.js'); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.site.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>