@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $e)
{{ $e }}
@endforeach
@endif {{-- Header --}}
{{ __('Campaigns') }} / {{ __('Drip') }}

{{ __('Drip') }} {{ __('campaigns') }}

{{ __('Timed follow-up sequences. Send a message, wait hours or days, send the next one — and stop the moment the contact replies.') }}

{{ __('New drip campaign') }}
{{-- KPI strip --}}
@foreach ([ ['Campaigns', $stats['total'], __('total created')], ['Running', $stats['running'], __('currently active')], ['In sequence', $stats['active'], __('contacts mid-drip')], ['Completed', $stats['completed'], __('finished the sequence')], ] as [$label, $value, $hint])
{{ __($label) }}
{{ number_format($value) }}
{{ $hint }}
@endforeach
{{-- List --}} @if ($campaigns->isEmpty())
{{ __('No drip campaigns yet') }}

{{ __('A drip is a schedule, not a conversation. Typical shape: confirm immediately, remind after 1 day, follow up after 3 days, check in after a week.') }}

{{ __('Create your first one') }}
@else
@foreach ($campaigns as $c) @php $badge = match ($c->status) { 'active' => 'bg-wa-mint text-wa-deep border-wa-green/40', 'paused' => 'bg-accent-amber/15 text-[#8B5A14] border-accent-amber/40', default => 'bg-paper-100 text-ink-600 border-paper-200', }; @endphp @endforeach
{{ __('Campaign') }} {{ __('Trigger') }} {{ __('Steps') }} {{ __('In sequence') }} {{ __('Done') }} {{ __('Status') }} {{ __('Actions') }}
{{ $c->name }} @if ($c->stop_on_reply)
{{ __('stops on reply') }}
@endif
{{ \App\Models\DripCampaign::TRIGGERS[$c->trigger_type] ?? $c->trigger_type }} @if ($c->trigger_value) · {{ $c->trigger_value }} @endif {{ $c->steps_count }} {{ $c->active_count }} {{ $c->completed_count }} {{ $c->status }}
@csrf
{{ __('Edit') }}
@csrf @method('DELETE')
@endif

{{ __('Pending steps are stored with a due time, so a restart delays a follow-up rather than losing it.') }}