@include('helpers.form_control', [
'name' => 'lists_segments[' . $index . '][mail_list_uid]',
'class' => 'list-select',
'include_blank' => trans('messages.choose'),
'type' => 'select',
'label' => trans('messages.which_list_send'),
'value' => ($lists_segment_group['list'] ? $lists_segment_group['list']->uid : ""),
'options' => Auth::user()->customer->readCache('MailListSelectOptions', []),
'rules' => isset($rules) ? $rules : []
])
@if ($lists_segment_group['list'] && collect($lists_segment_group['list']->readCache('SegmentSelectOptions', []))->count())
@include('helpers.form_control', [
'value' => implode(",", $lists_segment_group['segment_uids']),
'type' => 'select',
'name' => 'lists_segments[' . $index . '][segment_uids][]',
'label' => trans('messages.which_segment_send'),
'options' => collect($lists_segment_group['list']->readCache('SegmentSelectOptions', [])),
'multiple' => true,
'quick_note' => trans('messages.leave_empty_to_choose_all_list')
])
@endif