@extends('backend.layouts.backend') @section('styles') @endsection @section( 'main_body')

General

Please name your ad slots before you fill in these sections

@csrf

Enter the name of the ad slots for the home page

Enter the name of the ad slots for the category pages

Enter the name of the ad slots for the category inner pages

Enter the name of the ad slots for default ads


Homepage ads

{{-- This information will be displayed publicy so be careful what you share. --}}

@csrf
@php $homepage_ads = explode(",", get_option('ak_homepage_ads')); @endphp @forelse ($homepage_ads as $ad) @php $ad_key = "ak_homepage_".str_replace(" ", "_", strtolower($ad)); @endphp
@empty @endforelse

Default Ads

Use Google Adsense codes here

@csrf
@php $default_ads = explode(",", get_option('ak_default_ads')); @endphp @foreach ($default_ads as $item) @php $ad_key = "ak_default_".str_replace(" ", "_", strtolower($item)); @endphp
@endforeach
@if ($categories) @foreach ($categories as $category) @php $header_key = $category->slug; @endphp

{{ $category->name." Ads" }}

{{-- This information will be displayed publicy so be careful what you share. --}}

@csrf
Category landing page
@php $category_ads = explode(",", get_option('ak_category_ads')); @endphp @foreach ($category_ads as $item) @php $ad_key = "ak_".$header_key."_".str_replace(" ", "_", strtolower($item)); @endphp
@endforeach
Category inner page @php $ad_key = $header_key."_single"; @endphp
@php $category_inner_ads = explode(",", get_option('ak_inner_page_ads')); @endphp @foreach ($category_inner_ads as $item) @php $ad_key = "ak_".$header_key."_single_".str_replace(" ", "_", strtolower($item)); @endphp
@endforeach

@endforeach @endif
@endsection @section('scripts') @endsection