
<?php $__env->startSection('content'); ?>
<?php
     $firstsectionbig=DB::table('posts')->where('first_section_thumbnail',1)->orderBy('id','DESC')->first();
	 $firstsectionsmall=DB::table('posts')->where('first_section',1)->orderBy('id','DESC')->limit(20)->get();
	 $firstsectionheding=DB::table('posts')->where('headline',1)->orderBy('id','DESC')->limit(12)->get();
	 $post=DB::table('posts')->first();
	 $setting=DB::table('settings')->first();
	 
?>
 <!--============Scroll 03 start==============-->
     <?php
	 $headline=DB::table('posts')
                        ->join('categories','posts.cat_id','categories.id')
                        ->join('subcategories','posts.subcat_id','subcategories.id')
                        ->select('posts.*','categories.category_bn','subcategories.subcategory_bn')
                        ->where('posts.headline',1)
                        ->orderBy('id','DESC')
                        ->limit(5)
                        ->get();               
     ?>  
	 
<?php $__env->startSection('meta'); ?>
  <title>ভিডিও গ্যালারি</title>
<?php $__env->stopSection(); ?>
<section class="videoGallery-page py-5">
    <div class="container">

        <!-- Breadcrumb -->
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb bg-light">
                <li class="breadcrumb-item">
                    <a href="<?php echo e(URL::to('/')); ?>">
                        <i class="la la-home"></i> হোম
                    </a>
                </li>
                <li class="breadcrumb-item active" aria-current="page">
                    ভিডিও গ্যালারী
                </li>
            </ol>
        </nav>

        <?php
            use Illuminate\Support\Facades\DB;

            $videos = DB::table('videos')
                        ->where('type', 1)
                        ->orderBy('id', 'DESC')
                        ->get();
        ?>

        <div class="row">

            <?php $__empty_1 = true; $__currentLoopData = $videos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>

                <div class="col-lg-4 col-md-6 col-sm-12 mb-4">
                    <div class="card h-100 shadow-sm border-0">

                        <!-- Video Thumbnail -->
                        <div class="position-relative">
                            <img 
                                class="card-img-top img-fluid lazyload"
                                src="<?php echo e(asset($setting->lazybaner ?? '')); ?>"
                                data-src="https://img.youtube.com/vi/<?php echo e($row->embed_code ?? ''); ?>/mqdefault.jpg"
                                alt="<?php echo e($row->title ?? ''); ?>"
                            >

                            <a href="https://www.youtube.com/watch?v=<?php echo e($row->embed_code ?? ''); ?>" 
                               target="_blank"
                               class="btn btn-danger btn-sm position-absolute"
                               style="bottom:10px; left:10px;">
                                <i class="las la-play"></i> Play
                            </a>
                        </div>

                        <!-- Video Title -->
                        <div class="card-body">
                            <h6 class="card-title">
                                <a href="https://www.youtube.com/watch?v=<?php echo e($row->embed_code ?? ''); ?>" 
                                   target="_blank" 
                                   class="text-dark font-weight-bold">
                                    <?php echo e($row->title ?? ''); ?>

                                </a>
                            </h6>
                        </div>

                    </div>
                </div>

            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <div class="col-12">
                    <div class="alert alert-danger text-center">
                        কোনো ভিডিও পাওয়া যায়নি।
                    </div>
                </div>
            <?php endif; ?>

        </div>

    </div>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.front', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/dhakasupplier/bdcrimewatch.com/resources/views/frontend/gallery.blade.php ENDPATH**/ ?>