{!! Form::checkbox(null, null, null,
['id' => 'select_all_note_notify', 'class' => 'p-0']) !!}
{!! Form::label('select_all_note_notify', 'Select toggle all') !!}
@if(!empty($lead))
Customer
{!! Form::checkbox('notify_email[]', $lead->getEmail(), null,
['id' => 'notify_lead_email'.$lead->id, 'class' => 'p-0, notify_lead_email']) !!}
{!! Form::label('notify_lead_email'.$lead->id, $lead->getEmail()) !!}
@endif
@if(!empty($preSelectedLeads))
Customer
@foreach($preSelectedLeads as $psLead)
{!! Form::checkbox('notify_email[]', $psLead['lead']->getEmail(), null,
['id' => 'notify_lead_email'.$psLead['lead']->id, 'class' => 'p-0, notify_lead_email']) !!}
{!! Form::label('notify_lead_email'.$psLead['lead']->id, $psLead['lead']->getEmail()) !!}
@endforeach
@endif
@if(!empty($staff))
@if(sizeof($staff) > 0)
Staff
@endif
@foreach($staff as $st)
{!! Form::checkbox('notify_email[]', $st->getEmail(), null,
['id' => 'notify_staff_email'.$st->id, 'class' => 'p-0, notify_staff_email']) !!}
{!! Form::label('notify_staff_email'.$st->id, $st->getEmail()) !!}
@endforeach
@endif
@if(!empty(env('NOTIFY_ARRAY')))
@php
$notify_array = json_decode(env('NOTIFY_ARRAY'), true);
if(json_last_error() == JSON_ERROR_NONE) {
foreach($notify_array as $key => $emails){
if($key == "ALL"){
$eid = 0;
foreach($emails as $email){
$eid++;
$notify_emails[$eid] = $email;
}
}
}
}
@endphp
@if(!empty($notify_emails))
Extra
@foreach($notify_emails as $eid => $email)
{!! Form::checkbox('notify_email[]', $email, null,
['id' => 'notify_'.$eid, 'class' => 'p-0, notify_email']) !!}
{!! Form::label('notify_'.$eid, $email) !!}
@endforeach
@endif
@endif