. */ function renderChecklist($check, $level = 0) { $user = auth()->getUser(); $enabled = $check->assignedUsers ? $check->assignedUsers->pluck('id')->search($user->id) !== false : true; $result = '