@if(!empty($row) && !empty($form_data)) @php $default_field = []; $custom_field = []; $custom_file = false; @endphp @foreach($form_data as $row) @php if($row->type != 'header' && $row->type !='paragraph'){ if(property_exists($row,'className') && strpos($row->className, 'default-field') !== false){ $default_field[] = $row->name; }else{ $custom_field[] = $row->name; $custom_file = true; } $required = property_exists($row,'required'); $type = property_exists($row,'subtype') ? $row->subtype : $row->type; $placeholder = property_exists($row,'placeholder') ? $row->placeholder : $row->label; } @endphp @if($row->type =='header' || $row->type =='paragraph')
<{{ $row->subtype }}>{{ $row->label }} subtype }}>
@elseif($row->type == 'text' || $row->type == 'number' || $row->type == 'email' || $row->type == 'date')
@error($row->name) {{ $message }} @enderror
@elseif($row->type=='select')
{{$errors->first($row->name)}}
@elseif($row->type == 'date')
@error($row->name) {{ $message }} @enderror
@elseif($row->type=='textarea')
{{$errors->first($row->name)}}
@elseif($row->type=="radio-group")
@foreach($row->values as $value) {{ $value->label }} @endforeach
@elseif($row->type=="checkbox-group")
@foreach($row->values as $value)

{{$value->label}}

@endforeach
@elseif($row->type =='file')
@elseif($row->type =='checkbox')

{{$row->label}}

@endif @endforeach @else
@endif