@include('layouts.core._head') @include('layouts.core._script_vars')
dashboard
keyboard_backspace
{{ trans('messages.form.layouts') }}

@foreach ($templates->take(5) as $template) @endforeach
web
keyboard_backspace
{{ trans('messages.form.themes') }}

@foreach ($templates->skip(5) as $template) @endforeach
tune
keyboard_backspace
{{ trans('messages.form.form_settings') }}

{{ csrf_field() }}
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'name', 'label' => trans('messages.name'), 'value' => $form->name, 'required' => true, ])
@include('helpers.form_control', [ 'type' => 'select', 'name' => 'mail_list_uid', 'label' => trans('messages.list'), 'value' => $form->mailList->uid, 'options' => Auth::user()->customer->readCache('MailListSelectOptions', []), 'rules' => [], ])

{{ trans('messages.form.display.desc') }}

@include('helpers.form_control', [ 'type' => 'select', 'name' => 'display', 'label' => '', 'value' => $form->getMetadata('display'), 'options' => [ ["value" => "immediately", "text" => trans('messages.form.display.immediately')], ["value" => "first_visit", "text" => trans('messages.form.display.first_visit')], ["value" => "wait", "text" => trans('messages.form.display.wait')], ["value" => "click", "text" => trans('messages.form.display.click')], ], ])

{{ trans('messages.form.display.immediately.desc') }}

{{ trans('messages.form.display.first_visit.desc') }}

{{ trans('messages.form.display.wait_time.desc') }}

@include('helpers.form_control.number', [ 'name' => 'wait_time', 'value' => $form->getMetadata('wait_time') ? $form->getMetadata('wait_time') : '5', 'attributes' => [ 'class' => 'numeric', 'min' => '1', 'required' => 'required', ], ])

{{ trans('messages.form.display.element_id.desc') }}

@include('helpers.form_control.text', [ 'name' => 'element_id', 'value' => $form->getMetadata('element_id') ? $form->getMetadata('element_id') : '', 'attributes' => [ 'required' => 'required', ], ])
{{--
@include('helpers.form_control', [ 'type' => 'checkbox2', 'name' => 'use_captcha', 'label' => trans('messages.form.use_captcha'), 'value' => $form->getMetadata('use_captcha'), 'options' => ['no', 'yes'], ])
--}}