{!! Form::open([
'url' => '/create-bulk-mail-list']) !!}
{!! Form::close() !!}
Subject
{!! Form::text('subject', '',
['id' => 'subject', 'class' => 'form-control']) !!}
{{ $errors->first('subject') }}
Email content
{!! Form::textarea('body', '', [
'class' => 'form-control',
'placeholder' => 'Email body',
'rows' => 8,
'name' => 'body'
]) !!}
{{ $errors->first('body') }}
Button text
{!! Form::text('cta_text', '',
['id' => 'cta_text', 'class' => 'form-control']) !!}
{{ $errors->first('cta_text') }}
Button login landing page
{!! Form::select('cta_dashboard_page', $dashboard_pages, null, ['id' => 'cta_dashboard_page']) !!}
or Button full url
{!! Form::text('cta_url', '',
['id' => 'cta_url', 'class' => 'form-control']) !!}
Template
{!! Form::select('template', $email_templates, null, ['id' => 'template-select']) !!}
Filter recipients
Area Only send to leads in this area
{!! Form::select('area_id', $areas, null, ['id' => 'area-select']) !!}
Voucher state Only send to leads in this voucher state
{!! Form::select('voucher_consent', config('enum.voucher_consent_states'), null, ['id' => 'voucher-state-select']) !!}
Install state Only send to leads in this install state
{!! Form::select(
'install_state',
[0 => "ignore"] + config('enum.install_states'),
null,
['id' => 'install-state-select']) !!}
Billing state Only send to leads in this billing state
{!! Form::select('billing_state', [
0 => 'ignore',
2 => 'Exempt',
-1 => 'Initial setup',
-2 => 'Requires subscription payment',
-4 => 'Stopped paying while on service',
-3 => 'Requires one off payment',
1 => 'Payments active'
], null, ['id' => 'voucher-state-select']) !!}
Voucher state less than Only send to leads in a voucher state less than this
{!! Form::text('voucher_consent_less_than', '',
['id' => 'voucher_consent_less_than', 'class' => 'form-control']) !!}
Match these postcodes (seperate with a comma)
Only send to leads with addresses at this postcode {!! Form::text('match_postcodes', '', ['id' => 'match_postcodes', 'class' => 'form-control']) !!} {{ $errors->first('match_postcodes') }}
Only send to leads with addresses at this postcode {!! Form::text('match_postcodes', '', ['id' => 'match_postcodes', 'class' => 'form-control']) !!} {{ $errors->first('match_postcodes') }}
Match these GPON_SN (seperate with a comma)
Only send to leads with these GPON_SN {!! Form::text('match_gpon', '', ['id' => 'match_gpon', 'class' => 'form-control']) !!} {{ $errors->first('match_gpon') }}
Only send to leads with these GPON_SN {!! Form::text('match_gpon', '', ['id' => 'match_gpon', 'class' => 'form-control']) !!} {{ $errors->first('match_gpon') }}
Just this lead ID/UUID
The lead ID or UUID and only send to this lead {!! Form::text('just_leadid', '', ['id' => 'just_leadid', 'class' => 'form-control']) !!} {{ $errors->first('just_leadid') }}
The lead ID or UUID and only send to this lead {!! Form::text('just_leadid', '', ['id' => 'just_leadid', 'class' => 'form-control']) !!} {{ $errors->first('just_leadid') }}
Direct to this email
Only to this exact email address
{!! Form::text('direct_email', '',
['id' => 'direct_email', 'class' => 'form-control']) !!}
{{ $errors->first('direct_email') }}
Only if match this email
Only to leads with this exact email address {!! Form::text('just_email', '', ['id' => 'just_email', 'class' => 'form-control']) !!} {{ $errors->first('just_email') }}
Only to leads with this exact email address {!! Form::text('just_email', '', ['id' => 'just_email', 'class' => 'form-control']) !!} {{ $errors->first('just_email') }}
{!! Form::checkbox('just_no_package', 1, 0,
['id' => 'just_no_package', 'class' => 'p-0']) !!}
{!! Form::label('just_no_package', 'Only send to leads without a package selected') !!}
{!! Form::checkbox('only_no_voucher_consent', 1, 0,
['id' => 'only_no_voucher_consent', 'class' => 'p-0']) !!}
{!! Form::label('only_no_voucher_consent', 'Only send to leads that have not given voucher consent') !!}
{!! Form::checkbox('only_package_selected', 1, 0,
['id' => 'only_package_selected', 'class' => 'p-0']) !!}
{!! Form::label('only_package_selected', 'Only send to leads with a package selected') !!}
{!! Form::checkbox('only_install_available', 1, 0,
['id' => 'only_install_available', 'class' => 'p-0']) !!}
{!! Form::label('only_install_available', 'Only send to leads that are available to be installed') !!}