Select::make('imunization')->multiple->default(function () { $imunization = []; // first condition $days = ... ; if ($days <= 0) { $imunization += ['hb0']; } // and many other conditions ... return $imunization;})
Forms\Components\Select::make('imuninization')->native(false)->multiple()->searchable()->options([ 'hb0' => 'HB 0', 'bcg' => 'BCG', 'opv0' => 'OPV 0',]),