Hidden::make('allowCombination')
->reactive()
->default(false),
Select::make('combinationMeals')
->columnSpanFull()
->multiple()
->reactive()
->label('Additions (Packaged with the Protein)')
->disabled(function (callable $get) {
$allow = $get('allowCombination');
if($allow) {
return false;
}
return true;
})
->hint(function (callable $get) {
$allow = $get('allowCombination');
if($allow) {
return '';
}
return "Select 'Individual' packaging type to include additional options";
})
Hidden::make('allowCombination')
->reactive()
->default(false),
Select::make('combinationMeals')
->columnSpanFull()
->multiple()
->reactive()
->label('Additions (Packaged with the Protein)')
->disabled(function (callable $get) {
$allow = $get('allowCombination');
if($allow) {
return false;
}
return true;
})
->hint(function (callable $get) {
$allow = $get('allowCombination');
if($allow) {
return '';
}
return "Select 'Individual' packaging type to include additional options";
})