@if ($errors->any())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
@if (isset($status) && $status == true)
- Thanks for contacting us! We will get in touch with you shortly.
@endif
@php $field_reqs = []; @endphp
@foreach($webform_cards as $card)
@foreach($webform_rows[$card->id] as $row)
@foreach($webform_columns[$row->id] as $column)
@if(isset($webform_fields[$column->id]))
@livewire('leads.sources.form.field-type', [
'layout_id' => $webform->layout_id,
'lead_field_id' => $webform_fields[$column->id]->name,
'columns' => count($webform_columns[$row->id]),
'name' => $webform_fields[$column->id]->name,
'label' => $webform_fields[$column->id]->label,
'required' => $webform_fields[$column->id]->required,
'placeholder' => $webform_fields[$column->id]->placeholder,
'fieldtype_id' => $webform_fields[$column->id]->fieldtype_id,
'fieldlist_id' => $webform_fields[$column->id]->fieldlist_id
], $column->id)
@if($webform_fields[$column->id]->required)
@endif
@endif
@endforeach
@endforeach
@if($loop->last)
@endif
@endforeach