|
|
|
|
@ -40,9 +40,8 @@ class QuestionnairesLogsController extends Controller
|
|
|
|
|
foreach ($log as $value) {
|
|
|
|
|
$person_info = json_decode($value->person_info, true);
|
|
|
|
|
$age = !!$person_info['birthday'] ? date('Y') - date('Y', strtotime($person_info['birthday'])) : 0;
|
|
|
|
|
$check_items = [];
|
|
|
|
|
$items = json_decode($value->items, true);
|
|
|
|
|
$count = count($items);
|
|
|
|
|
$check_items = json_decode($value->check_items, true);
|
|
|
|
|
$count = count($check_items);
|
|
|
|
|
$list[] = [
|
|
|
|
|
'id' => $value->id,
|
|
|
|
|
'title' => $value->title,
|
|
|
|
|
|