<?php $__currentLoopData = ($ads[$slot] ?? []); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ad): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <?php
        $hasBannerContent = $ad->type === 'banner' && filled(trim((string) $ad->content));
        $hasDirectLink = $ad->type !== 'banner' && filled($ad->target_url);
    ?>

    <?php if($hasBannerContent || $hasDirectLink): ?>
        <div class="ad-slot">
            <span>Advertisement</span>
            <?php if($hasBannerContent): ?>
                <?php echo $ad->content; ?>

            <?php elseif($hasDirectLink): ?>
                <a class="sponsor-link" href="<?php echo e($ad->target_url); ?>" target="_blank" rel="sponsored nofollow noopener">Visit sponsor</a>
            <?php endif; ?>
        </div>
    <?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php /**PATH /home/megashopltd/moviedocks.com/resources/views/front/partials/ad.blade.php ENDPATH**/ ?>