I'm working laravel 5.5
I have this list on my form, The values shown are PHYSICAL and VIRTUAL:
{!! Form::mySelect('id_uso', 'Uso', App\Usos::pluck('nombre', 'id')->toArray(), null, ['class'=>'chosen']) !!}
and I would like if the Physical value is selected in the list, the following fields are shown:
{!! Form::myInput('text', 'marca', 'Marca', ['required']) !!}
{!! Form::myInput('text', 'modelo', 'Modelo', ['required']) !!}
{!! Form::myInput('text', 'mac', 'Mac', ['required']) !!}
{!! Form::myInput('text', 'serial', 'Serial', ['required']) !!}
and in case the selected option is VIRTUAL, hide them.
I think it would be better if I could change them to a Radiobutton, but I have no idea how to do it.
I appreciate your help.
Happy day.
EDIT:
So that's how it is after the modification.