@if ($formdata->label_status != 0)
@endif
{{-- ================== For Text Type Fieldsets =============== --}}
@if (
$form_fields->type == 'text' ||
$form_fields->type == 'number' ||
$form_fields->type == 'email' ||
$form_fields->type == 'password')
validation }}
style="{{ $form_fields->custom_style }}" />
@endif
{{-- ================== For Text Type Fieldsets =============== --}}
@if ($form_fields->type == 'colorpicker')
validation }}
style="{{ $form_fields->custom_style }}" />
@endif
{{-- ================== For Textarea Type Fieldsets =============== --}}
@if ($form_fields->type == 'textarea')
@endif
{{-- ================== For Textarea Editor Type Fieldsets =============== --}}
@if ($form_fields->type == 'textarea-editor')
@endif
{{-- ================== For File Type Fieldsets =============== --}}
@if ($form_fields->type == 'file')
@endif
{{-- ================== For Dropdown Type Fieldsets =============== --}}
@if ($form_fields->type == 'dropdown')
@php
$form_fields_options = \App\Models\ModuleOption::where(
'form_id',
$formdata->id,
)
->where('field_id', $form_fields->field_count)
->get();
@endphp
@endif
{{-- ================== For ONE TO ONE RELATION Type Fieldsets =============== --}}
@if ($form_fields->type == 'one_to_one_relations')
@php
$form_fields_relation = \App\Models\ModuleRelation::where(
'form_id',
$formdata->id,
)
->where('field_id', $form_fields->field_count)
->first();
$get_model_name = \App\Models\CoreModule::firstWhere(
'module_table',
$form_fields_relation->related_table,
);
$model_name =
'\\App\\Models\\' . $get_model_name->module_model;
$get_one_to_one_data = $model_name::all();
@endphp
@endif
{{-- ================== For Checkbos Type Fieldsets =============== --}}
@if ($form_fields->type == 'checkbox')
@php
$form_fields_options = \App\Models\ModuleOption::where(
'form_id',
$formdata->id,
)
->where('field_id', $form_fields->field_count)
->get();
@endphp
@foreach ($form_fields_options as $fields_options)
value == $get_record[$replace_field_name]) checked @endif>
@endforeach
@endif
{{-- ================== For Radio Type Fieldsets =============== --}}
@if ($form_fields->type == 'radio')
@php
$form_fields_options = \App\Models\ModuleOption::where(
'form_id',
$formdata->id,
)
->where('field_id', $form_fields->field_count)
->get();
@endphp
@foreach ($form_fields_options as $fields_options)
value == $get_record[$replace_field_name]) checked @endif>
@endforeach
@endif
@endif
@endforeach