@extends('layouts.core.frontend', [ 'menu' => 'list', ]) @section('title', $list->name . ": " . trans('messages.manage_list_fields') ) @section('head') @endsection @section('page_header') @include("lists._header") @endsection @section('content') @include("lists._menu", [ 'menu' => 'field', ])

fact_check {{ trans('messages.manage_list_fields') }}

{!! trans('messages.fields_intro') !!}

@if ($errors->has("miss_main_field_tag"))
{{ $errors->first("miss_main_field_tag") }}
@endif @if ($errors->has("conflict_field_tags"))
{{ $errors->first("conflict_field_tags") }}
@endif
{{ csrf_field() }} @if ($fields->count() > 0) @foreach ($fields as $key => $item) @if (count($item->fieldOptions)) @endif @endforeach
{{ trans('messages.field_label_and_type') }} {{ trans('messages.required?') }} {{ trans('messages.visible?') }} {{ trans('messages.tag') }} {{ trans('messages.default_value') }}
@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
@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

{{ trans('messages.add_field') }}

$list->uid, "type" => "text"]) }}" class="btn btn-default btn-xs add-custom-field-button me-2" type_name="text"> drag_handle {{ trans('messages.text_field') }} $list->uid, "type" => "number"]) }}" class="btn btn-default btn-xs add-custom-field-button me-2" type_name="number"> pin {{ trans('messages.number_field') }} $list->uid, "type" => "dropdown"]) }}" class="btn btn-default btn-xs add-custom-field-button me-2" type_name="dropdown"> playlist_add_check {{ trans('messages.dropdown_field') }} $list->uid, "type" => "multiselect"]) }}" class="btn btn-default btn-xs add-custom-field-button me-2" type_name="multiselect">checklist_rtl {{ trans('messages.multiselect_field') }} $list->uid, "type" => "checkbox"]) }}" class="btn btn-default btn-xs add-custom-field-button me-2" type_name="checkbox">select_check_box {{ trans('messages.checkbox_field') }} $list->uid, "type" => "radio"]) }}" class="btn btn-default btn-xs add-custom-field-button me-2" type_name="radio">check_circle {{ trans('messages.radio_field') }} $list->uid, "type" => "date"]) }}" class="btn btn-default btn-xs add-custom-field-button me-2" type_name="date">calendar_month {{ trans('messages.date_field') }} $list->uid, "type" => "datetime"]) }}" class="btn btn-default btn-xs add-custom-field-button me-2" type_name="datetime">alarm {{ trans('messages.datetime_field') }} $list->uid, "type" => "textarea"]) }}" class="btn btn-default btn-xs add-custom-field-button" type_name="textarea">article {{ trans('messages.textarea_field') }}


@endsection