@extends('layouts.user_type.auth') @section('pageTitle', $campaign->exists ? 'Edit campaign' : 'New campaign') @section('pageSub', 'Pick who gets it, write 3–4 short personal emails, and let it send slowly. Replies stop the sequence for that lab.') @section('pageActions') Back @endsection @section('home') @include('pages_admin.marketing._nav') @include('components.alert') @php $seg = $campaign->segment ?? []; $sel = fn ($key) => collect(old("segment.$key", $seg[$key] ?? []))->map(fn ($v) => (string) $v)->all(); $steps = old('steps', $steps); $typeLabel = fn ($t) => str_replace(['Calibration_and_testing', '_'], ['Calibration & testing', ' '], $t); @endphp