@php use App\Support\Forms\FormFieldSupport; $form = FormFieldSupport::formByKod($formKod ?? 'iletisim'); $alan = FormFieldSupport::field($form, $fieldKod); $required = $alan ? (bool) $alan->zorunlu : ($defaultRequired ?? false); $label = $alan?->etiket ?? $label ?? ucfirst($fieldKod); $placeholder = $alan?->yer_tutucu ?? $placeholder ?? ''; $inputType = $alan ? FormFieldSupport::htmlInputType($alan) : ($inputType ?? 'text'); $inputId = $inputId ?? $fieldKod; $inputClass = $inputClass ?? ''; $labelClass = $labelClass ?? ''; $wrapperClass = $wrapperClass ?? 'space-y-1.5'; @endphp
@if ($inputType === 'textarea') @else @endif