|
@include('helpers.form_control', ['type' => 'text', 'name' => 'fields[' . $item->uid . '][label]', 'label' => '', 'subfix' => trans('messages.' . $item->type), 'value' => $item->label, 'help_class' => 'field'])
|
@include('helpers.form_control', ['disabled' => $item->tag == 'EMAIL', 'type' => 'checkbox', 'name' => 'fields[' . $item->uid . '][required]', 'label' => '', 'value' => $item->required, 'options' => [false,true], 'help_class' => 'field'])
|
@include('helpers.form_control', ['disabled' => $item->tag == 'EMAIL', 'type' => 'checkbox', 'name' => 'fields[' . $item->uid . '][visible]', 'label' => '', 'value' => $item->visible, 'options' => [false,true], 'help_class' => 'field'])
|
{SUBSCRIBER_
@include('helpers.form_control', [
'disabled' => $item->tag == 'EMAIL',
'type' => 'text',
'name' => 'fields[' . $item->uid . '][tag]',
'label' => '',
'value' => $item->tag,
'help_class' => 'field',
])
}
|
@include('helpers.form_control', ['type' => Acelle\Model\Field::getControlNameByType($item->type), 'name' => 'fields[' . $item->uid . '][default_value]', 'label' => '', 'value' => $item->default_value, 'help_class' => 'field'])
|
@if ($item->tag != 'EMAIL')
@if (Acelle\Model\Field::findByUid($item->uid))
delete_outline
@else
delete_outline
@endif
@endif
|
@if (count($item->fieldOptions))
|
@foreach ($item->fieldOptions as $key => $option)
@include('helpers.form_control', ['type' => 'text', 'placeholder' => trans('messages.label'), 'name' => 'fields[' . $item->uid . '][options][' . $option->uid . '][label]', 'label' => '', 'value' => $option->label, 'help_class' => 'field'])
@include('helpers.form_control', ['type' => 'text', 'placeholder' => trans('messages.value'), 'name' => 'fields[' . $item->uid . '][options][' . $option->uid . '][value]', 'label' => '', 'value' => $option->value, 'help_class' => 'field'])
@endforeach
|
{{ trans('messages.add_more') }}
|
@endif
@endforeach