Open modal from input field label

I wanted to open a modal from the checkbox label text, like Terms & Conditions.
Forms\Components\Checkbox::make('terms')
                        ->label('I agree with ')
                        ->hint("[terms & condition.](" . url("/terms") . ")")

The above code works but the link will come in the hint section. Also, it'll open another page and I want to show terms & conditions in the modal.
Was this page helpful?