@if ($list->getEmbeddedFormOption('stylesheet') == 'yes') @endif @if (!empty($list->getEmbeddedFormOption('custom_css'))) @endif
@if (!empty($list->getEmbeddedFormOption('form_title')))

{{ $list->getEmbeddedFormOption('form_title') }}

@endif

* {{ trans('messages.indicates_required') }}

@if (!isset($preview))
@endif @foreach ($list->getFields as $field) @if ($field->visible || $list->getEmbeddedFormOption('show_invisible') == 'yes') @if(($list->getEmbeddedFormOption('only_required_fields') == 'yes' && $field->required) || $list->getEmbeddedFormOption('only_required_fields') == 'no') @if ($field->type == "text") @include('helpers.form_control', ['type' => $field->type, 'name' => $field->tag, 'label' => $field->label, 'value' => (isset($values[$field->tag]) ? $values[$field->tag] : $field->default_value), 'rules' => $list->getFieldRules()]) @elseif ($field->type == "number") @include('helpers.form_control', ['type' => 'number', 'name' => $field->tag, 'label' => $field->label, 'value' => (isset($values[$field->tag]) ? $values[$field->tag] : $field->default_value), 'rules' => $list->getFieldRules()]) @elseif ($field->type == "textarea") @include('helpers.form_control', ['type' => 'textarea', 'name' => $field->tag, 'label' => $field->label, 'value' => (isset($values[$field->tag]) ? $values[$field->tag] : $field->default_value), 'rules' => $list->getFieldRules()]) @elseif ($field->type == "dropdown") @include('helpers.form_control', ['type' => 'select', 'class' => 'form-control', 'name' => $field->tag, 'label' => $field->label, 'value' => (isset($values[$field->tag]) ? $values[$field->tag] : $field->default_value), 'options' => $field->getSelectOptions(), 'rules' => $list->getFieldRules()]) @elseif ($field->type == "multiselect") @include('helpers.form_control', ['multiple' => true, 'class' => 'form-control', 'type' => 'select', 'name' => $field->tag . "[]", 'label' => $field->label, 'value' => (isset($values[$field->tag]) ? $values[$field->tag] : $field->default_value), 'options' => $field->getSelectOptions(), 'rules' => $list->getFieldRules()]) @elseif ($field->type == "checkbox") @include('helpers.form_control', ['multiple' => true, 'type' => 'checkboxes', 'name' => $field->tag . "[]", 'label' => $field->label, 'value' => (isset($values[$field->tag]) ? $values[$field->tag] : $field->default_value), 'options' => $field->getSelectOptions(), 'rules' => $list->getFieldRules()]) @elseif ($field->type == "radio") @include('helpers.form_control', ['multiple' => true, 'type' => 'radio', 'name' => $field->tag, 'label' => $field->label, 'value' => (isset($values[$field->tag]) ? $values[$field->tag] : $field->default_value), 'options' => $field->getSelectOptions(), 'rules' => $list->getFieldRules()]) @elseif ($field->type == "date") @include('helpers.form_control', ['multiple' => true, 'type' => 'date', 'name' => $field->tag . "[]", 'label' => $field->label, 'value' => (isset($values[$field->tag]) ? $values[$field->tag] : $field->default_value), 'options' => $field->getSelectOptions(), 'rules' => $list->getFieldRules()]) @elseif ($field->type == "datetime") @include('helpers.form_control', ['multiple' => true, 'type' => 'datetime', 'name' => $field->tag . "[]", 'label' => $field->label, 'value' => (isset($values[$field->tag]) ? $values[$field->tag] : $field->default_value), 'options' => $field->getSelectOptions(), 'rules' => $list->getFieldRules()]) @endif @endif @endif @endforeach @if ($list->getEmbeddedFormOption('redirect_url')) @endif
@if (!isset($preview)) @endif
@if ($list->getEmbeddedFormOption('stylesheet') == 'yes') @endif @if ($list->getEmbeddedFormOption('javascript') == 'yes') @endif @if ($list->getEmbeddedFormOption('javascript') == 'yes') @include('layouts.core._script_vars') @endif