@php $type = $meta['type'] ?? 'text'; $class = $meta['class'] ?? 'col-md-12'; $isTranslatable = ($meta['translatable'] ?? false) && $type !== 'img'; $label = ucfirst(str_replace('_', ' ', $field)); $fieldName = $isTranslatable ? "content_data[$field][$language]" : "content_data[$field]"; $required = Str::contains($meta['validation'] ?? '', 'required'); $ref = $required ? '' : 'coevs-remove-img'; @endphp