@if ($canSetOwner) {{ __('Enquiry owner') }} @endif @if ($canCreate) {{ __('New campaign') }} @endif
@foreach ($metrics as $m)

{{ $m['label'] }}

{{ $m['value'] }}

{{ $m['sub'] }}
@endforeach

{{ __('Enquiries from the public request form go to :name.', ['name' => $enquiryOwner?->name ?? __(':owner, the team owner, until someone is chosen', ['owner' => $teamOwnerName ?? __('the team owner')])]) }}

@php $tabMeta = [ 'running' => ['label' => __('Running'), 'icon' => 'megaphone'], 'draft' => ['label' => __('Drafts'), 'icon' => 'pencil-square'], 'closed' => ['label' => __('Closed'), 'icon' => 'archive-box'], 'all' => ['label' => __('All'), 'icon' => 'queue-list'], ]; $statusColors = ['draft' => 'slate', 'scheduled' => 'sky', 'active' => 'emerald', 'completed' => 'indigo', 'cancelled' => 'rose']; @endphp
@foreach ($tabMeta as $key => $meta) @endforeach

{{ __('Campaigns') }}

{{ __('Enquiries count every arrival through the tracked link or QR code') }}

@forelse ($campaigns as $campaign) @php $gaps = $missing($campaign); @endphp @empty @endforelse
{{ __('Campaign') }} {{ __('Run by') }} {{ __('Dates') }} {{ __('Brief') }} {{ __('Enquiries') }} {{ __('Open') }} {{ __('Status') }}
{{ $campaign->name }}

{{ $campaign->code }}

{{ $campaign->owner?->name ?? __('Not available') }} @if ($campaign->starts_on) {{ $campaign->starts_on->format('j M Y') }}@if ($campaign->ends_on) – {{ $campaign->ends_on->format('j M Y') }}@endif @else {{ __('Not set') }} @endif @if ($gaps === []) {{ __('Complete') }} @else {{ trans_choice(':count part missing|:count parts missing', count($gaps), ['count' => count($gaps)]) }} @endif {{ number_format($campaign->enquiries_count) }} {{ number_format($campaign->open_count) }} {{ __(\App\Models\Crm\Campaign::STATUSES[$campaign->status] ?? $campaign->status) }}
@if (trim($search) !== '') @elseif ($tab === 'running') @else @endif
@if ($campaigns->hasPages())
{{ $campaigns->links() }}
@endif
@if ($canCreate) {{ __('New campaign') }} @include('livewire.crm.campaigns.partials.form') {{ __('Cancel') }} {{ __('Save draft') }} {{ __('Saving…') }} @endif @if ($canSetOwner) {{ __('Who owns web enquiries') }}

{{ __('Every enquiry from the public request form opens an opportunity owned by this person, normally the Marketing Officer. With nobody chosen, enquiries go to the team owner.') }}

{{ __('Cancel') }} {{ __('Save') }} {{ __('Saving…') }}
@endif