@component('admin.components.step_form_pages', [//'post_url'=>$post_url, 'type'=>'blast', 'title'=> 'What is this blast about?' , 'step'=>'2', 'disable_auto_submit'=>true ]) @php $id = 'blast_name'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'schedule_datetime'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'notification'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @php $template_types = ['sms'=>'SMS Template','email'=>'Email Template','whatsapp'=>'Whatsapp Template'] @endphp
@foreach($template_types as $type=>$name)
@switch($type) @case('sms') @php $id = 'sms_sender_id'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'sms_content'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@foreach($sms_variables as $key => $variable) {{$variable}} @endforeach
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'test_sms_destination'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
Send Test SMS
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent

Please confirm legal requirements (e.g. Prefixes, UNSUB numbers) and constraints (e.g. Time of Day) for SMS blast within respective countries.

@break; @case('email') @php $id = 'email_subject'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'email_sender_name'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'email_reply_to'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'email_content'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@foreach($sms_variables as $key => $variable) {{$variable}} @endforeach
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'test_email_destination'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
Send Test Email
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @break; @case('whatsapp')

Variable Mapper

{{-- Maximize Button --}}
{{--
--}} {{--
--}} {{--
--}}
@php $id = 'test_wa_destination'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
Send Whatsapp Test
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent

Please confirm legal requirements (e.g. UNSUB numbers) and constraints (e.g. Time of Day) for Whatsapp blast within respective countries. {{--
--}} {{-- Whatsapp blast only allows to schedule {{$min_blast_min ?? ''}} minutes in advance. --}}

@break; @endswitch
@endforeach
@endcomponent @slot('footer_back') Back @endslot @slot('footer_next') @if($can_send_blast) @endif @endslot @endcomponent
@section('script') @parent @endSection