@if(session()->has('message'))

{{session('message')}}

@endif
@foreach($forms as $key => $form)

Step: {{++$key}}

@foreach($form as $item) {{--
--}} {{--
--}} {{--

ID

--}} {{--

{{$item['field_id']}}

--}} {{--
--}} {{--
--}} {{--

Name

--}} {{--

{{$item['field_name']}}

--}} {{--
--}} {{--
--}} {{--

Type

--}} {{--

{{$item['field_type']}}

--}} {{--
--}} {{--
--}} {{--

Validation

--}} {{--

{{$item['field_validation']}}

--}} {{--
--}} {{--
--}} {{--

Size

--}} {{--

{{$item['field_size']}}%

--}} {{--
--}} {{--
--}} {{--

Request Type

--}} {{--

{{$item['field_request_type']}}

--}} {{--
--}} {{--
--}} {{--

Field Order

--}} {{--

{{$item['field_order']}}

--}} {{--
--}} {{--
--}} {{--
--}} {{--

Extras

--}} {{--

--}} @php $extras = json_decode($item['field_extras'],true); $attributes = ""; $html = ""; $placeholder = ''; $label =''; $extra_title = false; if(array_key_exists('position',$extras)) $html .= "Position: {$extras['position']}"; if(array_key_exists('title',$extras)){ $html .= "Title: {$extras['title']}"; if($extras['position'] == 'placeholder') $placeholder = "placeholder={$extras['title']}"; if($extras['position'] == 'top') $label = "
"; } if(array_key_exists('alignment',$extras)) $html .= "Alignment: {$extras['alignment']}"; if(array_key_exists('extra_title',$extras)) $extra_title = true; @endphp {{-- {!! $html !!}--}} {{--

--}} {{--
--}} {{--
--}} @php $class = ''; if($item['field_size'] == '100') $class = 'w-full'; elseif($item['field_size'] == '75') $class = 'w-9/12'; elseif($item['field_size'] == '50') $class = 'w-6/12 float-left'; elseif($item['field_size'] == '25') $class = 'w-3/12'; @endphp @if($item['field_type'] == 'text') @if($extra_title) @if($extras['extra_title_position'] == 'top') @if(array_key_exists('extra_title_icon',$extras)) {{$extras['extra_title']}} {{$extras['extra_icon_description']}} @endif @endif @else @endif @endif @if($item['field_type'] == 'price') @endif @if($item['field_type'] == 'switch')
@endif @if($item['field_type'] == 'radio')
@if($extras['values_type'] == 'options') @foreach($extras['options'] as $option) {{$option['text']}} @endforeach @endif
@endif @if($item['field_type'] == 'selection_popup') @endif @if($item['field_type'] == 'button') @endif @if($item['field_type'] == 'textview') @endif @if($item['field_type'] == 'map_searchable') @endif @if($item['field_type'] == 'map') @endif @if($item['field_type'] == 'file')
{{$extras['title']}}
@endif @endforeach
@endforeach