Arrange Ads - {{ ucfirst(str_replace('_', ' ', $position)) }}

Drag and drop ads to reorder them. The order will be automatically saved.

@if($ads->count() > 0)
@foreach($ads as $index => $ad)
@if($index > 0) @else
@endif @if($index < $ads->count() - 1) @else
@endif
@if($ad->image) {{ $ad->title }} @else
@endif

{{ $ad->title }}

{{ ucfirst($ad->ad_type) }} • {{ ucfirst(str_replace('_', ' ', $ad->position)) }}

@if($ad->vendor)

Vendor: {{ $ad->vendor->name }}

@endif
#{{ $ad->priority }} {{ ucfirst($ad->status) }} @if($ad->is_featured) Featured @endif
@if($ad->description)

{{ $ad->description }}

@endif
Start: {{ $ad->start_date->timezone(timezone())->format('M d, Y') }} End: {{ $ad->end_date->timezone(timezone())->format('M d, Y') }} @if($ad->cost_per_click) CPC: ${{ number_format($ad->cost_per_click, 2) }} @endif @if($ad->cost_per_impression) CPM: ${{ number_format($ad->cost_per_impression, 2) }} @endif
@endforeach
@else

No ads found

No active ads found for {{ str_replace('_', ' ', $position) }} position.

@endif