<div class="container">
        
    @for($count=1; $count<=4; $count++)
        <div class="col-sm-3 carousel slide" data-ride="carousel">
            <div class="desktop-advert carousel-inner">
                @foreach($advs[$position . " 234x60 " . $count] as $idx => $adv)
                    <div class="carousel-item {{$idx == 0 ? 'active' : ''}}" style="display:{{$idx == 0 ? 'block' : 'none'}}">
                        @if($adv->google_code != '')
                            <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                <ins class="adsbygoogle"
                                    style="display:inline-block;width:234px;height:40px"
                                    data-ad-client="ca-pub-0209495346002620"
                                    data-ad-slot="{{$adv->google_code}}"></ins>
                                <script>
                                (adsbygoogle = window.adsbygoogle || []).push({});
                            </script>
                        @else
                            <img src="/files/adv/{{$adv->image}}" alt="">
                        @endif
                    </div>
                @endforeach
            </div>
        </div>
    @endfor
    
</div>