isChecked = $value === 'true'; } public function render(): string { $radioInput = form_radio( [ 'id' => $this->value, 'name' => $this->name, 'class' => 'form-radio-btn bg-elevated', ], $this->value, old($this->name) ? old($this->name) === $this->value : $this->isChecked, ); $hint = $this->hint ? hint_tooltip($this->hint, 'ml-1 text-base') : ''; return << {$radioInput} HTML; } }