@extends('admin.layout', ['menuKey' => 'ad-campaigns']) @section('title', 'Review campaign') @php $recruitingSuggested = collect($c->checks ?? [])->contains(fn ($ch) => $ch['key'] === 'recruiting' && $ch['status'] === 'warn'); @endphp @section('content')
Ad campaign #{{ $c->id }}

{{ $c->name }}

@include('advertise._state')

← All campaigns
@include('partials.errors') @if ($o = $c->organization)
Organization: {{ $o->display_name }} #{{ $o->id }} · {{ $o->statusLabel() }}@unless ($o->isVerified()). Check the organization before approving this campaign.@endunless
@elseif (! $c->is_house)
No organization linked to this campaign yet.
@endif
In job results
@include('partials.sponsor', ['s' => ['campaign' => $c, 'preview' => true]])
@if (in_array('job', $c->placements ?? [], true) || in_array('blog', $c->placements ?? [], true))
In a sidebar
@include('partials.sponsor', ['s' => ['campaign' => $c, 'preview' => true]])
@endif

Goes to {{ \Illuminate\Support\Str::limit($c->destination_url, 90) }}@if ($c->video_url) · video {{ \Illuminate\Support\Str::limit($c->video_url, 60) }}@endif

Automatic checks

@include('admin.sponsors._checks', ['checks' => $c->checks]) @if ($c->checked_at)

Checked {{ $c->checked_at->diffForHumans() }}.

@endif
@csrf
@if ($rev)

Changes waiting for review

Sent {{ $c->revision_at?->diffForHumans() }}. The version above keeps running until you decide.

@include('partials.sponsor', ['s' => ['campaign' => $rev, 'preview' => true]])
Shows on
{{ implode(', ', array_map(fn ($k) => \App\Models\Campaign::PLACEMENTS[$k] ?? $k, $rev->placements ?? [])) }}
Categories
{{ implode(', ', $rev->categories ?? []) ?: 'All' }}
Places
{{ implode('; ', $rev->placeLabels()) ?: 'Everywhere' }}
Ends
{{ \Carbon\Carbon::parse($c->revision['ends_on'])->format('M j, Y') }}
@include('admin.sponsors._checks', ['checks' => $c->revision['checks'] ?? null])
@csrf
@endif
@include('admin._history', ['type' => 'campaign', 'id' => $c->id]) @endsection