{{ __('Admin') }} {{ __('Email campaigns') }}
{{ __('Admin · Marketing') }}

{{ __('Email') }} {{ __('campaigns') }}.

{{ __('Send an email to your registered users through your configured SMTP. Use it to announce pricing, terms, policy or feature changes.') }}

{{ __('New campaign') }}
@unless ($mailConfigured)
{{ __('SMTP is not configured — emails will not be delivered.') }} {{ __('Set it up in Settings → Mail') }}.
@endunless
@foreach ([ ['label' => __('Campaigns'), 'value' => $stats['total']], ['label' => __('Sent'), 'value' => $stats['sent']], ['label' => __('In progress'), 'value' => $stats['sending']], ['label' => __('Opted out'), 'value' => $stats['opted_out']], ] as $card)
{{ $card['label'] }}
{{ number_format($card['value']) }}
@endforeach
{{-- Automated plan-expiry reminder emails (sent to each workspace owner when their paid plan is about to expire). --}}
{{ __('Automated') }}

{{ __('Plan expiry reminders') }}

{{ __('Emails the workspace owner a renew reminder as their paid plan nears expiry. Sent through the same SMTP.') }}

@csrf

{{ __('Comma-separated days (1–60). One email per day listed.') }}

{{ __('Time of day the batch goes out.') }}

{{ __('Tokens:') }} @{{name}} @{{plan}} @{{days_left}} @{{expiry_date}} @{{app}}. {{ __('A "Renew / Subscribe" button is added automatically.') }}

{{ __('Goes out once a day at the time above (needs app activity around then). For an exact-clock guarantee, cron') }} php artisan plans:remind-expiry.

@forelse ($campaigns as $c) @empty @endforelse
{{ __('Subject') }} {{ __('Audience') }} {{ __('Status') }} {{ __('Sent / Total') }} {{ __('Created') }}
{{ $c->subject }} @if ($c->template_key) · {{ $c->template_key }} @endif {{ ucfirst($c->segment) }} @php $tone = ['sent' => 'bg-wa-mint text-wa-deep', 'sending' => 'bg-accent-amber/15 text-[#7B5A14]', 'queued' => 'bg-accent-amber/15 text-[#7B5A14]', 'failed' => 'bg-accent-coral/15 text-accent-coral'][$c->status] ?? 'bg-paper-100 text-ink-600'; @endphp {{ ucfirst($c->status) }} {{ number_format($c->sent_count) }} / {{ number_format($c->total_recipients) }}@if ($c->failed_count) ({{ $c->failed_count }} {{ __('failed') }})@endif {{ $c->created_at?->diffForHumans() }} {{ __('View') }}
{{ __('No campaigns yet. Create your first one.') }}
{{ $campaigns->links() }}