@extends('layouts.user_type.auth') @section('pageTitle', 'Marketing') @section('pageSub', 'Cold-email campaigns, replies and follow-ups — from lab lead to customer.') @section('pageActions') Labs New campaign @endsection @section('home') @include('pages_admin.marketing._nav') @include('components.alert') @php $stageTones = ['new' => 'info', 'contacted' => 'warning', 'interested' => 'success', 'demo_done' => 'primary', 'pilot' => 'violet', 'customer' => 'success']; $stages = ['new', 'contacted', 'interested', 'demo_done', 'pilot', 'customer']; $pct = fn ($a, $b) => $b > 0 ? round($a * 100 / $b) : null; $maxBar = max(1, $chart->max('n')); @endphp @foreach ($warnings as [$tone, $text])
{{ $text }}
| Campaign | Progress | Sent | Opened | Replies |
|---|---|---|---|---|
|
{{ $c->name }}
{{ ucfirst($c->status) }}
|
{{ $s['enrolled'] }} labs · {{ $s['active'] }} in progress
|
{{ $s['sent'] }} | {{ $s['open_rate'] !== null ? $s['open_rate'] . '%' : '—' }} | {{ $s['replied'] }} |