<script src="https://bangla.plus/scripts/bangladatetoday.min.js"></script>
<script>dateToday('date-today', 'bangla');</script>
           
<script>
                        setInterval(displayTime, 1000);

function displayTime() {

    const timeNow = new Date();

    let hoursOfDay = timeNow.getHours();
    let minutes = timeNow.getMinutes();
    let seconds = timeNow.getSeconds();
    let weekDay = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
    let today = weekDay[timeNow.getDay()];
    let months = timeNow.toLocaleString("default", {
        month: "long"
    });
    let year = timeNow.getFullYear();
    let period = "AM";

    if (hoursOfDay > 12) {
        hoursOfDay-= 12;
        period = "PM";
    }

    if (hoursOfDay === 0) {
        hoursOfDay = 12;
        period = "AM";
    }

    hoursOfDay = hoursOfDay < 10 ? "0" + hoursOfDay : hoursOfDay;
    minutes = minutes < 10 ? "0" + minutes : minutes;
    seconds = seconds < 10 ? "0" + seconds : seconds;

    let time = hoursOfDay + ":" + minutes + ":" + seconds + " " + period;

   document.getElementById('Clock').innerHTML = time ;
    
    var chars = {'1':'১','2':'২','3':'৩','4':'৪','5':'৫','6':'৬','7':'৭','8':'৮','9':'৯','0':'০','A':'এ','P':'পি','M':'এম'};
    let str = document.getElementById("Clock").innerHTML; 
    let res = str.replace(/[1234567890AMP]/g, m => chars[m]);
    document.getElementById("Clock").innerHTML = res;

}
displayTime();

                        </script>

        
        
    
      
    


            <!--=========ThemesBazar==============
                Header section Start
            =============ThemesBazar=============-->     
        <header class="header">
            <div class="container">
                <div class="row">
                    <div class="col-lg-7 col-md-7">
                        <div class="date">
                            <i class="las la-map-marker"></i> ঢাকা <i class="lar la-calendar-minus"></i>   আজকের তারিখঃ                                                                        
<span id ="Clock" onload="displayTime()"></span> | <span id="date-today"></span> বঙ্গাব্দ
                                     
                                     
                        </div><!--|End date-->
                    </div><!--End col-5-->

                    
                    <div class="col-lg-5 col-md-5">
                        <div class="header-social">@foreach ($social_links as $social_link) 
                                                                                                    <a href="{{ $social_link->link}}" target="_blank" title="{{$social_link->name}}"><i class="{{$social_link->icon}}"></i> </a>
                                                            @endforeach
                        </div><!--End social-->
                    </div><!--End col-7-->

                </div><!--End row-->
            </div><!--End container-->
        </header><!--End header-->

            <!--=========ThemesBazar==============
                Header section End
            =============ThemesBazar=============-->     




            <!--=========ThemesBazar==============
                Logo Banner Start
            =============ThemesBazar=============-->     
        <div class="logo_banner">
            <div class="container">
                <div class="row">
                    <div class="col-lg-4 col-md-3">
							@php
								Session::has('language') ? $lid=Session::get('language') : $lid = (DB::table('languages')->where('is_default','=',1)->first()->id)
							@endphp
							
							@php
								$header_footer_logo = d_logo($lid);
							@endphp
                        <div class="logo">
                        <a href="{{route('frontend.index')}}"> <img src="{{asset('assets/images/logo/'.$gs->logo)}}" alt="{{ $gs->title }}"> </a>  
                        </div>
                    </div><!--End col-5-->

                    <div class="col-lg-8 col-md-9">
                        <div class="banner">
                                                                    {!!$gs->horizontal_adds1!!}
                                         
                        </div>
                    </div><!--End col-7-->

                </div><!--End row-->
            </div><!--End container-->
        </div><!--End section-->

            <!--=========ThemesBazar==============
                Logo Banner End
            =============ThemesBazar=============-->   





                    <!--=========ThemesBazar==============
                        Menu-section-Start
                    =============ThemesBazar=============-->           
        <div class="menu-section" id="myHeader">
            <div class="container">
                <div class="row">
                    <div class="col-lg-10 col-md-10">
                        <div class="mobile_logo">
                            <a href="{{route('frontend.index')}}"> <img src="{{asset('assets/images/logo/'.$gs->footer_logo)}}" alt="{{ $gs->title }}"> </a>
                        </div>
                        <div class="stellarnav">
                            <ul>
							
							
							    @foreach ($categories as $category)
								 @if ($loop->first)
                                <li class="current-menu-item"><a href="{{ route('frontend.index')}}"> <i class="las la-home"></i> প্রচ্ছদ</a></li>
                                  @endif
								
							@if ($category->child()->count() > 0)                
                                <li><a href="{{ route('frontend.category',$category->slug)}}" >{{$category->title}}</a>

                                 <ul>
								   @foreach ($category->child as $child)
                                        <li><a href="{{ route('frontend.postBySubcategory.details',[$category->slug,$child->slug])}}" >{{$child->title}}</a></li>
										@endforeach
                                     </ul>
                                 </li>
          					@else
					@if ($loop->first)
					@else                               
