<?php $__env->startPush("head"); ?>
    <title><?php echo e($videoDetay->baslik); ?> videosu</title>
    <meta name="description" content="<?php echo e(strip_tags($videoDetay->metadesc)); ?>" />
    <link rel="image_src" type="image/jpeg" href="<?php echo e(url('images/videolar/'.$videoDetay->resim)); ?>" />
    <meta name="DC.date.issued" content="<?php echo e(date('c',strtotime($videoDetay->created_at))); ?>" />
    <meta property="og:type" content="video.other" />
    <meta property="og:site_name" content="<?php echo e(config('ayarlar.baslik')); ?>" />
    <meta property="og:url" content="<?php echo e(URL::current()); ?>" />
    <meta property="og:title" content="<?php echo e($videoDetay->baslik); ?>" />
    <meta property="og:description" content="<?php echo e(strip_tags($videoDetay->metadesc)); ?>" />
    <meta property="og:image" content="<?php echo e(url('images/videolar/'.$videoDetay->resim)); ?>" />
    <meta property="og:image:width" content="480" />
    <meta property="og:image:height" content="360" />
    <meta name="twitter:card" content="summary_large_image">
    <meta property="twitter:image" content="<?php echo e(url('images/videolar/'.$videoDetay->resim)); ?>" />
    <meta name="twitter:site" content="<?php echo e('@'.config('ayarlar.twkullanici')); ?>">
    <meta name="twitter:url" content="<?php echo e(URL::current()); ?>">
    <meta name="twitter:title" content="<?php echo e($videoDetay->baslik); ?>" />
    <meta name="twitter:description" content="<?php echo e(strip_tags($videoDetay->metadesc)); ?>" />
    <meta itemprop="author" content="Haber Sitesi" />
    <meta itemprop="url" content="<?php echo e(URL::current()); ?>" />
    <meta itemprop="thumbnailUrl" content="<?php echo e(url('images/videolar/'.$videoDetay->resim)); ?>" />
    <meta itemprop="dateCreated" content="<?php echo e(date('c',strtotime($videoDetay->created_at))); ?>" />
    <meta itemprop="uploadDate" content="<?php echo e(date('c',strtotime($videoDetay->created_at))); ?>" />
    <meta itemprop="dateModified" content="<?php echo e(date('c',strtotime($videoDetay->updated_at))); ?>" />
    <meta itemprop="mainEntityOfPage" content="<?php echo e(URL::current()); ?>" />
