{{-- KYC template field group partial. Rendered inside the parent verification form; must NOT contain a nested
. --}}
{{ $template->title }}
@if(! empty($template->description))

{{ $template->description }}

@endif
@foreach($template->fields as $field) @php $fieldLabel = ucfirst(str_replace('_', ' ', $field['label'])); $fieldKey = $field['label']; $fieldType = $field['type'] ?? 'text'; $isRequired = ! empty($field['validation']); $fieldId = 'kyc-credential-' . \Illuminate\Support\Str::slug($fieldKey); $fieldName = "credentials[{$fieldKey}]"; @endphp
@if($fieldType === 'file') @elseif($fieldType === 'textarea') @else @endif
@endforeach