<section class="block-wrapper" id="{{$data->slug}}" style="margin-top:25px; min-height:900px !important;">
    <div class="container">
        <div class="row">
            <div class="col-sm-8">

                
                <div class="block-content">
                    <div class="title-section">
                        <h1><span>{{$data->name}}</span></h1>
                    </div>
        
                    <div class="row" style="margin-top: 2em;">
                        @if(is_object($data->big))
                            <div class="col-sm-12">
                                @if(false)
                                    <span class="top-stories">{{$data->name}}</span>
                                @endif
                                @if($data->big->live)
                                    <span class="top-live">LIVE</span>
                                @endif
                                <div class="news-post image-post">
                                    <a href="{{$data->big->slug}}"><img class="lazy" data-src="/files/news/{{$data->big->image}}" alt=""></a>
                                    <div class="box-title">
                                        <div class="inner-hover">
                                            <h2><a href="{{$data->big->slug}}">{{$data->big->getCurrentTitle($data->id)}}</a></h2>
                                            <ul class="post-tags">
                                                <li><i class="fa fa-clock-o"></i><span>{{date("d/m/Y", strtotime($data->big->date))}}</span></li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>	
                            </div>
                        @endif

                        <div class="col-sm-12" style="margin-top: 2em;">
                            <div class="row">

                                @if(is_object($data->small1))
                                    <div class="col-sm-6">
                                        <div class="col-sm-6" style="padding-left: 0px;">
                                            <div class="news-post image-post2">
                                                <a href="{{$data->small1->slug}}"><img data-src="/files/news/{{$data->small1->image}}" alt="" class="img-responsive lazy"></a>
                                            </div>
                                        </div>
                                        <div class="col-sm-6">
                                            <div class="post-content">
                                                <h2><a href="/{{$data->small1->slug}}">{{$data->small1->getCurrentTitle($data->id)}}</a></h2>
                                                    <ul class="post-tags">
                                                        <li><i class="fa fa-clock-o"></i>{{date("d/m/Y", strtotime($data->small1->date))}}</li>
                                                    </ul>
                                            </div>		
                                        </div>
                                    </div>
                                @endif

                                @if(is_object($data->small2))
                                    <div class="col-sm-6">
                                        <div class="col-sm-6" style="padding-left: 0px;">
                                            <div class="news-post image-post2">
                                                <a href="{{$data->small2->slug}}"><img data-src="/files/news/{{$data->small2->image}}" alt="" class="img-responsive lazy"></a>
                                            </div>
                                        </div>
                                        <div class="col-sm-6">
                                            <div class="post-content">
                                                <h2><a href="/{{$data->small2->slug}}">{{$data->small2->getCurrentTitle($data->id)}}</a></h2>
                                                    <ul class="post-tags">
                                                        <li><i class="fa fa-clock-o"></i>{{date("d/m/Y", strtotime($data->small2->date))}}</li>
                                                    </ul>
                                            </div>		
                                        </div>
                                    </div>
                                @endif
                            
                            </div>

                            <div class="row" style="margin-top: 1em;">

                                @if(is_object($data->small3))
                                    <div class="col-sm-6">
                                        <div class="col-sm-6" style="padding-left: 0px;">
                                            <div class="news-post image-post2">
                                                <a href="{{$data->small3->slug}}"><img  data-src="/files/news/{{$data->small3->image}}" alt="" class="img-responsive lazy"></a>
                                            </div>
                                        </div>
                                        <div class="col-sm-6">
                                            <div class="post-content">
                                                <h2><a href="/{{$data->small3->slug}}">{{$data->small3->getCurrentTitle($data->id)}}</a></h2>
                                                    <ul class="post-tags">
                                                        <li><i class="fa fa-clock-o"></i>{{date("d/m/Y", strtotime($data->small3->date))}}</li>
                                                    </ul>
                                            </div>		
                                        </div>
                                    </div>
                                @endif


                                @if(is_object($data->small4))
                                    <div class="col-sm-6">
                                        <div class="col-sm-6" style="padding-left: 0px;">
                                            <div class="news-post image-post2">
                                                <a href="{{$data->small4->slug}}"><img data-src="/files/news/{{$data->small4->image}}" alt="" class="img-responsive lazy"></a>
                                            </div>
                                        </div>
                                        <div class="col-sm-6">
                                            <div class="post-content">
                                                <h2><a href="/{{$data->small4->slug}}">{{$data->small4->getCurrentTitle($data->id)}}</a></h2>
                                                    <ul class="post-tags">
                                                        <li><i class="fa fa-clock-o"></i>{{date("d/m/Y", strtotime($data->small4->date))}}</li>
                                                    </ul>
                                            </div>		
                                        </div>
                                    </div>
                                @endif
                                
                            </div>

                            <div class="row" style="margin-top: 1em;">

                                @if(is_object($data->small5))
                                    <div class="col-sm-6">
                                        <div class="col-sm-6" style="padding-left: 0px;">
                                            <div class="news-post image-post2">
                                                <a href="{{$data->small5->slug}}"><img data-src="/files/news/{{$data->small5->image}}" alt="" class="img-responsive lazy"></a>
                                            </div>
                                        </div>
                                        <div class="col-sm-6">
                                            <div class="post-content">
                                                <h2><a href="/{{$data->small5->slug}}">{{$data->small5->getCurrentTitle($data->id)}}</a></h2>
                                                    <ul class="post-tags">
                                                        <li><i class="fa fa-clock-o"></i>{{date("d/m/Y", strtotime($data->small5->date))}}</li>
                                                    </ul>
                                            </div>		
                                        </div>
                                    </div>
                                @endif

                                @if(is_object($data->small6))
                                    <div class="col-sm-6">
                                        <div class="col-sm-6" style="padding-left: 0px;">
                                            <div class="news-post image-post2">
                                                <a href="{{$data->small6->slug}}"><img  data-src="/files/news/{{$data->small6->image}}" alt="" class="img-responsive lazy"></a>
                                            </div>
                                        </div>
                                        <div class="col-sm-6">
                                            <div class="post-content">
                                                <h2><a href="/{{$data->small6->slug}}">{{$data->small6->getCurrentTitle($data->id)}}</a></h2>
                                                    <ul class="post-tags">
                                                        <li><i class="fa fa-clock-o"></i>{{date("d/m/Y", strtotime($data->small6->date))}}</li>
                                                    </ul>
                                            </div>		
                                        </div>
                                    </div>
                                @endif
                                
                            </div>

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

            <div class="col-sm-4 sidebar">

                <div class="center-button">
                    <a href="/{{$data->slug}}">ARCHIVIO {{$data->name}}</a>
                </div>

                @if($data->show_social || $data->show_social_twitter)

                    @if($data->show_social)
                        <div class="widget social-widget">

                            <div id="fb-root"></div>
                            <script async defer crossorigin="anonymous" src="https://connect.facebook.net/it_IT/sdk.js#xfbml=1&version=v6.0"></script>
                            <div class="fb-page" data-href="https://it-it.facebook.com/calcioa5anteprima" data-tabs="timeline" data-width="330" data-height="100%" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="https://it-it.facebook.com/calcioa5anteprima" class="fb-xfbml-parse-ignore"><a href="https://it-it.facebook.com/calcioa5anteprima">Calcio a 5 Anteprima</a></blockquote></div>    

                        </div>
                    @endif
                    @if($data->show_social_twitter)
                    <a class="twitter-timeline" href="https://twitter.com/ca5anteprima?ref_src=twsrc%5Etfw" data-width="330" data-height="300">Tweets by Calcio a 5 anteprima</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
                    @endif
    
                @else

                    @if($data->slug == 'san-marino')
                        @include('partials.section_adv', ['keys' => array('300x250 Sopra'), 'advs' => $advs])
                    @else
                        @include('partials.section_adv', ['keys' => array('300x250 Sopra', '300x250 Centro', '300x250 Sotto', '300x250 Quarto'), 'advs' => $advs])
                    @endif

                @endif

                @if($data->slug == 'san-marino')

                    <div class="slider-caption-box">
                        <div class="title-section">
                            <h1><span style="font-size:21px;">Video</span></h1>
                        </div>
                        
                        <div class="slide-video">
                            <ul id="lightSlider">
                                @foreach($videos as $idx => $video)
                                    <li data-thumb="/files/videos/{{$video->image}}">
                                        <a href="{{$video->id}}" class="view-video">
                                            <img src="/files/videos/{{$video->image}}" style="width:320px;height:200px;" />
                                            <div class="caption">
                                                <p>{{$video->title}}</p>
                                                <p><small>{{date("d/m/Y", strtotime($video->date))}}</small></p>
                                            </div>
                                        </a>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                    <div class="center-button" style="margin-top:20px;">
                        <a href="/videos">ARCHIVIO VIDEO</a>
                    </div>
                
                @endif
                
            </div>
        </div>
    </div>
</section>
                
