diff --git a/app/Helpers/custom.php b/app/Helpers/custom.php index 71070e8..9343d11 100644 --- a/app/Helpers/custom.php +++ b/app/Helpers/custom.php @@ -779,9 +779,10 @@ if (!function_exists('formKriteria')) { $option = json_decode($data->option); $value = json_decode(@$penilaian->value); $valueOld = json_decode(@$penilaianOld->value); + dd(@$value); foreach($option as $keyOption => $dataOption){ - + if(@$value){ if(in_array($dataOption, (is_array(@$value) ? @$value : array(@$value)))){ $checked = 'checked'; @@ -795,7 +796,7 @@ if (!function_exists('formKriteria')) { $key = 'number_'.$keyKriteria.'_'.$keyOption; $html .= '
'; - $html .= ''; + $html .= ''; $html .= ''; $html .= '
'; }