Select::make('client_category')
->options($categories->pluck('descripcion', 'id')->toArray())
->searchable()
->live(onBlur: true)
->default($default),
TextInput::make('name')
->hidden(function (Get $get, Set $set, Component $component):bool {
if($get('client_category') != null) {
dd($component); //i need the $component from the select
return false;
}
return true;
})
Select::make('client_category')
->options($categories->pluck('descripcion', 'id')->toArray())
->searchable()
->live(onBlur: true)
->default($default),
TextInput::make('name')
->hidden(function (Get $get, Set $set, Component $component):bool {
if($get('client_category') != null) {
dd($component); //i need the $component from the select
return false;
}
return true;
})