@extends('layouts.user_type.auth') @section('pageEyebrow') Campaigns @endsection @section('pageTitle', $campaign->name) @section('pageSub', $campaign->description ?: 'From ' . $campaign->from_name . ' <' . $campaign->from_email . '> · ' . $campaign->daily_limit . ' a day, ' . $campaign->send_start . '–' . $campaign->send_end . ' IST' . ($campaign->weekdays_only ? ', Mon–Fri' : '')) @section('pageActions') @if ($campaign->status !== 'archived') Edit @endif @if (in_array($campaign->status, ['draft', 'paused'], true))
@elseif ($campaign->status === 'active') @endifThis is a draft — nothing is sent. Send yourself a test of each email, then press Start sending.
{{ $newMatches }} more labs now match this audience (new imports or edits).
| # | When | Sent | Opened | Clicked | Bounced | |
|---|---|---|---|---|---|---|
| {{ $step->step_no }} |
{{ $step->subject }}
{{ \Illuminate\Support\Str::limit(preg_replace('/\s+/', ' ', $step->body), 110) }}
|
{{ $step->step_no === 1 ? 'Day 1' : 'Day ' . ($day + 1) }} | {{ $sent }} | {{ (int) ($s->opened ?? 0) }}@if ($sent) · {{ $pct($s->opened, $sent) }}%@endif | {{ (int) ($s->clicked ?? 0) }} | {{ (int) ($s->bounced ?? 0) }}@if (($s->failed ?? 0) > 0) · {{ $s->failed }} failed@endif |
| Laboratory | Stage | Sequence | Next email | |
|---|---|---|---|---|
|
{{ $lab->laboratory_name }}
{{ $lab->contact_email }} · {{ $lab->city ?: $lab->state }}
|
@include('pages_admin.marketing._stage', ['status' => $lab->status]) | @if ($en->status === 'active') Email {{ $en->current_step }} of {{ $campaign->steps->count() }} @elseif ($en->status === 'completed') All {{ $campaign->steps->count() }} sent @else {{ ucfirst($en->stop_reason ?: 'stopped') }} @endif | @if ($en->status === 'active' && $en->next_send_at) {{ $en->next_send_at->isPast() ? 'next window' : $en->next_send_at->diffForHumans() }} @elseif ($en->last_sent_at) last {{ $en->last_sent_at->diffForHumans() }} @else — @endif | @include('pages_admin.marketing._lab-actions', ['lab' => $lab]) |
|
{{ $campaign->status === 'draft' ? 'Labs are enrolled when you start the campaign' : 'No labs here' }}
| ||||