
<?php $__env->startSection('content'); ?>
<?php $__env->startSection('meta'); ?>
  <title>ফটো গ্যালারি</title>
<?php $__env->stopSection(); ?>
<?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();               
     ?>  
<section class="photoGallery-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;

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

        <div class="row">

            <?php $__empty_1 = true; $__currentLoopData = $photos; $__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 border-0 shadow-sm h-100">

                        <!-- Image -->
                        <div class="position-relative overflow-hidden">
                            <img 
                                class="card-img-top img-fluid lazyload"
                                src="<?php echo e(asset($setting->lazybaner ?? '')); ?>"
                                data-src="<?php echo e(asset($row->photo ?? '')); ?>"
                                alt="<?php echo e($row->title ?? ''); ?>"
                            >

                            <!-- Overlay Button -->
                            <a href="<?php echo e(asset($row->photo ?? '')); ?>" 
                               target="_blank"
                               class="btn btn-dark btn-sm position-absolute"
                               style="bottom:10px; left:10px;">
                                <i class="las la-camera"></i> View
                            </a>
                        </div>

                        <!-- Title -->
                        <div class="card-body text-center">
                            <h6 class="card-title mb-0">
                                <a href="<?php echo e(asset($row->photo ?? '')); ?>" 
                                   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/photo.blade.php ENDPATH**/ ?>