@include('helpers.form_control', [
'type' => 'text',
'class' => '',
'label' => trans('messages.automation.automation_name'),
'name' => 'name',
'value' => $automation->name,
'help_class' => 'automation',
'rules' => $automation->rules(),
])
@include('helpers.form_control', [
'name' => 'mail_list_uid',
'type' => 'select',
'label' => trans('messages.automation.choose_list'),
'value' => ($automation->mailList ? $automation->mailList->uid : ''),
'options' => Auth::user()->customer->readCache('MailListSelectOptions', []),
'rules' => $automation->rules(),
])
@if (config('custom.japan'))
@else
@include('helpers.form_control', [
'type' => 'select',
'name' => 'timezone',
'value' => \Auth::user()->customer->timezone ?? config('app.timezone'),
'options' => Tool::getTimezoneSelectOptions(),
'include_blank' => trans('messages.choose'),
'rules' => $automation->rules(),
'disabled' => true,
])
@endif