@extends('layouts.front')
@section('content')
@section('meta')
  <title>ফটো গ্যালারি</title>
@endsection
@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();
	 
@endphp
 <!--============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();               
     @endphp  

<section class="videoGallery-page">
            <div class="container">
                <div class="archive-info-cats">
                    <a href="{{ URL::to('/') }}"><i class="la la-home"> </i> </a>  <i class="la la-chevron-right"></i> ফটো গ্যালারী
                </div>
          
                <div class="video-page-content">
                    <div class="row">
                        
				@php
				$photobig=DB::table('photos')->where('type',1)->orderBy('id','DESC')->limit(10000000)->get();
				$photosmall=DB::table('photos')->where('type',0)->orderBy('id','DESC')->limit(10000000)->get();
				@endphp
				
				             @foreach($photobig as $row)
                           <div class="elitesDesign-4 elitesDesign-m2">
                            <div class="video-page-wrpp">
                                <div class="video-page-image">
                                    <img class="lazyload" src="{{ asset($setting->	lazybaner ??'') }}" data-src="{{ asset($row->photo ??'')}}">
                                    <a href="{{ asset($row->photo ??'')}}" class="photoArchive-pageIcon"> <i class="las la-camera"></i>  </a>
                                                                   
                                </div>
                                <div class="video-page-title">
                                    <a href="{{ asset($row->photo ??'')}}"> {{ $row->title ??''}}</a>
                                </div>
                                
                            </div>
                        </div>
                        @endforeach


                        
                        <div style="text-align: center; display: ruby; margin:20px">  </div>   



             
                       
                    </div>
                    
                   
                   
                   

                </div>

      
              

               
            </div>
        </section>


@endsection