<?php $__env->stopPush(); ?>
<?php $__env->startSection("content"); ?>
    <section>
        <div class="archive-header text-center mb-30">
            <h1><span class="font-weight-ultra"><?php echo e($videoDetay->baslik); ?></span></h1>
            <div class="breadcrumb">
                <a href="<?php echo e(url('/')); ?>">Ana Sayfa</a>
                <span></span>
                <a href="<?php echo e(url('webtv')); ?>">Video Galeri</a>
                <span></span>
                <a href="<?php echo e(url('video/kategoriler/'.\Illuminate\Support\Str::slug($videoDetay->kategoriler->baslik).'-'.$videoDetay->kategoriler->id)); ?>"><?php echo e($videoDetay->kategoriler->baslik); ?></a>
                <span></span>
                <?php echo e($videoDetay->baslik); ?>

            </div>
        </div>
    </section>
    <?php if(!empty($medyaDetayUst)): ?>
        <section class="block-wrapper text-center reklam mt-0 pb-0 mb-3">
            <?php if($medyaDetayUst->tip == 1): ?>
                <a target="_blank" href="<?php echo e($medyaDetayUst->link); ?>">
                    <img src="<?php echo e(url('images/reklamlar/'.$medyaDetayUst->resim)); ?>" alt="<?php echo e($medyaDetayUst->baslik); ?>">
                </a>
            <?php else: ?>
                <?php echo $medyaDetayUst->metin; ?>

            <?php endif; ?>
        </section>
    <?php endif; ?>
    <section class="pt-30 pb-30 bg-black box-shadow mb-30">
        <div class="container">
            <?php if(!empty($medyaIcerikUst)): ?>
                <section class="block-wrapper text-center reklam mt-0 pb-0 pt-0 mb-3">
                    <?php if($medyaIcerikUst->tip == 1): ?>
                        <a target="_blank" href="<?php echo e($medyaIcerikUst->link); ?>">
                            <img src="<?php echo e(url('images/reklamlar/'.$medyaIcerikUst->resim)); ?>" alt="<?php echo e($medyaIcerikUst->baslik); ?>">
                        </a>
                    <?php else: ?>
                        <?php echo $medyaIcerikUst->metin; ?>

                    <?php endif; ?>
                </section>
            <?php endif; ?>
            <div class="position-relative">
                <?php if(!empty($medyaOnu)): ?>
                    <div class="video_onu">
                        <div class="bar">
                            <div class="kapat">Reklamı Geç</div>
                            <div class="saniye"></div>
                        </div>
                        <?php if($medyaOnu->tip == 1): ?>
                            <div class="content">
                                <div class="reklam text-center mt-2">
                                    <a target="_blank" href="<?php echo e($medyaOnu->link); ?>">
                                        <img src="<?php echo e(url('images/reklamlar/'.$medyaOnu->resim)); ?>" alt="<?php echo e($medyaOnu->baslik); ?>">
                                    </a>
                                </div>
                            </div>
                        <?php else: ?>
                            <div class="content">
                                <div class="reklam text-center mt-2">
                                    <?php echo $medyaOnu->metin; ?>

                                </div>
                            </div>
                        <?php endif; ?>
                    </div>
                <?php endif; ?>
                <?php if($videoDetay->videotur == 1): ?>
                    <div class="post-video contentvideo">
                        <?php echo $videoDetay->embed; ?>

                    </div>
                <?php else: ?>
                    <video width="100%" height="100%" controls>
                        <source src="<?php echo e(url('images/videolar/'.$videoDetay->mp4)); ?>" type="video/mp4">
                    </video>
                <?php endif; ?>
            </div>
                <?php if(!empty($medyaIcerikAlt)): ?>
                    <section class="block-wrapper text-center reklam mt-0 pb-0 pt-0 mb-3">
                        <?php if($medyaIcerikAlt->tip == 1): ?>
                            <a target="_blank" href="<?php echo e($medyaIcerikAlt->link); ?>">
                                <img src="<?php echo e(url('images/reklamlar/'.$medyaIcerikAlt->resim)); ?>" alt="<?php echo e($medyaIcerikAlt->baslik); ?>">
                            </a>
                        <?php else: ?>
                            <?php echo $medyaIcerikAlt->metin; ?>

                        <?php endif; ?>
                    </section>
                <?php endif; ?>
            <div class="mt-20 text-light">
                <?php echo $videoDetay->metadesc; ?>

            </div>
                <div id="share"></div>
        </div>
    </section>

    <?php if(!empty($medyaSonEklenenler)): ?>
        <section class="block-wrapper text-center reklam mt-0 pb-0 pt-0 mb-3">
            <?php if($medyaSonEklenenler->tip == 1): ?>
                <a target="_blank" href="<?php echo e($medyaSonEklenenler->link); ?>">
                    <img src="<?php echo e(url('images/reklamlar/'.$medyaSonEklenenler->resim)); ?>" alt="<?php echo e($medyaSonEklenenler->baslik); ?>">
                </a>
            <?php else: ?>
                <?php echo $medyaSonEklenenler->metin; ?>

            <?php endif; ?>
        </section>
    <?php endif; ?>
    <section class="block-wrapper pt-20 pb-10">
        <div class="row">
            <div class="col-md-12">
                <div class="sidebar-widget loop-grid">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="widget-header position-relative mb-30">
                                <h5 class="widget-title mb-30 text-uppercase color1 font-weight-ultra">Son Eklenen</h5>
                                <div class="letter-background">Videolar</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12 col-sm-12">
                <div class="loop-metro post-module-1 row">
                    <?php if(count($videolar) != 0): ?>
                        <?php $__currentLoopData = $videolar; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $video): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <article class="col-lg-4 col-md-6 col-sm-12 mb-30">
                                <div class="post-thumb position-relative">
                                    <div class="thumb-overlay img-hover-slide border-radius-5 position-relative" style="background-image: url(<?php echo e(url('images/videolar/'.$video->resim)); ?>)">
                                        <a class="img-link yenisekme" href="<?php echo e(url('video/'.Illuminate\Support\Str::slug($video->baslik).'-'. $video->id)); ?>"></a>
                                        <div class="post-content-overlay">
                                            <h6 class="post-title">
                                                <a class="color-white yenisekme" href="<?php echo e(url('video/'.Illuminate\Support\Str::slug($video->baslik).'-'. $video->id)); ?>"><?php echo e($video->baslik); ?></a>
                                            </h6>
                                        </div>
                                    </div>
                                </div>
                            </article>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php else: ?>
                        <div class="col-lg-12">
                            <div class="alert alert-danger" role="alert">
                                Video bulunamadı!
                            </div>
                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </section>

    <?php if(!empty($medyaDetayAlt)): ?>
        <section class="block-wrapper text-center reklam mt-0 pb-0 mb-3">
            <?php if($medyaDetayAlt->tip == 1): ?>
                <a target="_blank" href="<?php echo e($medyaDetayAlt->link); ?>">
                    <img src="<?php echo e(url('images/reklamlar/'.$medyaDetayAlt->resim)); ?>" alt="<?php echo e($medyaDetayAlt->baslik); ?>">
                </a>
            <?php else: ?>
                <?php echo $medyaDetayAlt->metin; ?>

            <?php endif; ?>
        </section>
    <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php $__env->startPush("customJs"); ?>
    <script src="<?php echo e(asset('assets/frontend/'.$temaadi.'/js/jssocials.min.js')); ?>"></script>
    <script>
        $("#share").jsSocials({
            shareIn: "popup",
            showCount: false,
            showLabel: false,
            text: "<?php echo e(str_replace(array("'", "\""),array('’','”'),$videoDetay->baslik)); ?>",
            shares: ["facebook", "twitter", "whatsapp", "pinterest", "linkedin"]
        });
    </script>
    <script>
        $(document).ready(function (e) {
            function setCookie(key, value) {
                let expires = new Date();
                expires.setTime(expires.getTime() + (<?php echo e(config('ayarlar.popup_reklam_cache')); ?>  * 60 * 1000));
                document.cookie = key + '=' + value + ';expires=' + expires.toUTCString();
            }
            function getCookie(key) {
                let keyValue = document.cookie.match('(^|;) ?' + key + '=([^;]*)(;|$)');
                return keyValue ? keyValue[2] : null;
            }
            if (getCookie("video_onu") == '<?php echo e(config('ayarlar.siteadresi')); ?>'){
                $(".video_onu").css("display","none");
            }else {
                $('.video_onu').fadeIn();
                let genislik1 = $('.video_onu').width();
                let genislik2 = $('.video_onu .content').width();
                let sonuc = genislik1 - genislik2;
                let left = sonuc / 2;
                $('.video_onu .content').css({left: left});
                let saniye = 8;

                function saybakalim() {
                    if (saniye > 0) {
                        saniye = saniye - 1;
                        $('.video_onu .saniye').html(saniye + ' saniye kaldı..');
                    } else if (saniye == 0) {
                        $('.video_onu').fadeOut();
                        setCookie("video_onu", '<?php echo e(config('ayarlar.siteadresi')); ?>')
                    }
                }

                setInterval(saybakalim, 1000);
            }
            $(".video_onu .kapat").click(function (e) {
                $(".video_onu").fadeOut();
                setCookie("video_onu", '<?php echo e(config('ayarlar.siteadresi')); ?>')
            });
        });
    </script>
<?php $__env->stopPush(); ?>

<?php $__env->startPush("customCss"); ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/frontend/tema9/css/jssocials.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/frontend/tema9/css/jssocials-theme-flat.css')); ?>">
    <style>
        .video_onu {
            position: absolute;
            min-height: 400px;
            width: 100%;
            background: #f6f6f6;
            z-index: 5;
            display: none;
        }
        .video_onu .bar {
            text-align: right;
            font-weight: 500;
            padding: 10px;
            height: 30px;
            font-size: 14px;
            color: #EC2913;
        }
        .video_onu .bar div {
            margin-right: 10px;
            cursor: pointer
        }
        .video_onu .saniye {
            float: left
        }
        .video_onu .kapat {
            float: right
        }
    </style>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('frontend.'.$temaadi.'.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/yeniistik/public_html/resources/views/frontend/tema9/videoDetay.blade.php ENDPATH**/ ?>