<?php $__env->startSection('heading','Website Ads'); ?>
<?php $__env->startSection('content'); ?>
<div class="panel ad-guide">
    <h2>Banner & Direct-Link Ads</h2>
    <p class="hint">Banner slots accept authorized HTML/JS. The <b>Player Sponsored Action</b> direct URL controls the player click, Watch Now action, and every 480p/720p/1080p/2K/4K download button on movie pages.</p>
</div>
<div class="two-col ads-layout">
<form class="panel form-grid" method="post" action="<?php echo e(route('admin.ads.store')); ?>"><?php echo csrf_field(); ?>
<h2>Add Advertisement</h2>
<label>Name<input name="name" required placeholder="Player sponsor link"></label>
<label>Placement<select name="slot" required>
<option value="home_top">Home Top</option><option value="home_bottom">Home Bottom</option><option value="list_top">List Top</option><option value="list_bottom">List Bottom</option><option value="details_top">Details Top</option><option value="details_bottom">Details Bottom</option><option value="player_sponsor">Player Sponsored Action + Download Buttons</option><option value="global_script">Global Script (all pages)</option>
</select></label>
<label>Type<select name="type"><option value="banner">Banner HTML / JS</option><option value="direct">Direct sponsored link</option><option value="script">Global script</option></select></label>
<label>Direct URL<input name="target_url" type="url" placeholder="https://advertiser.example/..."></label>
<label class="full">Banner HTML or JavaScript<textarea name="content" rows="8" placeholder="Paste authorized ad code here"></textarea></label>
<label><input type="checkbox" name="is_active" value="1" checked> Active</label><button class="primary">Save Advertisement</button>
</form>
<div class="panel"><h2>Saved Ads</h2><?php $__empty_1 = true; $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $x): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><article class="list-row"><div><b><?php echo e($x->name); ?></b><small><?php echo e($x->slot); ?> · <?php echo e($x->type); ?></small></div><div class="actions"><form method="post" action="<?php echo e(route('admin.ads.toggle',$x)); ?>"><?php echo csrf_field(); ?><button><?php echo e($x->is_active?'ON':'OFF'); ?></button></form><form method="post" action="<?php echo e(route('admin.ads.destroy',$x)); ?>"><?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?><button class="danger">Delete</button></form></div></article><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><p class="hint">No advertisements added yet.</p><?php endif; ?></div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/megashopltd/moviedocks.com/resources/views/admin/ads.blade.php ENDPATH**/ ?>