@extends('layouts.app')
@section('title', $c->name.' | healthcareers.app')
@section('robots', 'noindex, nofollow')
@section('content')
Campaign #{{ $c->id }}
{{ $c->name }}
@include('advertise._state')
← Your campaigns
@include('partials.errors')
@if ($c->status === 'rejected')
Not approved: {{ $c->reject_reason }}@if ($c->reject_note). {{ $c->reject_note }}@endif. The card hold was released; nothing was charged. You can change it and run it again.
@elseif ($c->status === 'expired_hold')
We couldn't review this campaign before the card hold ran out, so the hold was released and nothing was charged. Sorry about that. Use Run again to submit it again.
@elseif ($c->status === 'in_review')
Waiting for review. Your card has a hold for {{ \App\Models\Campaign::money($c->budget_cents) }}; it is charged only when we approve the campaign.
@elseif ($c->check_paused && $c->status === 'approved')
Paused automatically: {{ $c->check_paused }} It starts again by itself once the daily check passes, or edit it to fix the problem.
@endif
{{ number_format($c->impressions) }}
views in all
{{ number_format($c->clicks) }}
clicks in all
{{ $c->ctr() }}
click-through rate
{{ \App\Models\Campaign::money($c->spentCents()) }}
of {{ \App\Models\Campaign::money($c->budget_cents) }} spent
Runs {{ $c->starts_on->format('M j, Y') }} – {{ $c->ends_on->format('M j, Y') }}
Pricing {{ $c->rateLabel() }}{{ $c->estimate() ? ', about '.$c->estimate() : '' }}
Shows on {{ implode(', ', array_map(fn ($k) => \App\Models\Campaign::PLACEMENTS[$k] ?? $k, $c->placements ?? [])) }}
Categories {{ implode(', ', $c->categories ?? []) ?: 'All' }}
Places {{ implode('; ', $c->placeLabels()) ?: 'Everywhere' }}
@if ($c->refunded_cents)Refunded {{ \App\Models\Campaign::money($c->refunded_cents) }} @endif
{{ $c->revision ? 'Running now' : 'Preview' }}
@include('partials.sponsor', ['s' => ['campaign' => $c, 'preview' => true]])
@if ($c->revision)
@php $rev = $c->replicate()->forceFill(\App\Jobs\RunSponsorChecks::creative($c->revision)); @endphp
Your changes (in review)
@include('partials.sponsor', ['s' => ['campaign' => $rev, 'preview' => true]])
@endif
@if ($c->status === 'draft')
Edit
@elseif (in_array($c->status, ['in_review', 'approved'], true))
Edit
@endif
@if ($c->status === 'approved')
@endif
@if (in_array($c->status, ['ended', 'rejected', 'expired_hold', 'approved'], true))
Run again
@endif
@if ($dash)
Performance
@include('dash.advertiser', ['d' => $dash, 'csv' => request()->fullUrlWithQuery(['format' => 'csv'])])
@endif
@endsection