<li><a href="{{ route('frontend.category',$category->slug)}}" >{{$category->title}}</a></li>
             @endif
				@endif
			@endforeach	
			
			
			@if (!auth()->user())
			<li><a href="{{ route('front.LogReg') }}" >লগইন</a></li>
			                                     @endif
									@if (auth()->user())
									     @php
											 $data = auth()->user();
										 @endphp	
			<li><a href="{{ route('user.dashboard') }}" >ড্যাশবোর্ড</a></li>
			@endif	
										
                            </ul>
                        </div><!-- .stellarnav -->
                    </div>
                    
                    <div class="col-lg-2 col-md-2">
                        <div id="wrapper">
                            <div class="menuIcon">
                            ‍<span> আরো </span> 
                                <div class="circle icon">
                                        <span class="line top"></span>
                                        <span class="line middle"></span>
                                        <span class="line bottom"></span>
                                    </div>
                            </div>
                        </div>

                        <div class="searchIcon">
                            <i class="las la-search"></i>
                        </div>
                        
                        
                        <form class="searchBar" method="get" action="{{ route('front.news_search') }}">
                            <input type="text" name="search"  placeholder="এখানে লিখুন">
                            <button><input type="submit" value="খুজুন"></button>
                            
                            <div class="remove">
                                <i class="las la-times"></i>
                            </div>

                        </form>

                    </div>         
                    
                    
                </div>

                <div class="row">
                    <div class="col-lg-12 col-md-12">
                        <div class="clickMenu">
                            <div class="menu-two">
                                <div class="menu-item-two">
                                    <ul> 
									@foreach ($categories as $category)
                                                                                <li><a href="{{ route('frontend.category',$category->slug)}}" >{{$category->title}}</a></li>
                                         @endforeach 
            <li><a href="{{ URL::to('/photo') }}" >ফটো গ্যালারী</a></li>
			<li><a href="{{ URL::to('/video') }}" >ভিডিও গ্যালারী</a></li>
			<li><a href="{{ URL::to('/reporter') }}" >প্রতিনিধিগন</a></li>
										     @php
                                    $footer_menus = \App\Models\Page::where('placement','footer')->where('status',1)->get();
                                @endphp
								@foreach ($footer_menus as $menu)
			<li><a href="{{ route('dynamic.page',$menu->slug)}}" >{{ $menu->title }}</a></li>
                      @endforeach          

                                    </ul>
                                </div>
                    
        
                            
                            </div>
                            
                        </div>
                    </div>
                </div>

            </div>
            
        </div>

                    <!--==========ThemesBazar=============
                        Menu-section-End
                    ==============ThemesBazar============-->
					
               <!--============Scroll 03 start==============-->
        
 <div class="top-scroll-section3">  
    <div class="container">
        <div class="scroll-section3">
            <div class="row">
                <div class="col-md-12"> 
                    <div class="scroll3-left">
                    <span> সংবাদ শিরোনাম :  </span>
                    </div>
     
<marquee class="scroll3-right rightCSS " direction="left" scrollamount="5px" onmouseover="this.stop()" onmouseout="this.start()">

                            @if ($is_trendings->count()>0)
@foreach($is_trendings as $is_trending)	
   <a href="{{ route('frontend.postBySubcategory.details',[$is_trending->category->slug,$is_trending->slug])}}"> <i class="lar la-dot-circle"></i> {{$is_trending->title}} </a>
@endforeach
@else
          <a href="#"> <i class="lar la-dot-circle"></i>  এই মুহূর্তে কোন ব্রেকিং নিউজ নেই, দয়া করে নিউজ পোস্ট করুন। </a>                                             
@endif		
						
						
						</marquee>
  
                    




                </div>
            </div>
        </div>              
    </div>
</div>

<!--============Scroll 03 End==============-->        