krayin

{{ $webForm->title }}

{{ $webForm->description }}

@foreach ($webForm->attributes as $attribute) @php $parentAttribute = $attribute->attribute; $fieldName = $parentAttribute->entity_type . '[' . $parentAttribute->code . ']'; @endphp
@switch($parentAttribute->type) @case('text') is_required ? 'required' : '' }} /> @break; @case('date') @case('datetime') is_required ? 'required' : '' }} /> @break; @case('textarea') @break; @case('email') is_required ? 'required' : '' }} /> @break; @case('phone') is_required ? 'required' : '' }} /> @break; @case('select') @case('lookup') @break; @case('multiselect') @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') @break; @case('address') @break; @endswitch
@endforeach