@php
    $middleAd = get_ads('movie_details_middle', '728x90', 'object');
@endphp
@if ($middleAd)
    <div class="ads__area my-5">
        @if ($middleAd->type == 'google')
            <div class="ads__google">{!! $middleAd->google_ads_code !!}</div>
        @elseif ($middleAd->type == 'mp4')
            <video class="ads__video" width="100%" height="100" autoplay loop muted>
                <source src="{{ $middleAd->video_link }}" type="video/mp4">
            </video>
        @elseif ($middleAd->type == 'local')
            <a href="{{ $middleAd->url ?? '#' }}" class="ads__mid">
                <img src="{{ $middleAd->image_url }}" alt="ads" />
            </a>
        @endif
    </div>
@endif
