@include('helpers.form_control', [
'type' => 'text',
'class' => 'numeric',
'name' => 'plan[options][sending_servers_max]',
'value' => $plan->getOption('sending_servers_max'),
'label' => trans('messages.max_sending_servers'),
'help_class' => 'plan',
'options' => ['true', 'false'],
'rules' => $plan->validationRules()['options'],
'unlimited_check' => true,
])
@include('helpers.form_control', ['type' => 'checkbox2',
'class' => '',
'name' => 'plan[options][all_sending_server_types]',
'value' => $plan->getOption('all_sending_server_types'),
'label' => trans('messages.allow_adding_all_sending_server_types'),
'options' => ['no','yes'],
'help_class' => 'plan',
'rules' => $plan->validationRules()['options'],
])
@foreach (Acelle\Model\SendingServer::types() as $key => $type)
{{ trans('messages.' . $key) }}
@include('helpers.form_control', ['type' => 'checkbox',
'class' => '',
'name' => 'plan[options][sending_server_types][' . $key . ']',
'value' => isset($plan->getOption('sending_server_types')[$key]) ? $plan->getOption('sending_server_types')[$key] : 'no',
'label' => '',
'options' => ['no','yes'],
'help_class' => 'plan',
'rules' => $plan->validationRules()['options'],
])
@endforeach