@unless(request()->is('admin') || request()->is('admin/*'))
@php
    $ads = \App\Ad::getByPlacement($placement ?? 'header_top');
@endphp
@if($ads->count() > 0)
<div class="ad-container ad-{{ $placement ?? 'header_top' }}" style="text-align: center; margin: 10px auto; max-width: 100%; overflow: hidden;">
    @foreach($ads as $ad)
        <div class="ad-unit" data-ad-id="{{ $ad->id }}">
            {!! $ad->code !!}
        </div>
    @endforeach
</div>
@endif
@endunless
