Trouble with CheckboxList and Group Rendering
I have a CheckboxList that contains 7 options, and I want to render a group for each option. Here is my code:
Forms\Components\CheckboxList::make('day')
->options(PreferredDay::getPreferredDay())
->reactive(),
Group::make([
Forms\Components\TimePicker::make('start_time')
->hidden(function ($get) {
return !$get('day');
}),
Forms\Components\TimePicker::make('end_time')
->hidden(function ($get) {
return !$get('day');
}),
])->columns(2),
3 Replies