@extends('layouts.app', ['title' => 'Broadcasts']) @section('content') @php($canManage = auth()->user()->can('automations.manage'))

Broadcasts & email campaigns

Send an approved WhatsApp template or an email to many contacts at once. Contacts on do-not-disturb or who unsubscribed are skipped.

{{ number_format($optedIn) }} opted in on WhatsApp
{{ number_format($emailable) }} reachable by email
@if ($canManage)
New broadcast
@if ($templates->isEmpty())

Add or sync an approved template first under WhatsApp templates.

@else
@csrf
You can use merge fields like @{{first_name}} in the values.
@endif
New email campaign
@csrf
Merge fields: @{{first_name}}, @{{full_name}}, @{{business}}. Every email gets an unsubscribe link.
@endif
@if ($broadcasts->isEmpty())
No broadcasts yet.
@else
@foreach ($broadcasts as $b) @endforeach
BroadcastAudienceStatusSentSkippedFailed
{{ $b->name }}
{{ $b->channel === 'email' ? $b->subject : ($b->template?->name ?? 'Template deleted') }}
{{ $b->tag ? 'Tag: '.$b->tag->name : ($b->channel === 'email' ? 'Everyone with email' : 'All opted-in') }}{{ $b->status_filter ? ' · '.ucfirst($b->status_filter).'s' : '' }} {{ $b->status === 'draft' ? 'cancelled' : $b->status }}
{{ ($b->sent_at ?? $b->scheduled_at)?->timezone($currentAccount->timezone)->format('d M, h:i A') }}
{{ number_format($b->sent_count) }} {{ number_format($b->skipped_count) }} {{ number_format($b->failed_count) }} @if ($canManage && $b->status === 'scheduled')
@csrf
@endif
{{ $broadcasts->links() }}
@endif
@endsection @push('scripts') @endpush