@isset($input_fields) @foreach ($input_fields ?? [] as $item) @if ($item->type == "text" || $item->type == "file")
@elseif ($item->type == "textarea") @include('admin.components.form.textarea',[ 'label' => $item->label, 'name' => $item->name, 'attribute' => ($item->required == true) ? "required=true" : "", 'class' => "form-control mb-3", 'value' => old($item->name), ]) @endif @endforeach @endisset