<div class="container advNoPrint" style="margin-top:30px; margin-bottom:0px;margin-left:-7px;">
        
    @for($count=1; $count<=4; $count++)
            @php
            $array_count = sizeof($advs[$position . " 234x60 " . $count]);    
            @endphp
            @if($array_count > 0)
                <div class="advertisement col-sm-3 mobile_adv {{$array_count > 1 ? 'carousel slide' : ''}}" {{$array_count > 1 ? 'data-ride="carousel"' : ''}} style="padding-left:0px; padding-right:0px; margin-left:5px; margin-right:5px;width:24%;margin-top:20px;">
                    <div class="desktop-advert carousel-inner">
                        @foreach($advs[$position . " 234x60 " . $count] as $idx => $adv)
                            <div class="item {{$idx == 0 ? 'active' : ''}}">
                                @if($adv->google_code != '')                                    
                                    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle"
                                            style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-format="auto"
								            data-full-width-responsive="true"
                                            data-ad-slot="{{$adv->google_code}}"></ins>
                                        <script>
                                        (adsbygoogle = window.adsbygoogle || []).push({});
                                    </script>
                                @else
                                    @if($adv->image != '')
                                        @if($adv->url != '')
                                            <a href="{{$adv->url}}" target="_blank"><img src="/files/adv/{{$adv->image}}" alt="" style="border:1px solid gray;"></a>
                                        @else
                                            @if($adv->jingle != '')
                                                <audio controls autoplay>
                                                    <source src="{{$adv->jingle}}" type="audio/mpeg">
                                                </audio>
                                            @else
                                                <img src="/files/adv/{{$adv->image}}" alt="" style="border:1px solid gray;">
                                            @endif
                                        @endif
                                    @else
                                        <div class="widget" style="margin-top:30px;width:234px;height:60px;border:1px solid gray;">
                                    @endif
                                @endif
                            </div>
                        @endforeach
                    </div>
                    <div class="tablet-advert carousel-inner">
                        @foreach($advs[$position . " 234x60 " . $count] as $idx => $adv)
                            <div class="item {{$idx == 0 ? 'active' : ''}}">
                                @if($adv->google_code != '')                                    
                                    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle"
                                            style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-format="auto"
								            data-full-width-responsive="true"
                                            data-ad-slot="{{$adv->google_code}}"></ins>
                                        <script>
                                        (adsbygoogle = window.adsbygoogle || []).push({});
                                    </script>
                                @else
                                    @if($adv->image != '')
                                        @if($adv->url != '')
                                            <a href="{{$adv->url}}" target="_blank"><img src="/files/adv/{{$adv->image}}" alt="" style="border:1px solid gray;"></a>
                                        @else
                                            @if($adv->jingle != '')
                                                <audio controls autoplay>
                                                    <source src="{{$adv->jingle}}" type="audio/mpeg">
                                                </audio>
                                            @else
                                                <img src="/files/adv/{{$adv->image}}" alt="" style="border:1px solid gray;">
                                            @endif
                                        @endif
                                    @else
                                        <div class="widget" style="margin-top:30px;width:234px;height:60px;border:1px solid gray;">
                                    @endif
                                @endif
                            </div>
                        @endforeach
                    </div>
                    <div class="mobile-advert carousel-inner">
                        @foreach($advs[$position . " 234x60 " . $count] as $idx => $adv)
                            <div class="item {{$idx == 0 ? 'active' : ''}}">
                                @if($adv->google_code != '')                                    
                                    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle"
                                            style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-format="auto"
								            data-full-width-responsive="true"
                                            data-ad-slot="{{$adv->google_code}}"></ins>
                                        <script>
                                        (adsbygoogle = window.adsbygoogle || []).push({});
                                    </script>
                                @else
                                    @if($adv->image != '')
                                        @if($adv->url != '')
                                            <a href="{{$adv->url}}" target="_blank"><img src="/files/adv/{{$adv->image}}" alt="" style="border:1px solid gray;display:block;margin:auto;"></a>
                                        @else
                                            @if($adv->jingle != '')
                                                <audio controls autoplay>
                                                    <source src="{{$adv->jingle}}" type="audio/mpeg">
                                                </audio>
                                            @else
                                                <img src="/files/adv/{{$adv->image}}" alt="" style="border:1px solid gray;display:block;margin:auto;">
                                            @endif
                                        @endif
                                    @else
                                        <div class="widget" style="margin-top:30px;width:234px;height:60px;border:1px solid gray;display:block;margin:auto;">
                                    @endif
                                @endif
                            </div>
                        @endforeach
                    </div>
                </div>
            @else
                <div class="col-sm-3"></div>
            @endif
            
    @endfor
    
</div>