@php $inputId = random_str(5) ?? $name.'-ckeditor_id'; if (!empty($id) && isset($id)) { $inputId = $id; } $error = $errors->has($name) ? 'is-invalid' : ''; @endphp