@php $isLocked = in_array($campaign->status, [ 'queued', 'sending', 'completed', ]); @endphp

Edit Campaign

{{-- Page Header --}}

{{ $campaign->name }}

Manage campaign content, delivery and recipient activity.
{{ ucfirst($campaign->status) }}
{{-- Messages --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- Locked Notice --}} @if($isLocked)
Campaign locked.
This campaign has already started sending and can no longer be edited.
@endif {{-- Campaign Information --}} {{-- Statistics --}}
Total Recipients
{{ number_format($stats['total']) }}
Sent
{{ number_format($stats['sent']) }}
Failed
{{ number_format($stats['failed']) }}
Pending
{{ number_format($stats['pending']) }}
{{-- Campaign Editor --}}

Campaign Editor

Sender, subject, recipients, message body and attachments.
@csrf @method('PUT') @include('campaigns._form')
@if(!$isLocked) @endif Back to Campaigns
@if(!$isLocked) @foreach($campaign->attachments as $attachment) @endforeach @endif
{{-- Send Campaign --}}
Send Campaign
This campaign contains {{ number_format($stats['total']) }} recipients.
@if(!in_array($campaign->status, [ 'queued', 'sending', 'completed' ]))
@csrf
@endif @if( $stats['failed'] > 0 && !in_array($campaign->status, [ 'queued', 'sending' ]) )
@csrf
@endif
{{-- Send Test --}}

Send Test Email

Send a copy of this campaign before the full delivery.
@csrf
@error('test_email')
{{ $message }}
@enderror
{{-- Delivery Log --}}

Delivery Logs

Export campaign delivery results as CSV.
{{-- Filters --}}
Reset
{{-- Table --}}
@if(!$isLocked) @endif @forelse( $recipients as $recipient ) @if(!$isLocked) @endif @empty @endforelse
Name Email Status Attempts Sent At ErrorActions
{{ $recipient->name ?: '-' }} {{ $recipient->email }} {{ ucfirst( $recipient->status ) }} {{ $recipient->attempts }} {{ $recipient->sent_at ? $recipient ->sent_at ->format( 'M d, Y g:i A' ) : '-' }} {{ $recipient ->error_message ?: '-' }}
@csrf @method('DELETE')
No recipient log yet.
{{-- Pagination --}}
{{ $recipients->links() }}

Campaign Information

Created By
{{ $campaign->creator?->name ?? '-' }}
Created At
{{ $campaign->created_at?->format('M d, Y g:i A') }}
Last Updated By
{{ $campaign->updater?->name ?? '-' }}
Last Updated
{{ $campaign->last_touched_at ? $campaign->last_touched_at->format('M d, Y g:i A') : $campaign->updated_at->format('M d, Y g:i A') }}
{{-- Activity History --}}

Activity History

Recent activity for this campaign.
@forelse( $activities as $activity )
{{ $activity->user?->name ?? 'System' }}
{{ $activity->description ?: ucfirst( str_replace( '_', ' ', $activity->action ) ) }}
{{ $activity ->created_at ->format( 'M d, Y g:i A' ) }}
@empty
No activity yet.
@endforelse
@push('scripts') @endpush