<div class="row">
    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
        <div class="heading">
            <h4 class="h1 heading-title">Latest From the {{ config('site.config._sitename') }}!</h4>
            <a href="{{localized_route('content.list', ['type' => 'blog'])}}" class="read-more">Read Our Blog
                <i class="seoicon-right-arrow"></i>
            </a>
            <div class="heading-line">
                <span class="short-line"></span>
                <span class="long-line"></span>
            </div>
        </div>
    </div>
</div>
<div class="theme-module news-slider-module">
    <div class="swiper-container top-pagination" data-show-items="3" data-scroll-items="3">
        <!-- If we need pagination -->
        <div class="swiper-pagination"></div>
        <div class="swiper-wrapper">
            @php
                $indCnt = 0;
            @endphp

            @foreach($BlogList as $key=>$blog)      
                @if($indCnt<9)
                    <div class="swiper-slide">
                        <article class="hentry post">
                            @if($blog->is_content_modified)
                                <time class="post__date published " datetime="{{$blog->modified_dt}}">
                                   {{$blog->modified_dt}}
                                </time>
                            @else
                                <time class="post__date published " datetime="{{$blog->created_dt}}">
                                    {{$blog->created_dt}}
                                </time>
                            @endif
                            <div class="post__content">
                                <h2 class="post__title entry-title">
                                     <a href="{{localized_route('content.detail', ['locale' => app()->getLocale(), 'type'=>'blog', 'contentTitle'=> $blog->{"content_url_".App::getLocale()}, 'contentID' => $blog->contentID]) }}">
                                        {{ $blog->{"content_title_".App::getLocale()} }}
                                     </a>
                                </h2>
                                <p class="post__text">
                                    <a href="{{localized_route('content.detail', ['locale' => app()->getLocale(), 'type'=>'blog', 'contentTitle'=> $blog->{"content_url_".App::getLocale()}, 'contentID' => $blog->contentID]) }}">
                                        {{ $blog->{"content_subtitle_".App::getLocale()} }}
                                    </a>
                                </p>
                            </div>
                            <div class="post__author author vcard">
                                <div class="post-avatar">
                                    <img src="./seosight/img/post-author1.png" alt="author">
                                </div>
                                <span class="post__author-name fn">
                                    Posted by 
                                    @if($blog->is_content_modified)
                                        <a href="#" class="post__author-link">{{ $blog->modified_by_username }}</a>
                                    @else
                                        <a href="#" class="post__author-link">{{ $blog->created_by_username }}</a>
                                    @endif
                                </span>
                            </div>
                        </article>
                    </div>
                @endif
                @php
                    $indCnt++;
                @endphp
            @endforeach
        </div>
    </div>
</div>
