{{ $webForm->title }}
{{ $webForm->description }}
This is message
@foreach ($webForm->attributes as $attribute) @php $parentAttribute = $attribute->attribute; $fieldName = $parentAttribute->entity_type . '[' . $parentAttribute->code . ']'; @endphp
{{ $attribute->name ?? $parentAttribute->name }}
@switch($parentAttribute->type) @case('text')
is_required ? 'required' : '' }} /> @break; @case('date') @case('datetime')
is_required ? 'required' : '' }} /> @break; @case('textarea')
is_required ? 'required' : '' }} >
@break; @case('email')
is_required ? 'required' : '' }} />
@break; @case('phone')
is_required ? 'required' : '' }} />
@break; @case('select') @case('lookup')
is_required ? 'required' : '' }} > @php $options = $parentAttribute->lookup_type ? app('Webkul\Attribute\Repositories\AttributeRepository')->getLookUpOptions($parentAttribute->lookup_type) : $parentAttribute->options()->orderBy('sort_order')->get(); @endphp
{{ __('admin::app.settings.attributes.select') }}
@foreach ($options as $option)
{{ $option->name }}
@endforeach
@break; @case('multiselect')
@php $options = $parentAttribute->lookup_type ? app('Webkul\Attribute\Repositories\AttributeRepository')->getLookUpOptions($parentAttribute->lookup_type) : $parentAttribute->options()->orderBy('sort_order')->get(); @endphp @foreach ($options as $option)
{{ $option->name }}
@endforeach
@break; @case('checkbox')
@php $options = $parentAttribute->lookup_type ? app('Webkul\Attribute\Repositories\AttributeRepository')->getLookUpOptions($parentAttribute->lookup_type) : $parentAttribute->options()->orderBy('sort_order')->get(); @endphp @foreach ($options as $option)
{{ $option->name }}
@endforeach
@break; @case('file') @case('image')
@break; @case('boolean')
Yes
No
@break; @case('address') @break; @endswitch
@endforeach
{{ $webForm->submit_button_label }}