@extends('admin.layout') @section('title', 'Ads Management') @section('content')

📺 Ads Management

+ Buat Ads Baru
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

💡 Cara Pakai: Buat ads di sini, lalu pilih ads yang mau dipakai di pengaturan Domain.

@if($ads->isEmpty())

Belum ada ads. Buat yang pertama

@else @foreach($ads as $ad) @endforeach
Nama Type Position Status Dipakai Priority Dibuat Aksi
{{ $ad->name }}
{{ $ad->slug }}
{{ $ad->type_label }} {{ $ad->position_label }} @if($ad->is_active) Active @else Inactive @endif @php $domainsCount = $ad->domains()->count(); @endphp @if($domainsCount > 0) {{ $domainsCount }} domain @else - @endif {{ $ad->priority }} {{ $ad->created_at->format('d M Y') }}
{{-- Toggle Status --}}
@csrf
👁 {{-- Duplicate --}}
@csrf
{{-- Edit --}} ✏️ {{-- Delete --}}
@csrf @method('DELETE')
{{ $ads->links() }}
@endif {{-- Info --}}

📖 Jenis Ads yang Tersedia

Popunder: Buka tab baru di belakang
Banner: Gambar/HTML banner
Video Pre-roll: Iklan sebelum video
Video Mid-roll: Iklan tengah video
Video Post-roll: Iklan setelah video
Floating: Iklan mengambang
Interstitial: Iklan full screen
Native: Iklan menyatu dengan konten
Custom: Script iklan custom
Direct Link: Buka link tujuan saat play video ditekan
@endsection