@php $isLocked = isset($campaign) && in_array( $campaign->status, ['queued', 'sending', 'completed'] ); @endphp
{{-- Campaign Name --}}
@error('name')

{{ $message }}

@enderror
{{-- Sender --}}
@error('sender_id')
{{ $message }}
@enderror
{{-- Template --}}
@error('template_id')

{{ $message }}

@enderror
{{-- Subject - Full Width --}}
@error('subject')

{{ $message }}

@enderror
@if(!isset($campaign))
Download Sample CSV

Required column: email. Optional column: name.

Example: John Smith, john@example.com

@error('recipients_csv')

{{ $message }}

@enderror

One email per line, or separate addresses with commas or semicolons. Name is optional. Examples: john@example.com or Jane Smith <jane@example.com>

@error('recipients')

{{ $message }}

@enderror
@else
{{ number_format($stats['total']) }} recipients
Manage recipients using the Delivery Log below.
@endif
@error('html_body')

{{ $message }}

@enderror
@if(!$isLocked)

You can select multiple files.

@error('attachments')

{{ $message }}

@enderror @error('attachments.*')

{{ $message }}

@enderror
@endif @if(isset($campaign) && $campaign->attachments->count())

Current Attachments

@foreach($campaign->attachments as $attachment)
{{ $attachment->original_name }}
{{ number_format(($attachment->file_size ?? 0) / 1024, 1) }} KB
@if(!$isLocked) @endif
@endforeach
@endif @push('scripts') @endpush