<div>
    @if ($show_ads)
        <div class="max-w-sm mx-auto bg-white w-full flex items-center flex-col text-center shadow-lg border-b border-gray-200 design-text-secondary lg:rounded-xl lg:overflow-hidden lg:my-3"
            data-aos="zoom-in-up" data-aos-duration="1000">
            <a href="{{ $advertisment->link }}" target="_blank" wire:click="countClick">
                <img src="{{ url('/storage/' . $advertisment->image) }}" alt="{{ $advertisment->title }}"
                    class="w-full object-cover object-center">
                @if (isset($advertisment->content))
                    <p class="p-2 text-sm">{{ $advertisment->content }}</p>
                @endif
            </a>
        </div>
    @endif
</div>
