@extends("admin.layouts.admin") @section("title","Edit Category") @section("content")

Advertisement Page Position

@if(!isset($ads))
@else @endif
@error("code") {{ $message }} @enderror
@error("cdn") {{ $message }} @enderror
@if(isset($ads)) Cancel @endif

List

@forelse($pagePositions as $key => $info) @forelse($info as $data) @php $adv = advertisement_single($data->id) @endphp @empty @endforelse @empty @endforelse
Serial Page Position name Page Name Advertisement Status Code Available Action

{{$info[0]->page->name}}

{{$loop->iteration}} {{$data->name}} ({{$data->id}}) {{$data->page->name}} @if($adv != null) @if($adv->status == 1) @else @endif @endif @if($adv != null) @if($adv->code != null) Yes @else No @endif @endif Edit {{--modal content--}} {!! isset($ads->code) ? $ads->code : '' !!}
@endsection