type == 'textarea' || $data->type == 'freetext' || $data->type == 'number'){
$value = json_decode(@$penilaian->value);
$valueOld = json_decode(@$penilaianOld->value);
if(@$value){
$nilai = @$value;
}else{
$nilai = @$valueOld;
} ?>
{{ @$nilai }}
type == 'checkbox' || $data->type == 'radio_button'){
$option = json_decode($data->option);
$value = json_decode(@$penilaian->value);
$valueOld = json_decode(@$penilaianOld->value);
foreach($option as $keyOption => $dataOption){
$selectedValues = is_array($value) ? $value : (isset($value) ? [$value] : (is_array($valueOld) ? $valueOld : [$valueOld]));
if (in_array($dataOption, $selectedValues)) {
$checked = '
';
}else{
$checked = '
';
}
?>
Catatan :
{{@$catatan->value != 'null' ? $catatan->value : '-'}}